Claude Code技能可在Claude读取前先运行命令
导读
Adocomplete 介绍,Claude Code 的技能可在 Claude 正式读取前先执行 shell 命令:在 SKILL.md 中写入 !gh pr diff,技能加载时真实 diff 就已准备好,无需再花一轮说“让我看看 diff”。
正在把原文翻译成中文,长文需要一两分钟;先显示原文。
Advent of Claude 2026 - Day 2 - Claude Code - Skills that run the shell first
A skill can run commands before Claude reads it. Write !`gh pr diff` in SKILL.md and the real diff is sitting there when the skill loads. No turn wasted on "let me check the diff".
出处
- A 权威X @adocomplete · RSS阅读原文 ↗
Advent of Claude 2026 - Day 2 - Claude Code - Skills that run the shell first