Repository navigation
feat(skills): add impact-analysis-with-gitnexus gate before spec and plan - #8
Closed
daithinh2401 wants to merge 1 commit into
Closed
daithinh2401 wants to merge 1 commit into
daithinh2401 wants to merge 1 commit into
Conversation
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
force-pushed
the
feat/impact-analysis-with-gitnexus
branch
from
September 25, 2026 13:24
cc88925 to
e9f8428
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdphase list,using-agent-skillsrouting tree + phase table — registration/discovery.spec-driven-developmentPhase 1 andplanning-and-task-breakdownStep 2 — the one place each parent skill hands off to the gate (plus one verification checkbox each)..claude/commands/spec.mdandplan.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:
READMEskill count/table,docs/*, the issue template,context-engineering, and the Build/Test/Review wiring (incremental-implementation,test-driven-development,code-review-and-qualityand 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-breakdowndraws the dependency graph by hand;spec-driven-developmenthas 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)
/plan, unindexed repoanalyzeis safe--index-only; Impact Report replaces Step 2; both call-graph blind spots found/spec, index 311 commits staleanalyze; re-index deferred--index-only+ read-only fallback; report under Boundaries; UNKNOWN → Open Question/reviewover an implemented planKnown trade-offs
--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.🤖 Generated with Claude Code