agentleFS
ZhiMaHangZhiMaHang/playbook/skills/prompt-optimizer/SKILL.md

prompt-optimizer

Skill1 starsChanged 4 months agoNo licenceView on GitHub

把用户一句没说透的话整理成可直接发送的提示词,全程零猜测——成品里每个信息点都来自用户原话或用户亲手的选择,绝不替用户猜、不做任何"合理推断"。固定三步交互:先判断原话有无实质歧义(有则出选择题让用户定读法),再出恰好两道覆盖关键未述维度的选择题(每道末项是可自由填写的"其他"),最后把原话与用户的各次选择纯拼接成成品——不扩写、不套模版、不加角色、不编造任何背景;成品出来后再追加一道收尾选择:直接把成品当任务执行,或到此为止由用户自行复制发送。凡用户要"优化提示词""优化这句话""改写这个 prompt",或直接丢来一句模糊的需求/bug 描述求整理,或抱怨发给 AI 的提示词效果不好时,都用本技能;面向所有工种(开发、产品、运营、文案……),不限编程场景。若用户是在布置一件要办的事、描述想做的项目并想把整件事说清楚,用 five-sentence-brief 而非本技能;若用户点名"四段式""结构化提示词""目标/背景/输出要求/边界约束",或明确要求成品里写出边界约束/禁止事项(如"写个带约束的提示词"),用 four-part-prompt 而非本技能。

79 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • ronmkrSkill

    agent-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

  • junimnjwSkill

    continuous-agent-loop

    Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.

    Also in 3 projects that use this

  • junimnjwSkill

    agent-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-proofpilotSkill

    context-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

  • LangChainSkill

    docker-patterns

    Best practices for Docker containerization and multi-stage builds

    Also in 4 projects that use this

  • royaluniondesign-sysSkill

    deployment-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

The file

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.