Applicable to code-centric tasks such as coding, debug/debugging, bug fixing, refactor/refactoring, code review, scripting, automation, and implementation planning.
Restrictions on tools, languages, dependencies, styles, files, and scope
Definition of Done
Whether there are existing frameworks / components / native system capabilities that can directly meet the Request
Whether the user has explicitly excluded certain solutions, fallbacks, or enhancements
Related files, interfaces, types, configurations, call points, tests, and local conventions
Risk areas: compatibility, data, performance, security, deployment, and side effects
Workflow
1. Read First, Write Later
Read first, then modify.
At least check the minimal sufficient context required to avoid superficial fixes: related files, interfaces, types, configurations, call points, tests, and nearby conventions.
Understand the local design intent before changing behavior.
Do not finalize the patch strategy until key context is clear.
Prioritize relying on code, logs, tests, and observed behavior rather than guesses.
When understanding the system, first look at outputs, logs, code, bug fixes, PR/reviews, and decision traces, then look at PRDs, solutions, and second-hand summaries.
If only "symptom fixing" can be justified at present, state this clearly.
3. Scope Control
First answer: "If only the minimum changes are made, which changes are sufficient to solve the problem?"
If existing frameworks, components, or native system capabilities are sufficient to meet the Request, reuse native capabilities by default instead of adding a second set of mechanisms.
Do not proactively add custom states, fallback links, extra abstractions, or enhanced interactions for the sake of "being more complete", "more secure", or "convenient optimization".
Clearly separate the main solution from optional enhancements; unsolicited enhancements must not be included in the main patch.
Risks can be noted, but risk mitigation plans are only upgraded to implementation content when existing evidence indicates the main solution is insufficient.
When the user explicitly says "don't do X", "only use Y", or "do phase 1 first", immediately remove any residual parts of the solution that do not meet the boundaries; do not keep them for completeness.
4. Patch Strategy
Pursue "minimal coherent patches", not "minimal text changes".
When the root cause is local and supported by sufficient evidence, prioritize fixing the root cause.
Maintain existing conventions unless the Request requires changes.