/agentic-engineering:optimizing-promptsfrom agentic-engineering
Rewrites prompts and agent definitions using Anthropic prompt-engineering best practices including XML structure, role assignment, and output format control. Produces before/after with per-change rationale.
Ships in agentic-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Target: $ARGUMENTS (path to a prompt file, agent definition, or pasted prompt text)
Progress checklist:
Prompt Optimization:
- [ ] Step 1: Capture the target prompt
- [ ] Step 2: Identify intent, model, and runtime
- [ ] Step 3: Diagnose against eight techniques
- [ ] Step 4: Rewrite the prompt
- [ ] Step 5: Produce before/after report with rationale
Determine whether $ARGUMENTS is:
If the prompt is part of a larger agent (tools, examples, memory layout), capture the surrounding shape but keep the rewrite scoped to the prompt itself. Do not rewrite tool definitions in this skill — the audit skill flags those, and tool rewrites belong in their own pass.
Before optimizing, answer:
If any of these are ambiguous and would materially change the rewrite, ask one focused question. Do not ask if the answer is inferable from the prompt itself.
For each technique below, read the matching reference and decide whether the current prompt applies it well, partially, or not at all. Note the gap concretely (quote the offending text or note its absence).
Skip techniques that do not apply (e.g. parallel tool calling on a prompt with no tools). Do not invent gaps to justify rewrites.
Apply changes in this order, smallest-impact-first to preserve voice:
Constraints on the rewrite:
Output structure:
## Target
<file path or "inline prompt">
## Diagnosis
| Technique | Current state | Action |
|-----------|---------------|--------|
| Clarity and directness | Respected / Partial / Missing | Applied / Skipped / N/A |
| Context and motivation | ... | ... |
| Structure (XML) | ... | ... |
| Role | ... | ... |
| Long context | ... | ... |
| Communication style | ... | ... |
| Format control | ... | ... |
| Parallel tools | ... | ... |
## Before
<original prompt, verbatim>
## After
<rewritten prompt>
## Changes Applied
1. <Technique>: <what changed and why, ≤2 sentences, citing the reference>
2. <Technique>: ...
...
## What I Did Not Change
- <Things you considered and left alone, with reason>
If the prompt is already strong on every technique that applies, say so plainly and do not rewrite. A non-change is a valid output.
references/clarity.md (opens in a new tab)references/communication-style.md (opens in a new tab)references/context.md (opens in a new tab)references/format-control.md (opens in a new tab)references/long-context.md (opens in a new tab)references/parallel-tools.md (opens in a new tab)references/role.md (opens in a new tab)references/structure.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentic-dev3o/devx-plugins --plugin agentic-engineering2 skills in this plugin
Other plugins' skills for the same job