/mithunyc-skills:prompt-optimizerfrom mithunyc-skills
Convert rough, fragmented, dictated, multilingual, or contradictory ideas into precise, token-efficient prompts for chat models, coding agents, APIs, or agent-to-agent handoffs. Use for an explicit `/prompt-optimizer` request, when the user asks to create, rewrite, improve, audit, or optimize a prompt, or when an agent must compose a substantial instruction for another model inside an authorized workflow. Do not replace direct task execution with a prompt when the user asked for the outcome itself.
Ships in mithunyc-skills. 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; scripts run unread.
Recover the user's actual intent, preserve it, and express it as the smallest prompt that makes the desired outcome, boundaries, and proof unambiguous. Optimize for task success, not for impressive-looking prompt scaffolding.
For a tool with its own prompt skill installed (for example a Stitch UI-generation skill), use that skill; it carries the tool's vocabulary and workflow. Use this general optimizer for other targets.
Extract only what is present or safely inferable:
Resolve pronouns and shorthand from live conversation or codebase context when the referent is clear. Preserve ambiguity when it is not.
Ask what a top professional in this field would do here that the request does not ask for. Deeper means the same outcome and scope with a stronger method or proof; it never means bigger. Name:
Write the prompt to ask for exactly that. Anything that adds scope, cost, authority or side effects goes under Needs decision instead. If nothing deeper exists, change nothing.
Limits:
asd-ste100 skill to text that an agent or model will read, and the humanizer skill to text that a person will read. Creative, quoted and legal text keeps its own register.For a simple request, write one direct paragraph. For a complex request, use only the sections that change behavior, usually:
Use headings, lists, or descriptive XML tags to separate instructions from data when boundaries could be confused. Use roles only when domain perspective, authority, or tone changes the work. Use examples only when they encode a hard-to-describe format, decision boundary, or edge case.
good, better, professional, or comprehensive without definition.must, never, and only for genuine invariants.For detailed surface-specific patterns and blueprints, read references/optimization-protocol.md. For codebase and agent-to-agent prompts, read references/code-and-agent-prompts.md.
Cold-read the optimized prompt as if no surrounding conversation exists. Check:
For long or production prompts, optionally run:
& <python> scripts/audit_prompt.py <prompt-file> --profile auto --json
Treat findings as review candidates, not proof of quality. Production prompt changes should be evaluated on representative inputs and changed one variable at a time where practical.
Assumptions or Needs decision only when silent omission would be misleading.For portable ChatGPT, Claude, or project-level instructions, adapt references/portable-instructions.md. The research basis and dated source links are in references/source-notes.md.
agents/openai.yaml (opens in a new tab)references/code-and-agent-prompts.md (opens in a new tab)references/optimization-protocol.md (opens in a new tab)references/portable-instructions.md (opens in a new tab)references/source-notes.md (opens in a new tab)references/voice-and-multilingual.md (opens in a new tab)scripts/audit_prompt.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mithunyc/skills --plugin mithunyc-skills30 skills in this plugin
/api-designerDesign or review API contracts, schemas, errors, pagination, idempotency, and compatibility. Use for API specification work rather than general server implementation./asd-ste100Write or clarify English technical instructions, tool descriptions, error messages, prompts, agent handoffs, and explanations with ASD-STE100-inspired rules. Use for disambiguate, STE100, Simplified Technical English, controlled-language rewrite, or dense technical text whose misreading has a cost. Preserve meaning and authority. Do not apply automatically to creative writing, marketing, verbatim quotations, or executable code./auth-integration-engineerDesign, implement, or diagnose authentication, identity-provider integration, sessions, tenant authorization, SSO, MFA, and account recovery.Other plugins' skills for the same job