Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

prompt-refiner即时精炼者

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

4,339

周安装

179

GitHub Stars

1

下载量

1,418
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-refiner(即时精炼者)
来源仓库:https://github.com/lq434239/prompt-refiner
安装命令:
openclaw skills install prompt-refiner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prompt-refiner

简介

用于优化提示词结构和可执行性,提升 Agent 任务边界清晰度。

  • 适合规范输出格式、拆分操作步骤或增强提示词复用性。
  • 通过结构化重构输入内容,生成更精准、可落地的系统指令。
  • 需保留真实业务约束,避免将示例当作硬性规则执行。
  • 涉及高风险操作时应明确权限边界和失败处理机制。prompt-refiner 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
prompt-refiner
description
Use when user input is vague, underspecified, lacks boundaries or acceptance criteria, or would benefit from being reframed into a more executable prompt before work begins. Also use when user explicitly asks to optimize/refine/improve a prompt.

prompt-refiner

A prompt is not just wording polish — it is task clarification, boundary setting, and verification shaping.

Refine vague user prompts into clear, actionable, verifiable versions. Show the refined result and let the user confirm before execution. Works as a closed loop with session-learner, which captures user choice preferences over time.

Quick Reference

SituationAction
Vague requestRefine first
Complete promptExecute directly, no popup
Substantial improvementShow refined + popup choose
No substantial improvementSkip popup, execute original
User says "just do it"Auto-apply
User says "only optimize"Return refined, don't execute

Continue Modes

  1. Popup-confirm (default) — Show refined prompt, popup to choose refined vs original, execute after choice
  2. Auto-apply — When user says "just do it / skip confirmation", show refined then execute immediately
  3. Optimize-only — When user only asks to refine without executing, return refined result only

When NOT to Use

  • User input is already well-structured with clear goals, constraints, and acceptance criteria
  • Single-step operations (delete a line, rename a variable, change a single string)
  • Simple factual questions or explanations
  • User explicitly says "don't optimize" or "just do it"

Workflow

  1. Extract original prompt and current session context (goals, constraints, tech stack, errors, expected output).
  2. Generate refined prompt, ensuring:

- Core intent unchanged - Goals and boundaries explicit - Output format verifiable - Language concise, no fluff

  1. Produce result based on Continue Mode.
  2. After user makes a choice, generate a learning signal for session-learner — capture preference pattern, never record full prompt text.

Refined Prompt Structure

Include the following blocks as needed (trim, don't mechanically stack):

  • Goal
  • Context
  • Constraints / Non-goals
  • Execution Requirements
  • Output Format
  • Acceptance Criteria

For detailed patterns and examples, see references/prompt-patterns.md.

Output Templates

A) Popup-confirm (default)

First, judge whether refinement adds real value. If the refined prompt only tweaks wording without adding explicit goals/constraints/output format/acceptance criteria, and doesn't significantly reduce ambiguity, it has no substantial optimization value.

  • No substantial value: Don't popup, don't interrupt. Execute with the original prompt directly.
  • Has substantial value: Execute the two steps below. Do not skip or merge them.

Step 1 (required): Output the refined prompt as plain text in the chat area first.

Optimized Prompt <full refined prompt content>

Step 2 (required, after step 1): Call AskUserQuestion popup for user to choose. Options:

  • A: Use refined prompt to continue (recommended)
  • B: Use original prompt to continue

Forbidden:

  • Do not popup without showing the refined prompt content first
  • Do not put the refined prompt inside AskUserQuestion description as a substitute for step 1
  • Steps 1 and 2 must be in the same response

Execute after user chooses.

B) Auto-apply

Optimized Prompt <refined prompt>

Then execute immediately.

C) Optimize-only

Optimized Prompt <refined prompt>

Do not execute the task.

Heuristics

  • Rewrite vague phrases ("optimize it / make it better / fix it up") into actionable steps with clear criteria.
  • Fill in missing inputs, boundary conditions, and completion definitions.
  • For code tasks: specify scope, verification method, expected deliverables.
  • For content tasks: specify audience, tone, length, structure constraints.
  • If critical context is missing, ask the minimum necessary clarification; otherwise proceed.

Integration with session-learner

  • When user chooses refined or rejects it, this is a preference signal for session-learner.
  • session-learner should only summarize rules (e.g., "user prefers seeing refined version before confirming"), never record full prompt text.
  • Over time, session-learner builds a preference profile that makes prompt-refiner increasingly aligned with user habits.

Priority Rules

  • When user explicitly specifies a flow, follow user instructions.
  • When no explicit instruction, use Popup-confirm.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.94%
按下载量换算1,403

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills