Skip to main content

Module skill

Module skill 

Source
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§

SkillAsset
A bundled auxiliary file installed alongside SKILL.md under the skill directory — for example a references/ document a skill points its agent to.
SkillCliOutcome
What a skill verb did, not yet written.
SkillCliRequest
A skill verb read out of its resolved invocation, ready to run later.
SkillError
A skill admin failure with an operator-facing message and optional hint.
SkillMetadata
Validated Agent Skill metadata.
SkillOptions
Options shared by every skill action.
SkillSpec
Identity of the skill being managed and the tool that manages it.
SkillTargetStatus
Per-target outcome of status / install.
SkillUninstallStatus
Per-target outcome of uninstall.
SkillValidationError
A deterministic SKILL.md validation failure.

Enums§

SkillAction
The skill action to perform.
SkillErrorKind
What kind of failure a SkillError is, so a caller can pick an exit status and a stable code without parsing the message.
SkillLocation
Where a skill action reads and writes.
SkillReport
The result of a skill action. Serializes to the protocol shape, carrying a code discriminator (skill_status / skill_install / skill_uninstall).
SkillScope
Which standard folders: the user’s or the current workspace’s.

Constants§

SKILL_CLI_ACTIONS
The action ids skill_cli_commands registers, in verb order. Bind each to a handler that calls SkillCliRequest::from_invocation.

Functions§

run_personal_in
Run an action on the personal standard folders, resolving the home directory from env rather than the process environment.
run_skill_admin
Install, uninstall, or report status of spec’s skill at options.location.
skill_cli_commands
The skill command group and its three verbs, for spec’s skill.
validate_skill
Validate one SKILL.md document and return its typed metadata.
validate_skill_named
Validate one SKILL.md document and require its name to match its directory.