diff --git a/skills/docx/SKILL.md b/skills/docx/SKILL.md index ad9e06c..b944bf1 100644 --- a/skills/docx/SKILL.md +++ b/skills/docx/SKILL.md @@ -38,7 +38,7 @@ metadata: description: >- Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. Use when 用户提到 Word文档、docx、创建文档、编辑文档、报告、 备忘录、公文、合同、信函模板。 body: ./SKILL.zh-CN.md - source_hash: sha256:b9f7129ef5e82c4b + source_hash: sha256:58d1aae3a57a1851 translated_by: human en-US: name: Word Document Processing @@ -46,8 +46,8 @@ metadata: description: >- Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. Use when the user mentions Word documents, docx, creating documents, editing documents, reports, memos, official documents, contracts, or letter templates. body: ./SKILL.md - source_hash: sha256:b9f7129ef5e82c4b - translated_by: ai:claude-opus-4-7 + source_hash: sha256:58d1aae3a57a1851 + translated_by: human translated_at: '2026-05-03' market: icon: >- @@ -90,6 +90,19 @@ docx is a **Procedural Skill** that provides full processing capabilities for Wo ## L2: Detailed Specification +### Script Path Rule (mandatory) + +The Python scripts bundled with this skill live inside the skill installation directory. You **MUST use full paths** when invoking them — never use bare relative paths. + +The skill directory is provided by the `` tag in the context. Prefix all `scripts/` commands accordingly: + +```bash +python "/scripts/office/unpack.py" document.docx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.docx +``` + +**NEVER** run `python scripts/office/unpack.py` directly — that relative path does not exist in the user's working directory. + ## Prerequisites ### Python 3 (required) diff --git a/skills/docx/SKILL.zh-CN.md b/skills/docx/SKILL.zh-CN.md index 20cf652..a9a5116 100644 --- a/skills/docx/SKILL.zh-CN.md +++ b/skills/docx/SKILL.zh-CN.md @@ -21,6 +21,19 @@ docx 是一个**流程型技能(Procedural Skill)**,提供 Word 文档的 ## L2:详细规范 +### 脚本路径规则(强制) + +本技能自带的 Python 脚本位于技能安装目录内。执行时**必须使用完整路径**,不能使用相对路径。 + +技能目录由上下文中的 `` 标签提供。所有 `scripts/` 开头的命令都应拼接为: + +```bash +python "/scripts/office/unpack.py" document.docx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.docx +``` + +**禁止**直接执行 `python scripts/office/unpack.py`——该相对路径在用户工作目录下不存在。 + ## Prerequisites ### Python 3(必需) diff --git a/skills/pptx/SKILL.md b/skills/pptx/SKILL.md index 6c1ba9a..003b357 100644 --- a/skills/pptx/SKILL.md +++ b/skills/pptx/SKILL.md @@ -38,7 +38,7 @@ metadata: description: >- Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill. Use when 用户提到 PPT、演示文稿、幻灯片、演讲稿、汇报材料、 pptx、创建演示、编辑幻灯片。 body: ./SKILL.zh-CN.md - source_hash: sha256:761da55f1e450adc + source_hash: sha256:a952bf5622ede8e0 translated_by: human en-US: name: Presentation Processing @@ -46,8 +46,8 @@ metadata: description: >- Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill. Use when the user mentions PPT, presentation, slides, speaker notes, briefing materials, pptx, creating presentations, or editing slides. body: ./SKILL.md - source_hash: sha256:761da55f1e450adc - translated_by: ai:claude-opus-4-7 + source_hash: sha256:a952bf5622ede8e0 + translated_by: human translated_at: '2026-05-03' market: icon: >- @@ -91,6 +91,19 @@ pptx is a **Procedural Skill** providing full PowerPoint presentation processing ## L2: Detailed Specification +### Script Path Rule (mandatory) + +The Python scripts bundled with this skill live inside the skill installation directory. You **MUST use full paths** when invoking them — never use bare relative paths. + +The skill directory is provided by the `` tag in the context. Prefix all `scripts/` commands accordingly: + +```bash +python "/scripts/office/unpack.py" presentation.pptx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.pptx +``` + +**NEVER** run `python scripts/office/unpack.py` directly — that relative path does not exist in the user's working directory. + ## Prerequisites ### Python 3 (required — needed when reading and editing existing PPTX) diff --git a/skills/pptx/SKILL.zh-CN.md b/skills/pptx/SKILL.zh-CN.md index b27584a..d2ed1f4 100644 --- a/skills/pptx/SKILL.zh-CN.md +++ b/skills/pptx/SKILL.zh-CN.md @@ -21,6 +21,19 @@ pptx 是一个**流程型技能(Procedural Skill)**,提供 PowerPoint 演 ## L2:详细规范 +### 脚本路径规则(强制) + +本技能自带的 Python 脚本位于技能安装目录内。执行时**必须使用完整路径**,不能使用相对路径。 + +技能目录由上下文中的 `` 标签提供。所有 `scripts/` 开头的命令都应拼接为: + +```bash +python "/scripts/office/unpack.py" presentation.pptx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.pptx +``` + +**禁止**直接执行 `python scripts/office/unpack.py`——该相对路径在用户工作目录下不存在。 + ## Prerequisites ### Python 3(必需 — 读取和编辑现有 PPTX 时需要) diff --git a/skills/xlsx/SKILL.md b/skills/xlsx/SKILL.md index fee4b4b..7753392 100644 --- a/skills/xlsx/SKILL.md +++ b/skills/xlsx/SKILL.md @@ -40,7 +40,7 @@ metadata: description: >- Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. Use when 用户提到 Excel、 电子表格、xlsx、表格处理、公式计算、数据清洗、图表、CSV导入导出。 body: ./SKILL.zh-CN.md - source_hash: sha256:de1660781d23798b + source_hash: sha256:17c76a78ed03d451 translated_by: human en-US: name: Spreadsheet Processing @@ -48,8 +48,8 @@ metadata: description: >- Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. Use when the user mentions Excel, spreadsheets, xlsx, table processing, formula computation, data cleaning, charts, or CSV import/export. body: ./SKILL.md - source_hash: sha256:de1660781d23798b - translated_by: ai:claude-opus-4-7 + source_hash: sha256:17c76a78ed03d451 + translated_by: human translated_at: '2026-05-03' market: icon: >- @@ -93,6 +93,20 @@ xlsx is a **Procedural Skill** that provides full processing capabilities for Ex ## L2: Detailed Specification +### Script Path Rule (mandatory) + +The Python scripts bundled with this skill live inside the skill installation directory. You **MUST use full paths** when invoking them — never use bare relative paths. + +The skill directory is provided by the `` tag in the context. Prefix all `scripts/` commands accordingly: + +```bash +python "/scripts/office/unpack.py" spreadsheet.xlsx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.xlsx +python "/scripts/recalc.py" output.xlsx +``` + +**NEVER** run `python scripts/office/unpack.py` directly — that relative path does not exist in the user's working directory. + ## Prerequisites ### Python 3 (required) diff --git a/skills/xlsx/SKILL.zh-CN.md b/skills/xlsx/SKILL.zh-CN.md index 4a6d3c1..d1ecbc1 100644 --- a/skills/xlsx/SKILL.zh-CN.md +++ b/skills/xlsx/SKILL.zh-CN.md @@ -21,6 +21,20 @@ xlsx 是一个**流程型技能(Procedural Skill)**,提供 Excel 电子表 ## L2:详细规范 +### 脚本路径规则(强制) + +本技能自带的 Python 脚本位于技能安装目录内。执行时**必须使用完整路径**,不能使用相对路径。 + +技能目录由上下文中的 `` 标签提供。所有 `scripts/` 开头的命令都应拼接为: + +```bash +python "/scripts/office/unpack.py" spreadsheet.xlsx unpacked/ +python "/scripts/office/pack.py" unpacked/ output.xlsx +python "/scripts/recalc.py" output.xlsx +``` + +**禁止**直接执行 `python scripts/office/unpack.py`——该相对路径在用户工作目录下不存在。 + ## Prerequisites ### Python 3(必需)