Expand description
Agent Skills SKILL.md front-matter validation.
This module implements the metadata constraints from the Agent Skills specification plus explicitly modeled, common client extensions. It parses only the YAML front matter; Markdown body content is intentionally left unrestricted.
Structs§
- Skill
Asset - A bundled auxiliary file installed alongside
SKILL.mdunder the skill directory — for example areferences/document a skill points its agent to. - Skill
CliOutcome - What a skill verb did, not yet written.
- Skill
CliRequest - A
skillverb read out of its resolved invocation, ready to run later. - Skill
Error - A skill admin failure with an operator-facing message and optional hint.
- Skill
Metadata - Validated Agent Skill metadata.
- Skill
Options - Options shared by every skill action.
- Skill
Spec - Identity of the skill being managed and the tool that manages it.
- Skill
Target Status - Per-target outcome of
status/install. - Skill
Uninstall Status - Per-target outcome of
uninstall. - Skill
Validation Error - A deterministic
SKILL.mdvalidation failure.
Enums§
- Skill
Action - The skill action to perform.
- Skill
Error Kind - What kind of failure a
SkillErroris, so a caller can pick an exit status and a stable code without parsing the message. - Skill
Location - Where a skill action reads and writes.
- Skill
Report - The result of a skill action. Serializes to the protocol shape, carrying a
codediscriminator (skill_status/skill_install/skill_uninstall). - Skill
Scope - Which standard folders: the user’s or the current workspace’s.
Constants§
- SKILL_
CLI_ ACTIONS - The action ids
skill_cli_commandsregisters, in verb order. Bind each to a handler that callsSkillCliRequest::from_invocation.
Functions§
- run_
personal_ in - Run an action on the personal standard folders, resolving the home
directory from
envrather than the process environment. - run_
skill_ admin - Install, uninstall, or report status of
spec’s skill atoptions.location. - skill_
cli_ commands - The
skillcommand group and its three verbs, forspec’s skill. - validate_
skill - Validate one
SKILL.mddocument and return its typed metadata. - validate_
skill_ named - Validate one
SKILL.mddocument and require its name to match its directory.