Claude Code 技能技巧:用 !`gh pr diff` 让技能加载时先跑 shell 命令

Advent of Claude 2026 - Day 2 - Claude Code - Skills that run the shell first

Anthropic 开发者关系的 Ado 在 Advent of Claude 2026 第二天介绍 Claude Code 的一个技巧,技能可以在 Claude 读取前先运行 shell 命令。在 SKILL.md 中写入 !`gh pr diff`,技能加载时真实 diff 就已就位,省去一轮'让我看看 diff'的等待。

阅读全文 → 原文 ↗