بنقرة واحدة
simplify
Use when running the simplify cleanup protocol on task-related code changes during code-task closure.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when running the simplify cleanup protocol on task-related code changes during code-task closure.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | simplify |
| description | Use when running the simplify cleanup protocol on task-related code changes during code-task closure. |
Simplify is a finish-line discipline for code tasks.
Its job is to reduce future maintenance debt before you treat the current task as finished.
This skill is the execution protocol that runs after using-simplify, a user request, or a standing instruction has already decided simplify should happen.
Current protocol version: 0.2.1
Keep simplify aligned with the same-version using-simplify router and any installed gate text that mirrors this protocol.
Simplify runs in one of three modes:
LiteStandardStrictusing-simplify must choose the mode before this skill starts.
If the caller did not provide a mode, stop and return to using-simplify. Do not re-decide mode here.
Run simplify when the current task has already been routed into simplify and all of these are true:
Do not run simplify at the start of a task.
Do not run it while you are still discovering requirements, debugging root cause, or deciding architecture.
You may skip simplify only when at least one of these is true:
If you skip, say so explicitly and give the reason.
If you are thinking "the diff is probably fine" or "I already looked once", that is not a skip condition. Continue into the protocol.
A meaningful diff means task-related changes to behavior-affecting files such as:
It does not mean:
No cleanup needed is a valid end state.
Use it when all of these are true:
If you conclude no cleanup needed, still report:
Before claiming completion:
no cleanup needed or fix the worthwhile findingsIf you did not complete these steps, you did not finish simplify.
Choose exactly one closure type:
feature: adds new behavior or expands existing behaviorrefactor: improves structure while preserving behaviorbugfix: corrects existing incorrect behavior with minimal intended scope changeIf the task began as debugging, testing, or architecture implementation, map it to one of those three closure types before continuing.
Read the chosen mode and execute the corresponding branch.
Lite focuses on only three questions:
Lite output should stay short.
Standard is the default branch for ordinary feature, bugfix, and refactor closure.
Strict means:
For feature:
repo_fitqualityreuseFor refactor:
qualityrepo_fitreuseFor bugfix:
blast_radiusrepo_fitqualityAdd efficiency only when the diff shows at least one objective signal such as:
repo_fitLook for:
qualityLook for:
reuseLook for:
blast_radiusLook for:
efficiencyLook for:
Inspect only the current task scope:
git diffgit diff --cached if the staged diff is the intended targetDo not expand this into a broad architecture review.
Prefer one read-only reviewer per selected track when subagents are available.
If subagents are unavailable, run the tracks sequentially yourself and keep the same review contract.
Reviewer rules:
Keep the finding count proportional to the mode:
Lite: at most 2 findings totalStandard: at most 5 findings totalStrict: at most 8 findings totalStatus semantics:
no_issues: the reviewer inspected the assigned scope and found nothing worth carrying forwardok: the reviewer inspected the assigned scope and is returning one or more findingsblocked: the reviewer could not complete the assigned review and must say whyLite merge rule:
P1severity first and fix_cost secondUse this structure for findings:
status: ok | no_issues | blocked
task_type: feature | refactor | bugfix
track: repo_fit | quality | reuse | blast_radius | efficiency
inspected_files:
- path/to/file
findings:
- severity: P0 | P1 | P2 | P3
confidence: high | medium | low
file: path/to/file
line: 123
problem: short problem statement
why_it_matters: concrete maintenance or correctness impact
maintenance_impact: low | medium | high
fix_cost: low | medium | high
recommended_action: concrete suggested action
P0: correctness risk, regression risk, broken constraints, or a newly introduced hazardP1: clear repository drift, duplicated logic, structural debt, or rising maintenance costP2: worthwhile cleanup with limited scope and clear payoffP3: optional observation for the record onlyThe main agent is the decision-maker.
Never rank findings by which reviewer produced them.
Sort findings using this order:
Bucket findings into:
must_fixfix_if_cheapnote_onlyDefault policy:
P0 -> must_fixP1 -> must_fix if it increases maintenance debt in the current taskP2 -> fix_if_cheapP3 -> note_onlyFix:
must_fix findingsfix_if_cheap findings that stay within the task boundaryIf no finding survives triage, conclude no cleanup needed and state why.
If you are thinking "there should probably be at least one finding", that is not a triage rule. No cleanup needed is allowed when the evidence supports it.
Do not:
Choose the smallest verification that still proves the cleanup is safe.
Verification order:
After cleanup changes:
Report:
Before reporting:
If you catch yourself thinking any of these, stop and run simplify correctly:
| Excuse | Reality |
|---|---|
| "The implementation already works" | Working code still accumulates maintenance debt. |
| "Tests passed, so cleanup can wait" | Passing tests do not remove duplication, drift, or structural noise. |
| "This is too small for simplify" | Small tasks are exactly where silent debt slips through. |
| "I'll use the full protocol every time to be safe" | Over-review creates noise and encourages formalism. Pick the right mode. |
| "I'll just run every track" | Wrong track choice adds noise and hides real issues. |
| "I'll accept every suggestion" | Simplify is triage, not blind compliance. |
| "I can skip verification after cleanup" | Cleanup can still break behavior. Re-verify. |
| "A reviewer mentioned ideas, so I should refactor broadly" | Stay inside the current task boundary. |