Documentation
¶
Overview ¶
Package parser provides a reusable parser for SKILL.md files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractForgeReqs ¶
func ExtractForgeReqs(meta *contract.SkillMetadata) (*contract.SkillRequirements, []string, *contract.SkillGuardrailConfig)
ExtractForgeReqs extracts SkillRequirements, egress_domains, and guardrails from the generic metadata map by re-marshaling metadata["forge"] through yaml round-trip into ForgeSkillMeta.
func Parse ¶
func Parse(r io.Reader) ([]contract.SkillEntry, error)
Parse reads skill entries from an io.Reader and extracts structured SkillEntry values.
Supported formats:
- "## Tool: <name>" heading starts a new entry; paragraph lines become Description
- "**Input:** <text>" sets InputSpec on the current entry
- "**Output:** <text>" sets OutputSpec on the current entry
- "- <name>" (single-word/hyphenated list item) creates an entry with Name only (legacy)
func ParseWithMetadata ¶
func ParseWithMetadata(r io.Reader) ([]contract.SkillEntry, *contract.SkillMetadata, error)
ParseWithMetadata extracts optional YAML frontmatter (between --- delimiters) then passes the markdown body through existing Parse(). Returns entries with metadata attached, plus the top-level SkillMetadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.