Crafting instructions

From oaustegard/claude-skills · View interactive version

Crafting instructions is an AI agent skill from the GitHub repository oaustegard/claude-skills. Chooses the right FORMAT for instructions on Claude.ai — project instructions, a skill, or a standalone prompt — and gives the format-specific structure once chosen. Use when the question is which container an instruction belongs in ("should this be a skill or project instructions", "where do I put

How to use this skill

Skill file

Crafting Instructions for Claude

Choose the format for instructions on Claude.ai — Project instructions, Skills,

or standalone prompts — and structure them for the format chosen.

Overlap notice. The Core Optimization Principles below also appear in

writing-instructions, which carries them in more depth. This skill owns the

format decision; writing-instructions owns **how to write well inside a

format**. The two descriptions are close enough that a request can land on

either — route by which of those two questions is being asked.

Decision Framework: Which Format to Use?

Ask these questions to determine the right format:

Use PROJECT INSTRUCTIONS when:

Signals: "for this project", "all conversations about X", "team workspace", "project-specific"

Use SKILL when:

Signals: "every time I", "whenever", "reusable", "across projects", "teach Claude how to"

Use STANDALONE PROMPT when:

Signals: "for this task", "right now", "just this once", "can you"

Combined Approaches:

Project + Skill:

Skill + Prompt:

Core Optimization Principles

These apply to ALL instruction formats:

1. Imperative Construction

Frame as direct action commands, not suggestions:

2. Positive Directive Framing

State WHAT to do, not what NOT to do:

WHY: Negative instructions force inference. Positive instructions state desired behavior directly.

3. Context and Motivation

Explain WHY requirements exist:

WHY: Context helps Claude make better autonomous decisions in edge cases.

4. Strategic Over Procedural

Provide goals and decision frameworks, not step-by-step procedures:

Current models plan from a stated goal. Write out a sequence only where one

sequence is the safe one — destructive commands, auth flows, compliance steps.

5. Trust Base Behavior

Claude's system prompt already covers:

ONLY specify project/domain-specific deviations.

Format-Specific Guidance

For Project Instructions

See: references/project-instructions.md

Key points:

For Skills

See: references/creating-skills.md

Key points:

For Standalone Prompts

See: references/standalone-prompts.md

Key points:

When to Suggest What

"Use a Skill" when user says:

"Use Project instructions" when user says:

"Use a better prompt" when user says:

Skills vs Projects: Key Differences

Read: references/skill-vs-project.md for detailed comparison

Quick reference:

Project = "Here's what you need to know"

Skill = "Here's how to do things"

Example:

Use both together for powerful combinations.

Example Quality Awareness

Examples teach every pattern they contain, including the ones you did not intend.

When including examples:

Structural Simplicity

Default to clear organization:

Use structured markup (XML/JSON) only when:

Thinking Depth

No prompt phrase turns thinking on. Current Claude models think adaptively by

default, and depth is set by configuration — the effort setting on the API,

the UI control on Claude.ai. "Think step by step" and hand-written trigger

phrases buy nothing.

What instructions can usefully carry is which parts of the domain deserve more

deliberation, so the reader knows where to raise effort:

[Specific complexity] in this domain is worth extra deliberation because [why].

Complexity Scaling

Match instruction complexity to task needs:

Simple task → Simple prompt or brief instructions

Medium task → Structured guidance with decision frameworks

Complex task → Comprehensive instructions; raise effort

Before adding complexity: Could simpler formulation work equally well?

Instruction Density

Scale density to how far the task sits from what the model does unprompted.

State the goal, the constraints, and how success is checked; add procedure only

where order is fragile. When the choice is between another rule and more context

about why, write the context — that is what the model cannot get elsewhere, and

it is what it uses on the cases you did not enumerate.

State explicitly that judgment applies to cases the instructions do not cover.

Quality Checklist

Before delivering instructions:

Strategic:

Technical:

Execution:

Common Mistakes to Avoid

❌ System prompt duplication - "Use web_search for current info, cite sources"

✅ Omit unless project has SPECIFIC deviations

❌ Negative framing - "Don't use lists, never be verbose"

✅ "Present in natural prose paragraphs"

❌ Fake thinking triggers - "Use 'think carefully' for deep thinking"

✅ "Name where deliberation pays in this domain; set effort there"

❌ Procedural micromanagement - "Step 1: X, Step 2: Y..."

✅ "Goal: X. Quality standard: Y. Approach: Z."

❌ Contextless requirements - "Always use formal tone"

✅ "Use formal tone for professional docs because recipients expect authoritative voice"

❌ Imperfect examples - Example uses bullets when you want prose

✅ Either create perfect examples or omit entirely

Additional Resources

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.