Skip to main content

Overview

Skills provide domain knowledge and reusable instructions to Claude Code. There are two distinct skill patterns:
  1. Agent Skills: Preloaded into agents via the skills: frontmatter field
  2. Standalone Skills: Invoked directly via the Skill tool or slash commands
This page shows real implementations of both patterns.

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
Example: weather-fetcher

Standalone Skills

Invoked via Skill tool
  • Invoked directly from commands or user
  • Can be called via /slash-command
  • Operate independently
  • User-facing functionality
Example: weather-svg-creator

Agent Skill: Weather Fetcher

An agent skill preloaded into the weather-agent to provide API fetching instructions.

Complete Implementation

Location: .claude/skills/weather-fetcher/SKILL.md The skill includes: Frontmatter:
  • name: weather-fetcher
  • description: Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
  • user-invocable: false (this is an agent skill, not directly invocable)
Body Instructions:
  1. Fetch weather data from Open-Meteo API for Dubai coordinates (25.2048, 55.2708)
  2. Support both Celsius and Fahrenheit temperature units
  3. Extract temperature from JSON response field: current.temperature_2m
  4. Return temperature value and unit clearly
Expected Output:
Notes:
  • 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

This skill is not meant to be invoked directly. It’s preloaded into agents via the skills: field. Setting user-invocable: false hides it from the / command menu.
The description explains what the skill does. Since it’s not user-invocable, this is mainly for documentation.
Agent skills provide procedural knowledge. They tell the agent HOW to accomplish a task, including exact API URLs, field paths, and expected outputs.
In .claude/agents/weather-agent.md:
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.

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-creator
  • description: 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.
Body Instructions: Task: Create an SVG weather card displaying the temperature for Dubai, UAE, and write it along with a summary to output files. Steps:
  1. Create SVG Weather Card - Generate a clean SVG weather card with temperature, unit, and location text
  2. Write SVG File - Write the SVG content to orchestration-workflow/weather.svg
  3. Write Output Summary - Write markdown summary to orchestration-workflow/output.md with temperature, location, unit, and embedded SVG
Expected Input: Temperature value and unit from the weather-agent (e.g., “28°C” and “Celsius”) Notes:
  • 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

No user-invocable: false — this skill CAN be invoked directly via /weather-svg-creator or the Skill tool.
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
Standalone skills often provide templates and examples that can be followed directly.
Unlike agent skills (which just fetch data), standalone skills can perform file operations and create outputs.
From .claude/commands/weather-orchestrator.md:
The command uses the Skill tool. The skill receives the temperature data from the conversation context (from the previous agent invocation).

Comparison: Agent Skills vs Standalone Skills

Weather Fetcher (Agent Skill)

Frontmatter:
Usage:
Characteristics:
  • 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-weight contribute 0% (informational slides, appendix)

Weight Distribution by Section

Claude will generate .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

Commands Implementation

Learn how commands invoke skills

Subagents Implementation

See how agents use preloaded skills

Orchestration Workflow

Understand the complete Command → Agent → Skill pattern