prompt-optimizer
Use when a draft prompt, instruction set, or agent skill description needs refinement, clarity, or improved performance.
npx skills add majiayu000/claude-skill-registry --skill prompt-optimizer-joellewis-skill-library --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## Overview 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). ## Iron Law `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. ## State Machine ```dot 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
- Overview
- Iron Law
- State Machine
- When to Use This Skill
- When NOT to Use This Skill
- Core Process
- Step 1: Deconstruct (Extract Core Intent)
- Step 2: Diagnose (Audit for "Leaks")
- Step 3: Develop (Apply Optimization Frameworks)
- Step 4: Deliver (Final Construction)
- Cross-Skill Invocations
- Rationalization Table
- Red Flags
- Diagnostic Checklist
What does the prompt-optimizer skill do?
Use when a draft prompt, instruction set, or agent skill description needs refinement, clarity, or improved performance.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill prompt-optimizer-joellewis-skill-library --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
