compiler

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL