Free sample · no email · 2,550 of 15,057 words
The Claude Skills & Agents Playbook
The opening of the playbook as your AI agent reads it. The full volume adds the step-by-step playbook, the prompts, the checklist and the sources.
1. The problem
Professional know-how lives in scattered places: a checklist, a spreadsheet, old messages, a senior colleague’s judgment, and exceptions remembered only after something has gone wrong.
A chat assistant can help with individual tasks. It becomes hard to rely on when every conversation begins with a different explanation of the work. You supply the missing context, repair the output, and make the same corrections next time. What looks like automation hides a growing supervision job.
The opportunity is to make the procedure explicit enough that an agent can apply it, while keeping human judgment wherever the procedure is incomplete.
Why this matters now. Anthropic introduced Agent Skills in October 2025 and published the format as an open standard in December 2025 [1][2]. A skill combines instructions with optional scripts and resources that load only when needed. That makes it more than a saved prompt, though it does not make it a service that runs on its own. Over the same period Claude Code added the other building blocks: configurable subagents [6], lifecycle hooks [7], plugin packaging and marketplaces [13], scripted runs [14], GitHub Actions [16] and scheduled tasks [17]. The tooling is no longer the bottleneck. The quality of what you put into it is.
The building blocks, and what each one is for.
| Component | Responsibility | Fernhill example |
|---|---|---|
Project instructions (CLAUDE.md) |
Context every session needs | Build commands, naming conventions |
| Skill | How to do one recurring procedure | Write the weekly KPI report |
| Subagent | A bounded task in its own context | Check the report against the source data |
| Tool or MCP connector | Access to an operation or data source | Read the client’s analytics warehouse |
| Hook | A check that runs on a defined event | Block edits to .env |
| Permission rule | Allow, ask or deny a tool call | Deny curl; ask before git push |
| Automation runner | Start, supervise and record runs | Monday 07:00 draft-only report run |
| Plugin | Ship related pieces together | The reporting skill, its checker and its hooks |
Claude Code documents each of these as a separate extension mechanism [3][6][10][11][13].
What usually goes wrong, and why.
- The task is underspecified. “Write the report” doesn’t say which data source is authoritative, how to treat missing rows, or who may send the result. The model fills the gaps with plausible guesses.
- The wrong things get captured. People write skills for things Claude already does well, such as “write clean code” or “be concise”. Anthropic’s guidance is to assume Claude is already very capable and add only the context it lacks [4]. The value is in your specifics: pricing rules, schema, review checklist, a client’s tone.
- The procedure hides judgment. An expert knows that “tests passed” means nothing if the tests ran against an older revision. A generic checklist leaves that out.
- The skill never triggers. Claude chooses a skill by matching the request against its
description[3][5]. “Helps with reports” loses to more specific descriptions. When many skills are installed, Claude Code may shorten descriptions to fit its listing budget [3]. - Nobody tests it. A skill gets written, tried once and assumed to work. One run of a non-deterministic agent tells you very little.
- Guardrails live in prose. Claude Code’s own documentation treats an instruction in a skill or
CLAUDE.mdas guidance and a blocking hook or permission rule as enforcement [7][8][11]. - Access exceeds the assignment. A read-only review doesn’t need a credential that can publish. Giving it one raises the cost of any mistake.
- Multi-agent by default. Teams start five subagents for a job one agent could do. In Anthropic’s measurements, agents used about 4 times the tokens of chat, and multi-agent systems about 15 times [21]. That spend pays off only for valuable, parallel work. Anthropic recommends starting with simple, composable patterns and adding complexity only when needed [20].
- Evaluation rewards appearance. A polished report can contain unsupported conclusions, and a correct-looking answer can hide a tool call that shouldn’t have happened.
- Automation arrives before recovery. Running a task on a schedule doesn’t answer what happens after a timeout, a duplicate trigger, an expired credential or a half-finished write.
- Untrusted skills get installed. An academic scan of 31,132 public marketplace skills found that 26.1% had at least one vulnerability. Skills that bundled executable scripts were 2.12 times more likely to be vulnerable than skills with instructions only [29]. Snyk’s February 2026 audit of 3,984 skills found critical issues in 13.4% and confirmed 76 malicious payloads [30].
Be careful with productivity claims. METR’s July 2025 randomized study found that experienced open-source developers took longer with the AI tools it studied in that setting [35]. Its February 2026 follow-up said selection effects made newer results unreliable as an estimate of current speed-up [36]. Neither study tells you what your own workflow will do. Measure your accepted outputs, review time and rework (Chapter 7).
What good looks like. You have a small library, usually five to fifteen skills, each covering one process you do often. Each skill has a sharp description, a short body, reference files that load only when needed, and scripts for anything that must be exact [4]. Each has an eval suite showing it beats “no skill” on realistic requests. Dangerous actions are blocked by permission rules, hooks and narrow credentials. Automations have limited tools, spend caps, explicit run states and a human review gate before anything leaves the building. The whole set lives in git, ships as a versioned plugin, and gets a review every month.
Your first deliverable is a task contract (4.1). It forces these decisions into the open.
2. Before you start
You need four things: access, a candidate process, examples of good and bad output, and a few decisions made in advance.
Roles. Name a task owner and a reviewer. In a small pilot one person can hold both roles, but record them separately. The owner defines the outcome and its limits. The reviewer decides whether the evidence supports accepting the output.
Access and accounts
- A Claude plan that includes Claude Code, or a Claude Console API key for scripted and CI use. Check your plan’s terms for scheduled cloud tasks before you design around them [17].
- Claude Code installed and updated. Many features in this book changed during 2026. Record
claude --version. - A git repository for your skills: either a project repo (skills in
.claude/skills/, subagents in.claude/agents/) or a dedicated repo you will turn into a plugin. - Admin access to the target repository if you will use GitHub automation [16].
- If skills will run on claude.ai or through the API, confirm that code execution is enabled. Skills need it on those surfaces [5][40].
Decisions to make up front
- Surface. Claude Code, claude.ai, the API, or several? Custom skills don’t sync between surfaces, so you install or upload each one separately [5]. The surface also decides which frontmatter fields you can use (4.4).
- Who invokes. Only you (
/name), Claude automatically, or both. - Blast radius. What is the worst thing this skill could do if it misfires, or if a document it reads contains hostile instructions? Write it down in one sentence. That sentence sets your guardrails.
- Data. Which data may it read, and which systems may it write to? Personal and client data need an explicit answer.
- Agreements. Find out which terms govern your actual product and account. Anthropic’s Legal Center separates consumer terms, commercial terms, privacy policies and its data processing addendum [38]. A subscription name doesn’t settle questions about data processing or retention.
Settings scopes. Claude Code reads managed, user, project and local settings, and the effective configuration depends on precedence and merging rules [9]. Don’t assume you know the active restrictions from the one file you can see. An interactive laptop session and a scheduled cloud run can see different files, credentials and tools, so record and test each environment separately.
Capability record (project template, not a Claude config file)
workflow: weekly-kpi-report
owner: founder
reviewer: analyst
host: Claude Code
runtime_version: <claude --version>
model: <resolved model id>
skill_revision: <git commit>
execution_mode: interactive-pilot
input_scope: approved CSV exports in data/
output_scope: local draft in reports/
external_writes: prohibited
network_access: none required
retention: per client agreement
budget_per_run: <cap>
incident_owner: founder
disable_procedure: remove schedule; revoke API key
Intake checklist
- Claude Code installed and updated; version recorded
- Skills repository created with
.claude/skills/and.claude/agents/ - One candidate process chosen, with the reason it is worth capturing (frequency × time × cost of an error)
- Three to five past examples, with inputs and the final output you were happy with
- One or two examples of bad output, with notes on what was wrong
- One ambiguous case, and one case that should be rejected or escalated
- Your rules for the process written as a plain list (the corrections you make every time)
- Authoritative input source named
- Target surfaces chosen and invocation mode decided
- Systems listed (files, CLIs, MCP connectors, APIs), with read or write access for each
- Actions that need separate human approval listed
- Worst-case misfire written in one sentence
- Secrets inventory done: no keys in the repo;
.envand similar files listed for deny rules - Owner of each connected service account confirmed
- Budget and maximum run time defined
- Incident owner and disable procedure named
- Review date set
Remove personal and confidential data from examples unless its use in the chosen environment is approved.
Regulated work. For legal, tax, medical, financial or similarly high-stakes workflows, this book gives operational information, not professional advice. Anthropic’s Usage Policy sets extra requirements for some high-risk uses, including qualified human review and disclosure [37]. Read the current policy itself. An ordinary “approve” button may not meet it.
When to stop intake. Stop if a missing answer would change what is authorized, how data is handled, or what counts as success. If the missing answer only affects presentation, carry on with harmless preparation.
3. The method
There are eight steps. Each one produces an artifact the next step uses. Treat them as gates, not a calendar: a small read-only skill can pass through them in a day, while a workflow that changes customer records needs stronger evidence. After the first time through, you will spend most of your time looping between steps 3 and 4.
1. Harvest the know-how and write the contract.
- What to do: List the processes you repeat, score them and pick one. Extract its trigger, inputs, rules, output, exclusions, authority and failure modes from your real past work.
- Why: Skills that encode what Claude already knows add cost and noise. Skills that encode your specific decisions add value [4].
- Done when: One process has a one-page brief and contract, and the owner can tell apart a successful result, a correct escalation and an unauthorized action.
2. Choose the container.
- What to do: For each piece of the brief, decide where it belongs:
CLAUDE.md, a skill, a subagent, a hook, a permission rule, an MCP connector or an automation. - Why: Each container loads differently and costs a different amount of context. Putting a hard rule in a skill, or a rarely used manual in
CLAUDE.md, is the most common design mistake [11]. - Done when: Every rule and step is assigned to exactly one container, and every “must always” or “must never” rule is assigned to a hook, permission rule or credential restriction.
3. Write the evals first.
- What to do: Run Claude on your test requests with no skill and record where it fails. Turn those failures into eval cases with pass/fail checks, including requests that should not trigger the skill.
- Why: Anthropic recommends building evaluations before writing extensive skill text, so you fix real gaps rather than imagined ones [4].
- Done when: There are at least three should-trigger cases and two should-not-trigger cases, each with a written expected outcome, and you have a no-skill baseline score.
4. Author the skill.
- What to do: Write the
SKILL.mdfrontmatter and body, move detail into reference files, and add scripts for steps that must be exact. - Why: With progressive disclosure, only the name and description load all the time. The body and references load when needed [1][5].
- Done when: Frontmatter validates, the body is under 500 lines, references are one level deep, the skill loads correctly in a fresh session, and the evals beat the baseline.
5. Delegate bounded work to subagents.
- What to do: Move high-volume or specialist work (research, log reading, independent checking) into subagents with narrow tools, a clear input and a defined return format.
- Why: A subagent works in its own context window and returns a summary, so the main session stays focused [6][22]. It also adds coordination cost.
- Done when: Each subagent has one job, a tool allowlist, a model choice and a return format, and evals show it improves results or protects context enough to justify its cost.
6. Install guardrails.
- What to do: Write permission rules, blocking hooks for hard rules, and narrow credentials. Review every bundled script and external fetch. Test prompt-injection cases.
- Why: Deny rules take precedence over allow rules, and hooks can block a call before it runs [7][8]. Prompt injection is the first entry in OWASP’s 2025 Top 10 for LLM applications [31].
- Done when: Every “must never” rule has an enforcement mechanism, you have tried to break each one, and no unattended skill combines private data, untrusted input and an outbound channel without a human gate.
7. Automate with explicit state.
- What to do: Run the skill unattended where it makes sense, with turn and budget caps, run records, bounded retries, duplicate handling, approval binding and a human review step before any external effect.
- Why: Automation is where time savings add up. It is also where a misfire runs with nobody watching.
- Done when: The automation has run successfully on real inputs at least three times, it has survived planned failure drills without an unauthorized effect, cost per run is logged, and its output lands where a person reviews it.
8. Package, release, measure and maintain.
- What to do: Bundle the skills, subagents and hooks into a versioned plugin, roll it out in stages, run evals in CI, track accepted outcomes and total effort, and review every month.
- Why: Model releases, tool changes and policy changes can break a skill silently. Evals catch regressions, and measurement shows whether the skill is still worth keeping.
- Done when: The plugin installs cleanly on a second machine, CI fails when eval scores drop below your threshold, a named owner can explain the deployed version and how to roll it back, and the next review is on the calendar.
Keep going: the full playbook
- Playbook steps
- Rules (apply to every figure)
- Workflow
- Metric definitions
- Out of scope
- Prompts
- Checklist
- Measuring results
- Common mistakes
Book + Claude skill + MCP access. Black Friday 2026 price. Back to the book page
Or start free
4 complete playbooks, the 7-day Claude Code course and a key your AI can use right now. No card.
Free. We email you about new lessons and volumes now and then. Unsubscribe any time.
Your free key
Install (Claude Code, Codex, Gemini CLI)
Other apps: add the MCP server https://playbookmcp.com/mcp with header Authorization: Bearer + your key. Keep this key; it is shown once.