Capture the current git diff (staged, working-tree, or staged file list) as text. Direct shell call for workflows that need repository diffs without an LLM agent loop.
66
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Direct shell invocation that returns the current git diff as text.
Replaces sub-agent sub-Agent steps that just shell out to
git diff — order-of-magnitude faster (no LLM round-trip).
mode (with.mode) | behaviour |
|---|---|
cached_fallback_worktree | git diff --cached HEAD; falls back to git diff HEAD if staged diff is empty. Default. |
cached | git diff --cached HEAD only |
worktree | git diff HEAD only |
staged_files | git diff --cached --name-only (path list) |
NO_DIFF on stdout so
downstream meta-step prompts can short-circuit reviewers.If this skill is unavailable, callers should spawn sub-agent
with a git diff task — same output, ~10× the latency.
94ac35e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.