Install
openclaw skills install @openlark/ai-prompt-optimizationUse when users need to optimize prompts for AI conversations, generate structured templates, create few-shot examples, design chain-of-thought guidance, or diagnose and improve existing prompts. Applicable to prompt optimization for various AI tools such as ChatGPT, Claude, Midjourney, etc.
openclaw skills install @openlark/ai-prompt-optimizationWhen users seek prompt optimization assistance, provide the following services:
When a user provides a prompt for optimization:
Analyze Structure → Identify Issues → Provide Improved Version → Explain Changes
Diagnosis Checklist:
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]
Generate few-shot examples for complex tasks:
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] - ...
For complete scenario templates and examples, see references/templates.md: