一键导入
impact
Analyze system-wide impact of changes before making them. Use before modifying shared utilities, changing APIs, or refactoring core functionality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze system-wide impact of changes before making them. Use before modifying shared utilities, changing APIs, or refactoring core functionality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Surface code-level debt — TODO/FIXME markers, deprecated APIs, dead code, oversized units, magic numbers. Use when reviewing a module, planning cleanup work, or before a release. Not a linter — observes patterns and assesses impact.
Show available commands and explain how to use the Gotrino assistant.
Document the reasoning behind implementation decisions as markdown files. Creates decision records that future developers can reference.
Analyze mock data and examples for cultural assumptions, understanding what they communicate about who the product is for. Use when reviewing test data, documentation, or seed data.
Analyze code for internationalization issues, understanding the UI context and user impact before flagging problems. Use when reviewing code for global readiness.
Comprehensive inclusion analysis of code, examining language, internationalization, assumptions, and who might be excluded. Thorough review for releases or major features.
| name | impact |
| description | Analyze system-wide impact of changes before making them. Use before modifying shared utilities, changing APIs, or refactoring core functionality. |
| allowed-tools | Read, Grep, Glob |
| user-invocable | true |
Analyze the system-wide impact of proposed or recent changes before you make them.
Code doesn't exist in isolation. A "small fix" in a shared utility can break ten components. A type change can cascade through the entire codebase.
"What else depends on this? What might break?"
This skill isn't about being cautious—it's about being informed. Make changes with full knowledge of their ripple effects.
Run /impact before:
The user will provide:
If nothing provided, analyze uncommitted changes.
Determine what's being modified:
Search for code that directly uses the modified code:
Find related tests:
Follow the impact chain:
Keep it compact. Tables for findings, clear risk assessment.
## Impact Analysis: [Change Description]
**Scope**: [What's being changed]
**Risk Level**: Low | Medium | High
---
### Direct Dependents
| File | Usage | Risk |
|------|-------|------|
| `consumer.ts:45` | Calls `modifiedFunction()` | Medium |
| `component.tsx:23` | Uses `ModifiedType` | Low |
### Test Coverage
**Tests found:**
- `__tests__/file.test.ts` - Direct unit tests ✓
**Tests that may need updates:**
- `integration/flow.test.ts` - Uses affected flow
### Breaking Change Assessment
| Check | Status |
|-------|--------|
| Public API changes | Yes / No |
| Type signature changes | Yes / No |
| Behavioral changes | Yes / No |
| Database/schema changes | Yes / No |
---
### Recommendations
1. **Before changing**: [Specific prep work]
2. **Update alongside**: [Files that need coordinated changes]
3. **Tests to run**: [Specific test commands]
4. **Communicate to**: [Teams or people who should know]
### Summary
[1-2 sentences: X dependents found, Y tests affected, overall risk level and why]
Impact analysis prevents:
The five minutes spent on impact analysis saves hours of debugging and rollbacks.