Single logo
  • Courses
  • Blog
  • About
Join on SkoolJoin on Skool

In this topic

Claude
  • Claude.ai Interface Tour: Every Control You Need on One Screen
  • The AI Fluency Model: Delegation, Description, Discernment and Diligence
  • Working With Claude: Pick the Surface, Match the Model, Keep the Context Clear
  • Claude's Four Entry Points: Choose Chat, Projects, Artifacts or Research Before You Type
  • What Claude Can Do: Extended Thinking, Web Search, Artifacts and File Analysis
  • Getting More From a Claude Chat: Steer the Conversation Instead of Starting Over
  • Claude Research Mode End to End: From One Prompt to a Cited Briefing
  • Claude's Capability Layer: When to Use Skills, Code Execution or Memory
  • Code Execution and File Creation in Claude: Calculated Numbers and a Real Excel File
  • Adding and Using Skills in Claude: Let Claude Pick the Skill, Then Teach It Your Format
  • Claude Memory, Curation and Incognito: Keep What Helps, Remove What Has Gone Stale
  • Claude Styles, Preferences and Project Instructions: Three Dials, Three Scopes
  • Claude Projects: Knowledge, Instructions and a Real Workspace You Set Up Once
  • Keeping a Claude Project Current and Connected: Refresh, Prune and Grant the Least
  • Claude Scheduled Tasks: Let Claude Work on a Schedule and Email You the Result
  • Claude Code and Claude for Chrome: What They Are and Who They Are For
  • Anatomy of a Good Prompt: Role, Context, Task, Format and Examples
  • Shaping Claude's Output: Format, Tone and Length in a Few Words
  • Iterating and Refining a Prompt: Read, Diagnose, Adjust, Repeat
  • Five Prompting Patterns for Work: Summarise, Extract, Rewrite, Classify and Draft
  • Why Evaluating AI Output Matters Most: Trust, Then Verify
  • Spotting AI Hallucinations and Fabrications: Four Tells and Where Risk Spikes
  • Fact-Checking Claude's Answers: Four Techniques and a Line-by-Line Claim Log
  • Judging AI Output Quality: Four Questions That Score Any Answer
  • Adapting AI Output for Your Audience: One Answer, Three Readers
  • When a Human Must Review AI Output Before It Ships
  • A Personal Validation Checklist for AI Output: Six Lines, Any Draft
  • Fitting Claude Into Real Work: Where It Helps and Where It Never Should
  • Breaking Big Tasks Into Steps With Claude: Small Asks, Checked Hand-offs
  • Designing a Repeatable Claude Workflow: A Reusable Weekly Report Template
  • Measuring If Claude Is Actually Working: One Number, Before and After
  • Communicating AI Value and Limitations to Stakeholders: The Honest Pitch
  • Data Privacy With Claude: What Never Goes in a Prompt, and How to Redact a Document Before You Paste It
  • Responsible AI Use and Transparency: Helpful, Honest, Harmless, and One Honest Line
  • Troubleshooting a Weak Claude Answer: Name the Cause, Fix One Thing, Then Make It Cheaper
  • CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages
  • Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It
  • One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI
  • Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges
  • Hooks That Block Destructive Actions: a PreToolUse Gate That Allows, Asks or Denies
  • Choosing a Claude Code Extension: Skill, Hook, Rules File, Subagent, Slash Command or Plugin
  • Rolling Out Claude Code to a Team: Settings Precedence, dontAsk in CI, a Hook for Every-Time Rules and a Plugin for Five Repos
  • A Claude Code Review Bot in CI: Headless -p, JSON Findings, Team Rules in Git and a Person on the Merge
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Configuring MCP Servers in Claude Code: A Command or a URL, Three Scopes, and Three Moves When One Breaks
  • Claude Code's Built-in Tools: Read, Write, Edit, Bash, Grep and Glob, and When Each One Is the Right Pick
  • The CLAUDE.md Hierarchy: User, Project and Directory Files, How They Stack, and the Team Rule Stuck on One Laptop
  • Split a 600-Line CLAUDE.md: @import Lines, .claude/rules Files and Which One to Pick
  • Path-Specific Rules in Claude Code: paths Globs, When a Rule Loads and the Glob That Matches Nothing
  • Claude Code Slash Commands and Skills: Project vs User Scope, $ARGUMENTS, context: fork and allowed-tools
  • Iterative Refinement with Claude Code: Input/Output Examples, Tests First and the Interview Pattern
  • Claude Code Sessions: Resume by Name, Fork From a Baseline, or Start Fresh With a Summary Card
  • CI Reviews That Don't Repeat Themselves: Prior Findings, Existing Tests and Test Standards in CLAUDE.md
  • Fleet Telemetry for Parallel Coding Agents: Find the Stampede, the Hotspot and the Runaway That Per-Agent Alerts Miss
  • AI Code Review That Earns the Right to Block: Shadow Mode, Calibration Against Human Review, Then a Gate
  • Org-Wide Claude Code: Managed Settings With the Locks On, an MCP Allowlist by Address, and One Pinned LLM Gateway
  • Sharing Skills, Prompts and MCP Servers Across Teams: One Quality Gate Before the Shared Catalog
  • Claude Code Plugins and Marketplaces for an Org: Package a Skill, a Hook and an MCP Server, Check Them, Then Lock the Sources
  • Where Claude Joins a Developer Workflow: Interactive, GitHub Action or claude -p, Then Measure the Outcome
  • An Ops Runbook for Claude Failures: Case Cards, Request IDs, Owners and a Read-Only Investigation
  • The Claude Messages API: Your First Call, Field by Field
  • Claude Tool Use: How tool_use and tool_result Work in the Messages API
  • Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
  • Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
  • Claude Streaming Events: The Event Order, message_stop, Tool Arguments, Stop Reasons and a WebSocket Relay
  • Images, PDFs and Thinking Blocks in the Claude Messages API: Typed Blocks In, Typed Blocks Out
  • Getting Data Into Claude: PDF Documents, the Files API, Search Results and Citations
  • Opus, Sonnet or Haiku: Pick the Claude Model per Job, and Test the Request When a New Release Arrives
  • Adaptive Thinking and Effort in Claude: Two Dials, Set per Workload, and the Thinking Block You Must Pass Back
  • Claude Cost Tracking From usage: Count Before, Cap During, Read After, Then Find the Line That Drives the Bill
  • Claude Cache Breakpoints: Where to Put cache_control, How to Move It With the Chat, and Why the Reads Stay at Zero
  • Claude Message Batches or Real Time: Choose by Who Is Waiting, Match by custom_id, Resend Only the Failures
  • Calling Claude Through Amazon Bedrock, Google Cloud and Microsoft Foundry: Same Call, Different Door
  • The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
  • Pinning Claude Model IDs and Upgrading Safely: One Change at a Time, a Golden-Set Replay and a Staged Rollout
  • Content Boundaries and Schema Design for Claude: Fence the Input in a Tag, Let the Output Say I Don't Know
  • The Agentic Loop and stop_reason: Keep Turning on tool_use, Stop on end_turn, Cap the Turns
  • The Claude Agent SDK: query(), ClaudeAgentOptions and @tool, in Python and TypeScript
  • Fix the Agent: Four Broken Claude Agent SDK Configs, From the Symptom to the One Wrong Line
  • Claude Managed Agents: Cloud Sandbox, Self-Hosted Sandbox or Self-Hosted Service
  • Agent SDK Hooks for Deterministic Actions: PreToolUse, PostToolUse, and Four Hooks That Fail Silently
  • Memory and Context-Window Patterns for Claude Agents: Context Editing, Compaction and the Memory Tool
  • Reading an Agent Trace: Five Signatures, Five Missing Patterns, and How Long a Fact Must Live
  • Tool Descriptions for Claude: How Claude Picks a Tool, and How to Stop It Picking the Wrong One
  • Tool Input Schemas and Error Responses for Claude: Required Fields, Enums, is_error and a Retry Flag
  • Tool Response Shaping and a Lean Tool Set: Give Claude a Sticky Note, Not the Filing Cabinet
  • Fix the Tool Schema: Read the Trace, Fix the Card, Re-Run (Four Real Schema Bugs)
  • Client Tools, Server Tools and Approval Gates: Who Runs the Tool, and Who Says Yes First
  • Built-in Tool, Custom Tool, Skill or MCP Server? Pick the Lightest One That Fits
  • System Prompt or User Turn: Where Each Instruction Goes, and Output Limits Your Code Enforces
  • Refine the Prompt One Line at a Time, Then Clean and Fence the Customer's Text
  • Prompt Revision Driven by Evals: Name the Cause, Change One Thing, Rerun the Whole Suite
  • Long-Running Sessions: Compact, Prune, Isolate or Start Fresh, Decided by Naming the Failure
  • Context Isolation Through Subagents: Read the Logs Elsewhere, Keep One Line
  • Defensive Parsing of Claude Replies: Check the Stop Reason, Read the Block or the Text, Then Validate the Values
  • Full Context or Retrieval: Choose by Corpus Size, Cost and Freshness
  • Skepticism Toward Confident Output: Check the Quote, the Record and the Sum Before You Send
  • Debugging a Claude App: Three Error Types, the Recovery Each One Earns, and the First Failing Row
  • Six Ways a 200 Can Still Be Wrong: Hallucination, Refusal, Under-Acting, Context Loss, Format Drift and Inconsistency
  • Fix the Cause, Not the Symptom: Four Recovery Drills for an LLM App, Each Checked on a New Input
  • Integration Layer or Model Output? Three Taps and Three Questions to Find Where a Wrong Answer Lives
  • Which Test Layer Owns the Failure? Unit, Functional, Integration and End-to-End Tests for a Claude App
  • Designing an Overnight Document Pipeline on Claude: Batch Lane, Live Lane, a Cached Prefix and a custom_id Reconcile
  • Proving a Model Upgrade Is Ready: A Frozen Golden Set, a Calibrated Judge, the Right Layer and a Release Gate
  • From Requirement to Design for a Claude App: Eight Requirements, Five Elements and a Trace With No Gaps
  • Build a Claude Refund App: the Messages API, Two Tools, an MCP Server and a Hook in One Loop
  • Ship a Claude App: an Eval Gate, Two Guardrail Layers, a Cost Check From usage and a Pinned Model
  • Lab: a 30-Case Golden Set, a Calibrated Judge and a Per-Slice CI Gate on a Claude Refund App
  • Lab: Cut a Claude App's Bill by 62 Percent With Usage Data, Layered Cache Breakpoints and a Batch Job
  • Lab: Three Planted Bugs in a Claude App, a Vague Prompt, a Mistyped Tool Schema and a Broken Stream Handler
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Lab: Harden a Claude App, an Uncalibrated Judge, a Retry Loop That Retries Everything and a Hook Matcher With a Gap
  • Lab: Turn a Claude App Into a Reusable Template, One Pinned Model Id, No Key in Code and Evals Built From Data
  • Building an MCP Server: Tools, Resources and Prompts in Python and TypeScript
  • MCP Transports: stdio or Streamable HTTP, and Who Starts the Server
  • Deploying and Authenticating an MCP Server: Environment Keys for stdio, Bearer Tokens and Scopes for HTTP
  • Validation-Retry Loops for Claude Extraction: Send Back the Exact Errors, and Stop When a Retry Cannot Help
  • Multi-Pass and Multi-Instance Code Review with Claude: A Fresh Reviewer, Per-File Passes and an Integration Pass
  • When a Claude Support Agent Should Escalate: Three Clear Triggers, Not Mood or a Confidence Score
  • Error Propagation Across Subagents: Retry Locally, Then Report the Failure, the Attempts and What You Found
  • Human Review and Confidence Calibration: Check Accuracy by Type and Field Before You Stop Looking
  • Provenance in Multi-Source Research: Keep Every Claim With Its Source and Date, and Show Conflicts Instead of Settling Them
  • Lab: An Extraction Pipeline With a Nullable Schema, Validation-Retry, a 100-Request Batch and Human Review
  • Lab: A Research Pipeline With Parallel Subagents, a Timeout That Keeps Its Partial Results, and a Report With Its Trail
  • Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need
  • Passing Context to Subagents: Nothing Is Inherited, So Put Findings, Goal and Criteria in the Prompt
  • Parallel Subagents: Several Task Calls in One Response, Every Result Back in One User Turn
  • Task Decomposition: a Fixed Prompt Chain With an Integration Pass, or a Dynamic Plan That Adapts
  • Prompt Guidance vs Programmatic Gates: Block the Refund Until the Customer Is Verified, Then Hand Off a Card That Stands Alone
  • Scoped Tools per Agent and tool_choice: Three to Five Tools per Role, a Shared One, and auto, any or a Forced Tool
  • Durable Agent Runs: Save a Checkpoint After Every Tool Turn, Resume After a Kill, and Key the Email So It Goes Out Once
  • Resume on the Model the Run Started With: a Run Record That Pins the Model Id, the Prompt Version and the Notes
  • Durable Agent State by Name: an Agent SDK Session Id, a /memories Path or a Managed Agents Memory Store
  • Cache-Safe Instruction Changes and Large Tool Catalogs: Append the New Rule at the End, Defer 57 of 60 Tools With Tool Search
  • One Gateway, One Platform Table: Route a Model Alias to the Claude API, Bedrock or Google Cloud and Check Parity Before the Call
  • OpenTelemetry Tracing for a Claude Agent Loop: A Span for Every Request and Tool Call, and the Switch for Each Surface
  • Debugging Late, Far and Rare Failures in a Claude Agent: Replay the Turns, Follow the Fact, Split the Runs
  • Scheduled and Event-Driven Claude Agents: Managed Agents Deployments, Budgets, Outcomes and Webhooks
  • Latency Engineering for a Claude Agent Loop: Time to First Token vs Total, Streaming, Parallel Tools, the Cache and Effort
  • Claude Prompt Caching Strategy: Pick the TTL by the Quiet Gap, Read Cache Diagnostics, and Warm Before You Fan Out
  • Capstone: One Prompt Change Through the Whole Operating Loop, From CI Gate to Postmortem
  • Reading a Business Requirement Like an Architect: Function, Quality, Constraints and Assumptions
  • From One Claude Call to a System: Input, Processing, Output and the Feedback Loop
  • The Delegation Map: Decide What Claude Owns, What People Keep and What They Share
  • When a Packaged Skill Beats a New Agent (and a Prompt Library)
  • Five Reference Architectures for Claude Systems: Read the Cue, Name the Shape
  • Business Value Pillars for an LLM System: Turn "Cheaper and Faster" Into Targets, Then Pick the Lane
  • Which Requirement Binds? Picking the Claude Surface and Agent Runtime Under Constraints
  • The Claude Model Ladder: Pick the Cheapest Model That Passes, Then Price the Month
  • Zero-Shot, Few-Shot or Reasoning: Pick the Cheapest Prompting Technique the Failure Asks For
  • Choosing the Claude Build Stack: Client SDK, Agent SDK, Claude Code Headless or Managed Agents
  • Authentication and Authorization for Claude Agents: Find the Gaps Hop by Hop
  • Connecting Claude to a Legacy System You Can't Change: The Adapter Pattern
  • MCP, an API/CLI Call or Agent-to-Agent: Choosing How Claude Connects to a Capability
  • Progressive Discovery or Monolithic Context: Load It All, Fetch by Index, or Both
  • Speed Has a Price and the Rate Limit Is the Ceiling: Choosing Model, Effort and Fast Mode per Path
  • Reliability Controls for Claude Apps: Backoff, Idempotency Keys, Fallback Routing and Circuit Breakers
  • Six Metrics, Not One Score: Accuracy, Groundedness, Latency, Cost, Safety and Security for an LLM Agent
  • Diagnosing a Bad Answer: Prompt Failure, Hallucination or Model Mismatch?
  • Human-in-the-Loop Routing: Send Each Agent Action to Auto, Review or Block by Confidence, Reversibility and Cost
  • Working an Architecture Scenario End to End: Mark Hard and Soft Constraints, Cut, Rank, Decide
  • A Regulated Dispute Desk on Claude: Pin the Geography, Gate by Risk, Log Before Release, Fail Closed
  • Global Support Automation Scenario: Cut the Options, Route Each Ticket by Risk, Gate Every Change by Language
  • Architecture Artifact Review Drills: Find What a Diagram, Config, Trace, Eval Table, ADR or Settings File Leaves Out
  • The Architecture Decision Record for a Claude System: Context, Options, Decision, Consequences and the Evidence You Will Need
  1. Blog
  2. /
  3. Claude
  4. /
  5. Building with the Claude API

When a Packaged Skill Beats a New Agent (and a Prompt Library)

Four teams need the same escalation note. A prompt library drifts to two versions, a new agent takes three calls, and one owned Skill file serves all four teams in one call. Here is how to pick the pattern and say who decides what.

Chaand Sheikh

·27 November 2026Building with the Claude API

What you will learn

  • Compare augmented LLM, workflow, agent and Skills-based patterns on reuse, governance and risk
  • Pick a pattern from a case's constraints and name its delegation boundary in one line
  • See why pasted prompt copies drift while one owned Skill file does not
  • Avoid the reinvented agent: building a loop for a job a Skill already does

Before you start

  • What a Claude Skill is (SKILL.md)
  • Workflow or agent: who picks the next step

A team lead has an idea. Four teams (billing, delivery, returns and VIP) all need the same escalation note when a ticket changes team. So let's build a new agent for it.

Maybe. But an architect has four patterns to choose from: augmented LLM, workflow, agent and Skills. A new agent means a loop to build and test, the model picking the steps on every run, wording that can differ per run, and nobody owning the format. Yet this job has a fixed format and an owner. That's a package, not a new agent. In this article you see when the packaged Skill wins.

Sticky notes, a recipe card or a new chef

Think of sharing a recipe in a kitchen.

  • Sticky notes. Every desk copies the text. That's a prompt library: when one wording changes, the other copies stay the same.
  • A recipe card. One card, one owner, kept in the binder. That's a packaged Skill: every cook reads the same card.
  • A new chef who decides each dish on the day. That's a new agent, even when a card already covers the job.

You wouldn't hire a new chef to follow a recipe card.

Four patterns, three constraints

Each pattern answers differently on reuse, governance and risk, and draws the delegation boundary (who decides what) in a different place:

PatternReuseGovernance and riskBoundary
Augmented LLMPer requestData rules in your code; low riskClaude answers, your code supplies the data
WorkflowOne path, run many timesReviewed code, each step checkedYour code owns the path, Claude fills each step
AgentLowestYou set limits and hooks; highest risk, a wrong step can actClaude owns the path, inside your limits
SkillHighest: one file, many teamsAn owner and a versionClaude follows the package, its owner writes it

The decision rule in code

The project is a slice of SupportDesk. It runs against a stand-in: the Anthropic SDK on an httpx mock transport with scripted replies and tool calls, so no API key is needed and the replies show the design, not a real model's quality. patterns.py is a small decision rule:

"""Four patterns, three constraints. choose() picks the pattern; control() says how the risk is held."""
BOUNDARY = {
    "augmented LLM": "Claude answers, our code supplies the data",
    "workflow": "our code owns the path, Claude fills each step",
    "agent": "Claude owns the path, inside our limits",
    "skills-based": "Claude follows the package, its owner writes it",
}


def choose(case):
    if case["path"] == "open":
        return "agent"
    if case["reuse"] == "many" and case["governed"]:
        return "skills-based"
    if case["path"] == "known":
        return "workflow"
    return "augmented LLM"


def control(pattern, risk):
    high = risk == "high"
    if pattern == "agent":
        if high:
            return "turn limit + hook on writes"
        return "turn limit"
    if pattern == "skills-based":
        if high:
            return "owner signs off each version"
        return "owner edits one file"
    if pattern == "workflow":
        return "code checks each step"
    return "read-only tools"
  • If the path is unknown, nobody can write the steps, so you need an agent.
  • If many teams reuse know-how that has an owner, package it as a Skill.
  • If the path is known, it's a workflow, and your code owns every step.
  • Then the risk picks the control that holds it.

Four cases through it:

cases
C-1 augmented LLM | Claude answers, our code supplies the data | read-only tools
C-2 skills-based  | Claude follows the package, its owner writes it | owner signs off each version
C-3 workflow      | our code owns the path, Claude fills each step | code checks each step
C-4 agent         | Claude owns the path, inside our limits | turn limit + hook on writes
CaseConstraintsPattern
C-1 shipping cut-off questionOne team, low riskAugmented LLM
C-2 escalation noteFour teams, one owner, costly wordingSkills-based
C-3 nightly re-tagSteps known, nobody watchingWorkflow
C-4 delivery disputeSteps unknown, a wrong step can ship a parcelAgent

The constraints choose the pattern, and the pattern draws the boundary.

The package: one SKILL.md with an owner

Here is the escalation note as a Skill, skills/escalation-note/SKILL.md:

---

name: escalation-note
description: Write the escalation note on a team change.
metadata:
  owner: support-ops
  version: "2"
---

Write four lines, in this order.
1. Customer and order.
2. What we already tried.
3. What the next team must decide.
4. Who owns the next step.
Never promise a refund in the note.
  • A name Claude can find it by.
  • A description that says when to use it. Claude sees that first, and loads the rest only when the task matches.
  • An owner and a version, so one person can change it.
  • The rule written once for every team: never promise a refund in the note.

The full anatomy of a Skill is covered in authoring a Claude Skill.

Loading it from code

skill_store.py finds the Skill by name, splits the front matter from the body, and makes one call with the body as the system prompt. No loop and no tools, because the path is already written:

"""A packaged Skill: one SKILL.md with an owner. Claude follows the body when the task matches."""
import pathlib
from stand_in import MODEL

ROOT = pathlib.Path(__file__).with_name("skills")


def load(name):
    path = ROOT / name / "SKILL.md"
    text = path.read_text(encoding="utf-8")
    _, front, body = text.split("---", 2)
    meta = {}
    for row in front.strip().splitlines():
        key, _, value = row.partition(":")
        meta[key.strip()] = value.strip().strip('"')
    return meta, body.strip()


def run(ticket, client, name="escalation-note"):
    meta, body = load(name)
    r = client.messages.create(
        model=MODEL, max_tokens=300, system=body,
        messages=[{"role": "user", "content": ticket}],
    )
    return meta, r.content[0].text

One file per Skill, found by its name, so adding a Skill never changes the loader.

A library drifts, a Skill does not

Now the same note, carried three ways. library.py pastes the text into four teams and then the owner fixes the wording in one copy:

"""A prompt library: one text file that every team pastes into its own prompt."""
import pathlib

TEAMS = ["billing", "delivery", "returns", "vip"]
TEXT = (pathlib.Path(__file__).with_name("prompts") / "escalation.md").read_text(encoding="utf-8")


def paste():
    return {team: TEXT for team in TEAMS}


def fix_one(copies, team, text):
    copies[team] = text


def versions(copies):
    return len(set(copies.values()))

The recorded run:

library
teams 4 | fix reached 1 | versions in use 2
skill
escalation-note v2 | owner support-ops | teams 4 | versions in use 1
new agent for C-2: calls 3 | same job by the skill: calls 1
One note, three ways to share it Prompt library sticky notes fixed old old old 2 versions in use no owner Packaged Skill recipe card SKILL.md v2 support-ops 1 version, 4 teams 1 call New agent new chef a loop picks the steps each run 3 calls, same job format owned by nobody
One fix, one file, four teams. The package has an owner; the copies do not.

With the library, the fix reached one team, so two versions are in use and the notes can differ. With the Skill, there is one file, version 2, owned by support-ops, and one version in use for all four teams. The new agent took three calls where the Skill needed one. Those call counts come from the stand-in's scripted tool plan, so they show the shape, not a measured cost.

When a library is enough, and when a Skill earns its place

A prompt library is enough whenA Skill earns its place when
One team uses the textMany teams share the know-how
It's plain textFiles or scripts ship beside the text
A stale copy costs littleIt needs an owner and versions
Claude should load it only when the task matches

Start with the library. Package a Skill when the reuse needs an owner. Where the package sits for prompt caching is a separate decision.

Skills is one building block among seven

primitives.py lists the blocks an architect can reach for, with their status as the docs give it today:

"""The building blocks an architect can reach for. Status is what the docs say today."""
PRIMITIVES = [
    ("tools", "Claude picks, our code runs", ""),
    ("MCP", "a standard plug for tools and data", ""),
    ("subagents", "a lead hands work to a helper", ""),
    ("hooks", "our code runs at fixed points", ""),
    ("Skills", "a package Claude loads on a match", ""),
    ("agent teams", "sessions that message each other", "experimental"),
    ("dynamic workflows", "an agent writes a program of agents", "beta"),
]
primitives: 7 | beta or experimental: 2

Per the lecture, agent teams are experimental in Claude Code and dynamic workflows are in beta in Managed Agents. For choosing between tools, Skills and MCP for one capability, see built-in tool, custom tool, Skill or MCP.

The trap: the reinvented agent

The job is an escalation note with a fixed format and one owner, and a new agent gets built anyway. Three symptoms:

  • It takes three calls where the Skill needs one.
  • The path is the model's, on every run.
  • The format lives in a prompt nobody owns.

The repair is small. Ask first whether a package already does the job. Reuse the Skill and name its owner. Build an agent only when the path is open. When a scenario gives you reuse, governance and risk, pick one pattern, name all three, and justify the boundary in one line. The agent-versus-workflow side of this choice is in workflow or agent.

Quick recap

QuestionIf yes
Is the path open, unknown until run time?Agent, with a turn limit (and a hook on writes when risk is high)
Is the know-how reused by many teams and does it need an owner?Skill, with an owner who signs off each version
Is the path known?Workflow, code checks each step
None of these, one answer per request?Augmented LLM with read-only tools

The project files for this lesson are in the community, free to join.

Try it yourself

Add a fifth case: a refund-reason code that three teams must apply the same way, where a wrong code only mislabels a report. Write its path, reuse, governed and risk values, predict what choose() and control() return, and write the boundary in one line.

Tried the exercise? Share your answer or ask a question.

The StudyEasy AI Community is free to join, with the lesson files, notebooks and code.

Join free on Skool

Keep going in Claude · 145 of 165

Previous
The Delegation Map: Decide What Claude Owns, What People Keep and What They Share
Next post
Five Reference Architectures for Claude Systems: Read the Cue, Name the Shape

Related course on Udemy

Claude Certified Architect - Professional (CCAR-P) Exam Prep

Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)

Related posts

The Claude Messages API: Your First Call, Field by Field

One request in, one Message out. The four fields of a Messages API call (model, max_tokens, system, messages), how to read content blocks, stop_reason and usage, and why every turn resends the history.

Claude Tool Use: How tool_use and tool_result Work in the Messages API

Follow one order question through Claude's tool round trip: define a tool, read the tool_use block, run your own function and send a matching tool_result back, including parallel calls and is_error.

Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared

Every Claude client SDK wraps the same REST request: a POST to /v1/messages with a JSON body. See it built by hand, through the Python and TypeScript SDKs, as typed errors, and as async calls that wait together.

Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move

Configure the Anthropic SDK client (timeout, max_retries, with_options, async, pagination), see which errors it retries by itself, then repair a retry wrapper so a 429, a 529, a 400 and a timeout each get the move the docs support.

On this page

  • Sticky notes, a recipe card or a new chef
  • Four patterns, three constraints
  • The decision rule in code
  • The package: one SKILL.md with an owner
  • Loading it from code
  • A library drifts, a Skill does not
  • When a library is enough, and when a Skill earns its place
  • Skills is one building block among seven
  • The trap: the reinvented agent
  • Quick recap
  • Try it yourself
Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Related course on Udemy

Claude Certified Architect - Professional (CCAR-P) Exam Prep

Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)

Single logo

Empowering Education, One Course at a Time

About
About usContact us
Legal
Terms of UsePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.