中国三峡大学硕士刘战 (@sanxialiuzhan)【ClaudeCode/Codex通用】Skill 里什么时候该放 scripts,而不是只写说明 中发帖

写 Skill 时,很多人只写 SKILL.md。这能用,但如果任务里有稳定的机械步骤,我更建议放到 scripts/。 
适合写进 scripts 的事

扫描文件。
生成固定模板。
解析 JSON / CSV / BibTeX。
批量重命名。
调 Playwright 截图。
检查 Markdown 链接。
统计测试覆盖率。

这些事让模型手写很容易出错,脚本更稳。
一个简单结构
my-skill/
SKILL.md
scripts/
collect_changes.py
render_preview.py
templates/
report.md
references/
style-guide.md

SKILL.md 里怎么写
When generating the report, run:

```bash
python scri...