Prompt Leverage
Turn the user's current prompt into a stronger working prompt without changing the underlying intent. Preserve the task, fill in missing execution structure, and add only enough scaffolding to improve reliability.
Workflow
- Read the raw prompt and identify the real job to be done.
- Infer the task type: coding, research, writing, analysis, planning, or review.
- Rebuild the prompt with the framework blocks in
references/framework.md.
- Keep the result proportional: do not over-specify a simple task.
- Return both the improved prompt and a short explanation of what changed when useful.
Transformation Rules
- Preserve the user's objective, constraints, and tone unless they conflict.
- Prefer adding missing structure over rewriting everything stylistically.
- Add context requirements only when they improve correctness.
- Add tool rules only when tool use materially affects correctness.
- Add verification and completion criteria for non-trivial tasks.
- Keep prompts compact enough to be practical in repeated use.
Framework Blocks
Use these blocks selectively.
Objective: state the task and what success looks like.
Context: list sources, files, constraints, and unknowns.
Work Style: set depth, breadth, care, and first-principles expectations.
Tool Rules: state when tools, browsing, or file inspection are required.
Output Contract: define structure, formatting, and level of detail.
Verification: require checks for correctness, edge cases, and better alternatives.
Done Criteria: define when the agent should stop.
Output Modes
Choose one mode based on the user request.
Inline upgrade: provide the upgraded prompt only.
Upgrade + rationale: provide the prompt plus a brief list of improvements.
Template extraction: convert the prompt into a reusable fill-in-the-blank template.
Hook spec: explain how to apply the framework automatically before execution.
Hook Pattern
When the user asks for a hook, model it as a pre-processing layer:
- Accept the current prompt.
- Classify the task and risk level.
- Expand the prompt using the framework blocks.
- Return the upgraded prompt for execution.
- Optionally keep a diff or summary of injected structure.
Use scripts/augment_prompt.py when a deterministic first-pass rewrite is helpful.
Quality Bar
Before finalizing, check the upgraded prompt:
- still matches the original intent
- does not add unnecessary ceremony
- includes the right verification level for the task
- gives the agent a clear definition of done
If the prompt is already strong, say so and make only minimal edits.
1---2name: prompt-leverage3description: Upgrade raw prompts into execution-ready instructions. Use when asked to improve a prompt, add context, tool, verification, or done rules, extract a template, or design an enhancement hook.4---56# Prompt Leverage78Turn the user's current prompt into a stronger working prompt without changing the underlying intent. Preserve the task, fill in missing execution structure, and add only enough scaffolding to improve reliability.910## Workflow11121. Read the raw prompt and identify the real job to be done.132. Infer the task type: coding, research, writing, analysis, planning, or review.143. Rebuild the prompt with the framework blocks in `references/framework.md`.154. Keep the result proportional: do not over-specify a simple task.165. Return both the improved prompt and a short explanation of what changed when useful.1718## Transformation Rules1920- Preserve the user's objective, constraints, and tone unless they conflict.21- Prefer adding missing structure over rewriting everything stylistically.22- Add context requirements only when they improve correctness.23- Add tool rules only when tool use materially affects correctness.24- Add verification and completion criteria for non-trivial tasks.25- Keep prompts compact enough to be practical in repeated use.2627## Framework Blocks2829Use these blocks selectively.3031- `Objective`: state the task and what success looks like.32- `Context`: list sources, files, constraints, and unknowns.33- `Work Style`: set depth, breadth, care, and first-principles expectations.34- `Tool Rules`: state when tools, browsing, or file inspection are required.35- `Output Contract`: define structure, formatting, and level of detail.36- `Verification`: require checks for correctness, edge cases, and better alternatives.37- `Done Criteria`: define when the agent should stop.3839## Output Modes4041Choose one mode based on the user request.4243- `Inline upgrade`: provide the upgraded prompt only.44- `Upgrade + rationale`: provide the prompt plus a brief list of improvements.45- `Template extraction`: convert the prompt into a reusable fill-in-the-blank template.46- `Hook spec`: explain how to apply the framework automatically before execution.4748## Hook Pattern4950When the user asks for a hook, model it as a pre-processing layer:51521. Accept the current prompt.532. Classify the task and risk level.543. Expand the prompt using the framework blocks.554. Return the upgraded prompt for execution.565. Optionally keep a diff or summary of injected structure.5758Use `scripts/augment_prompt.py` when a deterministic first-pass rewrite is helpful.5960## Quality Bar6162Before finalizing, check the upgraded prompt:6364- still matches the original intent65- does not add unnecessary ceremony66- includes the right verification level for the task67- gives the agent a clear definition of done6869If the prompt is already strong, say so and make only minimal edits.