name: cmorf-impact description: "Analyze the impact of changing a file — what depends on it, what tests to run" user-invocable: true argument-hint: "<file-path>"
Impact Analysis
When the user runs /cmorf-impact <file>:
- Use
cmorf_fileto get the file's details - Use
cmorf_searchwith pattern matching the file's name to find all files that import it - Among those results, identify:
- Direct importers (files that import the target)
- Test files (matching test, spec, tests)
- Entry points (matching index., main., app.*)
- Present a structured impact report:
- Direct dependents: N files import this
- Tests to run: list of test files
- Risk level: Low (0-2 dependents), Medium (3-10), High (11+)
- Recommendation: which tests to run, what to review