AI & Productivity

4 Rules Anthropic Engineers Use to Prompt Claude Code

Why almost everyone is doing it wrong — and how to fix it.

I listened to Anthropic’s engineers at the AI Code Summit and learned something I wasn’t expecting: almost everyone is prompting Claude Code wrong. After studying everything Anthropic engineers have published, I uncovered four rules for how they actually prompt Claude Code — and it turns out you don’t need any technical experience to implement them.

The four rules we will cover

1They Prompt Skills, Not Claude

Before we get to the rules that will transform how you work, we need to understand the foundation of how Anthropic engineers use Claude.

The mental shift

Generally, when people first start using AI, they write new prompts for everything they do. But the reality is most of what people do is repetitive tasks.

Anthropic engineers created Claude Skills to help tackle these repetitive tasks. As Barry from Anthropic describes it:

“Skills are organized collections of files that package composable procedural knowledge for agents.” — Barry, Anthropic Engineer

In other words, they’re folders. “Procedural knowledge for agents” is a fancy way to say a way to get a task done.

Practical example

Here’s what it could look like if you wanted to draft a response to an email:

The three-layer model

Layer 3 · Skills (Application Layer) ← you control this Layer 2 · AI Agents & Prompts ← how you’ve been working Layer 1 · AI Model ← the foundation
The three-layer model. Anthropic builds the model and the agent layer — the phone itself. You build the apps. The skills layer is the one you control.

If you were to compare this to your cell phone, Anthropic is building the phone itself. You have to create the apps. That’s the layer to control.

Key takeaway: stop thinking in traditional prompts. Start thinking in prompting Claude Skills. You’re no longer writing custom prompts — you’re writing more specific prompts that clearly reference skills.

2Skills Are More Than Prompts

So you’re convinced you need to change how you prompt to prompt skills. The next question is: how do you actually create skills that work?

The three layers inside a skill

A skill is more than a prompt that lives in a folder. Inside a skill, there are three layers:

  1. Layer 1: the description. This is what Claude checks every time you ask a specific question, and it determines whether it should use the skill or not. Think of it like a title on a folder. If the label’s vague, Claude will have a tough time identifying when to use it. If it’s specific, it’ll know exactly when it’s needed. You don’t need to explicitly call a skill if it’s properly described — Claude will automatically know when to use it.
  2. Layer 2: the instructions. Once Claude grabs the skill, this is the playbook it follows — a step-by-step process on how to actually complete the task.
  3. Layer 3: the tools. This is code scripts, API calls, reference files. This is where a skill becomes a lot more than prompts, and layer three is where most of the leverage lives — but most people stop at layer two.
“The funniest thing I see is that people will put a lot of effort into creating these really beautiful, detailed prompts. And then the tools they make to give the model are sort of these incredibly bare-bones… People obsess over the prompt and skip the tools.” — Eric, Anthropic Team

Real example: domain checking

Instead of going back and forth manually thinking about domains, the author created a custom skill that could check domains programmatically. Whatever domains Claude suggested, it already verified that they could be purchased.

By giving this skill access to the right tool, it leveled up the entire process. Now 10 different sub-agents could use this skill to look through 10,000+ domains to find the right one — something literally impossible to do manually.

Key takeaway: Anthropic engineers focus on the tools layer (Layer 3), not just the instructions. Code is deterministic — the same input gives the same output every time. You’re trading AI tokens for code compute, which is cheaper, faster, and repeatable.

3They Build Composable Skills, Not Custom Skills

Pulling directly from Anthropic’s engineering blog about what skills are and how to position them, they are: composable, portable, efficient, and powerful.

What does composable mean?

Composability means multiple skills can work together, with Claude automatically coordinating which to use. You should have small, focused, reusable skills that work together, versus a single massive skill that does everything.

Real example: content creation

When the author first started building skills for their content engine, they built a single /content-creation skill that did everything: generated ideas, wrote scripts, drafted social posts. All of it. One skill, a million possibilities — and it just became unmanageable.

Every time they wanted to change how scripts were written, they had to rewrite the whole skill and didn’t know what it actually impacted.

The solution? Split it into more specific skills:

Each skill had a specific goal in mind, and the benefit is that each can call the others, so they start chaining together.

Three benefits of composable skills

  1. Issues are easy to spot. When a focused skill breaks, you know exactly where to look. With a giant skill, you don’t know what exactly the issue was.
  2. Improvements compound. If you update /youtube-idea-research, every workflow that uses it automatically gets upgraded. With a giant skill you get overlapping functionality — you’ll fix it in one place and it’ll still be broken elsewhere.
  3. You can reuse instead of rebuilding. If you build something like the check-domain skill mentioned earlier, you can plug it into any workflow you want. You’re not rebuilding the wheel every time.

Technical patterns from Anthropic engineers

Pattern 1: save scripts inside of skills

This is part of the tools layer of a skill, and it’s how you actually make them sharper. Barry at the AI Engineering Code Summit explained:

“We kept seeing Claude write the same Python script over and over again to apply styling to slides. So we just asked Claude to save it inside of the skill as a tool for his future self. Now we can just run the script, and that makes everything a lot more consistent and efficient.” — Barry, Anthropic Engineer

Claude kept rewriting the same Python script every session. Instead of letting it rewrite the script, they saved it inside a skill folder. Now the next session Claude doesn’t have to rewrite it — it just reruns it.

General rule of thumb: if you can use code instead of AI, you should. And you don’t have to write the code — you can have AI write it once, then reuse it as much as you want.

Pattern 2: control who invokes what

Most people don’t know this exists, but Anthropic built two flags into Claude’s skills that are important to understand:

Key takeaway: build small, focused, reusable skills that work together. Save scripts inside skills to make them deterministic. Use invocation flags to control who can run what.

4Their Prompts Get Smarter Every Session

Here’s where Anthropic engineers really pull ahead. Their skills — and in turn their prompting — don’t just work. They get better every session.

The compounding loop

When you prompt Claude with a sentence, that prompt disappears the moment you close the chat. When you prompt with a skill, the skill stays — and every time you use it, you have a chance to sharpen it.

“This standardized format gives a very important guarantee: 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 one.” — Anthropic Engineering Team

How to actually do this

Every time Claude learns something about how you work — your voice, your process, your edge cases — you write it down in the skill. Next session starts smarter than the last.

Every time you run a skill and the output isn’t exactly what you want, ask yourself one question:

“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 edge case.

The common mistake

A lot of people skip this entirely. They just run the skill, get an output, and continue with their day. But Anthropic engineers use a skill, get the output, then update the skill so there’s a compounding loop that improves over time.

It’s really quite simple. You can literally use your chat history as a reference point to improve the skill itself. Just say:

“Review the back and forth I just had after using this skill. Can we enhance the skill so this is handled automatically, or so we don’t make the same mistake again?”
Key takeaway: your skills should get smarter every time you use them. Update them with every edge case, every rule, every example. Build a compounding loop of improvement.

Summary: the four rules

Using Claude like an engineer doesn’t have to be complicated. Start with these four rules and watch your productivity transform.

← Back to all posts