| name | impact-analysis |
| description | Use when you need to analyze cascade impact of changing a component. |
| user-invocable | false |
Impact Analysis Skill
Analyze the cascade impact of modifying a component using the project ontology's dependency graph.
Usage
/team-shinchan:impact-analysis [options]
Parameters
<target> — Entity name, ID, or file path to analyze
--depth <N> — Traversal depth (default: 2, max: 5)
--direction outgoing|incoming|both — Direction of analysis (default: both)
Process
1. Locate Target Entity
- Check if
.shinchan-docs/ontology/ontology.json exists
- If not: "No ontology found. Run
/team-shinchan:ontology scan first."
- Search for target by:
- Exact entity ID match
- Entity name substring match
- File path match (for Component entities)
- If multiple matches, list them and ask user to clarify
2. Cascade Analysis
Run node ${CLAUDE_PLUGIN_ROOT}/src/ontology-engine.js related <entityId> with the specified depth.
Analyze the result:
- Direct dependencies (depth 1): Components that directly depend on target
- Indirect dependencies (depth 2+): Cascade through transitive relations
- Test coverage: TESTED_BY relations for affected components
- Pattern compliance: FOLLOWS_PATTERN relations that may be affected