Documentation
¶
Overview ¶
Package skillref models structured references into the binary-embedded skill tree. It deliberately does not render prose: callers decide which complete help/recovery fragment to keep once a reference resolves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidRemap = errors.New("invalid skill reference remap")
ErrInvalidRemap identifies malformed, conflicting, or dangling explicit reference mappings. Callers classify it as an invalid SkillsOverlay.
Functions ¶
func ValidSkillName ¶
ValidSkillName reports whether name can identify a top-level skill directory. Keep this rule aligned with the skill-tree manifest validator.
Types ¶
type Mapping ¶
Mapping is one parsed remap. A source without Path remaps the whole skill name; a source with Path is an exact-reference override.
type Ref ¶
Ref is one exact canonical or runtime skill reference. Path is relative to the named skill; an empty Path denotes the skill's SKILL.md.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is an immutable, build-local projection from canonical references to the composed runtime skill tree. Underlying skill files remain live, in line with the skill manifest contract, so Resolve verifies availability at read/help-render time as well as validating explicit targets at construction.
func New ¶
New validates mappings against content and returns an immutable resolver.
Explicit targets are build-integrity declarations and must exist. In contrast, an unmapped canonical reference may be absent: presenters then omit the complete guidance fragment that owns it.