Command Palette

Search for a command to run...

Назад к скиллам
скилл № 42569

meta-prompt-engineering

Use when prompts produce inconsistent or unreliable outputs, need explicit structure and constraints, require safety guardrails or quality checks, involve…

БесплатноБез исполняемых скриптов
onfire7777от onfire7777★ 17 звёзд на GitHub

Установить meta-prompt-engineering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Meta Prompt Engineering

Table of Contents

Purpose

Transform vague or unreliable prompts into structured, constraint-aware prompts that produce consistent, high-quality outputs with built-in safety and evaluation.

When to Use

Use meta-prompt-engineering when you need to:

Improve Reliability:

  • Prompts produce inconsistent outputs across runs
  • Quality varies unpredictably
  • Need reproducible results for production use
  • Building prompt templates for reuse

Add Structure:

  • Multi-step reasoning needs explicit decomposition
  • Complex tasks need subtask breakdown
  • Role clarity improves output (persona/expert framing)
  • Output format needs specific structure (JSON, markdown, sections)

Enforce Constraints:

  • Length limits must be respected (character/word/token counts)
  • Tone and style requirements (professional, casual, technical)
  • Content restrictions (no profanity, PII, copyrighted material)
  • Domain-specific rules (medical accuracy, legal compliance, factual correctness)

Enable Evaluation:

  • Outputs need quality criteria for assessment
  • Self-checking improves accuracy
  • Chain-of-thought reasoning increases reliability
  • Uncertainty expression needed ("I don't know" when appropriate)

Encode Expertise:

  • Domain knowledge needs systematic application
  • Best practices should be built into prompts
  • Common failure modes need prevention
  • Iterative refinement from user feedback

What Is It

Meta-prompt-engineering applies structured frameworks to improve prompt quality:

Key Components:

  1. Role/Persona: Define who the AI should act as (expert, assistant, critic)
  2. Task Decomposition: Break complex tasks into clear steps
  3. Constraints: Explicit limits and requirements
  4. Output Format: Structured response expectations
  5. Quality Checks: Self-evaluation criteria
  6. Examples: Few-shot demonstrations when helpful

Quick Example:

Before (vague prompt):

Write a blog post about AI safety.

After (engineered prompt):

Role: You are an AI safety researcher writing for a technical audience.

Task: Write a blog post about AI safety covering:
1. Define AI safety and why it matters
2. Discuss 3 major challenge areas
3. Highlight 2 promising research directions
4. Conclude with actionable takeaways

Constraints:
- 800-1000 words
- Technical but accessible (assume CS background)
- Cite at least 3 recent papers (2020+)
- Avoid hype; focus on concrete risks and solutions

Output Format:
- Title
- Introduction (100 words)
- Body sections with clear headings
- Conclusion with 3-5 bullet point takeaways
- References

Quality Check:
Before submitting, verify:
- All 3 challenge areas covered with examples
- Claims are specific and falsifiable
- Tone is balanced (not alarmist or dismissive)

This structured prompt produces more consistent, higher-quality outputs.

Workflow

Copy this checklist and track your progress:

Meta-Prompt Engineering Progress:
- [ ] Step 1: Analyze current prompt
- [ ] Step 2: Define role and goal
- [ ] Step 3: Add structure and steps
- [ ] Step 4: Specify constraints
- [ ] Step 5: Add quality checks
- [ ] Step 6: Test and iterate

Step 1: Analyze current prompt

Identify weaknesses: vague instructions, missing constraints, no structure, inconsistent outputs. Document specific failure modes. Use resources/template.md as starting structure.

Step 2: Define role and goal

Specify who the AI is (expert, assistant, critic) and what success looks like. Clear persona and objective improve output quality. See Common Patterns for role examples.

Step 3: Add structure and steps

Break complex tasks into numbered steps or sections. Define expected output format (JSON, markdown, sections). For advanced structuring techniques, see resources/methodology.md.

Step 4: Specify constraints

Add explicit limits: length, tone, content restrictions, format requirements. Include domain-specific rules. See Guardrails for constraint patterns.

Step 5: Add quality checks

Include self-evaluation criteria, chain-of-thought requirements, uncertainty expression. Build in failure prevention for known issues.

Step 6: Test and iterate

Run prompt multiple times, measure consistency and quality using resources/evaluators/rubric_meta_prompt_engineering.json. Refine based on failure modes.

Common Patterns

Role Specification Pattern:

You are a [role] with expertise in [domain].
Your goal is to [specific objective] for [audience].
You should prioritize [values/principles].
  • Use: When expertise or perspective matters
  • Example: "You are a seni
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • resources/evaluators/rubric_meta_prompt_engineering.json
  • resources/methodology.md
  • resources/template.md

FAQ

Что делает скилл meta-prompt-engineering?

Use when prompts produce inconsistent or unreliable outputs, need explicit structure and constraints, require safety guardrails or quality checks, involve multi-step reasoning that needs decomposition, need domain expertise encoding, or when user mentions improving prompts, prompt templates, structured prompts, prompt optimization, reliable AI outputs, or prompt patterns.

Как установить скилл meta-prompt-engineering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл meta-prompt-engineering запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить meta-prompt-engineering с