提示增强器

SKILL开发规范

原名 prompt-enhancer

开发规范 联网访问 许可证明确 OpenClaw
安装这个技能

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

累计安装 73,099 本周 3,140
GitHub 星标 7 仓库 prompt-enhancer
下载量 25,622 技能市场下载数
权限级别 联网访问 安装前请确认风险范围
许可证 许可证明确 MIT-0

安装

ClawHub 市场
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
openclaw skills install prompt-enhancer

技能档案

开发规范
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方gyaan-dub仓库 prompt-enhancer · 版本 1.0.1
宿主客户端OpenClaw技能可被这些客户端加载
安装方式ClawHub 市场安装包 gyaan-dub/prompt-enhancer
权限级别联网访问安装前请确认风险范围
许可证MIT-0许可证明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-05-01上游最后核验时间 · 数据更新 未标注
正文体量6.2 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

5 项能力
上游给出的能力概览与适用场景
  • 按任务关键词查找相关 Skills
  • 展示可复制的安装命令
  • 保留来源站点、仓库和原始说明,方便继续核验
  • 补充不同宿主或平台的使用分布数据
  • 展示第三方安全扫描或审计结果
OpenClaw 用户查找和安装 Skill 时用户想查找某类 Agent Skill 时需要根据任务场景推荐可安装能力包时需要对比不同来源的安装命令和来源信息时

权限与风险

联网访问
装之前先读完这段

安装与使用指南

安装步骤

本站只展示命令,不托管安装包,也不自动执行。

怎么用

安装后应在对应宿主中按原始 README 的触发条件使用;当前草稿只做目录说明,具体调用方式由规则抽取,异常条目再复核。

SKILL.md 全文

6.2 KB
模型实际读到的说明书原文,来自技能仓库

Prompt Enhancer

You have a Prompt Enhancer skill. When a user prefixes their message with p: or prompt:, you must enhance their rough input into a high-quality structured prompt, then execute that enhanced prompt to produce a superior response.

This is a two-step process: first rewrite the prompt, then answer the rewritten prompt.

Trigger Detection

Check every incoming user message for the trigger prefix:

  • The message starts with p: or prompt: (case-insensitive, leading whitespace is OK)
  • Everything after the prefix (trimmed) is the raw user intent
  • If the prefix appears mid-sentence, do NOT trigger — only match at the start

If there is no trigger prefix, process the message normally. This skill does nothing for unprefixed messages.

Empty Input Handling

If the user sends just p: or prompt: with no content (or only whitespace after the prefix), reply with:

> What would you like me to help with? Usage: Start your message with p: followed by what you want.
> Example: p: write me a python script that sorts a list

Do not proceed further.

Step 1: Enhance the Prompt

Take the raw user intent and mentally rewrite it into an optimized prompt using these principles:

1. Role Assignment

Assign yourself a specific expert role relevant to the task.
Example: "As a senior full-stack developer specializing in React and Node.js..."

2. Task Clarification

Restate the task with precision and specificity. Infer what the user actually needs, including things they didn't explicitly mention. Break complex tasks into clear subtasks or steps if appropriate.

3. Context Inference

Fill in reasonable assumptions about what the user probably wants. A user asking for "a landing page" probably wants responsive design, a CTA, modern styling, etc. If assumptions are significant, note them briefly so you can adjust if needed.

4. Output Format Specification

Decide exactly how to structure the response. Examples: provide code in a single file, use markdown headers, return JSON with specific fields, write in paragraphs not bullet points.

5. Quality Criteria & Constraints

Set the quality bar: production-ready, beginner-friendly, concise, etc. Add relevant constraints: word count, tech stack, audience level, tone. Include edge cases or considerations the user likely forgot.

6. Proportional Complexity

Critical: Match the depth of enhancement to the complexity of the request.
- Simple questions (p: what's the capital of France) get minimal enhancement — just slight clarification, no over-engineering
- Complex requests (p: build me a CRM system) get full structured treatment

Step 2: Show the Enhanced Prompt

Before giving your response, always show the user what enhanced prompt you are answering. Format it as a quote block:

> 🔧 Enhanced prompt:
> [Your rewritten, optimized prompt here]

This serves two purposes:
- Transparency: The user sees what was actually asked
- Education: Over time, users learn what good prompts look like

Step 3: Execute the Enhanced Prompt

Now answer the enhanced prompt fully, as if it were the original instruction. Give your complete, high-quality response below the quoted enhanced prompt.

Complete Response Format

Your response must always follow this structure when the skill triggers:

> 🔧 Enhanced prompt:
> [The enhanced prompt]

[Your full response to the enhanced prompt]

Example Transformations

Simple Request

User: p: explain recursion
Enhanced prompt: You are an experienced computer science educator. Explain recursion in a way that's clear and intuitive. Start with a simple real-world analogy, then show how it works in programming with a concrete code example (use Python). Explain the base case and recursive case. Keep the explanation concise and accessible to someone who understands basic programming but is new to recursion.

Creative Task

User: p: write a story about a robot
Enhanced prompt: You are a skilled fiction writer. Write a short story (800–1200 words) about a robot. The story should have a clear narrative arc with a beginning, conflict, and resolution. Give the robot a distinct personality and an emotional core that makes the reader care about them. Ground the story in a specific, vivid setting. Use descriptive prose and natural dialogue. The tone can range from whimsical to poignant — choose what serves the story best.

Technical Task

User: p: make me a todo app
Enhanced prompt: You are a senior frontend developer. Build a fully functional todo app as a single HTML file with embedded CSS and JavaScript. Requirements: Add, complete (toggle), and delete todos. Todos persist in localStorage so they survive page refresh. Clean, modern UI with smooth transitions and hover states. Responsive design that works on mobile and desktop. Empty state message when no todos exist. Input validation (prevent empty todos). Show count of remaining incomplete items. Use vanilla JavaScript — no frameworks. The code should be clean, well-commented, and production-quality.

Minimal Enhancement (Simple Question)

User: p: what's the tallest building in the world
Enhanced prompt: What is the tallest building in the world as of current records? Include the building name, location, height in both meters and feet, and the year it was completed.

Rules

  • Preserve the user's original intent exactly — enhance, never alter the core meaning
  • Write the enhanced prompt as direct instructions (not as a meta-description about what to do)
  • Keep enhanced prompts as concise as possible while being thorough — no filler
  • If the user's input is in a non-English language, write the enhanced prompt in the same language
  • If the user's input contains code snippets, preserve the code exactly and enhance only the surrounding instructions
  • If the input is already a well-structured prompt, make minimal changes — don't over-engineer what's already good

安全信息

审计结论
未标注不代表已通过审计
安全审计VirusTotal、ClawScan、Static analysis第三方安全审计平台给出的结论

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-05-01。