Using Agent Skills
Agent Skills are self-contained folders with instructions and bundled resources that enhance AI capabilities for specialized tasks. Based on the Agent Skills specification, each skill contains aSKILL.md file with detailed instructions that agents load on-demand.
What are Agent Skills?
Skills differ from agents and instructions by supporting bundled assets (scripts, code samples, reference data) that agents can utilize when performing specialized tasks.Key Differences:
- Agents define AI personas with specific tools and behaviors
- Instructions provide coding standards that apply to file patterns
- Skills are self-contained folders with instructions + bundled resources
Skill Structure
Each skill is a folder containing:SKILL.md Frontmatter Requirements
SKILL.md Frontmatter Requirements
- name (required): Lowercase with hyphens, matching folder name, max 64 characters
- description (required): Wrapped in single quotes, 10-1024 characters
- Folder name: Must match the
namefield exactly
Installing Skills
- Copy Skill Folder
- Via Plugin
- Generate with npm
Browse skills catalog
Navigate to the skills/ directory in the repository.
Download entire folder
Copy the entire skill folder (not just SKILL.md) to your local skills directory.
How Skills Work
Skills use progressive disclosure to load resources on-demand:Skill Discovery
Agents discover skills through:
- Explicit user request (“use the aspire skill”)
- Automatic detection based on task context
- Skill catalog lookup
Instruction Loading
The agent loads the
SKILL.md file, which contains:- Overview of skill capabilities
- When to use the skill
- References to bundled assets
- Step-by-step workflows
Skill Examples
Here are popular skills from the repository:- Aspire Skill
- Azure Resource Visualizer
- Dataverse Python Production
- MCP Server Generator
Purpose: Aspire distributed-app orchestration
Assets: CLI reference, deployment guides, integration catalogWhen to use: Creating, running, debugging, configuring, or deploying Aspire applications.
Assets: CLI reference, deployment guides, integration catalog
Bundled Assets
Skills can include various types of assets:Asset files should be reasonably sized (under 5MB per file) and referenced in SKILL.md instructions.
When to Use Skills vs Instructions
Use Skills When...
Use Skills When...
- You need bundled resources (scripts, templates, data)
- The task is complex and repeatable
- You want on-demand loading to save context
- Multiple reference documents are needed
- The workflow requires helper utilities
- Generating MCP servers (needs templates + SDK docs)
- Azure resource visualization (needs diagram templates)
- Dataverse integration (needs code patterns + examples)
Use Instructions When...
Use Instructions When...
- Applying coding standards to file patterns
- Enforcing team conventions
- No bundled assets needed
- Simple, always-on guidance
- C# naming conventions
- React component patterns
- Security best practices
Creating Your Own Skills
To create a skill for your team:Add bundled assets
- Reference docs in
references/ - Helper scripts in
scripts/ - Code templates in
templates/ - Sample data in
assets/
Best Practices
Structure for Progressive Disclosure
Structure for Progressive Disclosure
- SKILL.md should be concise (1-2 pages)
- Move detailed content to
references/ - Load references on-demand, not all at once
- Use clear file names (e.g.,
API-REFERENCE.md, notref1.md)
Keep Assets Focused
Keep Assets Focused
- Each reference should cover one topic
- Scripts should do one thing well
- Templates should be minimal but complete
- Avoid duplicating external documentation
Document When to Use
Document When to Use
Include clear triggers in SKILL.md:
Follow the Specification
Follow the Specification
Skills follow agentskills.io/specification:
- Folder name matches
namefield - Name is lowercase with hyphens
- Description is 10-1024 characters
- Assets under 5MB each
- Executable scripts have proper permissions
Troubleshooting
Skill not loading
Skill not loading
- Verify folder name matches
namein frontmatter - Check SKILL.md has valid frontmatter
- Ensure folder is in
.github/skills/ - Try explicit skill invocation: “use the X skill”
Assets not accessible
Assets not accessible
- Verify asset paths are relative to SKILL.md
- Check file exists in the skill folder
- Make scripts executable:
chmod +x script.sh - Review file size (must be under 5MB)
Skill conflicts
Skill conflicts
- Use unique skill names across your workspace
- More specific skill names take precedence
- Check for duplicate folder names
Popular Skills by Category
- Code Generation
- Azure & Cloud
- Documentation
- Testing
openapi-to-application-code- Generate apps from OpenAPI specscsharp-mcp-server-generator- Generate C# MCP serverspython-mcp-server-generator- Generate Python MCP serversmulti-stage-dockerfile- Create optimized Dockerfiles
Related Resources
- Browse All Skills
- Agent Skills Specification
- Custom Agents - Specialized AI personas
- Custom Instructions - Coding standards
- Contributing Guide