code-dimension/code-dimension-skills/pragmatic-git-context
Claude Code and agent skill by code-dimension/code-dimension-skills
- community
Checking that the SKILL.md file is still in the repository.
Inspect dirty worktrees, focused diffs, and Git provenance without loading broad history or overwriting user changes. Use when separating overlapping changes, reviewing a targeted delta, or answering a genuinely historical Git question.
Install
npx vskill@latest install code-dimension/code-dimension-skills/pragmatic-git-contextSKILL.md
The same SKILL.md was published earlier as code-dimension/code-dimension-skills/pragmatic-git-context.
Pragmatic Git Context
Answer the current Git question with the smallest evidence surface. Current state and invariants come before history.
Start With The Question
Classify the need:
- current ownership map: which paths are dirty;
- focused delta: what changed in named paths or symbols;
- invariant: whether a project, alias, import, or rule exists now;
- provenance: when and why a specific line or symbol changed.
Do not use history for a current-state or invariant question.
Dirty Worktree
Run rtk git status --short once to map staged, unstaged, deleted, and untracked paths. Existing changes belong to the user unless proven otherwise. Never normalize the tree with reset, checkout, clean, stash, or broad staging.
Avoid repository-wide git diff HEAD. Scope inspection to authorized paths:
In a heavily modified file, prefer exact invariants over reconstructing every prior edit:
apply_patch is the authoritative record of the current agent's intended manual edit. Inspect its target lines and resulting invariants; do not claim ownership of other hunks merely because they appear in the same Git diff.
Untracked And Deleted Paths
Inspect only untracked paths relevant to the task. For removals, prove the result through consumers, resolution, graph, aliases, and configuration rather than printing every deleted line.
History Only When Needed
Use path- and symbol-bounded history:
Stop once the historical question is answered. Do not scan all commits, branches, or files speculatively. History explains provenance; it does not override current specifications or user authorization.
Reporting
Report the current answer, exact paths/symbols inspected, and any attribution uncertainty. Omit full diffs and log transcripts unless the user asks for them.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pragmatic-git-context/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/code-dimension/code-dimension-skills/pragmatic-git-context)