meta-prompting
Self-improving prompts through meta-level optimization
Best use case
meta-prompting is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Self-improving prompts through meta-level optimization
Teams using meta-prompting should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/meta-prompting/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How meta-prompting Compares
| Feature / Agent | meta-prompting | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Self-improving prompts through meta-level optimization
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Meta-Prompting Skill
Uses the LLM to optimize its own prompts for better results.
## Core Concept
Meta-prompting treats the LLM as both:
1. **Executor**: Runs the actual task
2. **Optimizer**: Improves the prompt for next iteration
## When to Use
- Repeated similar tasks
- Suboptimal initial results
- Learning new task patterns
- Building prompt libraries
## Meta-Prompt Structure
```
You are a prompt optimization expert.
ORIGINAL PROMPT:
{original_prompt}
RESULT QUALITY: {quality_score}/10
ISSUES IDENTIFIED:
{issues}
Generate an improved version of this prompt that:
1. Addresses the identified issues
2. Maintains the core intent
3. Adds clarity where needed
4. Includes examples if helpful
IMPROVED PROMPT:
```
## Optimization Dimensions
### 1. Clarity Enhancement
- Remove ambiguity
- Add specific constraints
- Define expected format
### 2. Example Addition
- Few-shot examples for pattern matching
- Edge case examples
- Format demonstrations
### 3. Instruction Refinement
- Break complex instructions into steps
- Add verification checkpoints
- Include success criteria
### 4. Context Optimization
- Remove irrelevant context
- Highlight critical information
- Structure for attention patterns
## Iterative Improvement Loop
```
Round 1: Execute original prompt
↓
Score result (0-10)
↓
Round 2: Meta-optimize prompt
↓
Execute improved prompt
↓
Score result
↓
If improved: Save as new baseline
If not: Revert or try different optimization
↓
Repeat until convergence or max iterations (3-5)
```
## Prompt Scoring Criteria
| Dimension | Weight | Evaluation |
|-----------|--------|------------|
| Correctness | 40% | Does output match expected? |
| Completeness | 25% | All requirements addressed? |
| Clarity | 20% | Output is clear and useful? |
| Efficiency | 15% | Minimal tokens for result? |
## Meta-Prompt Templates
### For Task Prompts
```
Analyze this task prompt and suggest 3 improvements:
{prompt}
Consider:
- Is the goal clear?
- Are constraints explicit?
- Would examples help?
- Is the format specified?
```
### For System Prompts
```
Review this system prompt for an AI assistant:
{prompt}
Optimize for:
- Role clarity
- Behavioral consistency
- Edge case handling
- Output quality
```
### For Chain-of-Thought
```
This CoT prompt produces inconsistent reasoning:
{prompt}
Restructure to:
- Guide step-by-step thinking
- Include verification steps
- Handle common errors
```
## Storing Optimized Prompts
Save successful prompts to the skill library:
```json
{
"task_type": "code_review",
"original_prompt": "...",
"optimized_prompt": "...",
"improvement": "+2.3 quality score",
"iterations": 3,
"date": "2026-01-26"
}
```
## Integration
- **Learning Engine**: Store optimized prompts as patterns
- **Memory System**: Recall best prompts for task types
- **Skill Library**: Versioned prompt templates
---
*Reference: "Large Language Models as Optimizers" (OPRO, 2023)*Related Skills
ads meta
Meta Ads deep analysis covering Facebook and Instagram advertising. Evaluates 46 checks across Pixel/CAPI health, creative diversity and fatigue, account structure, and audience targeting. Includes Advantage+ assessment. Triggers on: "Meta Ads", "Facebook Ads", "Instagram Ads", "Advantage+", "Meta campaign", "Meta audit", "FB ads"
/do
> The agent's primary skill. Customize this to match your agent's purpose.
/report
> Generate structured reports. Director-owned.
/primary
> Main workflow execution and routing. Director-owned.
Qualify
## Command
Prospect
## Command
Close Plan
## Command
Battlecard
## Command
Spec
## Command
Schedule
## Command
Repurpose
## Command
Ideate
## Command