andrewbrown-usda/aigb-skills-usda/git-history-interval-study
Claude Code and agent skill by andrewbrown-usda/aigb-skills-usda
- community
Checking that the SKILL.md file is still in the repository.
Incrementally studies git history across tagged or pattern-matched intervals (e.g., creation of planning artifacts like EXECUTION_PLAN_N.md, release tags, or milestone commits). Extracts commit diffs, file churn, and subsystem shifts to track feature evolution and architectural convergence, providing structured feeds for ADR distillation.
Install
npx vskill@latest install andrewbrown-usda/aigb-skills-usda/git-history-interval-studySKILL.md
The same SKILL.md was published earlier as andrewbrown-usda/aigb-skills-usda/git-history-interval-study.
Git History Interval Study
Provides a structured mechanism for studying repository history between marked intervals of interest - such as when new orchestration plans (planning/EXECUTION_PLAN_N.md), tags, or architectural milestones are created.
By systematically inspecting sequential diffs, commit classifications, and component churn between intervals, this skill identifies features as they develop and are refined over time, gauges architectural convergence, and provides evidence matrices for downstream skills like adr-distillation.
1. When to Use This Skill
- Wave / Plan Transitions: When tracking architectural changes between successive wave orchestration plans (
EXECUTION_PLAN_1.md->EXECUTION_PLAN_2.md-> etc.). - Milestone & Release Evolution: When analyzing code churn and feature development across Git tags or release branches.
- Architectural Decision Synthesis: When providing structured, evidence-backed input to
adr-distillationto document why design decisions were made and how components stabilized. - Subsystem & Interface Stabilization: When checking if a module has converged (diminishing churn, test stabilization) or remains volatile.
2. Core Concepts & Interval Math
An Interval is a revision slice bounded by two milestone commits: $I_k = [C_{k-1}, C_k]$.
Revision Range Plumbing
- Sequential Revision Range (`A..B`): Evaluates all commits reachable from $B$ excluding those reachable from $A$ (
^A B). - Topological Ordering (`--topo-order`): Ensures parent commits precede children regardless of commit author timestamps across concurrent branches.
- First-Parent Traversal (`--first-parent`): Useful for trunk-based repositories with merge commits, treating each merge as an atomic interval step.
- Rename Detection (`-M`): Resolves file renames and structural moves so code churn reflects genuine edits rather than deletions + additions.
3. Workflow Phases
Phase 1: Boundary Resolution
Select a boundary strategy based on the repository structure:
- Strategy A (Artifact Creation - e.g. Planning Files): Finds commits where key tracking or plan files were added:
``bash git log --diff-filter=A --format="%H|%as|%s" -- "planning/EXECUTION_PLAN_*.md" | sort -t'|' -k2 ``
- Strategy B (Version Tags): Extracts chronological tags:
``bash git tag --sort=creatordate ``
- Strategy C (Mainline Merges / PRs): Identifies merge commits on the primary branch:
``bash git log --first-parent --merges --format="%H|%as|%s" ` Select this strategy explicitly with --mainline. It is mutually exclusive with --pattern, --range, and --tags; merge commits are ordered chronologically to form adjacent interval boundaries. If the first-parent history has no merge commits, the strategy falls back to the repository root and HEAD. If it has one merge commit, the root, merge, and HEAD` are used. This guarantees deterministic intervals without requiring two merges.
- Strategy D (Explicit Revisions): Accepts user-specified commit SHAs or branch ranges (e.g.
v0.1.0..v0.2.0).
All value-taking options (--pattern, --range, and --out) require a value; unknown options fail explicitly. Boundary strategies are mutually exclusive.
Phase 2: Quantitative Interval Extraction
For each adjacent pair $[C_{k-1}, C_k]$:
- Commit Log Extraction:
``bash git log --topo-order --reverse --format="%h|%an|%as|%s" C_{k-1}..C_k ``
- High-Level Churn Metrics:
``bash git diff --shortstat C_{k-1} C_k ``
- File-Level Status with Rename Tracking:
``bash git diff --name-status -M C_{k-1} C_k ``
- Subsystem Directory Aggregation: Aggregate line churn by module directory (
skills/,src/,scripts/,docs/,planning/).
Phase 3: Qualitative Analysis & Convergence Tracking
- Commit Type Breakdown: Classify commit messages using Conventional Commits (
feat,fix,refactor,test,docs,chore,perf). - Convergence Heuristic:
- Volatile / Divergent: High addition/deletion churn ($C_i = L_{add} + L_{del}$), frequent changes to interfaces and public signatures, high ratio of
featandrefactorcommits. - Stabilizing / Converging: Diminishing churn over intervals, stable API boundaries, transition to
test,fix, anddocscommits.
- Pickaxe Symbol Tracking (`git log -S`): Verify when specific classes, functions, or architectural patterns were added or adapted across intervals:
``bash git log -S "<symbol-name>" -p C_{k-1}..C_k ``
Phase 4: Output Synthesis & Downstream Handoff
Emit two structured outputs:
- `interval-ledger.json`: Machine-readable JSON with top-level
strategy,
ordered boundaries, aggregate summary, subsystem, and convergence fields, plus the detailed intervals array. Each interval retains boundary triggers, commits, metrics, file statuses (including rename/copy path and oldPath), subsystem changes, and convergence classification.
- `evolution-digest.md`: Markdown narrative document summarizing:
- Interval Overview & Timeline
- Subsystem Evolution Matrix
- Feature additions and refinements
- Emergent architectural shifts & trade-offs
- Feed for `adr-distillation`: Candidate decisions with exact commit citations and evidence diffs.
4. Helper Script Usage
A zero-dependency Node.js script is included in scripts/interval_ledger.js:
5. Downstream Integration with adr-distillation
When paired with adr-distillation, the interval study serves as the authoritative evidence gatherer:
- Connects high-level planning decisions in
EXECUTION_PLAN_N.mdwith the concrete commits that implemented them. - Identifies unrecorded emergent architectural changes that occurred between plan milestones.
- Supplies exact commit SHAs, author dates, and file diffs for ADR "Context", "Decision", and "Consequences" sections.
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/git-history-interval-study/SKILL.md
Popularity
- 7-day trend score
- 0
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/andrewbrown-usda/aigb-skills-usda/git-history-interval-study)