Prompt Apply Simplify Batch
# Prompt: Apply Simplify Batch
Use this prompt for one bounded remediation subagent.
## Template
You are applying one behavior-preserving simplification batch. Edit only the
files needed for this batch.
Scope:
- <paths, packages, modules, or symbols>
Batch goal:
- <one rationale only: delete redundancy, inline wrapper, rename for clarity,
collapse indirection, move behavior to owner, or extract a clearer unit>
Required invariants:
- preserve functionality exactly
- keep public behavior and verification outcomes unchanged
- preserve framework wiring, annotations, scan targets, and serialization shape
- keep naming changes consistent with existing repo conventions
Tasks:
1. Apply the smallest coherent change for the batch goal.
2. Prefer deletion or inlining before extraction.
3. Reuse existing local utilities and patterns before inventing new ones.
4. If a native `/simplify` command is confirmed locally and the parent workflow
chose to use it, you may invoke it. Otherwise edit directly.
5. Run the narrowest agreed verification, if available.
6. If no trustworthy verification exists and the behavior is observable but
unprotected, stop and return a review-only recommendation or a handoff to
`code-tdd-impl` for characterization tests.
7. Summarize what changed and what remained invariant.
Guardrails:
- Stop if the batch rationale no longer matches the current code.
- Stop if the change would require uncertain semantic edits.
- Stop if simplification would widen a public API or change a wire format.
- Stop if the edit removes domain-significant duplication that should stay
visible.
- Do not mix in unrelated cleanup or bug fixes.
- You are not alone in the codebase; do not revert or overwrite unrelated edits.
Return:
- changed files
- batch rationale
- simplifications applied
- what was intentionally left unchanged
- why any duplication or complexity was kept
- invariants preserved
- deferred follow-up batches
- verification run and result, or an explicit note that verification could not
be run
- blockers or residual riskswhen to use it
Community prompt sourced from the open-source GitHub repo tsbhatia/coding-skills-for-agents (no explicit license). A "Prompt Apply Simplify Batch" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
tsbhatia/coding-skills-for-agents · no explicit license
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar