The 4 Rules Anthropic Engineers Use to Prompt Claude Code
Anthropic engineers do not write better prompts — they stop writing prompts. This guide breaks down the 4 rules they actually follow: prompt skills not Claude, build tools not just prompts, compose small skills instead of one giant one, and let every session sharpen the skill. Includes an annotated /draft-email skill and a composable domain-checker example.
Primary Focus
ai dev-toolsAI Tools Covered
What You'll Learn
- ✓The Mental Shift
- ✓The Model → Agents → Skills Layers
- ✓What This Looks Like In Practice
- ✓The Three Layers Inside A Skill
- ✓An Annotated `/draft-email` Skill
- ✓The Tools Layer Is The Unlock
Guide Curriculum
Rule 1 — Prompt Skills, Not Claude
Learn key concepts
- •The Mental Shift1m
- •The Model → Agents → Skills Layers1m
- •What This Looks Like In Practice1m
Rule 2 — Skills Are More Than Prompts
Learn key concepts
- •The Three Layers Inside A Skill2m
- •An Annotated `/draft-email` Skill2m
- •The Tools Layer Is The Unlock1m
Rule 3 — Build Composable Skills, Not Custom Skills
Learn key concepts
- •One Giant Skill Is A Trap1m
- •Why Small Skills Win — And How They Chain2m
- •Two Patterns Anthropic Engineers Actually Use2m
Rule 4 — Prompts That Get Smarter Every Session
Learn key concepts
- •Why Skills Compound And Prompts Don't1m
- •The One Question After Every Skill Run1m
- •Extract A Working Session Into A Skill2m
Preview: First Lesson
Rule 1 — Prompt Skills, Not Claude
The Mental Shift
Objectives: understand what a skill actually is, see the model → agents → skills abstraction, and make the mental shift from one-off prompts to invoking skills.
When people start with AI, they write a fresh prompt for everything. But most real work is repetitive — the same email reply, the same script-writing task, the same review checklist. Writing a new artisanal prompt each time throws that effort away the moment the chat closes.
Anthropic built skills to capture repetitive work. In the words of an Anthropic engineer quoted in the video:
"Skills are organized collections of files that package composable procedural knowledge for agents."
Stripped of jargon: a skill is a folder that holds a documented way to get a task done. The mental shift Rule 1 asks for is simple — stop thinking in traditional prompts, start thinking in invoking skills.
Start learning with this comprehensive guide
This guide includes:
About the Author
Hiram Clark is the founder of vybecoding.ai and editor of every guide and news article published on the site. He reviews all AI-drafted content for accuracy before publication and is personally accountable for factual errors. He works hands-on with the AI development tools, workflows, and infrastructure covered here.
Full Guide Content
Complete lesson text — start the interactive course above for exercises and progress tracking.
Module 1Rule 1 — Prompt Skills, Not Claude
1.1The Mental Shift
When people start with AI, they write a fresh prompt for everything. But most real work is repetitive — the same email reply, the same script-writing task, the same review checklist. Writing a new artisanal prompt each time throws that effort away the moment the chat closes.
Anthropic built skills to capture repetitive work. In the words of an Anthropic engineer quoted in the video:
"Skills are organized collections of files that package composable procedural knowledge for agents."
Stripped of jargon: a skill is a folder that holds a documented way to get a task done. The mental shift Rule 1 asks for is simple — stop thinking in traditional prompts, start thinking in invoking skills.
1.2The Model → Agents → Skills Layers
The video adapts an abstraction diagram from Anthropic's engineering presentation. There are three layers:
- Layer 1 — the AI model. The raw model you are using.
- Layer 2 — agents and prompts. How most people interact with AI today: typing prompts at an agent.
- Layer 3 — skills. The application layer of the AI world.
The analogy from the video: Anthropic is building the phone. Skills are the apps. That is the layer you control, and the layer where leverage lives.
1.3What This Looks Like In Practice
Say you want to reply to an email in your own voice. The Layer 2 way is to paste a long prompt describing your tone, style, and sign-off every single time. The Layer 3 way is to build that knowledge into a skill once, then type:
/draft-email
…and hand it the email you want to answer. The official docs confirm a key payoff: if a skill's description is well written, you do not even have to invoke it by name — Claude loads it automatically when your request matches. You are no longer writing custom prompts; you are writing requests that cleanly reference skills.
Module 2Rule 2 — Skills Are More Than Prompts
2.1The Three Layers Inside A Skill
/draft-email SKILL.md, and understand why the tools layer carries the most leverage.
Creating a skill is easy — you can literally tell Claude "build me a skill for X." Using skills well requires knowing what is inside one. A skill is not just a prompt in a folder. It has three internal layers:
- The description. What Claude checks on every request to decide whether to use this skill. Think of it as the label on the folder: vague label, Claude can't tell when to reach for it; specific label, it triggers exactly when it should.
- The instructions. Once Claude picks the skill, this is the playbook — the step-by-step process for completing the task.
- The tools. Scripts, API calls, reference files. This is where a skill becomes far more than a prompt — and where most of the leverage lives.
Most people stop at layer 2. Anthropic engineers focus on layer 3. Eric from the Anthropic team, quoted in the video, put it bluntly:
"People will put a lot of effort into creating these really beautiful, detailed prompts… and then the tools that they make to give the model are sort of these incredibly bare-bones — no documentation, the parameters are named A and B."
2.2An Annotated `/draft-email` Skill
Here is an illustrative /draft-email skill built to the documented Claude Code skill format. A skill is a SKILL.md file inside its own folder — for a personal skill, ~/.claude/skills/draft-email/SKILL.md. The file has two parts: YAML frontmatter between --- markers, then the markdown body.
---
# LAYER 1 — THE DESCRIPTION
# Claude reads this on every request to decide whether to load
# the skill. Be specific: name the trigger situations explicitly.
description: >-
Draft a reply to an email in the user's voice. Use whenever the
user pastes an email and asks for a response, reply, or follow-up.
---
# LAYER 2 — THE INSTRUCTIONS
# The step-by-step playbook Claude follows once this skill loads.
## Voice
- Warm but concise. No corporate filler. Sign off as "— Nat".
- Match the sender's formality; never more formal than they were.
## Steps
1. Summarize what the sender is actually asking in one line.
2. Draft a reply that answers every open question.
3. If a question can't be answered yet, say so and give a timeframe.
4. Return only the email body — no subject line, no preamble.
What each part does:
- The
descriptionis layer 1. The phrase "use whenever the user pastes an email and asks for a response" is the trigger text Claude matches against — concrete situations, not marketing copy. According to the official docs, a weak description is the single most common reason a skill silently never fires. - Everything below the frontmatter is layer 2 — the instructions. Plain markdown. No code yet.
- This particular skill has no layer 3 because drafting an email needs no scripts. The next lesson shows a skill that does.
2.3The Tools Layer Is The Unlock
The video's clearest tools-layer example: the narrator needed to find available domain names. Instead of asking Claude to guess and manually checking each one, he built a custom skill that programmatically checks domain availability through a real tool. Every domain it suggested was already verified as purchasable.
The leverage compounded: with that tool inside a skill, he could point ten sub-agents at the same skill and sweep 10,000+ domains — something he says he "literally would have never been able to do before." A bare prompt could never do that; a skill with a real tool could.
Module 3Rule 3 — Build Composable Skills, Not Custom Skills
3.1One Giant Skill Is A Trap
Anthropic's engineering blog, cited in the video, describes skills as "composable, portable, efficient, and powerful." Composability means multiple small skills work together while Claude coordinates which to use.
The video's cautionary tale: the narrator first built one /content-creation skill that did everything — idea generation, script writing, social posts. "One skill, a million possibilities," and it became unmanageable. Every change risked breaking something invisible. The fix was to split it into focused skills — youtube-idea-research, youtube-script-writer, linkedin-post — each with one job, each able to call the others.
3.2Why Small Skills Win — And How They Chain
Three concrete reasons, straight from the video:
- Issues are easy to spot. When a focused skill breaks, you know exactly where to look.
- Improvements compound. Upgrade
youtube-idea-researchonce and every workflow that calls it improves automatically. A giant skill duplicates that logic, so you fix it in one place and it stays broken in another. - You reuse instead of rebuild. A
domain-checkerskill plugs into any workflow that needs available domains — you never rebuild it.
Composability is wired in the body of the skill. Here is an illustrative name-research skill that chains to the domain-checker skill — one skill calling another as a step:
---
description: >-
Research and validate a product name. Use when the user wants a
brandable name with a matching available domain.
---
## Steps
1. Generate 20 candidate names that fit the brief.
2. For each candidate, use the `domain-checker` skill to confirm
the .com is actually purchasable. Discard names that fail.
3. Return only names that passed, with the verified domain.
That single line — "use the domain-checker skill" — makes Claude load domain-checker mid-workflow and hand off to it. The small skill does one thing well; the larger one composes it. Stack these and you get modular skill chains instead of one brittle monolith.
3.3Two Patterns Anthropic Engineers Actually Use
---
description: Deploy the current build to production.
# Only the user can run this — the model never triggers it on its own.
# Use for high-risk actions: deploys, sending messages, anything irreversible.
disable-model-invocation: true
---
user-invocable: falsehides the skill from your/menu — it becomes an agent-only tool you never think about.disable-model-invocation: truedoes the opposite — only you can run it, the model can't. Perfect for risky actions like deploying to production or sending a message.
Both behaviors are confirmed in the official Claude Code skills documentation.
Module 4Rule 4 — Prompts That Get Smarter Every Session
4.1Why Skills Compound And Prompts Don't
A sentence prompt disappears the moment you close the chat. A skill stays — and every time you use it, you get a chance to sharpen it. The Anthropic engineering team framed the payoff as a guarantee, quoted in the video:
"Anything that Claude writes down can be used efficiently by the future version of itself. Our goal is that Claude on day 30 of working with you is going to be a lot better than Claude on day 1."
Every time Claude learns something about your voice, your process, or an edge case, you write it into the skill. The next session starts smarter than the last.
4.2The One Question After Every Skill Run
Most people run a skill, take the output, and move on. Anthropic engineers add one step. After each run, when the output isn't quite right, ask:
Is this a one-time fix, or should this be in the skill forever?
If it's forever, update the skill — add the rule, the example, the missed edge case. That single habit is the difference between a skill that plateaus and one that compounds.
4.3Extract A Working Session Into A Skill
You don't have to do this by hand. Your chat history is the raw material. After a back-and-forth where you corrected Claude several times, paste this:
Review the back and forth I just had after using this skill. Can we enhance the skill so this is handled automatically and we don't make the same mistake again?
Claude reads the correction trail and folds those lessons into the skill's instructions. That is the entire improvement loop: use the skill → notice what was wrong → ask whether it belongs in the skill forever → persist it. Iterate, extract, persist.
The Four Rules, In One Place
- Use skills, not prompts. Stop writing one-off prompts; invoke skills.
- Build tools, not just skills with prompts. The leverage is in layer 3 — scripts, APIs, files — not a prettier prompt.
- Build composable skills, not custom skills. Small, focused, reusable skills that chain beat one unmanageable monolith.
- Update your skills every time you use them. Each session is a chance to make the skill — and Claude — permanently better.
Using Claude like an engineer isn't about technical skill. It's about treating skills as the durable artifact and prompts as disposable.
Source: This guide is based on How Anthropic Engineers ACTUALLY Prompt Claude Code, with skill-format details verified against the official Claude Code skills documentation. Direct quotes from Anthropic engineers (Barry, Eric, and the engineering team) are reproduced from the video; the
/draft-email, name-research, and domain-checker skill files are illustrative examples written to the documented skill format.