Documentation
¶
Index ¶
Constants ¶
View Source
const ( SkillFileName = "SKILL.md" MaxNameLength = 64 MaxDescriptionLength = 1024 )
Variables ¶
This section is empty.
Functions ¶
func BuildPromptSection ¶
func DefaultPaths ¶
func DiscoverWithStates ¶
func DiscoverWithStates(paths []string) ([]*Skill, []*SkillState)
func ToPromptXML ¶
Types ¶
type DiscoveryState ¶
type DiscoveryState int
const ( StateNormal DiscoveryState = iota StateError )
type Skill ¶
type Skill struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
UserInvocable bool `yaml:"user-invocable" json:"user_invocable"`
DisableModelInvocation bool `yaml:"disable-model-invocation" json:"disable_model_invocation"`
License string `yaml:"license,omitempty" json:"license,omitempty"`
Compatibility string `yaml:"compatibility,omitempty" json:"compatibility,omitempty"`
Metadata map[string]string `yaml:"metadata,omitempty" json:"metadata,omitempty"`
Instructions string `yaml:"-" json:"instructions"`
Path string `yaml:"-" json:"path"`
SkillFilePath string `yaml:"-" json:"skill_file_path"`
}
func ParseContent ¶
type SkillState ¶
type SkillState struct {
Name string
Path string
State DiscoveryState
Err error
}
Click to show internal directories.
Click to hide internal directories.