Basic Usage
Signature
Configuration Options
Required Properties
| Property | Type | Constraints | Description |
|---|---|---|---|
name | string | kebab-case, 1-64 chars, no -- | Unique skill identifier |
description | string | 1-1024 chars, no XML tags | Skill description |
instructions | string | { file: string } | { url: string } | Skill instructions |
Optional Properties
| Property | Type | Description |
|---|---|---|
tools | SkillToolInput[] | Tools used by the skill |
id | string | Stable identifier (defaults to name) |
parameters | SkillParameter[] | Input parameters |
examples | SkillExample[] | Usage examples |
tags | string[] | Categorization tags |
priority | number | Search ranking weight (default: 0) |
hideFromDiscovery | boolean | Hide from search results (default: false) |
visibility | 'mcp' | 'http' | 'both' | Discovery visibility (default: 'both') |
toolValidation | 'strict' | 'warn' | 'ignore' | Tool reference validation mode (default: 'warn') |
Agent Skills Spec Properties
These properties align with the Anthropic Agent Skills specification:| Property | Type | Description |
|---|---|---|
license | string | License name or reference (e.g. 'MIT', 'Apache-2.0') |
compatibility | string | Environment requirements (max 500 chars) |
specMetadata | Record<string, string> | Arbitrary key-value metadata (maps to spec metadata) |
allowedTools | string | Space-delimited pre-approved tools (maps to spec allowed-tools) |
resources | SkillResources | Bundled resource directories (scripts, references, assets) |
Instruction Sources
Inline String
File Reference
URL Reference
Tool References
By Name
By Class
With Purpose
With Class and Purpose
Parameters
Define input parameters for skills:Examples
Provide usage examples:Function-Based Alternative
Skill Content Output
Skills build toSkillContent:
Skill Validation
Skills are validated on server startup:- strict: Fail if skill references missing tools
- warn: Log warnings but continue
- ignore: Skip validation
Skill Sessions
Skills can be loaded into sessions for focused tool access:Full Example
SKILL.md Files
Load skills from SKILL.md files with YAML frontmatter (per Agent Skills spec):Loading SKILL.md Files
Skill Directories
Load entire skill directories with theskillDir() helper:
Agent Skills Spec Example
A fully spec-compliant skill:Related
SkillContext
Context class details
SkillRegistry
Skill registry API
@Tool
Define tools
Skills Overview
Skills documentation