Documentation
¶
Overview ¶
Package compiler converts parsed SkillEntry values into CompiledSkills.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(entries []contract.SkillEntry) (*contract.CompiledSkills, error)
Compile converts parsed SkillEntry values into CompiledSkills.
A SKILL.md with N `## Tool:` sections parses into N SkillEntry values that all share the same Body (the body is the trailing markdown after the frontmatter, not per-tool). Without dedup, the body lands in cs.Prompt N times — the bundled code-review-github skill (4 tools) produced 4× repeats; aibuilderdemo's prompt.txt was 1199 lines for what should be ~250 (issue #147). The seen-bodies set emits each body once. Per-skill JSON entries still carry the full Body because consumers of the in-memory CompiledSkill (e.g. forgecore SDK) may need it for non-prompt purposes.
Types ¶
This section is empty.