Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prompt-improvement

БесплатноБез исполняемых скриптовНе проверен

Meta-skill for improving and optimizing prompts using Anthropic's prompt engineering best practices. Provides the 4-step improvement workflow (example…

majiayu000от majiayu000★ 31 звезда на GitHub

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

Prompt Improvement

MANDATORY: Query Official Documentation First

STOP - Before improving ANY prompt, you MUST invoke the docs-management skill.

This is NOT optional guidance - it is a required execution step.

Required: Query Documentation via docs-management Skill

Invoke the docs-management skill BEFORE making any improvements:

Search for relevant documentation using natural language:

  • Primary query: "prompt engineering chain of thought XML tags"
  • Read the top results returned by the skill

Why Documentation Query is Required

  • Training data is stale - Your knowledge may be outdated
  • Official docs are canonical - Anthropic's current best practices
  • Prevents hallucination - Ground improvements in real documentation
  • Ensures accuracy - Latest Claude 4.x guidance

Recommended Query Topics

Query at least ONE of these topics based on your improvement needs:

  • Chain of thought: "chain of thought thinking tags reasoning"
  • XML structure: "XML tags structure prompts formatting"
  • Examples/multishot: "multishot prompting examples few-shot"
  • Claude 4.x best practices: "Claude 4 prompting best practices"

Verification Checkpoint

Before improving a prompt, verify:

  • Did I invoke the docs-management skill? (not just read about it)
  • Did I receive documentation from docs-management?
  • Did I READ at least one official doc returned by the skill?
  • Are my improvements based on what I read from official docs?

If ANY checkbox is unchecked, STOP and invoke the docs-management skill first.

Overview

This meta-skill replicates Anthropic's Console/Workbench prompt improver functionality within Claude Code. It provides workflows, patterns, and keyword registries to transform basic prompts into high-performance structured templates.

What this skill provides:

  • The 4-step improvement workflow (quick reference)
  • Keyword registry for docs-management queries
  • Decision trees for improvement strategies
  • Pattern libraries (XML tags, chain of thought, prefills)
  • Before/after transformation examples
  • Iterative refinement guidance
  • Trade-off warnings (latency/cost implications)

What this skill does NOT provide:

  • Duplicated official documentation (use docs-management skill)
  • Hardcoded best practices (query docs-management for current guidance)

When to Use This Skill

Use this skill when:

  • Improving an existing prompt for better accuracy or structure
  • Adding chain of thought reasoning to complex tasks
  • Structuring prompts with XML tags for clarity and parseability
  • Enhancing examples with reasoning steps
  • Optimizing prompts for Claude 4.x models with explicit instructions
  • Iterating on prompt quality with feedback loops
  • Generating test cases when examples are lacking

Quick Decision Tree

What do you want to do?

  1. Improve a prompt from scratch -> See The 4-Step Improvement Workflow
  2. Add XML structure -> Query docs-management: "Find documentation about XML tags for structuring prompts"
  3. Add chain of thought -> Query docs-management: "Find documentation about chain of thought prompting"
  4. Add/improve examples -> See references/patterns/example-enrichment-patterns.md
  5. Iterate with feedback -> See references/workflows/iterative-refinement.md
  6. Generate test cases -> See references/workflows/test-case-generation.md
  7. Understand trade-offs -> See references/troubleshooting/tradeoffs-guide.md

The 4-Step Improvement Workflow

The prompt improver enhances prompts through a structured 4-step process:

Step 1: Example Identification

  • Locate and extract any existing examples from the prompt
  • Note the format and structure of current examples
  • Identify if examples are missing (if so, consider generating them)

Step 2: Initial Draft

  • Create a structured template with clear sections
  • Add XML tags to separate components:
    • <instructions> - Task definition and behavioral guidelines
    • <context> - Background information and relevant details
    • <examples> - Demonstration cases
    • <formatting> - Desired output format specification
  • Query docs-management: "Find documentation about XML tags for structuring prompts"

Step 3: Chain of Thought Refinement

  • Add step-by-step reasoning instructions
  • Include thinking tags: <thinking>, <analysis>, <answer>
  • Guide Claude through the problem-solving process
  • Query docs-management: "Find documentation about chain of thought prompting"

Step 4: Example Enhancement

  • Update examples to demonstrate the new reasoning process
  • Add <thinking> steps within examples showing intermediate reasoning
  • Ensure examples match the output f
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Glob
Grep
Skill
Bash

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

metadata.json

FAQ

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

Meta-skill for improving and optimizing prompts using Anthropic's prompt engineering best practices. Provides the 4-step improvement workflow (example identification, initial draft, chain of thought refinement, example enhancement), keyword registries for documentation lookup, and decision trees for improvement strategies. Use when improving prompts, optimizing for accuracy, adding chain of thought reasoning, structuring with XML tags, enhancing examples, or iterating on prompt quality. Delegates to docs-management skill for official prompt engineering documentation.

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

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

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

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

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

Сравнить prompt-improvement с