switon / skill
SKILL.md catalog, lookup, and path reload for Switon Framework
v1.0.0
2026-08-22 14:34 UTC
Requires
- php: >=8.3
- ext-mbstring: *
- switon/ai: ^1.0
- switon/core: ^1.0
- switon/tooling: ^1.0
- switon/yaml: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- switon/testing: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Switon's skill catalog for application services that want SKILL.md rows, lookup, and a composed block without owning the agent loop.
Highlights
- One directory, one skill: each child directory with
SKILL.mdis a row. The id is the frontmatter fieldid, or the directory name. - A block for every id: a known id includes the root and the body. An unknown id still returns a block that names the id.
- Links and tools:
skill://idin a user message pins that block.skill_listlists ids,skill_loadreturns a block, andskill_runruns a script.
Installation
composer require switon/skill
Quick Start
The default paths are @switon/skill/resources/skills, then @root/skills, then ~/.switon/skills. One child directory is one skill. A later path overrides the same id.
--- id: demo description: Demo skill --- Do the thing.
A row published at runtime stays across a rescan. A file removed from disk stays until the process restarts.
Docs: https://github.com/switon-php/skill/blob/main/docs/README.md
License
MIT.