Overview
Skills provide domain knowledge and reusable instructions to Claude Code. There are two distinct skill patterns:- Agent Skills: Preloaded into agents via the
skills:frontmatter field - Standalone Skills: Invoked directly via the
Skilltool or slash commands
Two Skill Patterns
Agent Skills
Preloaded via
skills: field- Injected into agent context at startup
- Not invoked separately
- Serve as domain knowledge
- Often marked
user-invocable: false
weather-fetcherStandalone Skills
Invoked via
Skill tool- Invoked directly from commands or user
- Can be called via
/slash-command - Operate independently
- User-facing functionality
weather-svg-creatorAgent Skill: Weather Fetcher
An agent skill preloaded into theweather-agent to provide API fetching instructions.
Complete Implementation
Location:.claude/skills/weather-fetcher/SKILL.md
The skill includes:
Frontmatter:
name: weather-fetcherdescription: Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo APIuser-invocable: false(this is an agent skill, not directly invocable)
- Fetch weather data from Open-Meteo API for Dubai coordinates (25.2048, 55.2708)
- Support both Celsius and Fahrenheit temperature units
- Extract temperature from JSON response field:
current.temperature_2m - Return temperature value and unit clearly
- Open-Meteo is free, no API key required
- Only fetch temperature, don’t write files
- Support both Celsius and Fahrenheit based on caller’s request
Key Implementation Details
Frontmatter: Agent Skill Marker
Frontmatter: Agent Skill Marker
skills: field. Setting user-invocable: false hides it from the / command menu.Frontmatter: Description
Frontmatter: Description
Body: Step-by-Step Instructions
Body: Step-by-Step Instructions
How It's Loaded
How It's Loaded
In When the agent starts, the skill content is injected into its context. The agent can then “follow the weather-fetcher skill instructions” without needing a separate invocation.
.claude/agents/weather-agent.md:Standalone Skill: Weather SVG Creator
A standalone skill invoked directly to create visual output.Complete Implementation
Location:.claude/skills/weather-svg-creator/SKILL.md
Frontmatter:
name: weather-svg-creatordescription: Creates an SVG weather card showing the current temperature for Dubai. Writes the SVG to orchestration-workflow/weather.svg and updates orchestration-workflow/output.md.
- Create SVG Weather Card - Generate a clean SVG weather card with temperature, unit, and location text
- Write SVG File - Write the SVG content to
orchestration-workflow/weather.svg - Write Output Summary - Write markdown summary to
orchestration-workflow/output.mdwith temperature, location, unit, and embedded SVG
- Use the exact temperature value and unit provided - do not re-fetch or modify
- The SVG should be a self-contained, valid SVG file
- Keep the design minimal and clean
- Both output files go in the
orchestration-workflow/directory
Key Implementation Details
Frontmatter: User-Invocable
Frontmatter: User-Invocable
user-invocable: false — this skill CAN be invoked directly via /weather-svg-creator or the Skill tool.Body: Template-Based Instructions
Body: Template-Based Instructions
The skill body provides template-based instructions for creating SVG weather cards:
- Includes the exact SVG structure with placeholders for temperature
- Provides styling guidelines (colors, fonts, layout)
- Shows example output format
Body: File Output Instructions
Body: File Output Instructions
How It's Invoked
How It's Invoked
From The command uses the
.claude/commands/weather-orchestrator.md:Skill tool. The skill receives the temperature data from the conversation context (from the previous agent invocation).Comparison: Agent Skills vs Standalone Skills
- Agent Skills
- Standalone Skills
Weather Fetcher (Agent Skill)
Frontmatter:- Preloaded via
skills:field - Not invoked separately
- Provides procedural knowledge
- Often marked
user-invocable: false - Scope: domain instructions for the agent
Advanced: Presentation Structure Skill
An agent skill that provides structural knowledge for a self-evolving agent.Implementation Excerpt
Location:.claude/skills/presentation/presentation-structure/SKILL.md
Journey Bar Weight System
- Slides with
data-weight="N"contribute N% to the journey progress bar - All weights across the entire presentation MUST sum to exactly 100
- The journey bar reads weights at page load and pre-computes cumulative sums
- Slides without
data-weightcontribute 0% (informational slides, appendix)
Weight Distribution by Section
| Section | Range | Total Weight |
|---|---|---|
| Part 0: Introduction | Slides 1-4 | 0% |
| Part 1: Prerequisites | Slides 5-9 | 0% |
| Part 2: Better Prompting | Slides 10-17 | 20% |
| Part 3: Project Memory | Slides 18-24 | 20% |
| … |
.claude/skills/test-reporter/SKILL.md with YAML frontmatter and instructions.
Best Practices
Use Agent Skills for Knowledge
Preload domain knowledge, API patterns, and procedural instructions into agents via the
skills: field.Use Standalone Skills for Tasks
Create user-invocable skills for reusable tasks like formatting, reporting, or code generation.
Mark Agent Skills as Non-Invocable
Set
user-invocable: false for agent skills to keep the / menu clean.Provide Clear Instructions
Use numbered steps, code examples, and expected outputs to guide execution.
Pattern Summary
| Pattern | Invocation | Visibility | Use Case | Example |
|---|---|---|---|---|
| Agent Skill | Preloaded via skills: | user-invocable: false | Domain knowledge for agents | weather-fetcher |
| Standalone Skill | Skill tool or /command | User-visible | Reusable tasks | weather-svg-creator |
Related Documentation
Commands Implementation
Learn how commands invoke skills
Subagents Implementation
See how agents use preloaded skills
Orchestration Workflow
Understand the complete Command → Agent → Skill pattern
