360 Secure SkillHub
360 安全技能中心

Oc Prompt Optimizer

该 Skill 将模糊的维护者意图转化为可执行的提示词契约:重述原始请求、识别任务类型、提取变量与缺失信息、约束允许文件与禁止动作、补充安全规则、给出验收标准、验证命令与停止条件,并输出一版安全默认提示词及可选的窄化变体。它不自动执行任务,也不提供提示注入绕过或凭据索取能力。

jiepu110
jiepu110
热度 25.84
最近更新 2026-06-13 21:36:39
分类:效率依赖:纯提示词应用场景:工作流 / 模板 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add oc-prompt-optimizer
Metadata
name
oc-prompt-optimizer
description
Turn vague maintainer intent into an execution-ready prompt with scope, variables, missing facts, tests, and acceptance criteria.

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.

Support

If this skill helps you avoid a risky restart, public leak, vague task, unsafe dependency, or untraceable conclusion, star it on ClawHub or star the GitHub repo. Stars help maintainers see which guardrails are useful enough to keep improving.

Workflow

  1. Restate the original request in one sentence.
  2. Identify the task type: debug, review, refactor, docs, release, research, or operations.
  3. Extract variables, assumptions, and missing facts.
  4. Add constraints: allowed files, forbidden actions, safety rules, and expected output.
  5. Add acceptance criteria, validation commands, and stop conditions.
  6. 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.