πŸ€– Claude Skills - Introduction & Overview πŸš€

A **Skill** is an organized package of instructions, scripts, and resources that gives a Claude agent the ability to perform a specific task with expertise.

Table of Contents

  1. What is a Skill?
  2. Why Skills? Key Advantages
  3. Two Types of Skills
  4. Skill Structure
  5. Progressive Loading
  6. Using Skills in Claude Code
  7. Skill Composability

1. What is a Skill?

A Skill is an organized package of instructions, scripts, and resources that gives a Claude agent the ability to perform a specific task with expertise.

Think of it like a playbook β€” when you want Claude to achieve a particular goal, you define a Skill so that Claude follows the precise instructions within it and delivers accurate, deterministic results.

πŸ’‘ Simple Analogy: A generalist (base Claude) can do many things reasonably well. A Skill turns Claude into a specialist β€” it knows exactly what tools to use, what format to follow, and how to validate its output for that one job.

Skills are currently popular across AI Agent and LLM ecosystems because they bridge the gap between raw model capability and reliable, production-grade task execution. They are predefined executable patterns β€” and that predictability is their power.


2. Why Skills? Key Advantages

Advantage Description
⚑ Token Optimization Skills are loaded only when relevant, reducing unnecessary token consumption
πŸ“š Easy to Learn High-level abstractions β€” describe what to do, not how Claude reasons through it
🧩 Composability Multiple Skills can be combined to achieve complex, multi-step goals
πŸš€ More Efficient Pre-structured instructions mean less back-and-forth, fewer clarification loops
🎯 Deterministic & Accurate Predefined executable scripts produce consistent, predictable results
πŸ”’ Guardrails Built-In Embed validation steps, output format rules, and error handling

3. Two Types of Skills

πŸ› Anthropic Built-In Skills

Ready-to-use skills maintained and versioned by Anthropic:

Skill Purpose
xlsx Excel / spreadsheet generation
docx Word document creation & editing
pdf PDF generation, merging, OCR
pptx PowerPoint deck creation
frontend-design Production-grade UI components
product-self-knowledge Accurate Anthropic product facts

πŸ›  User-Defined Custom Skills

Build anything your workflow needs:

Skill Purpose
stock-analyzer Technical + fundamental analysis
security-monitor Threat detection & alerting
agent-orchestrator Multi-agent task coordination
email-processor Custom inbox workflows
code-reviewer Opinionated code quality checks
your-skill-here Anything your workflow needs!

Key difference: Anthropic-loaded Skills are maintained by Anthropic. Custom Skills are yours β€” you define them, own them, and they can be as domain-specific as needed.


4. Skill Structure

Every Skill lives in its own directory and revolves around a single key file: SKILL.md.

stock-analyzer/
β”œβ”€β”€ SKILL.md              ← The brain Β· metadata + instructions (required)
β”œβ”€β”€ helper-script.py      ← Shared utility functions
β”œβ”€β”€ templates/            ← Output blueprints
β”‚   β”œβ”€β”€ report.html       ← HTML report layout with 
β”‚   └── email.txt         ← Email message template
└── resources/            ← Static reference data
    └── reference-data.json  ← Lookup tables, configs, benchmarks

What each file does

🐍 helper-script.py β€” Utility Script

Reusable Python functions that every other file in the skill depends on. Written once, called everywhere. No code generation at runtime.

# helper-script.py β€” shared utilities
def format_currency(value):
    return f"${value:,.2f}"

def pct_change(old, new):
    return f"{((new-old)/old)*100:+.1f}%"

πŸ“ templates/ β€” Output Blueprints

Pre-built output layouts with `` tokens. Claude populates them at runtime β€” guaranteeing consistent formatting every time.

templates/report.html

<h1> β€” Stock Report</h1>
<p>Price:   Β·  RSI: </p>
<div id="chart"></div>

templates/email.txt

Subject:  Analysis β€” 

Hi ,
 closed at  ().
RSI:  Β· Signal: 

πŸ“ resources/reference-data.json β€” Static Reference Data

Static facts Claude looks up on-demand instead of reasoning from scratch. Results are always consistent.

{
  "sector_pe_benchmarks": {
    "Technology": 28.5,
    "Healthcare": 22.1,
    "Financials": 14.3
  },
  "rsi_thresholds": { "overbought": 70, "oversold": 30 }
}

SKILL.md β€” The Core File

The SKILL.md file has two parts:

  1. YAML frontmatter β€” lightweight metadata Claude reads first (always in memory)
  2. Full instruction body β€” loaded only when the skill triggers
---
name: stock-analyzer               # max 64 characters
description: |                     # max 1024 characters
  Analyze stocks using technical indicators (RSI, MACD,
  Bollinger Bands) and generate reports with price
  projections. Use for swing trading and portfolio review.
  Triggers: "analyze AAPL", "stock report for MSFT",
  any ticker + time period combination.
---

# Full instructions below β€” loaded only when skill triggers
# Up to ~5,000 tokens of detailed guidance
Field Limit Purpose
name 64 chars Unique identifier seen by Claude
description 1,024 chars Determines when Claude triggers this skill
Full instructions < 5k tokens The detailed playbook
Linked files On-demand Scripts, templates, data

5. Progressive Loading

Claude never loads everything at once. Only what’s needed, when it’s needed.

Level 1: Metadata (name + description)
         β†’ Always in memory Β· Zero cost

              ↓  skill triggers

Level 2: SKILL.md body
         β†’ Full instructions load into context
         β†’ User says "analyze AAPL" β†’ description matches

              ↓  Claude needs detailed info

Level 3: Resources (indicators.md, reference-data.json)
         β†’ Loaded only if required
         β†’ e.g. Claude needs the RSI formula to explain output

πŸ’‘ This keeps Claude’s context lean while providing deep expertise exactly when needed.


6. Using Skills in Claude Code

Claude Code is the CLI that lets you run Claude directly from your terminal β€” with native Skills support.

Step 1 β€” Install Claude Code

npm install -g @anthropic-ai/claude-code
claude --version
# Claude Code 1.x.x β€” ready

Step 2 β€” Place Your Skill Package

Drop your skill folder inside .claude/skills/ in your working directory:

claude-workspace/              ← open terminal from here
└── .claude/                   ← Claude Code config folder
    └── skills/                ← all skill packages live here
        └── stock-analyzer/    ← your skill package
            β”œβ”€β”€ SKILL.md       ← required
            β”œβ”€β”€ helper-script.py
            β”œβ”€β”€ templates/
            └── resources/

πŸ’‘ .claude/ is to Claude Code what .git/ is to Git β€” the project-level config home.

Step 3 β€” Launch Claude Code & Run /skills

~/claude-workspace $ claude
βœ“ Claude Code started Β· project: claude-workspace

claude> /skills

πŸ“¦ Available Skills (1 found in .claude/skills/)

  01  stock-analyzer   Comprehensive stock analysis using Yahoo Finance data

Type a query to trigger a skill automatically, or use /skill <name> to invoke directly

claude> Analyze the stock AAPL for last 6 months

⚑ Skill matched: stock-analyzer  (triggered by: "analyze the stock")
πŸ“₯ Loading SKILL.md instructions...
🐍 Running helper-script.py β†’ analyze_stock.py --symbol AAPL --period 6mo
πŸ“Š Generating report from templates/report.html...

βœ… Analysis Complete β€” AAPL (6 months)
   Current Price: $195.71  |  6mo Return: +31.4%
   RSI: 58.4 (Neutral)     |  P/E: 32.4x
   Report saved: aapl_report_6mo.html

Bonus β€” Direct Skill Invocation

claude> /skill stock-analyzer
πŸ“¦ Skill loaded. What would you like to analyze?

claude> Compare NVDA and AVGO over 1 year
⚑ Running analysis for 2 symbols: NVDA, AVGO...

Quick Reference

Command What it does
/skills List all skills in .claude/skills/
/skill <name> Directly invoke a skill by name
Natural query Claude auto-matches to the right skill
.claude/skills/ Place skill folder here to activate it

7. Skill Composability

One of the most powerful features β€” multiple Skills working together in a single request.

πŸ“Š xlsx  +  πŸ“„ docx  +  πŸ“ˆ stock-analyzer  =  πŸš€ Full Research Report

A single request β€” β€œAnalyze NVDA and give me a Word report with an Excel data appendix” β€” triggers three Skills simultaneously. Each contributes its specialty, Claude orchestrates them seamlessly.


Key Takeaways

  • Skills = organized packages of instructions, scripts, and resources for specific tasks
  • Two types: Anthropic built-in (xlsx, docx, pdf, pptx) and user-defined custom Skills
  • SKILL.md is the core β€” YAML frontmatter for discovery, full instructions for execution
  • Progressive loading keeps token usage efficient β€” only load what you need
  • .claude/skills/ is where Claude Code discovers your skill packages
  • Skills are composable β€” combine multiple Skills for complex, multi-step workflows
  • Results are more deterministic because the execution path is pre-defined

πŸš€ Up Next: Hands-On Session β€” Build your own Skill from scratch