Documentation
¶
Overview ¶
Package bundledskills renders the agent-neutral skill templates embedded in the sdd binary into per-agent skill bundles.
The source of truth is one neutral template tree under templates/ (files named *.md.tmpl). "claude" is no longer a source directory — it is a render profile: a model.AgentTarget value, the inject helper's per-agent output, and (at install) the frontmatter stamp shape. Load executes the templates for a given target; per-agent deviations live in {{ if eq .Agent "..." }} conditionals and the inject helper, never as duplicated files. //go:embed compiles the templates into the binary; sdd init renders + stamps them into the target agent's skill directory.
Editing: edit the templates under templates/<skill>/. After changes, rebuild the binary and run ./bin/sdd init to refresh the installed copy under .claude/skills/ (or ~/.claude/skills/).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(target model.AgentTarget) (*model.SkillBundle, error)
Load renders the embedded skill templates for the given agent target into a SkillBundle. Each *.md.tmpl file is parsed and executed with the target's render data and helper set; cross-file includes (`{{ template "rel/path" . }}`) resolve within the same skill. The returned entries carry no install stamps — stamping happens at install time (see model.RenderSkillFile).
func ReadReference ¶ added in v0.7.0
ReadReference returns the body (frontmatter stripped) of a reference template in the embedded bundle. Pre-flight uses this to inject the canonical ref-kind vocabulary into its prompt from the same source the skill ships. The reference is read raw rather than executed — the vocabulary fragment is agent-neutral and carries no template directives, so its source bytes equal its rendered output.
Types ¶
This section is empty.