Claude Skills Configuration - Learning Notes

Claude Skills Configuration - Learning Notes

What Is It?

  • Agent Skills are a lightweight, open format for extending AI agent capabilities.
  • A skill is a folder of organized files consisting of instructions, scripts, assets and resources that agents can discover to perform a specific task accurately. At their core, skills are a collection of prompts and some script files — Claude reads the prompt instructions and uses them to invoke the script files to complete a task.

When Should You Create a Skill?

  • If a use case needs to persist across sessions — for example, if a user gives a command in one conversation and the system needs to continue executing that command in future conversations — then creating a skill is a good approach.

The Design Philosophy Behind Skills

  • Modularity: Break functionality into independent modules, each responsible for a specific task, making them easy to maintain and reuse.
  • Progressive disclosure: Show relevant information or functionality only when the user needs it, avoiding information overload.
  • On-demand loading: Load relevant resources or code only when the user needs to use a particular feature, improving performance and responsiveness.

  • MCP is primarily used for fetching data.
  • Tools (such as shell or Python scripts) are primarily used for processing data or executing specific tasks.
  • Skills are a higher-level concept — they can contain multiple MCPs and Tools to deliver a complete feature.
  • SubAgents are responsible for handling specific tasks and reporting results back to the main agent. A SubAgent can invoke its own MCPs and Tools to complete its work, but its output is ultimately consumed by the main agent.

Skill File Structure

A Claude Code Skill is essentially a Markdown file stored under ~/.claude/skills/. When a user invokes it via /skill-name, Claude reads the file’s content and executes it as instructions.

1
2
3
4
5
6
~/.claude/skills/
├── my-skill.md # Single-file Skill (simplest form; all lowercase recommended, avoid Claude keywords)
├── my-skill/ # Directory-form Skill (supports accompanying scripts)
└── SKILL.md # Required — the Skill's entry point file
└── Reference/ # Optional script directory for files called by the Skill
└── helper.sh # Example script file
  • A skill can include not only Markdown files but also shell scripts, Python scripts, icons, images, and other asset files.

SKILL.md Format

Each Skill file consists of two parts: Front Matter (metadata, file header) and the body (instruction content).
External reference folder

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
name: knowledge-importer
description: Converts PDF knowledge-base documents into Hexo Markdown format using AI-powered formatting
user-invocable: true # Whether it can be manually invoked via /name; defaults to true
---

## Preset Skills
[Anthropics Skills](https://github.com/anthropics/skills)

## Tool Title

Write the detailed instructions Claude needs to execute here...

### Usage
...

Front Matter field reference:

Front matter requirements

Field Required Description
name Yes The Skill name, used for /name invocation; supports kebab-case
description Yes A one-sentence description Claude uses to decide when to trigger the Skill automatically
user-invocable No true (default) — users can invoke manually; false — referenced internally by the system only

Storage Locations and Scope

Path Scope
~/.claude/skills/ Global — available to all projects
<project>/.claude/skills/ Project-level — available to the current project only

Both locations can coexist; project-level Skills are merged with global Skills.
The Skill body can reference script files, and Claude will invoke them via the Bash tool during execution.

Skill Installation

Looking at my own Skills, I noticed that some of the MCPs I had installed earlier also appear inside this Skill.

Best Practices

Commands

1
Use the skill-creator to evaluate how well my skills in @../custom_skills/ have followed the best practices. Use subagents in parallel,each subagent evaluates one.

You can use Claude’s built-in skill-creator directly to audit whether a given Skill follows the conventions.

Other Questions

What Is the Difference Between a Claude Code Skill and an OpenClaw Skill?

Dimension Claude Code Skills OpenClaw Skills
Nature Predefined prompt templates triggered by /command Folders containing SKILL.md — modular plugins
Use case Software engineering (code, Git, etc.) General automation (browser, email, shell, etc.)
Interaction Terminal /skill-name Natural-language conversation management
Ecosystem Official + a handful of plugins ClawHub marketplace with 13,000+ community skills
Extension Plugin mechanism Install community Skills or write your own SKILL.md
Standard Claude Code’s own format Based on the open Anthropic Agent Skills standard

In short: Claude Code Skills are shortcut commands for developer tools; OpenClaw Skills are a plugin system for general-purpose AI agents with much broader coverage. The latter is an evolutionary development of the former’s philosophy.

Skill Portability Across the Claude Ecosystem

This discussion comes from Andrew Ng’s course on Bilibili. The video subtitles are rough, so it’s worth going straight to the notes instead.

20260331-154900

The four Claude ecosystem products mentioned in the course map to the following:

Product What It Is Audience Key Characteristics
claude.ai (web) Browser-based chat interface General users, everyday use No installation required — just sign up; supports file uploads, image analysis, web search; free tier and Pro subscription
Claude Desktop (desktop app) Standalone desktop client installed locally (Windows/macOS) General users, everyday use Similar to the web interface, but adds local MCP (Model Context Protocol) integration — connect to local file systems, databases, external APIs, and more for richer workflows
Claude API (API interface) HTTP/SDK programming interface for developers (api.anthropic.com) Developers, enterprises Pay-per-use (token billing); programmable — embed it in your own products; supports Tool Use (function calling), streaming output, etc.; accessed via the Python SDK (anthropic) or TypeScript SDK (@anthropic-ai/sdk)
Claude Code (CLI tool) Terminal command-line tool (claude command), designed for software engineering Developers, programmers Runs in the terminal; can read and write files, execute shell commands, search code directly; understands the full project context and handles complex multi-file tasks; supports parallel SubAgent processing and MCP Server extensions; built on the Claude API but wrapped in a developer-friendly workflow
Agent built with Claude Agent SDK (custom Agent) Custom AI Agent applications built by developers using the Claude Agent SDK Developers building their own products The Agent SDK is a framework for building Agents with autonomous capabilities (planning, multi-step execution, tool calling); Agents have a “think–act–observe” agentic loop; you can customize the toolset, system prompt, and safety boundaries; the end product is your own application, with Claude as the “brain”

This separation actually makes a lot of sense — it keeps different environments from interfering with each other.

Moving from Claude AI’s graphical interface to pure API programming does take some adjustment. But once you understand how the code execution tool and the Files API work together, you’ll find this programming model gives you unprecedented control. The graphical interface is great for quickly validating ideas; the API is what you reach for when building scalable, production-grade applications.

The sandboxed environment with no internet access looks like a constraint at first, but from a security standpoint it’s a sensible design. If you need network access, you can pre-download data outside the container or combine it with other APIs. Remember: constraints often push you toward more elegant solutions.

References

  1. Andrew Ng’s Skills course (Bilibili)
  2. Reference notes