Skills Framework
Relevant source files
The following files were used as context for generating this wiki page:
- cli-tool/components/skills/productivity/skill-creator/SKILL.md
- cli-tool/components/skills/development/skill-development/SKILL.md
- cli-tool/components/skills/productivity/writing-skills/SKILL.md
- cli-tool/components/skills/productivity/skill-judge/SKILL.md
- cli-tool/components/skills/productivity/skill-developer/ADVANCED.md
- cli-tool/components/skills/development/skill-creation-guide/SKILL.md
The Skills Framework is a modular system designed to extend the capabilities of AI agents (specifically Claude) by providing specialized knowledge, domain-specific workflows, and reusable tool integrations. Skills act as "onboarding guides" that transform a general-purpose agent into a specialized domain expert equipped with procedural knowledge that no model can fully possess through baseline training alone.
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:10-15, cli-tool/components/skills/productivity/skill-judge/SKILL.md:14-25
Architecture and Design Principles
The framework operates on a Progressive Disclosure design principle, which optimizes context window usage by loading only the necessary information at the appropriate stage of the interaction.
Three-Level Loading System
- Metadata (Layer 1): Always in context. Consists of the skill's name and description. Used by the agent to determine if the skill should be triggered.
- SKILL.md Body (Layer 2): Loaded only after the skill triggers. Contains core instructions, workflows, and high-level guidance.
- Bundled Resources (Layer 3): Loaded as needed by the agent. Includes scripts, reference documentation, and static assets.
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:100-110, cli-tool/components/skills/productivity/skill-judge/SKILL.md:183-195
Core Components of a Skill
Every skill follows a standardized directory structure to ensure discoverability and efficiency:
| Component | Requirement | Description |
|---|---|---|
SKILL.md | Required | The main entry point containing YAML frontmatter and Markdown instructions. |
scripts/ | Optional | Executable code (Python, Bash, etc.) for deterministic or repetitive tasks. |
references/ | Optional | Documentation, schemas, and API specs loaded into context only when needed. |
assets/ | Optional | Static files used in output (templates, icons, boilerplate code). |
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:34-45, cli-tool/components/skills/development/skill-development/SKILL.md:35-46
Data Flow and Triggering Mechanism
The following diagram illustrates how the system selects and activates a skill based on user requests:
This flow ensures that heavy context (Layer 2 and 3) is only consumed when the agent determines high relevance from Layer 1 metadata.
Sources: cli-tool/components/skills/productivity/writing-skills/SKILL.md:520-530, cli-tool/components/skills/productivity/skill-judge/SKILL.md:158-168
Skill Development Life Cycle
The development of a skill is treated as Test-Driven Development (TDD) applied to process documentation. It follows a strict Red-Green-Refactor cycle.
The Red-Green-Refactor Cycle for Skills
- RED (Write Failing Test): Run a pressure scenario with a subagent without the skill. Document how the agent fails or rationalizes violating desired behavior.
- GREEN (Write Minimal Skill): Create a
SKILL.mdthat addresses specific violations. Verify the agent now complies. - REFACTOR (Close Loopholes): Identify new rationalizations used by the agent and add explicit counters or "Red Flags" to the skill documentation.
Sources: cli-tool/components/skills/productivity/writing-skills/SKILL.md:12-25, cli-tool/components/skills/productivity/writing-skills/SKILL.md:465-480
Packaging and Validation
Once developed, skills must be validated and packaged for distribution.
# Initialize a new skill
scripts/init_skill.py <skill-name> --path <output-directory>
# Package and validate a skill
scripts/package_skill.py <path/to/skill-folder>
The packaging script validates YAML frontmatter, naming conventions, and description quality before creating a .skill zip file.
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:195-205, cli-tool/components/skills/productivity/skill-creator/SKILL.md:265-280
Implementation Guidelines
Frontmatter Requirements
The YAML frontmatter is the "Discovery" layer. It is restricted to two fields to maintain token efficiency:
---
name: skill-name-with-hyphens
description: Use when [specific triggering conditions and symptoms].
---
Critical Rule: The description must focus on WHEN to use the skill (triggering conditions), not WHAT the skill does. Summarizing the workflow in the description may cause the agent to skip reading the full body of the skill.
Sources: cli-tool/components/skills/productivity/writing-skills/SKILL.md:135-150, cli-tool/components/skills/productivity/writing-skills/SKILL.md:162-175
Degrees of Freedom
Developers must calibrate the level of specificity based on task fragility:
| Level | Strategy | Use Case |
|---|---|---|
| High Freedom | Text-based instructions | Creative tasks, multiple valid approaches. |
| Medium Freedom | Pseudocode / Parameters | Preferred patterns with acceptable variation. |
| Low Freedom | Specific scripts / No context | Fragile, error-prone, or critical sequences. |
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:27-33, cli-tool/components/skills/productivity/skill-judge/SKILL.md:218-235
Advanced Framework Concepts
Skill Dependencies and Future Enhancements
The framework is evolving toward dynamic capabilities such as hot-reloading skill rules and defining skill dependencies.
Future versions aim to implement a dependsOn field in skill configurations to ensure foundational knowledge is loaded before specialized logic.
Sources: cli-tool/components/skills/productivity/skill-developer/ADVANCED.md:1-45
Conclusion
The Skills Framework provides a systematic method for extending AI capabilities through modular, testable, and context-efficient documentation. By separating metadata, core logic, and heavy resources, the framework ensures that specialized knowledge is available exactly when needed without overwhelming the agent's context window.
Sources: cli-tool/components/skills/productivity/skill-creator/SKILL.md:10-15, cli-tool/components/skills/productivity/writing-skills/SKILL.md:535-540