From ontoindex
Analyzes code change impact and blast radius using OntoIndex. Answers what will break before editing, with dependency depth and risk assessment.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ontoindex:ontoindex-impact-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- "Is it safe to change this function?"
1. ontoindex_impact({target: "X", direction: "upstream"}) → What depends on this
2. READ ontoindex://repo/{name}/processes → Check affected execution flows
3. ontoindex_detect_changes() → Map current git changes to affected flows
4. Assess risk and report to user
If "Index is stale" → run
npx ontoindex analyzein terminal.
- [ ] ontoindex_impact({target, direction: "upstream"}) to find dependents
- [ ] Review d=1 items first (these WILL BREAK)
- [ ] Check high-confidence (>0.8) dependencies
- [ ] READ processes to check affected execution flows
- [ ] ontoindex_detect_changes() for pre-commit check
- [ ] Assess risk level and report to user
| Depth | Risk Level | Meaning |
|---|---|---|
| d=1 | WILL BREAK | Direct callers/importers |
| d=2 | LIKELY AFFECTED | Indirect dependencies |
| d=3 | MAY NEED TESTING | Transitive effects |
| Affected | Risk |
|---|---|
| <5 symbols, few processes | LOW |
| 5-15 symbols, 2-5 processes | MEDIUM |
| >15 symbols or many processes | HIGH |
| Critical path (auth, payments) | CRITICAL |
ontoindex_impact — the primary tool for symbol blast radius:
ontoindex_impact({
target: "validateUser",
direction: "upstream",
minConfidence: 0.8,
maxDepth: 3
})
→ d=1 (WILL BREAK):
- loginHandler (src/auth/login.ts:42) [CALLS, 100%]
- apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]
→ d=2 (LIKELY AFFECTED):
- authRouter (src/routes/auth.ts:22) [CALLS, 95%]
ontoindex_detect_changes — git-diff based impact analysis:
ontoindex_detect_changes({scope: "staged"})
→ Changed: 5 symbols in 3 files
→ Affected: LoginFlow, TokenRefresh, APIMiddlewarePipeline
→ Risk: MEDIUM
1. ontoindex_impact({target: "validateUser", direction: "upstream"})
→ d=1: loginHandler, apiMiddleware (WILL BREAK)
→ d=2: authRouter, sessionManager (LIKELY AFFECTED)
2. READ ontoindex://repo/my-app/processes
→ LoginFlow and TokenRefresh touch validateUser
3. Risk: 2 direct callers, 2 processes = MEDIUM
npx claudepluginhub ontograph/ontoindex --plugin ontoindexAnalyzes code change impact using GitNexus: maps upstream dependents by depth, affected processes, git-diff risks, and risk levels before edits.
Analyzes impact of changes to files, APIs, components, or models. Provides dependency analysis, risk assessment, breaking changes, migration checklist, and test coverage gaps before modifications.
Performs graph-based impact analysis to answer 'if I change X, what breaks?' before merging PRs or planning refactors.