Documentation
¶
Index ¶
Constants ¶
View Source
const ( Kind basespec.ArtifactKind = "agent.skill" SchemaID basespec.SchemaID = "agent.skill.v1" DecoderID basespec.DecoderID = "agent.skill-markdown" SchemaVersion = "v1" DefinitionFileName = "SKILL.md" InsertLabelKey = "skill.insert" )
Variables ¶
This section is empty.
Functions ¶
func ValidateDefinition ¶
func ValidateDefinition(value definition.Definition) error
Types ¶
type Body ¶
type Body struct {
Name string `json:"name"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description"`
Insert string `json:"insert"`
Arguments []Argument `json:"arguments,omitempty"`
Tags []string `json:"tags,omitempty"`
MarkdownBody string `json:"markdownBody"`
RawFrontmatter map[string]any `json:"rawFrontmatter,omitempty"`
}
func DecodeBody ¶
func DecodeBody(raw json.RawMessage) (Body, error)
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder(policy LocatorPolicy) (*Decoder, error)
func (*Decoder) Decode ¶
func (d *Decoder) Decode( _ context.Context, candidate discovery.Candidate, ) ([]discovery.Decoded, []diagnostic.Diagnostic)
Click to show internal directories.
Click to hide internal directories.