prompt-optimizer
Skill1 starsChanged 11 days agoMITView on GitHub
Use first on every build request. Turns a rough idea into a complete engineering brief (BRIEF.md) that unlocks the model's full capability: product, flows, stack, data model, API, auth, security, design and 3D direction, acceptance criteria and verification. Expands where it prevents rework, compresses where it is noise.
- Reads credentials
75 other projects use a version of this.
Adopted by
Most recently taken up by
- learn-with-santosh/claude-master-skillstheir own version, first seen Nov 15, 2026
- GabrieleDattile/agent-superpowerstheir own version, first seen Nov 15, 2026
- 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
Used with
Projects with it also use agent-architecture-audit, continuous-agent-loop and 10 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.
ronmkrSkillagent-architecture-audit
Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature.
Also in 3 projects that use this
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
Other versions75 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 75
- github/awesome-copilot★ 41ksame name
- daymade/claude-code-skills★ 1.5ksame name
- getsentry/skills★ 1.2ksame 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
65 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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- adapters/claude.mdCLAUDE.md
- asset-intakeSkill
- client-collabSkill
- design-tasteSkill
- diff-guardSkill
- motion-craftSkill
- no-slop-startSkill
- orchestratorSkill
- plannerSkill
- reference-teardownSkill
- reviewerSkill
- scene-3dSkill
- storyboardSkill
- teach-modeSkill
- visual-qaSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 61 edited versions we read keep these.
8
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 14
If the user says "just do it", skip questions and flag assumptions instead.
- Distinctive: line 25
Ask only blocking questions: at most 5, in one message, each with a recommended default.
- Distinctive: line 55
Run the code: start the app, call the endpoints, run the tests, take screenshots.
- Distinctive: line 56
Write tests for business logic, auth rules and data constraints before polishing the UI.
- Distinctive: line 57
Read documentation and source instead of guessing an API.
- Distinctive: line 58
If the same error blocks you twice, change approach and say why.
- Distinctive: line 64
Do not restate the user's request.
- Distinctive: line 65
Put long reference material in files and link to it.
“Common” is measured: kept by at least 6 in 10 of the 61 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 (Brief Builder)
Goal: convert a rough request into a brief that a senior team could build from without asking questions. Rework is where tokens and quality are lost, so expand the decisions that prevent rework and cut filler.
0. Modes (pick silently)
- quick: a fix, a copy change, one function. Restate it in one sentence plus one acceptance check. No BRIEF.md.
- build (default): a new feature or app. Write BRIEF.md.
- full: a new product, or anything touching accounts, stored data, payments, third-party APIs or deployment. Write BRIEF.md with every section and a risk list. If the user says "just do it", skip questions and flag assumptions instead.
1. Read before you write
- Inspect the repo first: package or requirements files, folder layout, README, env examples, existing conventions. Reuse the existing stack and style over inventing a new one.
- Note the user's stated skill level and preferred languages. If teach-mode is on, plan teaching hooks.
2. Classify the request (more than one may apply)
- Marketing or brand site, immersive 3D site, web app (CRUD or dashboard), full-stack app with accounts, API or service, data or ML pipeline, CLI or bot, mobile.
- Classification decides which skills run: UI and 3D work uses design-taste, motion-craft, scene-3d. Server work uses the backend, data, API, auth and security sections below and their skills if present.
3. Question policy
- Ask only blocking questions: at most 5, in one message, each with a recommended default. A question is blocking if the answer changes the architecture, spends money, handles personal data, is irreversible, or the request contradicts itself.
- Everything else becomes an assumption listed in BRIEF.md so the user can correct it.
- Autopilot (only when the user's message contains the literal word "autopilot"): never block. Assume, flag, continue.
4. BRIEF.md (each section as long as it needs, no padding)
- Goal and success: the outcome in a paragraph, who uses it, what done looks like, and acceptance criteria written as testable statements.
- Scope: must, should, will not (non-goals).
- Users and flows: each primary journey step by step, including error, empty, loading and unauthorized states.
- Architecture: stack with reasons, folder structure, services and boundaries, environment variables, third-party services.
- Data: entities, fields, types, relations, indexes, constraints, migrations, seed data. Choose the database and justify it.
- API: endpoint table (method, path, auth, request, response, errors), validation, pagination, rate limits, one consistent error format. For external APIs: auth method, rate limits, retries with backoff, webhook signature verification, a mock for development.
- Auth and access: sign-in method, session or token strategy, roles and permissions, a route protection map, logout and revocation.
- Security and privacy: threats specific to this app, secret handling, input validation, CORS and CSRF, rate limiting, logging without personal data, dependency hygiene.
- UX and design: for UI work, list the inputs design-taste needs (audience, mood words, brand, assets) and which archetype or style is likely. Do not invent the visual design here.
- Quality plan: tests (unit, integration, end to end), what visual-qa captures, performance budgets (page weight, FPS, response time), accessibility.
- Delivery: run instructions, scripts, environment setup, deployment target, README outline.
- Risks and open questions, each with a default.
- Teaching hooks: 3 to 5 concepts worth explaining if teach-mode is on.
5. Decision defaults (use unless the request or the repo says otherwise)
- Language: match the repo, then the user's stated languages. Python: FastAPI with Pydantic. JavaScript: Node with Express or Fastify, or Next.js route handlers. Java: Spring Boot. Go: net/http or chi.
- Database: SQLite for local development, PostgreSQL for production. Use an ORM or query builder (Prisma, Drizzle, SQLAlchemy, JPA) and always use migrations. Add an index for every foreign key and every frequent filter. Use a document store, cache or queue only when a concrete need is stated.
- Auth with Google: OAuth 2.0 / OpenID Connect with PKCE through a maintained library (Auth.js, Passport, Authlib, Spring Security). Verify the ID token issuer, audience and expiry. Store the provider's stable user id (sub), not only the email. Prefer a server-side session in an HttpOnly, Secure, SameSite cookie over tokens in localStorage. Add CSRF protection to state-changing routes. Keep roles in the database. Never write your own crypto or password hashing.
- Secrets: .env plus a committed .env.example, validate environment variables at startup, never commit real secrets.
- API: REST with a consistent error shape, an OpenAPI document, idempotency keys for payments and webhooks, signature verification for incoming webhooks.
- Frontend: immersive 3D sites use vanilla ES modules or Vite with three.js, GSAP and Lenis. Apps use React or Next.js. Do not add a framework without a reason.
- Versions: read the lockfile or the package docs at build time. Do not trust memory for library APIs.
6. Working agreement (copy this into BRIEF.md)
- Build vertical slices end to end, then widen.
- Run the code: start the app, call the endpoints, run the tests, take screenshots. Never report done on code that was not executed.
- Write tests for business logic, auth rules and data constraints before polishing the UI.
- Read documentation and source instead of guessing an API.
- If the same error blocks you twice, change approach and say why.
- Handle failure states everywhere: network, empty, unauthorized, validation.
- State what was not verified.
7. Token discipline
- Reference other skills by name instead of repeating their rules.
- Do not restate the user's request. No filler.
- Put long reference material in files and link to it.
8. What to show the user (short)
Mode, project type, a five-line summary of the brief, the assumptions list. Ask for corrections only if a blocking question remains, then hand BRIEF.md to the planner.
9. Final check
- Every requirement became a testable acceptance criterion.
- Apps with users or storage have data, API and auth sections.
- Assumptions, risks and open questions (with defaults) are listed.
- A stranger could build from this brief without asking anything.
10. Collaboration handoff
For UI, 3D or brand work, do not decide taste here. Write BRIEF.md with the functional parts only, and list design inputs in section 9 as open questions. Then hand off to client-collab, which creates DECISIONS.md and runs Gate 0 (assets and references) and the rest. In autopilot, assume and record the assumptions instead.
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.

