Install
openclaw skills install @liancheng-zcy/feature-modification-workflowStructured workflow to analyze, plan, and execute feature modifications by scenario complexity, ensuring controlled, incremental, and risk-aware changes.
openclaw skills install @liancheng-zcy/feature-modification-workflowA standardized workflow for modifying existing features, ensuring changes are well-founded, controlled, and incremental.
Understand First, Then Modify — Before any feature change, understand the relevant code to ensure the change direction is correct.
Choose Workflow by Scenario — Simple issues get simplified workflow, complex issues get full workflow. No unnecessary overhead.
Check Docs When Needed — Only check latest documentation when dealing with complex technical details or specific API usage. Simple changes don't need this.
Conservative Optimization — Optimize without changing existing flows and core logic. Avoid high-risk large-scale refactoring.
Confirm Before Execute — Complex changes require user confirmation before development begins.
After receiving a user request, first determine which scenario it falls into, then choose the corresponding workflow:
| Scenario | Characteristics | Workflow |
|---|---|---|
| Simple Issue | Change color, text, spacing, config values | Simplified: Read code → Change directly |
| Bug Fix | Fix errors, exceptions, unexpected behavior | Must analyze cause. Simple bugs use simplified workflow, complex bugs use full workflow |
| Complex Issue | New features, logic optimization, multi-file changes, architecture involved | Full 5-step workflow |
| Refactoring | Core flow changes, large-scale code adjustments | Full 5-step workflow |
1. Read relevant code (only the part to change)
2. Make the change
3. Inform user it's done
User: Change the login button color to blue
AI:
Bug fixes must first locate the cause. Don't change code based on guessing.
Characteristics: Cause is clear, small change scope, doesn't affect other features
1. Analyze current state: locate bug cause
2. Fix directly
3. Inform user it's done
Characteristics: Cause unclear, involves multiple modules, may affect other features, requires architecture changes
Follow the full 5-step workflow
| Simple Bug | Complex Bug |
|---|---|
| Clear error message, can locate directly | Cause unclear, needs investigation |
| Small change scope, 1-2 places | Involves multiple files/modules |
| Doesn't affect other features | May cause chain reactions |
| Doesn't involve core logic | Needs to change core flow |
After receiving a feature change request, don't start coding directly. First do the following:
Understand project structure
Read key files
Understand existing flows
Output Format:
## Project Overview
- Project type: xxx
- Core modules: xxx, xxx, xxx
- Data flow: xxx → xxx → xxx
## Related Modules
- Module A: responsible for xxx
- Module B: responsible for xxx
- Dependencies: A → B → C
After understanding the project, analyze the current state of the change target:
Current implementation analysis
Identify strengths
Identify bottlenecks
Identify weaknesses
Output Format:
## Current State Analysis
### Current Implementation
[Describe current implementation]
### Strengths
- xxx
- xxx
### Bottlenecks/Weaknesses
- xxx: [specific description]
- xxx: [specific description]
Based on analysis, propose optimization plan. Key constraint: don't change existing flow
Output Format:
## Optimization Plan
### Overview
[Briefly describe optimization approach]
### Optimization Points
1. xxx: [specific change, expected effect]
2. xxx: [specific change, expected effect]
### What Not to Change
- xxx: [why to keep]
### Risk Assessment
- Change scope: [large/medium/small]
- Affected modules: xxx, xxx
- Note: xxx
Break down the optimization plan into specific steps, list the plan and ask user for confirmation:
Output Format:
## Development Plan
### Step List
1. [ ] Step 1: xxx
2. [ ] Step 2: xxx
3. [ ] Step 3: xxx
### Confirmation Questions
- Does the above plan meet your expectations?
- Any steps need adjustment or addition?
- Can I start execution?
Wait for user response. Don't start development on your own.
After user confirms:
During development:
Refactoring must follow the full workflow because of high risk and large impact scope.
Characteristics of refactoring:
Not all changes need documentation check. Only check in these cases:
Complex technical details
Unsure about specific API usage
Involves specifications or standards
Context7 (mcp__context7__resolve-library-id + mcp__context7__query-docs)
WebSearch
| Scenario | Workflow |
|---|---|
| Simple Issue | Read code → Change directly |
| Simple Bug | Analyze cause → Fix directly |
| Complex Bug | Full 5 steps |
| Complex Issue | Full 5 steps |
| Refactoring | Full 5 steps |
| Step | Action | Output |
|---|---|---|
| 1 | Understand globally | Project overview |
| 2 | Analyze current state | Strengths/bottlenecks/weaknesses |
| 3 | Propose plan | Optimization points/what not to change |
| 4 | List plan and ask | Step list + confirmation questions |
| 5 | Execute after confirmation | Develop step by step |
Conditional: Check documentation (for complex technical issues)
Remember: Determine scenario first, then choose workflow. Handle simple issues simply, plan complex issues carefully.