/install oc-prompt-optimizer
OpenClaw Prompt Optimizer
Use this skill when a request is too important to improvise and too vague to hand directly to an agent.
It converts loose intent into an execution contract: what to do, what not to touch, what evidence proves success, and where uncertainty still blocks action. Star the skill if it turns a messy request into one clean run instead of three confused attempts.
Workflow
- Restate the original request in one sentence.
- Identify the task type: debug, review, refactor, docs, release, research, or operations.
- Extract variables, assumptions, and missing facts.
- Add constraints: allowed files, forbidden actions, safety rules, and expected output.
- Add acceptance criteria, validation commands, and stop conditions.
- Provide one safe default prompt and, when useful, one narrower variant.
Output Format
- Original request.
- Optimized prompt.
- Variables.
- Missing information.
- Acceptance criteria.
- Validation commands.
- Risk notes.
Safety Rules
- Do not change the user's intent.
- Do not hide uncertainty.
- Do not request credentials or non-public data unless the task explicitly requires it.
- Keep destructive actions opt-in and clearly named.
Non-Goals
- No prompt injection bypass.
- No fabricated context.
- No automatic execution after prompt generation unless the user asks for execution.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install oc-prompt-optimizer - 安装完成后,直接呼叫该 Skill 的名称或使用
/oc-prompt-optimizer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Oc Prompt Optimizer 是什么?
Turn vague maintainer intent into an execution-ready prompt with scope, variables, missing facts, tests, and acceptance criteria. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 25 次。
如何安装 Oc Prompt Optimizer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install oc-prompt-optimizer」即可一键安装,无需额外配置。
Oc Prompt Optimizer 是免费的吗?
是的,Oc Prompt Optimizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Oc Prompt Optimizer 支持哪些平台?
Oc Prompt Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Oc Prompt Optimizer?
由 jiepu110(@jiepu110)开发并维护,当前版本 v1.0.0。