executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
zero-tech-debtRebuild a feature as if the correct product architecture existed from day one — remove compatibility cruft, dead abstractions, and historical compromises instead of preserving them. Use when the operator says "refactor properly," "clean up," "rewrite," "modernize," "remove legacy," "simplify," "rethink," "pay down tech debt," or signals frustration with acc…
Independent GitHub snapshot · Automated classification · Original documentation governs
Build toward the intended product shape — not the historical sequence of patches, migrations, wrappers, aliases, and temporary decisions that created the current implementation.
The goal is not "minimal diff." The goal is a cleaner, more coherent system with fewer moving parts, fewer hidden assumptions, and lower long-term operational cost.
Treat the current implementation as evidence, not authority.
Preserve only the parts that still serve the intended architecture, UX, reliability model, and operational constraints. Everything else is eligible for deletion.
Read references/01-when-to-use.md. If the request smells like a hotfix, security backport, or time-boxed patch, stop and recommend a targeted change instead.references/02-preflight-checklist.md. Every box must be checked before touching code. Tests, callers, rollback path, single-paragraph end-state description, no in-flight migration, telemetry accounted for. Use Glob to locate test files and Grep / Bash(rg:*) to enumerate external callers of the surface being changed.references/03-workflow.md. Define end state → audit reality → delete before adding → optimize around final shape → collapse duplicate decision logic → remove historical leakage → validate.references/04-audit-patterns.md lists the concrete Grep / Bash(rg:*) / Bash(fd:*) targets (TODO/DEPRECATED markers, _v2/_old suffixes, stale feature flags, dual-mode forks, etc.). Each match is a candidate, not an automatic deletion.references/05-decision-filters.md covers tiebreakers and named anti-patterns to avoid.Edit — once a deletion / rename / consolidation is approved, use Edit to apply the change atomically. Stage with Bash(git:*) so the operator can review per commit before push.references/06-outcomes-and-reporting.md. The diff lists every line; the summary makes the architectural delta legible.A zero-tech-debt refactor will tempt unbounded scope. Hold the line:
Do not optimize for preserving the past.
Optimize for making the next 2 years of development simpler.
See references/ for the full methodology — each file is a single concern, loadable on demand.