Improving prompts

From Kastalien-Research/thoughtbox · View interactive version

Improving prompts is an AI agent skill from the GitHub repository Kastalien-Research/thoughtbox. Use when optimizing CLAUDE.md, AGENTS.md, custom commands, or skill files for Claude 4.5 models - applies documented Anthropic best practices systematically instead of inventing improvements

How to use this skill

Skill file

Improving Prompts

Overview

Apply documented Claude 4.5 best practices to existing prompts. Do not invent "improvements" - use the actual guidance from Anthropic.

When to Use

When NOT to Use

The Core Problem

Without this skill, agents:

Common Rationalizations (Do Not Fall For These)

| Rationalization | Reality |

|-----------------|---------|

| "The user said it's too vague" | "Too vague" isn't actionable. What specific behavior fails? |

| "I'm the expert, trust me" | Authority doesn't bypass the need for concrete issues |

| "Time pressure - demo tomorrow" | Pressure is when agents make the worst decisions |

| "The spirit of the skill is to help" | Violating the letter IS violating the spirit |

| "I have enough context" | If you can't name the specific failure, you don't |

| "Structure is always better" | Structure solves structure problems, not all problems |

| "This is obviously an improvement" | Obvious to you ≠ solving the user's actual problem |

Required Process

Step 1: Understand Before Changing

Before ANY modifications:

  1. Ask what specific behaviors are underperforming
  2. Ask what the prompt should achieve that it currently doesn't
  3. If user says "just improve it generally" - ask for at least one concrete issue

What counts as a "concrete issue":

What does NOT count:

Do NOT proceed with generic "improvements" based on assumptions.

Step 2: Reference Actual Best Practices

See references/claude-4.5-best-practices.md for the complete reference. Key principles:

Be explicit with instructions:

Add context/motivation:

Be vigilant with examples:

Avoid "think" without extended thinking:

Control verbosity explicitly:

Tool usage patterns:

Step 3: Preserve What Works

Step 4: Propose Changes with Rationale

For each change, state:

  1. What specific best practice it applies
  2. What problem it solves
  3. Show before/after

Do NOT make changes without connecting them to documented guidance.

Red Flags - You're About to Fail

Quick Reference: Claude 4.5 Improvements

| Issue | Fix |

|-------|-----|

| Claude takes things too literally | Add "Go beyond basics" or explicit scope |

| Claude doesn't explain reasoning | Add "Explain your reasoning" or "Think through this step by step" |

| Claude is too verbose | Add "Be concise" or "Respond in X sentences" |

| Claude is too terse | Add "Provide detailed explanations" |

| Claude suggests but doesn't act | Change "Can you..." to imperative "Do X" |

| Instruction isn't followed | Add context for WHY the instruction matters |

| Examples not matching output | Ensure examples show exact desired format |

Common Mistakes

Overengineering: Adding categories, numbered lists, XML structure to simple prompts that were working fine.

Changing voice: The user's CLAUDE.md reflects their personality. Don't make it sound like documentation.

Assuming problems: Making changes without knowing what's actually broken.

Inventing practices: Claiming something is a "best practice" without reference to actual guidance.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.