Claude Code skill tip: use !`gh pr diff` to run a shell command when the skill loads
Original title:Advent of Claude 2026 - Day 2 - Claude Code - Skills that run the shell first
AI summary
Ado of Anthropic developer relations, on day two of Advent of Claude 2026, introduced a Claude Code tip: skills can run shell commands before Claude reads them. Writing !`gh pr diff` in SKILL.md means the real diff is already in place when the skill loads, skipping a round of waiting for a look at the diff.
Key Takeaways
- Ado of Anthropic developer relations,on day two of Advent of Claude 2026,introduced a Claude Code…
- Writing!
- `gh pr diff` in SKILL.
- md means the real diff is already in place when the skill loads,skipping a round of waiting for a…
Quick Facts
- Published
- Category
- Tutorials & Tips
- AI score
- 69
作者演示了 Claude Code 技能可在加载时先运行 shell 命令的写法,方法可直接迁移到日常 SKILL.md 编排。
Related entities
Source & copyright
This article is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back. Original copyright remains with the original publishers and authors; this site does not mirror full texts.
How to Cite
When citing this article, keep the title, date, and permalink, and credit Orange News as the source.
Orange News: Claude Code skill tip: use !`gh pr diff` to run a shell command when the skill loads. December 3, 2026. https://new.nat6.net/en/news/qd7mnkuakqnuyvjawt4rmk183/