From legacy-analysis
Systematically investigate the impact scope when adding new features or changing specifications, and create an impact analysis report. Used in combination with service specification summaries.
npx claudepluginhub t-hasuike/clysis --plugin legacy-analysisThis skill uses the workspace's default tool permissions.
> This is a generic skill from [CLysis](https://github.com/t-hasuike/CLysis).
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
This is a generic skill from CLysis. Terminology can be customized via
config/terminology.md.
Systematically investigate the impact scope when adding new features or changing specifications, and create a report.
See config/terminology.md for term customization
$ARGUMENTS
1. Organize change overview
|
2. Identify impact scope (file and table list)
|
3. Static dependency tracing
- Use Serena find_referencing_symbols to exhaustively trace references and callers
- Confirm Call Hierarchy in both upstream and downstream directions
|
4. Dynamic dependency verification
- Verify DI bindings (ServiceProvider, DI container)
- Check config files (config/*.php, .env) for behavioral branching
- Verify reflection, dynamic class name resolution are absent
|
5. Data flow tracing
- Trace "entry -> transformation -> exit" of changed variables
- Identify final destinations (DB column, external API, S3, email, etc.)
- Record type/value conversion points
|
6. Impact severity classification (High/Medium/Low)
|
7. Detailed investigation of high-impact areas (Service specification summary)
|
8. Organize risks and concerns
|
9. Next actions (handoff to /create-pr --plan)
| Analysis Axis | Content to Verify | Method |
|---|---|---|
| Static dependency | Function/class/variable references (Call Hierarchy) | Serena find_referencing_symbols, Grep |
| Dynamic dependency | DI bindings, config file branching, reflection | config/*.php, ServiceProvider, .env inspection |
| Data flow | How changed variables are transformed and where they finally reach (DB column/external API) | Variable tracing (entry -> transformation -> exit) |
| Impact Axis | Verification Point | High Impact Example |
|---|---|---|
| API contract | Do endpoints, request/response types change? | Field deletion, type change, URL change |
| DB schema contract | Do table definitions, column types, constraints change? | NOT NULL added, type changed, column deleted |
| Shared component side effects | Will all dependent feature expectations break? | Return value meaning change, argument addition |
| Performance | Will N+1, index misses, or heavy queries emerge? | List API, batch processing, large data operations |
| Authorization/Security | Will permission checks get gaps? | New endpoint, shared middleware change |
| Severity | Criteria | Response |
|---|---|---|
| High | Code modification is mandatory. API/schema contract changes. Or non-functional requirements affected. | Detailed investigation required. Use /create-pr --plan for remediation plan |
| Medium | Verification needed. Dynamic dependencies present. Shared component side effect risks. | Behavior verification needed |
| Low | Automatic handling. Impact is localized and contract unchanged. | Confirmation only |
# [Feature Name] Impact Analysis Report
## ADR (Architecture Decision Record)
### Decision
[Briefly describe the change]
### Context
[Reason for change / business requirements]
### Technical Decision
[Architectural judgment and rationale]
---
## Impact Scope Analysis
### Impact Summary
| Severity | Count | Percentage |
|----------|-------|------------|
| High (modification required) | X | XX% |
| Medium (verification needed) | X | XX% |
| Low (automatic handling) | X | XX% |
### Impact List by Category
#### 1. Database
| Table Name | Change Description | Severity | Notes |
|------------|-------------------|----------|-------|
| xxx | Column addition | High | ... |
#### 2. Model/Enum
| File | Change Description | Severity | Notes |
|------|-------------------|----------|-------|
| xxx.php | Constant addition | High | ... |
#### 3. Service/UseCase
| File | Change Description | Severity | Notes |
|------|-------------------|----------|-------|
| xxxService.php | Method modification | High | ... |
#### 4. Batch Processing
| Batch Name | Change Description | Severity | Notes |
|------------|-------------------|----------|-------|
| xxxBatch | ... | Medium | ... |
---
## High-Impact Area Detailed Analysis
### [Service Name 1]
Use Service specification summary format (/current-spec skill)
---
## Risks and Concerns
### High Risk (must resolve before implementation)
| Item | Description | Contact | Deadline |
|------|-------------|---------|----------|
| xxx | ... | Related department | Before Phase X |
### Medium Risk (verify during implementation)
| Item | Description | Contact |
|------|-------------|---------|
| xxx | ... | ... |
### Low Risk (can address after implementation)
| Item | Description |
|------|-------------|
| xxx | ... |
---
## Implementation Plan
### Phase 0: [Name]
- Objective: ...
- Scope: ...
- Completion criteria: ...
### Phase 1: [Name]
- Objective: ...
- Scope: ...
- Completion criteria: ...
---
## Checklist
### Phase 0
- [ ] Task 1
- [ ] Task 2
### Phase 1
- [ ] Task 1
- [ ] Task 2
---
## Version History
| Version | Date | Description |
|---------|------|-------------|
| 1.0 | YYYY-MM-DD | Initial version |
Record risks and concerns discovered during impact analysis using the following template for tracking.
| ID | Risk Description | Discovery Date | Severity | Status | Mitigation |
|---|---|---|---|---|---|
| R001 | [Risk description] | YYYY-MM-DD | High/Medium/Low | Unresolved/In Progress/Resolved | [Mitigation] |
Example:
| ID | Risk Description | Discovery Date | Severity | Status | Mitigation |
|---|---|---|---|---|---|
| R001 | Data migration script not yet created (structural change due to Enum conversion) | 2026-03-15 | High | In Progress | Migration script planned (Phase 0) |
| R002 | Need to verify external integration partner specification changes | 2026-03-15 | Medium | Unresolved | Confirmation deadline set |
| R003 | Existing tests may fail (calculation logic change) | 2026-03-16 | Medium | In Progress | Test fix proposal created |
When the impact scope is wide, use multiple scouts (Task tool) in parallel to improve investigation efficiency.
Example: Impact investigation for adding a product category
-> Scout 1: ValidationService investigation
-> Scout 2: PriceCalculationService investigation
-> Scout 3: CatalogUseCase investigation
| Type | Description | Required/Optional | Example |
|---|---|---|---|
| Change description | Description of the feature being added/changed | Required | New category addition, Price calculation logic change |
| Prior investigation results | Output from /current-spec | Optional | Reference investigation report |
| Type | Format | Destination |
|---|---|---|
| Impact analysis report | ADR-format Markdown (affected files list, risks, implementation plan) | stdout (report to leader) |
knowledge/system/service_responsibilities.md)| Skill | Condition |
|---|---|
/create-pr --plan | When remediation is required based on impact analysis results |
/doc-check | To verify documentation consistency of analysis results |
/current-spec -- Service specification summary for detailed understanding