Skill Metadata¶
skill_metadata
¶
Parse YAML frontmatter from SKILL.md files without requiring pyyaml.
SkillMetadata(name, description='', allowed_tools=list(), user_invocable=False, metadata=dict(), artifacts=list())
dataclass
¶
Parsed metadata from a SKILL.md frontmatter block.
parse_frontmatter(text)
¶
Parse YAML frontmatter from markdown text.
Handles the subset of YAML used in SKILL.md files: simple key-value pairs, folded scalars (>-), block lists (- item), and one-level nested maps.
Source code in src/agentic_ci/skill_metadata.py
load_skill_metadata(skill_md_path)
¶
Read a SKILL.md file and return parsed metadata.
Raises FileNotFoundError if the file does not exist.
Source code in src/agentic_ci/skill_metadata.py
collect_artifacts(*skill_md_paths)
¶
Load each SKILL.md, extract artifacts, deduplicate, and return sorted.
Logs warnings for missing or unreadable files but does not raise.