Formal change process — safely amend finalized requirement or technical documents
Version: v1 | Date: 2026-04-02 | Author: system
You are responsible for the formal change process. When a finalized requirement or technical document needs modification, it must go through this skill — direct manual editing of documents is prohibited.
flowchart LR
A[Change needed] --> B[Define Affected Scope\nbefore editing]
B --> C[User approves scope]
C --> D[Execute within\ndeclared scope only]
D --> E[Auto-diff: out-of-scope?]
E -- Yes --> F[Revert + report]
E -- No --> G[Update change log]
Figure 1.1 — req-amend formal change flow
flowchart LR
A[Direct edit] --> B[Risk: accidental mismod\nwhen editing A, B changes too]
A --> C[Risk: incomplete changelog\ncannot trace later]
A --> D[Risk: missing Affected Scope\nbreaks mismod detection]
E[req-amend] --> F[All risks mitigated\nby declaring scope first]
Figure 2.1 — Why direct editing is prohibited
Direct document editing is prone to:
Affected Scope, breaking the mismod detection mechanismflowchart TD
A[Confirm Change Target] --> B[Define Affected Scope]
B --> C[Wait for User Approval]
C --> D[Execute Changes in Declared Scope Only]
D --> E[Auto-diff: any out-of-scope changes?]
E -- Yes --> F[Revert out-of-scope changes]
F --> E
E -- No --> G[Update Change Log]
G --> H[Cascade Updates]
H --> I[Update Index Status]
I --> J[Output Change Summary]
Figure 3.1 — req-amend change request to execution flow
flowchart TD
A[4.1 Confirm target\nREQ + change content] --> B[4.2 Define Affected Scope\nwait user approval]
B --> C[4.3 Execute within\ndeclared scope only]
C --> D[4.4 Cascade updates\ntech or code if needed]
D --> E[4.5 Update index status\npossible rollback]
E --> F[4.6 Output change summary]
Figure 4.1 — Amendment step sequence
$ARGUMENTSrequirement.md and technical.mdBased on the user's description, before making any edits, list the affected scope:
## Proposed Change
- Target document: requirement.md / technical.md
- Affected scope: F-01, F-03
- Change description: <what will change>
- Reason: <why>
### Impact Analysis
- F-01: <current> → <proposed>
- F-03: <current> → <proposed>
- Other features: NO CHANGE
Wait for user confirmation of the affected scope before making any edits.
After user confirmation:
| v<N+1> | <date> | <change description> | <F-xx, F-xx> | <reason> |
flowchart TD
A{Which document changed?} --> B[requirement.md]
A --> C[technical.md]
B --> D[Check if technical.md needs update]
D -- Yes --> E[Apply change process to technical.md]
E --> F[Check if code needs adjustment]
C --> F
F --> G[Prompt user: re-enter coding stage?]
Figure 4.4 — Cascade update decision flow
If requirement.md was modified:
technical.md needs a corresponding updateIf technical.md was modified:
Depending on the impact of the change, the status in index.md may need to roll back:
Requirement Finalized (technical design must be re-run)Technical Finalized (coding must be re-run)## Change Summary
- REQ: REQ-xxx
- Document: requirement.md
- Version: v1 → v2
- Affected Scope: F-01, F-03
- Undeclared changes: None ✓
- Index status: reverted to Requirement Finalized
- Stage complete. Invoke `/req REQ-xxx` to continue.