Skip to main content

Module skill

Module skill 

Source

Structs§

AnthropicFrontmatter
Anthropic Agent Skills spec frontmatter (YAML in SKILL.md).
SkillMeta
Structured metadata from skill.toml and/or YAML frontmatter.
SkillRegistry
Registry of all loaded skills with indexes for fast lookup.

Enums§

SkillError
SkillFormat
Skill metadata format — indicates how the metadata was sourced.

Functions§

build_skill_context
Build a skill context string for LLM system prompts. For each skill: name, description, hint, covered tools. Content is bounded and delimited to mitigate prompt injection.
compute_content_hash
Compute SHA-256 hash of content, returning lowercase hex string.
is_anthropic_valid_name
Validate a skill name against the Anthropic Agent Skills naming rules.
parse_frontmatter
Parse YAML frontmatter from SKILL.md content.
parse_skill_metadata
Parse skill metadata from raw SKILL.md content and optional skill.toml content.
resolve_skills
Resolve which skills should be auto-loaded based on scopes and a ManifestRegistry.
scaffold_ati_extension_toml
Generate an ATI extension skill.toml for fields not in the Anthropic spec. Used alongside a SKILL.md with frontmatter.
scaffold_skill_md
Generate a skeleton SKILL.md (legacy format without frontmatter).
scaffold_skill_md_with_frontmatter
Generate a skeleton SKILL.md with Anthropic-spec YAML frontmatter.
scaffold_skill_toml
Generate a skeleton skill.toml for a new skill.
strip_frontmatter
Strip YAML frontmatter from SKILL.md content, returning only the body.
visible_skills
Return the skills visible under the provided scopes.