Skip to content

feat(skills): add impact-analysis-with-gitnexus gate before spec and plan - #8

Closed
daithinh2401 wants to merge 1 commit into
mainfrom
feat/impact-analysis-with-gitnexus
Closed

daithinh2401 wants to merge 1 commit into
mainfrom
feat/impact-analysis-with-gitnexus

Conversation

@daithinh2401

@daithinh2401 daithinh2401 commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds impact-analysis-with-gitnexus, a Plan-phase skill that grounds specs and plans in the measured blast radius of a change by querying a GitNexus code knowledge graph before code is written, and re-checks the diff against that report before commit and review (Step 7). It skips itself with a one-line note when GitNexus is absent, and delegates the query mechanics to the skills GitNexus installs.

Scope is deliberately small

The skill is a self-contained unit (SKILL.md + eval case + fixture — all new files). Cross-wiring into the shared pack is kept to the minimum needed for discovery and the two Plan/Define entry points, so the weekly upstream sync stays conflict-free:

  • CLAUDE.md phase list, using-agent-skills routing tree + phase table — registration/discovery.
  • spec-driven-development Phase 1 and planning-and-task-breakdown Step 2 — the one place each parent skill hands off to the gate (plus one verification checkbox each).
  • .claude/commands/spec.md and plan.md — one-line pointers (Claude host only; .gemini/Antigravity copies left untouched, bodies may differ by design).

Intentionally NOT touched to avoid churn on files the upstream sync also edits and to avoid spreading a single vendor's name across the lifecycle: README skill count/table, docs/*, the issue template, context-engineering, and the Build/Test/Review wiring (incremental-implementation, test-driven-development, code-review-and-quality and their command copies). The skill still documents its Build/Test/Review closure use internally (Step 7); those reciprocal pointers can land in a separate small PR if wanted.

Why not covered by an existing skill

planning-and-task-breakdown draws the dependency graph by hand; spec-driven-development has no slot for callers/dependents. Neither says what to do when a call graph is available, how to keep it fresh, or where its output lands. No open upstream PR/issue overlaps (checked addyosmani#512, addyosmani#424, addyosmani#231, addyosmani#398, addyosmani#103); rejection ledger empty. Precedent for a tool-backed skill: browser-testing-with-devtools.

Evidence (skill TDD: baseline → with skill)

Scenario Without skill With skill
/plan, unindexed repo 24 tool calls; ~6 re-deriving whether analyze is safe 13 (gate = 6); --index-only; Impact Report replaces Step 2; both call-graph blind spots found
/spec, index 311 commits stale 51; plain analyze; re-index deferred 22; --index-only + read-only fallback; report under Boundaries; UNKNOWN → Open Question
/review over an implemented plan — 13; Step 7 lens, one re-index, no unplanned production symbol
Prove-It bug fix, no plan — 19; gate before the fix; caught route wiring the graph can't see

Known trade-offs

  • GitNexus is PolyForm-Noncommercial; the skill names its version-1.6.x CLI mechanics (--index-only, --include-tests, Function:/Const: nodes). It will need upkeep as GitNexus evolves. Kept as a distributable skill rather than woven through the lifecycle to contain that coupling.
  • The behavioral eval is tier-3 (not run in CI); the with-skill numbers above come from local subagent runs on one model.

🤖 Generated with Claude Code

Add a self-contained skill that grounds specs and plans in the measured
blast radius of a change by querying a GitNexus code knowledge graph
before code is written, and re-checks the diff against that report before
commit and review (Step 7). It skips itself with a one-line note when
GitNexus is absent and delegates query mechanics to the skills GitNexus
installs.

Cross-wiring is kept minimal so the weekly upstream sync stays
conflict-free: register in CLAUDE.md and using-agent-skills; hand off from
spec-driven-development Phase 1 and planning-and-task-breakdown Step 2;
one-line pointers in the Claude /spec and /plan commands. README counts,
docs, the issue template, context-engineering, and the Build/Test/Review
skills are deliberately left untouched — the skill documents that closure
use internally and it can be wired reciprocally in a later focused PR.

Ships with an eval case (positive/negative triggers + one execution eval)
and fixture. All validators and trigger evals pass (rank-1 100%).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@daithinh2401
daithinh2401 force-pushed the feat/impact-analysis-with-gitnexus branch from cc88925 to e9f8428 Compare September 25, 2026 13:24
@daithinh2401
daithinh2401 deleted the feat/impact-analysis-with-gitnexus branch September 25, 2026 13:36
daithinh2401-repo-sync-bot Bot pushed a commit that referenced this pull request Nov 15, 2026
…be drift

The eval gate was still failing after the rebase: "Set something up so our
module docs cannot silently go out of date again" ranked #8, needing top 3.

Cause is the scorer, not the wording. run-evals stems tokens, and
"documentation" does not stem to "doc" - so a description written entirely in
terms of "documentation" shares almost nothing with a prompt written in terms
of "docs". Only "out" overlapped. The description described drift correctly and
still could not be retrieved by anyone asking about it in the shorter register.

Fixed by carrying the vocabulary the prompts actually use - docs, module docs,
out of date - alongside the existing wording rather than replacing it, so the
ADR prompts keep the terms they match on.

All five positive triggers now rank #1 (worst was #8). Full suite: 142 checks
passed, 0 errors, and the repo-wide rank-1 rate goes 99% -> 100% (90/90).
Negative triggers unchanged - debugging and security still own theirs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant