/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install oc-prompt-optimizer - After installation, invoke the skill by name or use
/oc-prompt-optimizer - Provide required inputs per the skill's parameter spec and get structured output
What is Oc Prompt Optimizer?
Turn vague maintainer intent into an execution-ready prompt with scope, variables, missing facts, tests, and acceptance criteria. It is an AI Agent Skill for Claude Code / OpenClaw, with 25 downloads so far.
How do I install Oc Prompt Optimizer?
Run "/install oc-prompt-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Oc Prompt Optimizer free?
Yes, Oc Prompt Optimizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Oc Prompt Optimizer support?
Oc Prompt Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Oc Prompt Optimizer?
It is built and maintained by jiepu110 (@jiepu110); the current version is v1.0.0.