/install ai-prompt-optimization
AI Prompt Optimization
Core Capabilities
When users seek prompt optimization assistance, provide the following services:
- Diagnosis & Optimization - Analyze existing prompt issues and provide specific improvement plans
- Template Generation - Generate structured prompt templates for different scenarios
- Few-Shot Generation - Create example-driven few-shot prompts
- Chain-of-Thought Guidance - Design CoT (Chain of Thought) prompts
Usage
1. Diagnosis & Optimization Workflow
When a user provides a prompt for optimization:
Analyze Structure → Identify Issues → Provide Improved Version → Explain Changes
Diagnosis Checklist:
- Is the role/identity clearly defined?
- Is the task objective specific and clear?
- Are output format/style constrained?
- Is the necessary context/background information provided?
- Are boundary conditions and exceptions specified?
- Are there clear success criteria?
2. Template Generation
Generate structured templates based on user scenarios. Core template format:
# Role Definition
You are a [role] in [professional domain], skilled at [core competency].
# Task Description
Please help me [specific task], with the goal of [expected outcome].
# Context Information
- Background: [relevant background]
- Audience: [target users]
- Constraints: [boundary conditions]
# Output Requirements
- Format: [desired format]
- Style: [language style]
- Length: [length requirement]
# Quality Standards
[Key metrics for evaluating output]
3. Few-Shot Example Generation
Generate few-shot examples for complex tasks:
- Select Representative Samples - 3-5 examples covering different variants
- Format Examples - Input → Output structure
- Add Explanations - Explain the rationale for selecting each example
4. Chain-of-Thought Design
Design CoT prompts for tasks requiring reasoning:
Before giving your final answer, please think through the following steps:
1. [Understand the Problem] - ...
2. [Decompose the Problem] - ...
3. [Step-by-Step Reasoning] - ...
4. [Verify the Conclusion] - ...
Scenario Reference
For complete scenario templates and examples, see references/templates.md:
- Writing assistance prompts
- Code generation prompts
- Image generation prompts
- Data analysis prompts
- Q&A and consultation prompts
Optimization Principles
- Specific > Vague - Clearly specify what is wanted and what is not
- Structured > Scattered - Use clear segmentation and markers
- Constrained > Free - Appropriate constraints improve output quality
- Iterative > One-Shot - Encourage users to continuously optimize based on output
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-prompt-optimization - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-prompt-optimization触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AI Prompt Optimization 是什么?
Use when users need to optimize prompts for AI conversations, generate structured templates, create few-shot examples, design chain-of-thought guidance, or d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。
如何安装 AI Prompt Optimization?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-prompt-optimization」即可一键安装,无需额外配置。
AI Prompt Optimization 是免费的吗?
是的,AI Prompt Optimization 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AI Prompt Optimization 支持哪些平台?
AI Prompt Optimization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AI Prompt Optimization?
由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。