← 返回 Skills 市场
openlark

AI Prompt Optimization

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
85
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

AI Prompt Optimization

Core Capabilities

When users seek prompt optimization assistance, provide the following services:

  1. Diagnosis & Optimization - Analyze existing prompt issues and provide specific improvement plans
  2. Template Generation - Generate structured prompt templates for different scenarios
  3. Few-Shot Generation - Create example-driven few-shot prompts
  4. 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:

  1. Select Representative Samples - 3-5 examples covering different variants
  2. Format Examples - Input → Output structure
  3. 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

  1. Specific > Vague - Clearly specify what is wanted and what is not
  2. Structured > Scattered - Use clear segmentation and markers
  3. Constrained > Free - Appropriate constraints improve output quality
  4. Iterative > One-Shot - Encourage users to continuously optimize based on output
安全使用建议
This skill is low-risk and internally consistent, but exercise standard caution: do not paste sensitive secrets, credentials, or private data into prompts you ask the skill to optimize; review optimized prompts for instructions that might cause a model to reveal or infer private information; test with non-sensitive examples before using in production; if you prefer to prevent autonomous use, you can disable the skill or restrict agent autonomy in your platform settings.
功能分析
Type: OpenClaw Skill Name: ai-prompt-optimization Version: 1.0.0 The skill bundle is a legitimate tool for AI prompt optimization, providing structured workflows and templates for tasks like few-shot generation and chain-of-thought design. Analysis of SKILL.md and references/templates.md reveals no evidence of malicious intent, data exfiltration, or unauthorized command execution; the content is entirely focused on improving AI interactions through prompt engineering.
能力评估
Purpose & Capability
The name/description (prompt optimization, templates, few-shot, CoT) matches the SKILL.md content and the provided templates. No unrelated credentials, binaries, or config paths are declared or required.
Instruction Scope
SKILL.md contains guidance and templates for analyzing and constructing prompts; it does not instruct the agent to read local files, system configuration, environment secrets, or to call external endpoints beyond normal model invocation. Referencing the included references/templates.md is consistent with its stated purpose.
Install Mechanism
There is no install spec and no code files; the skill is instruction-only, which minimizes disk writes and execution risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The templates and workflows do not rely on external secrets or unrelated services.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system presence. It does not modify other skills or system-wide settings according to the provided files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-prompt-optimization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-prompt-optimization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the ai-prompt-optimization skill. - Diagnose and optimize existing AI prompts with structured improvement plans. - Generate prompt templates tailored for various use cases and AI tools. - Create few-shot example prompts and provide rationale for their selection. - Design chain-of-thought prompt structures to guide reasoning. - Provide best practices and detailed checklists for prompt optimization.
元数据
Slug ai-prompt-optimization
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论