Skip to content

Commit 01bfd55

Browse files
committed
feat: update role descriptions for various case bundles to enhance clarity and user experience
1 parent 81ba5b3 commit 01bfd55

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/data/cases/_more/data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const dataWeeklyTrendSnapshot: CaseBundle = {
5353
},
5454
prompt: {
5555
zh: composeCasePrompt({
56-
role: '你是一名擅长本地桌面小工具的资深工程师。用户是数据分析师,不懂太多代码。',
56+
role: caseRole('数据分析同事', 'zh'),
5757
goal: '把每周拉指标、写周报的重复活儿压成 5 分钟。',
5858
platform: '- Windows + macOS;Electron + React + TypeScript;SheetJS;图表用纯 SVG 自绘小折线',
5959
features: '1. 导入 Excel,自动识别"指标名"列和过去 N 周(W-N..W-1)列;最右一列视为本周。\n2. 每个指标渲染一张卡:本周值、环比、4-8 周迷你折线。\n3. 阈值规则(可改):环比 > +5% 绿色 + "增长"; < -5% 红色 + "下滑";接近 0 灰色 + "持平"。\n4. 解读模板(可编辑):根据涨跌方向自动填充一句中文,例如"本周 GMV 较上周增长 7.2%,主要受 618 预热影响"——预热文案占位允许人工编辑。\n5. "导出周报 Markdown"按钮,按指标分组输出。',
@@ -62,7 +62,7 @@ export const dataWeeklyTrendSnapshot: CaseBundle = {
6262
communication: COMMUNICATION_ZH,
6363
}, 'zh'),
6464
en: composeCasePrompt({
65-
role: caseRole('a data analyst, light coding', 'en'),
65+
role: caseRole('a data analyst', 'en'),
6666
goal: 'Compress weekly KPI-report grind into five minutes.',
6767
platform: '- Windows + macOS; Electron + React + TypeScript; SheetJS; tiny inline SVG sparkline',
6868
features: '1. Import Excel; detect metric column + past-N-week columns; rightmost = this week.\n2. Per-metric card: current value, WoW, 4–8-week sparkline.\n3. Editable thresholds: +5% green "up"; -5% red "down"; near zero gray "flat".\n4. Editable commentary template auto-filled per direction; the user can tweak per metric.\n5. One-click export of the report as Markdown.',
@@ -189,7 +189,7 @@ export const dataSkuProfitRadar: CaseBundle = {
189189
},
190190
prompt: {
191191
zh: composeCasePrompt({
192-
role: '你是一名擅长本地桌面小工具的资深工程师。用户是电商数据分析同事,操作要自然易用。',
192+
role: caseRole('电商数据分析同事', 'zh'),
193193
goal: '把销售额、毛利、广告、退款和库存周转合在一起,找出真正值得加资源的 SKU。',
194194
platform: '- Windows + macOS;Electron + React + TypeScript;本地 SQLite;SheetJS;ECharts',
195195
features: `1. 导入销售表、成本表、广告消耗表、退款表、库存表,按 SKU 自动合并。
@@ -202,7 +202,7 @@ export const dataSkuProfitRadar: CaseBundle = {
202202
communication: COMMUNICATION_ZH,
203203
}, 'zh'),
204204
en: composeCasePrompt({
205-
role: caseRole('an e-commerce data analyst whose teammates across the business will use this tool — make it one-click and friendly', 'en'),
205+
role: caseRole('an e-commerce data analyst whose teammates across the business will use this tool', 'en'),
206206
goal: 'Combine revenue, margin, ads, refunds, and stock turnover to find SKUs worth more resources.',
207207
platform: '- Windows + macOS; Electron + React + TypeScript; local SQLite; SheetJS; ECharts',
208208
features: `1. Import sales, cost, ad spend, refund, and stock sheets; merge by SKU.

src/data/cases/_more/finance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const financeMonthlyBudgetTracker: CaseBundle = {
204204
communication: COMMUNICATION_ZH,
205205
}, 'zh'),
206206
en: composeCasePrompt({
207-
role: caseRole('finance staff,', 'en'),
207+
role: caseRole('a finance teammate', 'en'),
208208
goal: 'Visualize each department\'s mid-month budget execution; catch overruns early.',
209209
platform: '- Windows + macOS; Electron + React + TypeScript; local SQLite',
210210
features: `1. Import annual budget (dept + category + monthly amount); weekly import of actual spend Excel.

src/data/cases/_more/hr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const hrLeaveTracker: CaseBundle = {
6262
communication: COMMUNICATION_ZH,
6363
}, 'zh'),
6464
en: composeCasePrompt({
65-
role: caseRole('an HR', 'en'),
65+
role: caseRole('an HR teammate', 'en'),
6666
goal: 'Keep leave and TOIL balances always clear without memorizing.',
6767
platform: '- Windows + macOS; Electron + React + TypeScript; local SQLite',
6868
features: '1. Employee list: name, dept, hire date, four balances (annual / TOIL / sick / personal).\n2. "New leave": pick employee, type, dates, notes; auto-computes working days and deducts.\n3. "Log overtime": pick employee, hours; converted by 1:1.5 (editable) and added to TOIL.\n4. Monthly settlement: per-employee four balances, this-month added/used/ending; export Excel.\n5. Employee drawer: annual leave granted by tenure rule (editable), monthly accrual or year-start lump.',
@@ -202,7 +202,7 @@ export const hrBirthdayReminder: CaseBundle = {
202202
communication: COMMUNICATION_ZH,
203203
}, 'zh'),
204204
en: composeCasePrompt({
205-
role: caseRole('on the HR team,', 'en'),
205+
role: caseRole('an HR teammate', 'en'),
206206
goal: 'Surface every teammate\'s birthday and work anniversary in time so the workplace feels warmer.',
207207
platform: '- Windows + macOS; Electron + React + TypeScript; local SQLite',
208208
features: `1. Import roster Excel (name / dept / birthday / hire date / contact / notes). Birthday may be month-day only (year hidden).

src/data/cases/_more/marketing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export const marketingEventChecklist: CaseBundle = {
202202
communication: COMMUNICATION_ZH,
203203
}, 'zh'),
204204
en: composeCasePrompt({
205-
role: caseRole('on the marketing team,', 'en'),
205+
role: caseRole('a marketing teammate', 'en'),
206206
goal: 'Make every prep task for a live event ordered by timeline so the day-of is calm.',
207207
platform: '- Windows + macOS; Electron + React + TypeScript; local SQLite',
208208
features: `1. New event: name, date, scale (small < 50 / medium 50–200 / large > 200) → auto-generates a 40+ task default checklist bucketed D-30 / D-14 / D-7 / D-3 / D-1 / Day-of / D+3 retro.

src/data/cases/_more/product.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const productListingQualityChecker: CaseBundle = {
189189
},
190190
prompt: {
191191
zh: composeCasePrompt({
192-
role: '你是一名擅长本地桌面小工具的资深工程师。用户是商品/产品同事,操作要自然易用。',
192+
role: caseRole('商品/产品同事', 'zh'),
193193
goal: '批量检查商品上架资料是否完整、前后一致,减少上线前反复返工。',
194194
platform: '- Windows + macOS;Electron + React + TypeScript;SheetJS;本地 JSON 规则',
195195
features: `1. 导入商品资料表、图片清单、资质文件清单。
@@ -202,7 +202,7 @@ export const productListingQualityChecker: CaseBundle = {
202202
communication: COMMUNICATION_ZH,
203203
}, 'zh'),
204204
en: composeCasePrompt({
205-
role: caseRole('merchandising/product teammates — the tool should feel natural in their hands, one-click with no setup', 'en'),
205+
role: caseRole('merchandising/product teammates', 'en'),
206206
goal: 'Batch-check listing materials for completeness and consistency to reduce last-minute rework before launch.',
207207
platform: '- Windows + macOS; Electron + React + TypeScript; SheetJS; local JSON rules',
208208
features: `1. Import product sheet, image list, certificate file list.

0 commit comments

Comments
 (0)