360 Secure SkillHub
360 安全技能中心

Oc Prompt Optimizer

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

分类:效率
jiepu110
jiepu110
热度 18.97
最近更新 2026-06-13 21:36:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jiepu110/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.