code-dimension/code-dimension-skills/pragmatic-git-context

Claude Code and agent skill by code-dimension/code-dimension-skills

Trust tier 3
  • community
Source check pending

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-context

SKILL.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:

bash
rtk git diff --stat -- <paths>
rtk git diff -U1 -- <paths>
rtk git diff --word-diff=porcelain -- <path>

In a heavily modified file, prefer exact invariants over reconstructing every prior edit:

bash
rtk grep -n '<removed-or-retained-symbol>' <path>
rtk npx nx show project <name> --json

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:

bash
rtk git log --oneline -- <path>
rtk git log -S'<symbol>' -- <path>
rtk git blame -L <start>,<end> -- <path>

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/code-dimension/code-dimension-skills/pragmatic-git-context/badge)](https://verified-skill.com/skills/code-dimension/code-dimension-skills/pragmatic-git-context)

Something wrong with this skill or its page? Tell us.