@joehe71/office-tools 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/README.zh-CN.md +125 -0
- package/i18n/en-US.json +177 -0
- package/i18n/zh-CN.json +177 -0
- package/package.json +269 -0
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Office Tools
|
|
2
|
+
|
|
3
|
+
A [Finch](https://finchwork.app) mini tool that enables **reading, creating, and editing Word, Excel, and PowerPoint files** directly from the Finch agent.
|
|
4
|
+
|
|
5
|
+
Powered by [OfficeCLI](https://github.com/iOfficeAI/OfficeCLI) — the world's first Office suite built for AI agents.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- [OfficeCLI](https://github.com/iOfficeAI/OfficeCLI) binary
|
|
10
|
+
|
|
11
|
+
The agent will automatically call `setup_officecli` to download and install it on first use. No manual installation needed.
|
|
12
|
+
|
|
13
|
+
Manual install alternatives:
|
|
14
|
+
```bash
|
|
15
|
+
# macOS / Linux
|
|
16
|
+
curl -fsSL https://d.officecli.ai/install.sh | bash
|
|
17
|
+
|
|
18
|
+
# or Homebrew
|
|
19
|
+
brew install officecli
|
|
20
|
+
|
|
21
|
+
# or npm
|
|
22
|
+
npm install -g @officecli/officecli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
| Tool | Description |
|
|
28
|
+
|------|-------------|
|
|
29
|
+
| `setup_officecli` | Download and install OfficeCLI (one-time setup) |
|
|
30
|
+
| `check_officecli` | Check if OfficeCLI is installed |
|
|
31
|
+
| `read_office_file` | Read .docx, .xlsx, .pptx content (outline / html / text / issues / stats) |
|
|
32
|
+
| `create_office_file` | Create new empty Office files |
|
|
33
|
+
| `modify_office_file` | Add, set, remove, move elements, find & replace |
|
|
34
|
+
| `get_office_element` | Get structured JSON for a specific element |
|
|
35
|
+
| `inspect_office_file` | Validate file, query OfficeCLI help system |
|
|
36
|
+
| `preview_office_file` | Live preview in browser + click-to-select elements |
|
|
37
|
+
| `save_office_file` | Save and close a file |
|
|
38
|
+
|
|
39
|
+
### Supported File Types
|
|
40
|
+
|
|
41
|
+
- **Word** (.docx) — full document reading and editing
|
|
42
|
+
- **Excel** (.xlsx) — spreadsheets, formulas, charts, pivot tables
|
|
43
|
+
- **PowerPoint** (.pptx) — presentations with slides, shapes, charts, images
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
Once installed and enabled in Finch, just ask the agent:
|
|
48
|
+
|
|
49
|
+
- _"Read my report.docx"_
|
|
50
|
+
- _"Create a new presentation called demo.pptx with 3 slides"_
|
|
51
|
+
- _"Add a chart to the first slide"_
|
|
52
|
+
- _"Edit cell B3 in data.xlsx to be 42"_
|
|
53
|
+
- _"Check if OfficeCLI is installed"_
|
|
54
|
+
|
|
55
|
+
## Permissions
|
|
56
|
+
|
|
57
|
+
- `filesystem: readwrite` — read and write Office files
|
|
58
|
+
- `shell: true` — run the `officecli` binary
|
|
59
|
+
|
|
60
|
+
## Development
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install
|
|
64
|
+
npm run build
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Office Tools
|
|
2
|
+
|
|
3
|
+
[Finch](https://finchwork.app) 扩展,让 Finch Agent 能够直接读取、创建和编辑 Word、Excel、PowerPoint 文件。
|
|
4
|
+
|
|
5
|
+
底层使用 [OfficeCLI](https://github.com/iOfficeAI/OfficeCLI) —— 专为 AI Agent 设计的 Office 套件命令行工具。
|
|
6
|
+
|
|
7
|
+
## 前置条件
|
|
8
|
+
|
|
9
|
+
- [OfficeCLI](https://github.com/iOfficeAI/OfficeCLI) 二进制文件
|
|
10
|
+
|
|
11
|
+
Agent 会在首次使用时自动调用 `setup_officecli` 下载安装,无需手动操作。
|
|
12
|
+
|
|
13
|
+
手动安装方式:
|
|
14
|
+
```bash
|
|
15
|
+
curl -fsSL https://d.officecli.ai/install.sh | bash
|
|
16
|
+
# 或
|
|
17
|
+
brew install officecli
|
|
18
|
+
# 或
|
|
19
|
+
npm install -g @officecli/officecli
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 功能
|
|
23
|
+
|
|
24
|
+
| 工具 | 说明 |
|
|
25
|
+
|------|------|
|
|
26
|
+
| `setup_officecli` | 下载安装 OfficeCLI(一次性设置) |
|
|
27
|
+
| `check_officecli` | 检查 OfficeCLI 安装状态 |
|
|
28
|
+
| `read_office_file` | 读取 .docx、.xlsx、.pptx 内容(大纲/HTML/纯文本/问题/统计) |
|
|
29
|
+
| `create_office_file` | 创建新文件 |
|
|
30
|
+
| `modify_office_file` | 增、改、删、移动元素,查找替换 |
|
|
31
|
+
| `get_office_element` | 获取元素的 JSON 结构化数据 |
|
|
32
|
+
| `inspect_office_file` | 校验文件、查询 OfficeCLI 帮助文档 |
|
|
33
|
+
| `preview_office_file` | 实时预览 + 浏览器点击选择元素 |
|
|
34
|
+
| `save_office_file` | 保存并关闭文件 |
|
|
35
|
+
|
|
36
|
+
### 支持的文件类型
|
|
37
|
+
|
|
38
|
+
- **Word** (.docx) — 完整文档读写编辑
|
|
39
|
+
- **Excel** (.xlsx) — 电子表格、公式、图表、透视表
|
|
40
|
+
- **PowerPoint** (.pptx) — 演示文稿,含幻灯片、形状、图表、动画
|
|
41
|
+
|
|
42
|
+
## 预览功能
|
|
43
|
+
|
|
44
|
+
支持三种格式的实时预览:
|
|
45
|
+
|
|
46
|
+
| 格式 | 预览行为 |
|
|
47
|
+
|------|---------|
|
|
48
|
+
| PPT | 创建/编辑时**自动启动**预览 |
|
|
49
|
+
| Word | 编辑时**询问用户**是否需要预览 |
|
|
50
|
+
| Excel | 编辑时**询问用户**是否需要预览 |
|
|
51
|
+
|
|
52
|
+
预览启动后会自动打开浏览器,编辑文件时浏览器自动刷新。可以在浏览器里点击选中元素,然后通过工具获取选中元素的路径进行编辑。
|
|
53
|
+
|
|
54
|
+
## 使用示例
|
|
55
|
+
|
|
56
|
+
安装并启用后,直接跟 Finch 说:
|
|
57
|
+
|
|
58
|
+
- _"帮我创建一个 Q4 汇报 PPT"_
|
|
59
|
+
- _"读取 report.docx 看看结构"_
|
|
60
|
+
- _"在 data.xlsx 的 B3 单元格写入 42"_
|
|
61
|
+
- _"给 PPT 第一页添加一个标题"_
|
|
62
|
+
- _"帮我预览一下这个 Excel"_
|
|
63
|
+
|
|
64
|
+
## 提示词指南
|
|
65
|
+
|
|
66
|
+
扩展内置了 34 个提示词指南,覆盖常见办公场景:
|
|
67
|
+
|
|
68
|
+
### 通用
|
|
69
|
+
- 检查 OfficeCLI 安装状态
|
|
70
|
+
- 查询 OfficeCLI 帮助文档
|
|
71
|
+
|
|
72
|
+
### Word
|
|
73
|
+
- 读取文档结构
|
|
74
|
+
- 创建正式报告(含目录、页眉页脚)
|
|
75
|
+
- 创建会议纪要
|
|
76
|
+
- 创建提案文档
|
|
77
|
+
- 创建合同协议
|
|
78
|
+
- 创建简历
|
|
79
|
+
- 添加表格和图片
|
|
80
|
+
- 添加批注和修订
|
|
81
|
+
- 批量查找替换
|
|
82
|
+
|
|
83
|
+
### Excel
|
|
84
|
+
- 读取表格结构
|
|
85
|
+
- 创建预算追踪器
|
|
86
|
+
- 创建销售仪表盘
|
|
87
|
+
- 创建数据透视表
|
|
88
|
+
- 创建成绩册
|
|
89
|
+
- 创建财务模型
|
|
90
|
+
- 创建项目追踪器
|
|
91
|
+
- 添加公式和图表
|
|
92
|
+
- 排序和筛选
|
|
93
|
+
|
|
94
|
+
### PowerPoint
|
|
95
|
+
- 读取幻灯片大纲
|
|
96
|
+
- 创建 Pitch Deck
|
|
97
|
+
- 创建季度业务回顾
|
|
98
|
+
- 创建产品发布会演示
|
|
99
|
+
- 创建培训演示
|
|
100
|
+
- 创建数据可视化演示
|
|
101
|
+
- 添加动画和过渡
|
|
102
|
+
- 移动/克隆/重排幻灯片
|
|
103
|
+
- 批量修改(统一字体、加 Logo)
|
|
104
|
+
|
|
105
|
+
### 预览
|
|
106
|
+
- 预览并点击编辑(通用)
|
|
107
|
+
- 预览 Word 文档
|
|
108
|
+
- 预览 Excel 表格
|
|
109
|
+
- 预览 PowerPoint
|
|
110
|
+
|
|
111
|
+
## 权限
|
|
112
|
+
|
|
113
|
+
- `filesystem: readwrite` — 读写 Office 文件
|
|
114
|
+
- `shell: true` — 运行 `officecli` 二进制文件
|
|
115
|
+
|
|
116
|
+
## 开发
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm install
|
|
120
|
+
npm run build
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## 许可证
|
|
124
|
+
|
|
125
|
+
MIT
|
package/i18n/en-US.json
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Office Tools",
|
|
3
|
+
"description": "Read, create, edit Word, Excel, and PowerPoint files",
|
|
4
|
+
"systemPrompt": "When the user needs to work with Office documents (Word .docx, Excel .xlsx, PowerPoint .pptx), prefer the Office Tools extension. It wraps OfficeCLI — a single-binary Office suite for AI agents.\n\nStrategy: L1 (read & inspect) → L2 (edit). Start with `read_office_file` to understand structure, then use `modify_office_file` to make changes. When unsure about property names or syntax, use `inspect_office_file` with a help query instead of guessing.\n\nSetup: If OfficeCLI is not installed, call `setup_officecli` to download and install it automatically. This is a one-time setup. If `check_officecli` shows OfficeCLI is not available, always suggest calling `setup_officecli` first.\n\nLive preview rules:\n- PowerPoint (.pptx): ALWAYS start a live preview (`preview_office_file(action=start)`) when creating or editing a PPT. PPT is a visual medium — the user needs to see the result in real time. After each `modify_office_file` call, the browser auto-refreshes. When the user clicks an element in the browser, use `preview_office_file(action=selected)` to inspect it.\n- Word (.docx) and Excel (.xlsx): Do NOT auto-start preview. Instead, ask the user: 'Would you like a live preview so you can click on elements to inspect them?' If yes, start preview. If no, continue without.\n- When done with all edits and the user no longer needs preview, call `preview_office_file(action=stop)` to shut down the server.",
|
|
5
|
+
"promptGuides": {
|
|
6
|
+
"setup-officecli": {
|
|
7
|
+
"title": "Set up OfficeCLI",
|
|
8
|
+
"description": "Check and install OfficeCLI if needed.",
|
|
9
|
+
"prompt": "Check if OfficeCLI is installed using check_officecli. If not installed, call setup_officecli to download and install it."
|
|
10
|
+
},
|
|
11
|
+
"inspect-help": {
|
|
12
|
+
"title": "Look up OfficeCLI help",
|
|
13
|
+
"description": "Query OfficeCLI help for property syntax.",
|
|
14
|
+
"prompt": "Look up how to add a chart to a PowerPoint slide using OfficeCLI help."
|
|
15
|
+
},
|
|
16
|
+
"read-docx": {
|
|
17
|
+
"title": "Read a Word document",
|
|
18
|
+
"description": "Read a .docx file and display its structure.",
|
|
19
|
+
"prompt": "Read outline.docx and show me the document structure in outline view. Then start a live preview so I can click on paragraphs and tables to inspect them."
|
|
20
|
+
},
|
|
21
|
+
"read-pptx": {
|
|
22
|
+
"title": "Read a PowerPoint",
|
|
23
|
+
"description": "Read a .pptx file and display its structure.",
|
|
24
|
+
"prompt": "Read deck.pptx and show me the slide outline. Then start a live preview so I can click on elements."
|
|
25
|
+
},
|
|
26
|
+
"read-xlsx": {
|
|
27
|
+
"title": "Read an Excel file",
|
|
28
|
+
"description": "Read a .xlsx file and display its structure.",
|
|
29
|
+
"prompt": "Read data.xlsx and show me the outline. Then start a live preview so I can click on cells and sheets to inspect them."
|
|
30
|
+
},
|
|
31
|
+
"create-report": {
|
|
32
|
+
"title": "Create a formal report",
|
|
33
|
+
"description": "Create a Word document with TOC, headers, footers, page numbers.",
|
|
34
|
+
"prompt": "Create a formal report called annual-report.docx. Add a title page with 'Annual Report 2025', a table of contents, 3 sections with headings and body text, headers with page numbers, and a footer with the company name."
|
|
35
|
+
},
|
|
36
|
+
"create-minutes": {
|
|
37
|
+
"title": "Create meeting minutes",
|
|
38
|
+
"description": "Create a Word document for meeting minutes.",
|
|
39
|
+
"prompt": "Create meeting-minutes.docx with a header 'Meeting Minutes', date, attendees list, agenda items, discussion points, and action items with owners and deadlines."
|
|
40
|
+
},
|
|
41
|
+
"create-proposal": {
|
|
42
|
+
"title": "Create a proposal",
|
|
43
|
+
"description": "Create a Word proposal document.",
|
|
44
|
+
"prompt": "Create proposal.docx with sections: Executive Summary, Problem Statement, Proposed Solution, Timeline, Budget, and Conclusion. Use professional formatting with headings and bullet points."
|
|
45
|
+
},
|
|
46
|
+
"create-contract": {
|
|
47
|
+
"title": "Create a contract",
|
|
48
|
+
"description": "Create a Word contract or agreement.",
|
|
49
|
+
"prompt": "Create contract.docx with sections: Parties, Scope of Work, Payment Terms, Timeline, Confidentiality, Termination, and Signatures. Use formal language and proper formatting."
|
|
50
|
+
},
|
|
51
|
+
"create-resume": {
|
|
52
|
+
"title": "Create a resume",
|
|
53
|
+
"description": "Create a professional resume in Word.",
|
|
54
|
+
"prompt": "Create resume.docx with sections: Contact Info, Summary, Experience (3 jobs), Education, Skills, and Certifications. Use clean formatting with consistent fonts."
|
|
55
|
+
},
|
|
56
|
+
"create-pptx-pitch": {
|
|
57
|
+
"title": "Create a pitch deck",
|
|
58
|
+
"description": "Create a startup pitch deck in PowerPoint.",
|
|
59
|
+
"prompt": "Create pitch-deck.pptx with 10 slides: Title, Problem, Solution, Market Size, Business Model, Traction, Team, Financials, Ask, and Contact. Use a dark theme with professional colors."
|
|
60
|
+
},
|
|
61
|
+
"create-pptx-qbr": {
|
|
62
|
+
"title": "Create a quarterly review",
|
|
63
|
+
"description": "Create a quarterly business review presentation.",
|
|
64
|
+
"prompt": "Create qbr.pptx with slides: Title, Agenda, Key Metrics, Revenue Breakdown, Customer Growth, Product Updates, Challenges, Next Quarter Goals. Add charts for revenue and customer data."
|
|
65
|
+
},
|
|
66
|
+
"create-pptx-product": {
|
|
67
|
+
"title": "Create a product launch deck",
|
|
68
|
+
"description": "Create a product launch presentation.",
|
|
69
|
+
"prompt": "Create product-launch.pptx with slides: Title, Product Overview, Key Features (3 slides), Demo, Pricing, Market Opportunity, Competitive Analysis, Call to Action. Use modern design with images."
|
|
70
|
+
},
|
|
71
|
+
"create-pptx-training": {
|
|
72
|
+
"title": "Create a training deck",
|
|
73
|
+
"description": "Create a training or onboarding presentation.",
|
|
74
|
+
"prompt": "Create training.pptx with slides: Title, Agenda, Company Overview, Role Description, Tools & Systems, Processes, Best Practices, Q&A. Add speaker notes to each slide."
|
|
75
|
+
},
|
|
76
|
+
"create-pptx-charts": {
|
|
77
|
+
"title": "Create a presentation with charts",
|
|
78
|
+
"description": "Create a PowerPoint with data visualization.",
|
|
79
|
+
"prompt": "Create dashboard.pptx with slides containing: a bar chart for monthly revenue, a pie chart for market share, a line chart for growth trends, and a table summarizing key metrics."
|
|
80
|
+
},
|
|
81
|
+
"create-xlsx-budget": {
|
|
82
|
+
"title": "Create a budget tracker",
|
|
83
|
+
"description": "Create an Excel budget spreadsheet.",
|
|
84
|
+
"prompt": "Create budget.xlsx with sheets: Income (salary, investments, other), Expenses (housing, food, transport, utilities, entertainment), and Summary with totals, formulas for each category, and a net income calculation."
|
|
85
|
+
},
|
|
86
|
+
"create-xlsx-dashboard": {
|
|
87
|
+
"title": "Create a sales dashboard",
|
|
88
|
+
"description": "Create an Excel sales dashboard with charts.",
|
|
89
|
+
"prompt": "Create sales-dashboard.xlsx with raw data sheet (100 rows of sales data with columns: Date, Product, Region, Amount, Units), a pivot table, and charts for revenue by region and monthly trends."
|
|
90
|
+
},
|
|
91
|
+
"create-xlsx-pivot": {
|
|
92
|
+
"title": "Create a pivot table",
|
|
93
|
+
"description": "Create an Excel pivot table from data.",
|
|
94
|
+
"prompt": "Read data.xlsx, then create a pivot table on a new sheet that summarizes sales by Region and Product, with totals and percentages."
|
|
95
|
+
},
|
|
96
|
+
"create-xlsx-gradebook": {
|
|
97
|
+
"title": "Create a gradebook",
|
|
98
|
+
"description": "Create an Excel gradebook with formulas.",
|
|
99
|
+
"prompt": "Create gradebook.xlsx with columns: Student Name, Assignment 1-5, Midterm, Final, Total (weighted formula), Grade (letter), and conditional formatting for pass/fail."
|
|
100
|
+
},
|
|
101
|
+
"create-xlsx-financial": {
|
|
102
|
+
"title": "Create a financial model",
|
|
103
|
+
"description": "Create an Excel financial model.",
|
|
104
|
+
"prompt": "Create financial-model.xlsx with sheets: Assumptions, Revenue Projections (5 years), Cost Structure, P&L Statement, Cash Flow, and Summary with key metrics and charts."
|
|
105
|
+
},
|
|
106
|
+
"create-xlsx-tracker": {
|
|
107
|
+
"title": "Create a project tracker",
|
|
108
|
+
"description": "Create an Excel project tracker.",
|
|
109
|
+
"prompt": "Create project-tracker.xlsx with columns: Task, Owner, Start Date, End Date, Status, Priority, Progress %. Add conditional formatting for status colors and a summary dashboard."
|
|
110
|
+
},
|
|
111
|
+
"edit-word-tables": {
|
|
112
|
+
"title": "Edit Word tables",
|
|
113
|
+
"description": "Add and format tables in a Word document.",
|
|
114
|
+
"prompt": "Read report.docx, then add a 4x4 table after the first paragraph with headers: Category, Q1, Q2, Q3. Add data rows and format the header row bold with a blue background."
|
|
115
|
+
},
|
|
116
|
+
"edit-word-images": {
|
|
117
|
+
"title": "Add images to Word",
|
|
118
|
+
"description": "Add images and captions to a Word document.",
|
|
119
|
+
"prompt": "Read report.docx, then add an image called chart.png after the second paragraph. Add a caption below the image: 'Figure 1: Revenue Growth'."
|
|
120
|
+
},
|
|
121
|
+
"edit-word-comments": {
|
|
122
|
+
"title": "Add comments to Word",
|
|
123
|
+
"description": "Add comments and track changes.",
|
|
124
|
+
"prompt": "Read draft.docx, then add comments to paragraphs that need revision. Add a comment 'Please expand this section' to the third paragraph."
|
|
125
|
+
},
|
|
126
|
+
"edit-pptx-animations": {
|
|
127
|
+
"title": "Add animations to PPT",
|
|
128
|
+
"description": "Add animations and transitions to slides.",
|
|
129
|
+
"prompt": "Read deck.pptx, then add a fade-in animation to the title shape on slide 1, a fly-in animation to the bullet points on slide 2, and a morph transition between all slides."
|
|
130
|
+
},
|
|
131
|
+
"edit-pptx-layout": {
|
|
132
|
+
"title": "Rearrange PPT slides",
|
|
133
|
+
"description": "Move, clone, and rearrange slides.",
|
|
134
|
+
"prompt": "Read deck.pptx, then clone slide 1 and move it to the end. Change the title of the cloned slide to 'Thank You'."
|
|
135
|
+
},
|
|
136
|
+
"edit-xlsx-formulas": {
|
|
137
|
+
"title": "Add formulas to Excel",
|
|
138
|
+
"description": "Add formulas and calculations.",
|
|
139
|
+
"prompt": "Read data.xlsx, then add a SUM formula in the total row, an AVERAGE formula for each column, and conditional formatting to highlight cells above 1000."
|
|
140
|
+
},
|
|
141
|
+
"edit-xlsx-charts": {
|
|
142
|
+
"title": "Add charts to Excel",
|
|
143
|
+
"description": "Create charts from spreadsheet data.",
|
|
144
|
+
"prompt": "Read data.xlsx, then create a bar chart showing revenue by month, a pie chart showing market share by product, and a line chart showing growth trends."
|
|
145
|
+
},
|
|
146
|
+
"edit-xlsx-sort": {
|
|
147
|
+
"title": "Sort and filter Excel data",
|
|
148
|
+
"description": "Sort and filter spreadsheet data.",
|
|
149
|
+
"prompt": "Read data.xlsx, then sort the data by column C in descending order. Add an autofilter to the header row."
|
|
150
|
+
},
|
|
151
|
+
"preview-click-edit": {
|
|
152
|
+
"title": "Preview and click to edit",
|
|
153
|
+
"description": "Start live preview, click elements, and edit them.",
|
|
154
|
+
"prompt": "Start a live preview of my document. After I click on an element, get the selected element and change its color to red."
|
|
155
|
+
},
|
|
156
|
+
"preview-word": {
|
|
157
|
+
"title": "Preview a Word document",
|
|
158
|
+
"description": "Start live preview of a Word document for visual editing.",
|
|
159
|
+
"prompt": "Start a live preview of report.docx. I want to click on paragraphs and tables to inspect their formatting and make changes."
|
|
160
|
+
},
|
|
161
|
+
"preview-excel": {
|
|
162
|
+
"title": "Preview an Excel spreadsheet",
|
|
163
|
+
"description": "Start live preview of an Excel spreadsheet.",
|
|
164
|
+
"prompt": "Start a live preview of data.xlsx. I want to click on cells and sheets to inspect their values and formulas."
|
|
165
|
+
},
|
|
166
|
+
"bulk-edit-word": {
|
|
167
|
+
"title": "Bulk edit Word document",
|
|
168
|
+
"description": "Find and replace text across a Word document.",
|
|
169
|
+
"prompt": "Read report.docx, then find all instances of 'draft' and replace with 'final'. Also bold all instances of 'important'."
|
|
170
|
+
},
|
|
171
|
+
"bulk-edit-pptx": {
|
|
172
|
+
"title": "Bulk edit PowerPoint",
|
|
173
|
+
"description": "Apply changes across multiple slides.",
|
|
174
|
+
"prompt": "Read deck.pptx, then change the font to Arial and size to 24pt on all shapes across all slides. Add a company logo to the bottom-right of each slide."
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
package/i18n/zh-CN.json
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Office Tools",
|
|
3
|
+
"description": "读取、创建、编辑 Word、Excel、PowerPoint 文件",
|
|
4
|
+
"systemPrompt": "当用户需要处理 Office 文档(Word .docx、Excel .xlsx、PowerPoint .pptx)时,优先使用 Office Tools 扩展。底层使用 OfficeCLI —— 专为 AI Agent 设计的 Office 套件命令行工具。\n\n策略:L1(读取与检查)→ L2(编辑)。先用 `read_office_file` 了解文档结构,再用 `modify_office_file` 进行修改。不确定属性名或语法时,用 `inspect_office_file` 查询帮助文档,不要猜测。\n\n安装:如果 OfficeCLI 未安装,调用 `setup_officecli` 自动下载安装。这是一次性设置。如果 `check_officecli` 显示 OfficeCLI 不可用,始终建议先调用 `setup_officecli`。\n\n实时预览规则:\n- PowerPoint (.pptx):创建或编辑 PPT 时**必须**启动实时预览(`preview_office_file(action=start)`)。PPT 是视觉媒介,用户需要实时看到效果。每次 `modify_office_file` 后浏览器自动刷新。用户在浏览器里点击元素时,用 `preview_office_file(action=selected)` 检查。\n- Word (.docx) 和 Excel (.xlsx):**不要**自动启动预览。改为询问用户:'需要启动实时预览吗?你可以在浏览器里点击元素来检查。'如果用户说要,就启动;如果不要,继续编辑。\n- 编辑完成且用户不再需要预览时,调用 `preview_office_file(action=stop)` 关闭服务器。",
|
|
5
|
+
"promptGuides": {
|
|
6
|
+
"setup-officecli": {
|
|
7
|
+
"title": "设置 OfficeCLI",
|
|
8
|
+
"description": "检查并在需要时安装 OfficeCLI。",
|
|
9
|
+
"prompt": "先用 check_officecli 检查 OfficeCLI 是否已安装。如果没有安装,调用 setup_officecli 下载安装。"
|
|
10
|
+
},
|
|
11
|
+
"inspect-help": {
|
|
12
|
+
"title": "查询 OfficeCLI 帮助",
|
|
13
|
+
"description": "查询 OfficeCLI 帮助文档获取属性语法。",
|
|
14
|
+
"prompt": "查询如何在 PowerPoint 幻灯片中添加图表,使用 OfficeCLI 帮助。"
|
|
15
|
+
},
|
|
16
|
+
"read-docx": {
|
|
17
|
+
"title": "读取 Word 文档",
|
|
18
|
+
"description": "读取 .docx 文件并显示结构。",
|
|
19
|
+
"prompt": "读取 outline.docx 并以大纲视图显示文档结构。然后启动实时预览,让我点击段落和表格来检查它们。"
|
|
20
|
+
},
|
|
21
|
+
"read-pptx": {
|
|
22
|
+
"title": "读取 PowerPoint",
|
|
23
|
+
"description": "读取 .pptx 文件并显示结构。",
|
|
24
|
+
"prompt": "读取 deck.pptx 并显示幻灯片大纲。然后启动实时预览,让我点击元素。"
|
|
25
|
+
},
|
|
26
|
+
"read-xlsx": {
|
|
27
|
+
"title": "读取 Excel 文件",
|
|
28
|
+
"description": "读取 .xlsx 文件并显示结构。",
|
|
29
|
+
"prompt": "读取 data.xlsx 并显示大纲。然后启动实时预览,让我点击单元格和工作表来检查它们。"
|
|
30
|
+
},
|
|
31
|
+
"create-report": {
|
|
32
|
+
"title": "创建正式报告",
|
|
33
|
+
"description": "创建含目录、页眉页脚、页码的 Word 文档。",
|
|
34
|
+
"prompt": "创建一个名为 annual-report.docx 的正式报告。添加标题页 '年度报告 2025',目录,3 个带标题和正文的章节,带页码的页眉,和带公司名称的页脚。"
|
|
35
|
+
},
|
|
36
|
+
"create-minutes": {
|
|
37
|
+
"title": "创建会议纪要",
|
|
38
|
+
"description": "创建会议纪要 Word 文档。",
|
|
39
|
+
"prompt": "创建 meeting-minutes.docx,包含标题 '会议纪要',日期,参会人员列表,议程事项,讨论要点,和带负责人和截止日期的行动事项。"
|
|
40
|
+
},
|
|
41
|
+
"create-proposal": {
|
|
42
|
+
"title": "创建提案文档",
|
|
43
|
+
"description": "创建 Word 提案文档。",
|
|
44
|
+
"prompt": "创建 proposal.docx,包含章节:执行摘要,问题陈述,解决方案,时间线,预算,和结论。使用专业格式和标题、要点。"
|
|
45
|
+
},
|
|
46
|
+
"create-contract": {
|
|
47
|
+
"title": "创建合同",
|
|
48
|
+
"description": "创建 Word 合同或协议。",
|
|
49
|
+
"prompt": "创建 contract.docx,包含章节:各方,工作范围,付款条款,时间线,保密条款,终止条款,和签名。使用正式语言和适当格式。"
|
|
50
|
+
},
|
|
51
|
+
"create-resume": {
|
|
52
|
+
"title": "创建简历",
|
|
53
|
+
"description": "创建专业 Word 简历。",
|
|
54
|
+
"prompt": "创建 resume.docx,包含章节:联系方式,摘要,工作经历(3 份工作),教育背景,技能,和证书。使用简洁格式和一致字体。"
|
|
55
|
+
},
|
|
56
|
+
"create-pptx-pitch": {
|
|
57
|
+
"title": "创建 Pitch Deck",
|
|
58
|
+
"description": "创建创业融资演示文稿。",
|
|
59
|
+
"prompt": "创建 pitch-deck.pptx,包含 10 页幻灯片:标题,问题,解决方案,市场规模,商业模式,增长数据,团队,财务,融资需求,和联系方式。使用深色主题和专业配色。"
|
|
60
|
+
},
|
|
61
|
+
"create-pptx-qbr": {
|
|
62
|
+
"title": "创建季度业务回顾",
|
|
63
|
+
"description": "创建季度业务回顾演示文稿。",
|
|
64
|
+
"prompt": "创建 qbr.pptx,包含幻灯片:标题,议程,关键指标,收入分布,客户增长,产品更新,挑战,下季度目标。为收入和客户数据添加图表。"
|
|
65
|
+
},
|
|
66
|
+
"create-pptx-product": {
|
|
67
|
+
"title": "创建产品发布会演示",
|
|
68
|
+
"description": "创建产品发布会演示文稿。",
|
|
69
|
+
"prompt": "创建 product-launch.pptx,包含幻灯片:标题,产品概述,核心功能(3 页),演示,定价,市场机会,竞品分析,行动号召。使用现代设计和图片。"
|
|
70
|
+
},
|
|
71
|
+
"create-pptx-training": {
|
|
72
|
+
"title": "创建培训演示",
|
|
73
|
+
"description": "创建培训或入职演示文稿。",
|
|
74
|
+
"prompt": "创建 training.pptx,包含幻灯片:标题,议程,公司概述,角色描述,工具和系统,流程,最佳实践,问答。为每页幻灯片添加演讲者备注。"
|
|
75
|
+
},
|
|
76
|
+
"create-pptx-charts": {
|
|
77
|
+
"title": "创建含图表的演示",
|
|
78
|
+
"description": "创建带数据可视化的 PowerPoint。",
|
|
79
|
+
"prompt": "创建 dashboard.pptx,包含:月度收入柱状图,市场份额饼图,增长趋势折线图,和汇总关键指标的表格。"
|
|
80
|
+
},
|
|
81
|
+
"create-xlsx-budget": {
|
|
82
|
+
"title": "创建预算追踪器",
|
|
83
|
+
"description": "创建 Excel 预算表格。",
|
|
84
|
+
"prompt": "创建 budget.xlsx,包含工作表:收入(工资、投资、其他),支出(住房、食物、交通、水电、娱乐),和汇总表,含各类别总计、公式和净收入计算。"
|
|
85
|
+
},
|
|
86
|
+
"create-xlsx-dashboard": {
|
|
87
|
+
"title": "创建销售仪表盘",
|
|
88
|
+
"description": "创建带图表的 Excel 销售仪表盘。",
|
|
89
|
+
"prompt": "创建 sales-dashboard.xlsx,包含原始数据表(100 行销售数据,列:日期、产品、区域、金额、数量),数据透视表,和按区域及月度趋势的收入图表。"
|
|
90
|
+
},
|
|
91
|
+
"create-xlsx-pivot": {
|
|
92
|
+
"title": "创建数据透视表",
|
|
93
|
+
"description": "从数据创建 Excel 数据透视表。",
|
|
94
|
+
"prompt": "读取 data.xlsx,然后在新工作表上创建数据透视表,按区域和产品汇总销售数据,含总计和百分比。"
|
|
95
|
+
},
|
|
96
|
+
"create-xlsx-gradebook": {
|
|
97
|
+
"title": "创建成绩册",
|
|
98
|
+
"description": "创建带公式的 Excel 成绩册。",
|
|
99
|
+
"prompt": "创建 gradebook.xlsx,包含列:学生姓名,作业 1-5,期中,期末,总分(加权公式),等级(字母),和及格/不及格的条件格式。"
|
|
100
|
+
},
|
|
101
|
+
"create-xlsx-financial": {
|
|
102
|
+
"title": "创建财务模型",
|
|
103
|
+
"description": "创建 Excel 财务模型。",
|
|
104
|
+
"prompt": "创建 financial-model.xlsx,包含工作表:假设,收入预测(5 年),成本结构,利润表,现金流量表,和汇总表含关键指标和图表。"
|
|
105
|
+
},
|
|
106
|
+
"create-xlsx-tracker": {
|
|
107
|
+
"title": "创建项目追踪器",
|
|
108
|
+
"description": "创建 Excel 项目追踪器。",
|
|
109
|
+
"prompt": "创建 project-tracker.xlsx,包含列:任务,负责人,开始日期,结束日期,状态,优先级,进度百分比。为状态颜色添加条件格式和汇总仪表盘。"
|
|
110
|
+
},
|
|
111
|
+
"edit-word-tables": {
|
|
112
|
+
"title": "编辑 Word 表格",
|
|
113
|
+
"description": "在 Word 文档中添加和格式化表格。",
|
|
114
|
+
"prompt": "读取 report.docx,然后在第一段后添加一个 4x4 表格,标题为:类别,Q1,Q2,Q3。添加数据行,标题行加粗并使用蓝色背景。"
|
|
115
|
+
},
|
|
116
|
+
"edit-word-images": {
|
|
117
|
+
"title": "在 Word 中添加图片",
|
|
118
|
+
"description": "在 Word 文档中添加图片和图注。",
|
|
119
|
+
"prompt": "读取 report.docx,然后在第二段后添加一张名为 chart.png 的图片。在图片下方添加图注:'图 1:收入增长'。"
|
|
120
|
+
},
|
|
121
|
+
"edit-word-comments": {
|
|
122
|
+
"title": "添加 Word 批注",
|
|
123
|
+
"description": "添加批注和修订跟踪。",
|
|
124
|
+
"prompt": "读取 draft.docx,然后为需要修改的段落添加批注。在第三段添加批注 '请扩展此部分'。"
|
|
125
|
+
},
|
|
126
|
+
"edit-pptx-animations": {
|
|
127
|
+
"title": "为 PPT 添加动画",
|
|
128
|
+
"description": "为幻灯片添加动画和过渡。",
|
|
129
|
+
"prompt": "读取 deck.pptx,然后为第一页幻灯片的标题形状添加淡入动画,为第二页的要点添加飞入动画,为所有幻灯片之间添加 Morph 过渡。"
|
|
130
|
+
},
|
|
131
|
+
"edit-pptx-layout": {
|
|
132
|
+
"title": "重排 PPT 幻灯片",
|
|
133
|
+
"description": "移动、克隆和重排幻灯片。",
|
|
134
|
+
"prompt": "读取 deck.pptx,然后克隆第一页幻灯片并移到最后。将克隆的幻灯片标题改为 '谢谢'。"
|
|
135
|
+
},
|
|
136
|
+
"edit-xlsx-formulas": {
|
|
137
|
+
"title": "添加 Excel 公式",
|
|
138
|
+
"description": "添加公式和计算。",
|
|
139
|
+
"prompt": "读取 data.xlsx,然后在总计行添加 SUM 公式,为每列添加 AVERAGE 公式,并为超过 1000 的单元格添加条件格式高亮。"
|
|
140
|
+
},
|
|
141
|
+
"edit-xlsx-charts": {
|
|
142
|
+
"title": "添加 Excel 图表",
|
|
143
|
+
"description": "从表格数据创建图表。",
|
|
144
|
+
"prompt": "读取 data.xlsx,然后创建月度收入柱状图,按产品市场份额饼图,和增长趋势折线图。"
|
|
145
|
+
},
|
|
146
|
+
"edit-xlsx-sort": {
|
|
147
|
+
"title": "排序和筛选 Excel 数据",
|
|
148
|
+
"description": "排序和筛选表格数据。",
|
|
149
|
+
"prompt": "读取 data.xlsx,然后按 C 列降序排序数据。在标题行添加自动筛选。"
|
|
150
|
+
},
|
|
151
|
+
"preview-click-edit": {
|
|
152
|
+
"title": "预览并点击编辑",
|
|
153
|
+
"description": "启动实时预览,点击元素并编辑。",
|
|
154
|
+
"prompt": "启动我的文档的实时预览。当我点击一个元素后,获取选中的元素并将其颜色改为红色。"
|
|
155
|
+
},
|
|
156
|
+
"preview-word": {
|
|
157
|
+
"title": "预览 Word 文档",
|
|
158
|
+
"description": "启动 Word 文档的实时预览进行可视化编辑。",
|
|
159
|
+
"prompt": "启动 report.docx 的实时预览。我想点击段落和表格来检查它们的格式并进行修改。"
|
|
160
|
+
},
|
|
161
|
+
"preview-excel": {
|
|
162
|
+
"title": "预览 Excel 表格",
|
|
163
|
+
"description": "启动 Excel 表格的实时预览。",
|
|
164
|
+
"prompt": "启动 data.xlsx 的实时预览。我想点击单元格和工作表来检查它们的值和公式。"
|
|
165
|
+
},
|
|
166
|
+
"bulk-edit-word": {
|
|
167
|
+
"title": "批量编辑 Word 文档",
|
|
168
|
+
"description": "在 Word 文档中查找替换文本。",
|
|
169
|
+
"prompt": "读取 report.docx,然后将所有 'draft' 替换为 'final'。同时将所有 'important' 加粗。"
|
|
170
|
+
},
|
|
171
|
+
"bulk-edit-pptx": {
|
|
172
|
+
"title": "批量编辑 PowerPoint",
|
|
173
|
+
"description": "跨多张幻灯片应用更改。",
|
|
174
|
+
"prompt": "读取 deck.pptx,然后将所有幻灯片中所有形状的字体改为 Arial,字号改为 24pt。在每张幻灯片右下角添加公司 Logo。"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@joehe71/office-tools",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Office tools for Finch — read, create, edit Word, Excel, and PowerPoint files using OfficeCLI.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "JoeHe"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://finchwork.app",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/joehe71/office-tools.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -p tsconfig.json",
|
|
18
|
+
"dev": "tsc -p tsconfig.json --watch"
|
|
19
|
+
},
|
|
20
|
+
"finch": {
|
|
21
|
+
"manifestVersion": 1,
|
|
22
|
+
"id": "office-tools",
|
|
23
|
+
"name": "Office Tools",
|
|
24
|
+
"description": "Office tools for Finch — read, create, edit Word, Excel, and PowerPoint files using OfficeCLI.",
|
|
25
|
+
"toolMeta": {
|
|
26
|
+
"name": "Office Tools"
|
|
27
|
+
},
|
|
28
|
+
"systemPrompt": "When the user needs to work with Office documents (Word .docx, Excel .xlsx, PowerPoint .pptx), prefer the Office Tools extension. It wraps OfficeCLI — a single-binary Office suite for AI agents.\n\nStrategy: L1 (read & inspect) → L2 (edit). Start with `read_office_file` to understand structure, then use `modify_office_file` to make changes. When unsure about property names or syntax, use `inspect_office_file` with a help query instead of guessing.\n\nSetup: If OfficeCLI is not installed, call `setup_officecli` to download and install it automatically. This is a one-time setup. If `check_officecli` shows OfficeCLI is not available, always suggest calling `setup_officecli` first.\n\nLive preview rules:\n- PowerPoint (.pptx): ALWAYS start a live preview (`preview_office_file(action=start)`) when creating or editing a PPT. PPT is a visual medium — the user needs to see the result in real time. After each `modify_office_file` call, the browser auto-refreshes. When the user clicks an element in the browser, use `preview_office_file(action=selected)` to inspect it.\n- Word (.docx) and Excel (.xlsx): Do NOT auto-start preview. Instead, ask the user: 'Would you like a live preview so you can click on elements to inspect them?' If yes, start preview. If no, continue without.\n- When done with all edits and the user no longer needs preview, call `preview_office_file(action=stop)` to shut down the server.",
|
|
29
|
+
"promptGuides": [
|
|
30
|
+
{
|
|
31
|
+
"id": "setup-officecli",
|
|
32
|
+
"title": "Set up OfficeCLI",
|
|
33
|
+
"description": "Check and install OfficeCLI if needed.",
|
|
34
|
+
"prompt": "Check if OfficeCLI is installed using check_officecli. If not installed, call setup_officecli to download and install it."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "inspect-help",
|
|
38
|
+
"title": "Look up OfficeCLI help",
|
|
39
|
+
"description": "Query OfficeCLI help for property syntax.",
|
|
40
|
+
"prompt": "Look up how to add a chart to a PowerPoint slide using OfficeCLI help."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "read-docx",
|
|
44
|
+
"title": "Read a Word document",
|
|
45
|
+
"description": "Read a .docx file and display its structure.",
|
|
46
|
+
"prompt": "Read outline.docx and show me the document structure in outline view. Then start a live preview so I can click on paragraphs and tables to inspect them."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "read-pptx",
|
|
50
|
+
"title": "Read a PowerPoint",
|
|
51
|
+
"description": "Read a .pptx file and display its structure.",
|
|
52
|
+
"prompt": "Read deck.pptx and show me the slide outline. Then start a live preview so I can click on elements."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "read-xlsx",
|
|
56
|
+
"title": "Read an Excel file",
|
|
57
|
+
"description": "Read a .xlsx file and display its structure.",
|
|
58
|
+
"prompt": "Read data.xlsx and show me the outline. Then start a live preview so I can click on cells and sheets to inspect them."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "create-report",
|
|
62
|
+
"title": "Create a formal report",
|
|
63
|
+
"description": "Create a Word document with TOC, headers, footers, page numbers.",
|
|
64
|
+
"prompt": "Create a formal report called annual-report.docx. Add a title page with 'Annual Report 2025', a table of contents, 3 sections with headings and body text, headers with page numbers, and a footer with the company name."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "create-minutes",
|
|
68
|
+
"title": "Create meeting minutes",
|
|
69
|
+
"description": "Create a Word document for meeting minutes.",
|
|
70
|
+
"prompt": "Create meeting-minutes.docx with a header 'Meeting Minutes', date, attendees list, agenda items, discussion points, and action items with owners and deadlines."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "create-proposal",
|
|
74
|
+
"title": "Create a proposal",
|
|
75
|
+
"description": "Create a Word proposal document.",
|
|
76
|
+
"prompt": "Create proposal.docx with sections: Executive Summary, Problem Statement, Proposed Solution, Timeline, Budget, and Conclusion. Use professional formatting with headings and bullet points."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "create-contract",
|
|
80
|
+
"title": "Create a contract",
|
|
81
|
+
"description": "Create a Word contract or agreement.",
|
|
82
|
+
"prompt": "Create contract.docx with sections: Parties, Scope of Work, Payment Terms, Timeline, Confidentiality, Termination, and Signatures. Use formal language and proper formatting."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "create-resume",
|
|
86
|
+
"title": "Create a resume",
|
|
87
|
+
"description": "Create a professional resume in Word.",
|
|
88
|
+
"prompt": "Create resume.docx with sections: Contact Info, Summary, Experience (3 jobs), Education, Skills, and Certifications. Use clean formatting with consistent fonts."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "create-pptx-pitch",
|
|
92
|
+
"title": "Create a pitch deck",
|
|
93
|
+
"description": "Create a startup pitch deck in PowerPoint.",
|
|
94
|
+
"prompt": "Create pitch-deck.pptx with 10 slides: Title, Problem, Solution, Market Size, Business Model, Traction, Team, Financials, Ask, and Contact. Use a dark theme with professional colors."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "create-pptx-qbr",
|
|
98
|
+
"title": "Create a quarterly review",
|
|
99
|
+
"description": "Create a quarterly business review presentation.",
|
|
100
|
+
"prompt": "Create qbr.pptx with slides: Title, Agenda, Key Metrics, Revenue Breakdown, Customer Growth, Product Updates, Challenges, Next Quarter Goals. Add charts for revenue and customer data."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "create-pptx-product",
|
|
104
|
+
"title": "Create a product launch deck",
|
|
105
|
+
"description": "Create a product launch presentation.",
|
|
106
|
+
"prompt": "Create product-launch.pptx with slides: Title, Product Overview, Key Features (3 slides), Demo, Pricing, Market Opportunity, Competitive Analysis, Call to Action. Use modern design with images."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "create-pptx-training",
|
|
110
|
+
"title": "Create a training deck",
|
|
111
|
+
"description": "Create a training or onboarding presentation.",
|
|
112
|
+
"prompt": "Create training.pptx with slides: Title, Agenda, Company Overview, Role Description, Tools & Systems, Processes, Best Practices, Q&A. Add speaker notes to each slide."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "create-pptx-charts",
|
|
116
|
+
"title": "Create a presentation with charts",
|
|
117
|
+
"description": "Create a PowerPoint with data visualization.",
|
|
118
|
+
"prompt": "Create dashboard.pptx with slides containing: a bar chart for monthly revenue, a pie chart for market share, a line chart for growth trends, and a table summarizing key metrics."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "create-xlsx-budget",
|
|
122
|
+
"title": "Create a budget tracker",
|
|
123
|
+
"description": "Create an Excel budget spreadsheet.",
|
|
124
|
+
"prompt": "Create budget.xlsx with sheets: Income (salary, investments, other), Expenses (housing, food, transport, utilities, entertainment), and Summary with totals, formulas for each category, and a net income calculation."
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "create-xlsx-dashboard",
|
|
128
|
+
"title": "Create a sales dashboard",
|
|
129
|
+
"description": "Create an Excel sales dashboard with charts.",
|
|
130
|
+
"prompt": "Create sales-dashboard.xlsx with raw data sheet (100 rows of sales data with columns: Date, Product, Region, Amount, Units), a pivot table, and charts for revenue by region and monthly trends."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "create-xlsx-pivot",
|
|
134
|
+
"title": "Create a pivot table",
|
|
135
|
+
"description": "Create an Excel pivot table from data.",
|
|
136
|
+
"prompt": "Read data.xlsx, then create a pivot table on a new sheet that summarizes sales by Region and Product, with totals and percentages."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "create-xlsx-gradebook",
|
|
140
|
+
"title": "Create a gradebook",
|
|
141
|
+
"description": "Create an Excel gradebook with formulas.",
|
|
142
|
+
"prompt": "Create gradebook.xlsx with columns: Student Name, Assignment 1-5, Midterm, Final, Total (weighted formula), Grade (letter), and conditional formatting for pass/fail."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "create-xlsx-financial",
|
|
146
|
+
"title": "Create a financial model",
|
|
147
|
+
"description": "Create an Excel financial model.",
|
|
148
|
+
"prompt": "Create financial-model.xlsx with sheets: Assumptions, Revenue Projections (5 years), Cost Structure, P&L Statement, Cash Flow, and Summary with key metrics and charts."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "create-xlsx-tracker",
|
|
152
|
+
"title": "Create a project tracker",
|
|
153
|
+
"description": "Create an Excel project tracker.",
|
|
154
|
+
"prompt": "Create project-tracker.xlsx with columns: Task, Owner, Start Date, End Date, Status, Priority, Progress %. Add conditional formatting for status colors and a summary dashboard."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "edit-word-tables",
|
|
158
|
+
"title": "Edit Word tables",
|
|
159
|
+
"description": "Add and format tables in a Word document.",
|
|
160
|
+
"prompt": "Read report.docx, then add a 4x4 table after the first paragraph with headers: Category, Q1, Q2, Q3. Add data rows and format the header row bold with a blue background."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "edit-word-images",
|
|
164
|
+
"title": "Add images to Word",
|
|
165
|
+
"description": "Add images and captions to a Word document.",
|
|
166
|
+
"prompt": "Read report.docx, then add an image called chart.png after the second paragraph. Add a caption below the image: 'Figure 1: Revenue Growth'."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "edit-word-comments",
|
|
170
|
+
"title": "Add comments to Word",
|
|
171
|
+
"description": "Add comments and track changes.",
|
|
172
|
+
"prompt": "Read draft.docx, then add comments to paragraphs that need revision. Add a comment 'Please expand this section' to the third paragraph."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "edit-pptx-animations",
|
|
176
|
+
"title": "Add animations to PPT",
|
|
177
|
+
"description": "Add animations and transitions to slides.",
|
|
178
|
+
"prompt": "Read deck.pptx, then add a fade-in animation to the title shape on slide 1, a fly-in animation to the bullet points on slide 2, and a morph transition between all slides."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "edit-pptx-layout",
|
|
182
|
+
"title": "Rearrange PPT slides",
|
|
183
|
+
"description": "Move, clone, and rearrange slides.",
|
|
184
|
+
"prompt": "Read deck.pptx, then clone slide 1 and move it to the end. Change the title of the cloned slide to 'Thank You'."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "edit-xlsx-formulas",
|
|
188
|
+
"title": "Add formulas to Excel",
|
|
189
|
+
"description": "Add formulas and calculations.",
|
|
190
|
+
"prompt": "Read data.xlsx, then add a SUM formula in the total row, an AVERAGE formula for each column, and conditional formatting to highlight cells above 1000."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "edit-xlsx-charts",
|
|
194
|
+
"title": "Add charts to Excel",
|
|
195
|
+
"description": "Create charts from spreadsheet data.",
|
|
196
|
+
"prompt": "Read data.xlsx, then create a bar chart showing revenue by month, a pie chart showing market share by product, and a line chart showing growth trends."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "edit-xlsx-sort",
|
|
200
|
+
"title": "Sort and filter Excel data",
|
|
201
|
+
"description": "Sort and filter spreadsheet data.",
|
|
202
|
+
"prompt": "Read data.xlsx, then sort the data by column C in descending order. Add an autofilter to the header row."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "preview-click-edit",
|
|
206
|
+
"title": "Preview and click to edit",
|
|
207
|
+
"description": "Start live preview, click elements, and edit them.",
|
|
208
|
+
"prompt": "Start a live preview of my document. After I click on an element, get the selected element and change its color to red."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "preview-word",
|
|
212
|
+
"title": "Preview a Word document",
|
|
213
|
+
"description": "Start live preview of a Word document for visual editing.",
|
|
214
|
+
"prompt": "Start a live preview of report.docx. I want to click on paragraphs and tables to inspect their formatting and make changes."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "preview-excel",
|
|
218
|
+
"title": "Preview an Excel spreadsheet",
|
|
219
|
+
"description": "Start live preview of an Excel spreadsheet.",
|
|
220
|
+
"prompt": "Start a live preview of data.xlsx. I want to click on cells and sheets to inspect their values and formulas."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "bulk-edit-word",
|
|
224
|
+
"title": "Bulk edit Word document",
|
|
225
|
+
"description": "Find and replace text across a Word document.",
|
|
226
|
+
"prompt": "Read report.docx, then find all instances of 'draft' and replace with 'final'. Also bold all instances of 'important'."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "bulk-edit-pptx",
|
|
230
|
+
"title": "Bulk edit PowerPoint",
|
|
231
|
+
"description": "Apply changes across multiple slides.",
|
|
232
|
+
"prompt": "Read deck.pptx, then change the font to Arial and size to 24pt on all shapes across all slides. Add a company logo to the bottom-right of each slide."
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"main": "dist/index.js",
|
|
236
|
+
"activationEvents": [
|
|
237
|
+
"onStartup"
|
|
238
|
+
],
|
|
239
|
+
"contributes": {
|
|
240
|
+
"tools": true,
|
|
241
|
+
"iconPacks": [
|
|
242
|
+
{
|
|
243
|
+
"id": "office-tools-icons",
|
|
244
|
+
"label": "Office Tools Icons"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"extensionType": "community",
|
|
249
|
+
"categories": [
|
|
250
|
+
"productivity"
|
|
251
|
+
],
|
|
252
|
+
"permissions": {
|
|
253
|
+
"filesystem": "readwrite",
|
|
254
|
+
"network": false,
|
|
255
|
+
"shell": true
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"devDependencies": {
|
|
259
|
+
"@finch.app/minitool-api": "^0.1.10",
|
|
260
|
+
"@types/node": "^26.1.0",
|
|
261
|
+
"typescript": "^5.6.0"
|
|
262
|
+
},
|
|
263
|
+
"files": [
|
|
264
|
+
"dist/",
|
|
265
|
+
"i18n/",
|
|
266
|
+
"README.md",
|
|
267
|
+
"package.json"
|
|
268
|
+
]
|
|
269
|
+
}
|