Documentation
¶
Index ¶
- func IsName(name string) bool
- func ParseDescription(body string) string
- func ReadFile(ctx context.Context, reg capsskill.Registry, name, rel string) (capsskill.Content, error)
- func RenderLoaded(content capsskill.Content) string
- func SanitizeRelativePath(rel string) (string, error)
- type InvocationPolicy
- type ParseOptions
- type Parsed
- type RunResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsName ¶ added in v0.2.4
IsName reports whether name matches the Agent Skills kebab-case grammar.
func ParseDescription ¶ added in v0.2.4
ParseDescription extracts the catalog description from SKILL.md content.
func ReadFile ¶
func ReadFile(ctx context.Context, reg capsskill.Registry, name, rel string) (capsskill.Content, error)
ReadFile loads a supporting file from the skill directory identified by name.
func RenderLoaded ¶
RenderLoaded formats a loaded skill for the model, including resource-base guidance.
func SanitizeRelativePath ¶
SanitizeRelativePath rejects paths that escape a skill bundle directory.
Types ¶
type InvocationPolicy ¶ added in v0.2.4
InvocationPolicy controls whether a skill appears in model and user catalogs (DSH extension).
type ParseOptions ¶ added in v0.2.4
type ParseOptions struct {
// DirName is the parent directory name for bundle skills. When set, name must match it.
DirName string
}
ParseOptions configures Agent Skills frontmatter validation.
type Parsed ¶ added in v0.2.4
type Parsed struct {
Name string
Description string
License string
Compatibility string
AllowedTools string
WhenToUse string
Invocation InvocationPolicy
Metadata map[string]string
Content string
}
Parsed is a validated SKILL.md after frontmatter removal.
Click to show internal directories.
Click to hide internal directories.