Claude Code trick: skills run shell commands first—get the real PR diff before Claude reads

EricBuess · x · 2026-12-03

In "Advent of Claude 2026" Day 2, adocomplete shares a non-obvious Claude Code Skills technique: a skill can execute commands before Claude reads it.

Write !gh pr diff inside SKILL.md and the command runs when the skill loads, so the real diff is already sitting in context—no wasted turn asking Claude to "let me check the diff."

Original post →

More from coding & agent

coding & agent channel →