example-skill
Example Skill
Purpose: This skill exists to demonstrate the Skills-as-Containers pattern introduced in PAI v1.2.0. Use it as a template for creating your own skills.
Architecture Overview
Skills in PAI v1.2.0 are organized as self-contained containers with:
Core Components
- SKILL.md - Core skill definition with routing logic (you're reading it now!)
- workflows/ - Specific task workflows for discrete operations
- assets/ - Templates, references, and helper files
Progressive Disclosure
- Metadata (always loaded) - Name, description, triggers
- Instructions (loaded when triggered) - This SKILL.md content
- Resources (loaded as needed) - Individual workflow and asset files
Included Workflows
This skill includes three example workflows demonstrating different complexity levels:
1. simple-task.md
Purpose: Basic single-step workflow Trigger: User says "simple example", "basic task" Demonstrates: Minimal workflow structure
2. complex-task.md
Purpose: Multi-step workflow with dependencies Trigger: User says "complex example", "multi-step task" Demonstrates: Structured workflow with validation
3. parallel-task.md
Purpose: Agent orchestration for parallel execution Trigger: User says "parallel example", "parallel task" Demonstrates: Multi-agent coordination pattern
Routing Logic
Natural language automatically routes to the right workflow:
User Intent → Skill Activation → Workflow Selection → Execution
Example Flow:
"Show me a simple example"
↓ (matches trigger)
example-skill loads
↓ (analyzes intent: "simple")
simple-task.md selected
↓
Workflow executes
Assets
This skill includes example assets in the assets/ directory:
template.md- Example template filereference.md- Example reference material
These demonstrate how to organize supporting resources.
Usage Examples
Basic Usage
User: "Show me a simple example"
→ Loads example-skill
→ Executes simple-task.md workflow
→ Returns basic workflow demonstration
Complex Usage
User: "I need a complex multi-step example"
→ Loads example-skill
→ Executes complex-task.md workflow
→ Returns structured multi-step demonstration
Parallel Usage
User: "How do I parallelize work?"
→ Loads example-skill
→ Executes parallel-task.md workflow
→ Returns agent orchestration demonstration
Creating Your Own Skill
Use this skill as a template:
-
Copy the structure:
cp -r ~/.claude/skills/example-skill ~/.claude/skills/your-skill-name -
Update SKILL.md:
- Change name and description in frontmatter
- Update trigger phrases
- Replace example content with your skill's purpose
-
Create workflows:
- Add workflow files in workflows/ directory
- Each workflow = one specific task
- Name workflows descriptively
-
Add assets (optional):
- Templates, references, helper scripts
- Keep organized in assets/ directory
-
Test activation:
- Test trigger phrases
- Verify workflow routing
- Ensure natural language works
Best Practices
Skill Organization
- ✅ One skill per domain/topic area
- ✅ Multiple workflows within a skill
- ✅ Clear trigger phrases
- ❌ Don't create skills for one-off tasks
- ❌ Don't duplicate knowledge across skills
Workflow Design
- ✅ Self-contained with clear steps
- ✅ Focused on ONE specific task
- ✅ Include trigger phrases
- ❌ Don't make workflows too granular
- ❌ Don't duplicate skill context
Natural Language Routing
- ✅ Use descriptive trigger phrases
- ✅ Test with variations
- ✅ Think like a user
- ❌ Don't require exact phrase matching
- ❌ Don't make users memorize commands
Technical Details
File Structure
example-skill/
├── SKILL.md # This file (core definition)
├── workflows/ # Specific task workflows
│ ├── simple-task.md
│ ├── complex-task.md
│ └── parallel-task.md
├── assets/ # Supporting resources
│ ├── template.md
│ └── reference.md
└── README.md # Overview documentation
Loading Behavior
- Skill metadata always loaded (YAML frontmatter)
- SKILL.md body loaded when skill activates
- Individual workflows loaded when selected
- Assets loaded when referenced
Integration Points
- Natural Language: Trigger phrases activate skill
- Other Skills: Can reference this skill's workflows
- Agents: Can invoke specific workflows
- Commands: Can route to this skill's workflows
Documentation
- Architecture: See
~/Projects/PAI/docs/ARCHITECTURE.md - Migration Guide: See
~/Projects/PAI/docs/MIGRATION.md - Skill Development: See
~/.claude/skills/create-skill/
References
- Anthropic Skills: https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
- PAI Repository: https://github.com/danielmiessler/Personal_AI_Infrastructure
- v1.2.0 Changes: Skills-as-Containers migration completed 2025-10-31
This is a template skill - customize it for your needs!
More from zpankz/mcp-skillset
network-meta-analysis-appraisal
Systematically appraise network meta-analysis papers using integrated 200-point checklist (PRISMA-NMA, NICE DSU TSD 7, ISPOR-AMCP-NPC, CINeMA) with triple-validation methodology, automated PDF extraction, semantic evidence matching, and concordance analysis. Use when evaluating NMA quality for peer review, guideline development, HTA, or reimbursement decisions.
16software-architecture
Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
13cursor-skills
Cursor is an AI-powered code editor and development environment that combines intelligent coding assistance with enterprise-grade features and workflow automation. It extends beyond basic AI code comp...
13textbook-grounding
Orthogonally-integrated Hegelian syntopical analysis for SAQ/VIVA/concept grounding with systematic textbook citations. Implements thesis extraction → antithesis identification → abductive synthesis across multiple authoritative sources. Tensor-integrated with /m command: activates S×T×L synergies (textbook-grounding × pdf-search × qmd = 0.95). Triggers on requests for model SAQ responses, VIVA preparation, concept explanations requiring textbook evidence, or any PEX exam content needing systematic cross-reference validation.
12obsidian-process
This skill should be used when batch processing Obsidian markdown vaults. Handles wikilink extraction, tag normalization, frontmatter CRUD operations, and vault analysis. Use for vault-wide transformations, link auditing, tag standardization, metadata management, and migration workflows. Integrates with obsidian-markdown for syntax validation and obsidian-data-importer for structured imports.
12terminal-ui-design
Create distinctive, production-grade terminal user interfaces with high design quality. Use this skill when the user asks to build CLI tools, TUI applications, or terminal-based interfaces. Generates creative, polished code that avoids generic terminal aesthetics.
10