Ado· @adocomplete · X·Top PickAI score69
Claude Code skills tip: use !`gh pr diff` to run a shell command when a skill loads
AI brief
Ado from Anthropic's developer relations, on day two of Advent of Claude 2026, shares a Claude Code tip: skills can run shell commands before Claude reads them. Put !`gh pr diff` in SKILL.md, and the real diff is already in place when the skill loads, saving a round of waiting for "let me look at the diff."
Why it matters
The author demonstrates how Claude Code skills can run shell commands at load time, an approach that carries over directly to everyday SKILL.md orchestration.
Full text · Original
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".
Source: Ado · x.com