π€ 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
- What is a Skill?
- Why Skills? Key Advantages
- Two Types of Skills
- Skill Structure
- Progressive Loading
- Using Skills in Claude Code
- 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:
- YAML frontmatter β lightweight metadata Claude reads first (always in memory)
- 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.mdis 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