prompt-optimizer
Skill0 starsChanged 2 months agoMITView on GitHub
Analyze, critique, and optimize system prompts, task instructions, and agent framing. Enhances structural clarity, edge-case handling, negative constraints, and output schema adherence without executing the underlying task. Advisory only; does not mutate installed skills. Use when refining prompt text, reducing ambiguity, or fixing prompt drift. Not for ordinary coding tasks, prose humanizing (humanizer), or writing agent documentation (writing-for-agents).
72 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
- Samuel-Shek/prompt-optimizertheir own version, first seen Nov 8, 2026
- EchoUser005/prompt-optimizertheir own version, first seen Nov 8, 2026
- dreamor/prompt-optimizer-skilltheir own version, first seen Nov 8, 2026
- rodeyseijkens/skillstheir own version, first seen Nov 6, 2026
Used with
Projects with it also use continuous-agent-loop, agent-harness-construction and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
junimnjwSkillcontinuous-agent-loop
Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.
Also in 3 projects that use this
junimnjwSkillagent-harness-construction
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
Also in 3 projects that use this
get-proofpilotSkillcontext-budget
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.
Also in 5 projects that use this
LangChainSkilldocker-patterns
Best practices for Docker containerization and multi-stage builds
Also in 4 projects that use this
royaluniondesign-sysSkilldeployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
Also in 3 projects that use this
GSA-TTSSkillarchitecture-decision-records
Load when a user wants architecture decision records (ADRs) drafted from requirements or a design discussion, asks which decisions need an ADR, or wants an ADR draft reviewed for one-sided trade-offs, weak alternatives or missing requirement links. Not for setting up a project's whole documentation system (project-documentation-system).
Also in 3 projects that use this
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- github/awesome-copilot★ 41ksame name
- daymade/claude-code-skills★ 1.5ksame name
- getsentry/skills★ 1.1ksame name
- chujianyun/skills★ 751same name
- Cranot/roam-code★ 517same name
- loulanyue/awesome-claude-notes★ 272same name
- Fmarzochi/EGC★ 61same name
- drvoss/everything-copilot-cli★ 48same name
- khalilbenaz/claude-skills-collection★ 28same name
- kunwl123456/zeroclaw-skills-collection★ 27same name
62 more not listed
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 repository47 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- academicSkill
- adhdSkill
- agent-architecture-auditSkill
- api-designSkill
- automation-audit-opsSkill
- browser-actSkill
- chrome-devtools-axiSkill
- click-path-auditSkill
- codebase-designSkill
- code-tourSkill
- contract-firstSkill
- cost-aware-llm-pipelineSkill
- diagnosing-bugsSkill
- diagram-designSkill
- domain-modelingSkill
- emil-design-engSkill
- eval-harnessSkill
- found-this-designSkill
- full-audit-keamananSkill
- full-performance-auditSkill
- gh-axiSkill
- grill-with-docsSkill
- humanizerSkill
- hyperframesSkill
- id-demo-videoSkill
- img2threejsSkill
- impeccableSkill
- install-anti-slopSkill
- markitdownSkill
- matt-code-reviewSkill
- mongodb-opsSkill
- playwright-qaSkill
- prototypeSkill
- researchSkill
- scroll-craftSkill
- scroll-worldSkill
- skill-stocktakeSkill
- smartbook-ingestSkill
- smartdocSkill
- supabase-opsSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- vercel-opsSkill
- visual-studioSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Advisory Role Only: Never execute the task described within the prompt.
- Very specific: line 38
Use clear XML-style tags or markdown blocks (<context>, <input>, <instructions>) to fence user inputs and prevent injection or ambiguity.
“Common” is measured: kept by at least 6 in 10 of the 58 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
Prompt Optimizer
Advisory specialist for analyzing, critiquing, and optimizing prompt engineering artifacts.
This skill reviews draft prompts, user task instructions, and system directives to maximize clarity, predictability, model steering, and constraint adherence.
Operating Principles
- Advisory Role Only: Never execute the task described within the prompt; focus exclusively on analyzing and refining the prompt itself.
- Zero Auto-Mutation: This skill does NOT automatically overwrite installed skills or configuration files in
~/.config/opencode/. It produces recommended prompt text for the user to review and adopt.
Boundaries & Handoffs
| Need | Route |
| Removing AI-writing tells and polishing natural prose | humanizer / /unslop |
| Authoring or modifying project SKILL.md, AGENTS.md, or tool definitions | writing-for-agents |
| Measuring prompt accuracy across test datasets and computing pass@k | eval-harness |
| Structuring system prompts for prefix caching efficiency | cost-aware-llm-pipeline |
| Analyzing and optimizing prompt clarity, constraints, and schemas | prompt-optimizer |
Optimization Framework
Consult references/rubric.md for quality evaluation criteria:
- Role & Objective Framing:
- Establish an unambiguous persona and primary mission.
- Clarify the operational context and assumptions.
- Context & Variable Delimiters:
- Use clear XML-style tags or markdown blocks (
<context>,<input>,<instructions>) to fence user inputs and prevent injection or ambiguity.
- Use clear XML-style tags or markdown blocks (
- Step-by-Step Procedure:
- Deconstruct complex tasks into numbered, deterministic phases.
- Mandate pre-flight checks before destructive actions.
- Negative Constraints & Guardrails:
- Replace vague warnings ("be careful") with explicit prohibitions ("Do NOT call tool X before tool Y completes").
- Define fallback behavior when required information is absent.
- Output Schema & Format Locks:
- Specify exact output formatting (e.g. JSON schema, table columns, markdown headings).
- Provide minimal, clean few-shot exemplars demonstrating target format.
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.

