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:
@@ -57,6 +57,19 @@ python3 -c "import openpyxl; import pandas" 2>/dev/null || echo "MISSING"
|
||||
|
||||
# Requirements for Outputs
|
||||
|
||||
### 脚本路径规则(强制)
|
||||
|
||||
本技能自带的 Python 脚本位于技能安装目录内。执行时**必须使用完整路径**,不能使用相对路径。
|
||||
|
||||
技能目录由上下文中的 `<skill-dir>` 标签提供。所有 `scripts/` 开头的命令都应拼接为:
|
||||
|
||||
```bash
|
||||
python "<skill-dir>/scripts/recalc.py" output.xlsx
|
||||
python "<skill-dir>/scripts/recalc.py" output.xlsx 30
|
||||
```
|
||||
|
||||
**禁止**直接执行 `python scripts/recalc.py`——该相对路径在用户工作目录下不存在。
|
||||
|
||||
## Output Rule
|
||||
|
||||
When you create or modify a .xlsx file, you **MUST** tell the user the absolute path of the output file in your response. Example: "文件已保存到:`/path/to/output.xlsx`"
|
||||
|
||||
Reference in New Issue
Block a user