Scope and Execute
Structured approach for bounded implementation work.
Phase 1: Analyze (read-only)
- Identify affected files and modules
- Check existing tests for the area
- Note dependencies and side effects
- State assumptions explicitly
Phase 2: Plan
Write a brief plan:
- [Step] → verify: [check]
- [Step] → verify: [check]
- [Step] → verify: [check]
Phase 3: Execute
- Work through plan steps sequentially
- Run verification after each step
- If a step fails, diagnose before continuing
- Commit after each functional unit
Phase 4: Verify
Run the full verification sequence:
pnpm lint— no new warningspnpm catalog:validate— if catalog files changedpnpm test— all tests passpnpm workspace:validate— full workspace check
Rules
- Touch only what's needed (surgical changes)
- No speculative features
- Match existing code style
- Remove only your own orphaned code