mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-06-06 09:30:42 +08:00
fix: add Script Path Rule to docx/pptx/xlsx skills (#14)
## Summary - 为 docx/pptx/xlsx 三个技能的 SKILL.md 和 SKILL.zh-CN.md 添加"脚本路径规则"章节 - 告知 Agent 在执行技能自带脚本时必须使用 `<skill-dir>/` 前缀,因为 Agent 工作目录是用户项目目录而非技能目录 - 更新 en-US 块的 `source_hash`(内容已变更) - 将 en-US 标记为 `translated_by: human`,跳过 CI 自动翻译 ## Test plan - [ ] 在 dev 环境验证 docx/pptx/xlsx 技能执行脚本时路径正确 - [ ] CI i18n-validate 通过 - [ ] CI i18n-auto-translate 跳过(translated_by: human) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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,9 +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
|
||||
translated_at: '2026-05-03'
|
||||
source_hash: sha256:a952bf5622ede8e0
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
|
||||
@@ -91,6 +90,21 @@ 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 `<skill-dir>` tag in the context. Prefix all `scripts/` commands accordingly:
|
||||
|
||||
```bash
|
||||
python "<skill-dir>/scripts/office/unpack.py" presentation.pptx unpacked/
|
||||
python "<skill-dir>/scripts/office/pack.py" unpacked/ output.pptx
|
||||
python "<skill-dir>/scripts/office/soffice.py" --headless --convert-to pdf output.pptx
|
||||
python "<skill-dir>/scripts/thumbnail.py" presentation.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)
|
||||
|
||||
Reference in New Issue
Block a user