optimize-prompt
Skill0 starsChanged 3 months agoMITView on GitHub
Rewrite vague prompts into clear, actionable instructions for Claude Code.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- amazing-fish/agent-skillstheir own version, first seen Nov 1, 2026
- Paldom/promptimizetheir own version, first seen Jul 21, 2026
- bergr7/claude-skill-prompt-optimizertheir own version, first seen Feb 27, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- bergr7/claude-skill-prompt-optimizer★ 5same name
- amazing-fish/agent-skills★ 2same name
- Paldom/promptimize★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- buildSkill
- cleanup-worktreeSkill
- db-querySkill
- db-searchSkill
- dd-errorsSkill
- devops-wiki-updateSkill
- devops-workitem-createSkill
- devops-workitem-readSkill
- devops-workitem-updateSkill
- finalize-taskSkill
- find-codeSkill
- merge-mainSkill
- panel-review-fixSkill
- panel-reviewSkill
- prSkill
- rebase-mainSkill
- starttaskSkill
- testSkill
- ask-codexSkill
- ask-geminiSkill
- councilSkill
- dailySkill
- find-sessionSkill
- merged-prsSkill
- mm-notifySkill
- qSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Use headers/sections for multi-part requests
- Distinctive: line 32
Add relevant technical context the AI needs (language, framework, patterns)
- Distinctive: line 40
If code: specify language, style, error handling expectations
- Distinctive: line 49
Use imperative verbs: "Create", "Implement", "Find", "Fix", "Add"
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Optimize Prompt for Claude Code / AI
Input prompt: $ARGUMENTS
Your Task
Take the user's raw prompt and rewrite it into an optimized version that will get significantly better results from Claude Code and AI assistants in general. Output ONLY the optimized prompt — no explanations, no preamble, no "here's your optimized prompt" wrapper.
Optimization Principles
Apply ALL of the following transformations where relevant:
1. Clarity & Specificity
- Replace vague language with precise instructions
- "Make it better" → specify WHAT to improve and HOW to measure success
- "Fix the bug" → specify the symptom, expected behavior, and where to look
- Eliminate ambiguity — if a phrase could mean two things, pick the right one or split into two instructions
2. Structure
- Break complex requests into numbered steps
- Group related instructions together
- Use headers/sections for multi-part requests
- Lead with the goal, then provide context, then constraints
3. Context & Scope
- Add relevant technical context the AI needs (language, framework, patterns)
- Define boundaries — what's in scope and what's NOT
- Specify which files, directories, or components are involved
- Reference existing patterns to follow ("follow the same pattern as X")
4. Output Format
- Specify what the output should look like (code, explanation, list, diff)
- Define any constraints on the response (concise, detailed, with examples)
- If code: specify language, style, error handling expectations
5. Constraints & Guardrails
- State what NOT to do (equally important as what to do)
- Mention backward compatibility requirements
- Specify testing expectations
- Note any dependencies or prerequisites
6. AI-Specific Optimizations
- Use imperative verbs: "Create", "Implement", "Find", "Fix", "Add"
- Front-load the most important instruction (AI attention is strongest at the start)
- For Claude Code specifically:
- Reference file paths when known
- Mention which solution/project when the repo has multiple
- Specify if you want a plan first vs immediate implementation
- Indicate if you want changes committed or just made
7. Examples (when helpful)
- Include input/output examples for transformations
- Show the expected behavior for edge cases
- Reference similar existing code as a model
Rules
- Preserve intent — never change what the user is asking for, only HOW they ask
- Don't over-engineer — if the original prompt is already clear and specific, make minimal changes
- Don't add requirements — only make implicit requirements explicit; never invent new ones
- Keep it natural — the result should read like something a skilled developer would type, not a formal specification document
- Be concise — an optimized prompt should be as short as possible while being unambiguous. Don't pad with unnecessary words.
- Output only the prompt — no meta-commentary, no "Here's the optimized version:", just the prompt text itself
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

