--- name: cmorf-impact description: "Analyze the impact of changing a file — what depends on it, what tests to run" user-invocable: true argument-hint: "" --- # Impact Analysis When the user runs `/cmorf-impact `: 1. Use `cmorf_file` to get the file's details 2. Use `cmorf_search` with pattern matching the file's name to find all files that import it 3. Among those results, identify: - Direct importers (files that import the target) - Test files (matching *test*, *spec*, *__tests__*) - Entry points (matching index.*, main.*, app.*) 4. 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