From meta
Engineers prompts into clear, structured, model-optimized instructions using the 4-D methodology (Deconstruct, Diagnose, Develop, Deliver) with architecture-specific tuning. Use when a draft prompt, instruction set, or agent skill description needs refinement for clarity or improved performance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/meta:prompt-optimizerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Prompt optimization is the engineering of intent into machine-executable instructions. This skill applies the 4-D Methodology (Deconstruct, Diagnose, Develop, Deliver) to ensure that prompts are clear, structured, and optimized for specific model architectures (e.g., Claude's XML tagging vs. OpenAI's Markdown preference).
Prompt optimization is the engineering of intent into machine-executable instructions. This skill applies the 4-D Methodology (Deconstruct, Diagnose, Develop, Deliver) to ensure that prompts are clear, structured, and optimized for specific model architectures (e.g., Claude's XML tagging vs. OpenAI's Markdown preference).
NO PROMPT SHIPS WITHOUT RUNNING THE 4-D AUDIT
Failing to audit a prompt leads to "drift"—where the AI's output gradually diverges from the user's intent due to ambiguity or structural weakness.
digraph prompt_optimization_flow {
"Rough Input" [shape=doublecircle];
"Deconstruct: Intent & Context" [shape=box];
"Diagnose: Ambiguity Audit" [shape=box];
"Develop: Apply Frameworks" [shape=box];
"Deliver: Final Construction" [shape=box];
"Validation: Test Run" [shape=diamond];
"Optimized Prompt" [shape=doublecircle];
"Rough Input" -> "Deconstruct: Intent & Context";
"Deconstruct: Intent & Context" -> "Diagnose: Ambiguity Audit";
"Diagnose: Ambiguity Audit" -> "Develop: Apply Frameworks";
"Develop: Apply Frameworks" -> "Deliver: Final Construction";
"Deliver: Final Construction" -> "Validation: Test Run";
"Validation: Test Run" -> "Optimized Prompt" [label="pass"];
"Validation: Test Run" -> "Diagnose: Ambiguity Audit" [label="fail"];
}
Strip the prompt to its atomic parts. Identify:
Look for structural weaknesses:
Select the appropriate technique based on task complexity:
<thinking> tags before answering (Source: Anthropic).<context>, <task>, <example>) to separate instructions from data (Source: Anthropic).Assemble the optimized prompt using a "Bottom-Up" assembly:
| Thought | Reality |
|---|---|
| "It's just a simple request, no need for tags." | Simple requests are where models "lazy-reply" most often. |
| "The model is smart enough to figure it out." | Intelligence is not a substitute for clear intent engineering. |
| "I'll just add more words to make it clearer." | Wordiness often dilutes the model's attention; use structure instead. |
| "I don't have time for the 4-D audit." | A bad prompt wastes more time in revisions than an audit takes. |
npx claudepluginhub joellewis/skill-library --plugin metaGuides structured prompt design for LLMs: role, context, task, format, constraints. Useful when outputs are inconsistent, too long, off-format, or incorrect.
Transforms vague prompts into structured, constraint-aware prompts with explicit roles, task decomposition, output formats, and quality checks. Use for inconsistent outputs or when prompt improvement is needed.
Improves prompts via Anthropic best practices: queries official docs first, applies 4-step workflow with chain-of-thought, XML tags, and examples for accuracy and structure.