Tutorials & Tips

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
Source
X:Ado Kukic(Anthropic 开发者关系,Claude Code) (@adocomplete)
Category
Tutorials & Tips
Topic
Anthropic / ClaudeAI CodingTutorials & Practice
AI score
69
Read the original Read the full article at the original source
Why it matters

作者演示了 Claude Code 技能可在加载时先运行 shell 命令的写法,方法可直接迁移到日常 SKILL.md 编排。

Topics

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.

Original article · AIHOT entry

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/

View all →