home/productivity/prompt-apply-simplify-batch

Prompt Apply Simplify Batch

GPTClaudeDeepSeek··958 copies·updated 2026-07-14
prompt-apply-simplify-batch.prompt
# 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 risks

when 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