Documentation
¶
Index ¶
- Constants
- func Create(name, description, content, targetDir string) error
- func Deprecate(name, targetDir string) error
- func Install(ctx context.Context, source, targetDir string) (string, error)
- func NormalizeSkillStatus(status string) string
- func Patch(name string, updates map[string]string, targetDir string) error
- func Remove(name, skillDir string) error
- func SkillsDefinition() tools.Definition
- func ValidateSkillName(name, parentDirName string) []string
- type Skill
- type Tool
Constants ¶
View Source
const ( SkillStatusDraft = "draft" SkillStatusActive = "active" SkillStatusDeprecated = "deprecated" )
View Source
const PluginID = "tool/skills"
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a new skill with the given name, description, and content body. The skill is created with status=draft and created-at=now. targetDir must be the writable skills directory (userSkillsDir or workspace/skills).
func NormalizeSkillStatus ¶
func Patch ¶
Patch updates frontmatter fields and/or the content body of an existing skill. Supported update keys: "description", "status", "content" (body after frontmatter).
func SkillsDefinition ¶
func SkillsDefinition() tools.Definition
func ValidateSkillName ¶
ValidateSkillName checks a skill name against the Agent Skills spec.
Types ¶
type Skill ¶
type Skill struct {
Name string
Description string
Status string
CreatedAt string
FilePath string
BaseDir string
Source string
DisableModelInvocation bool
}
func LoadSkills ¶
LoadSkills discovers skills from project, user, workspace, and common directories.
func VisibleSkills ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) Definition ¶
func (t *Tool) Definition() tools.Definition
Source Files
¶
Click to show internal directories.
Click to hide internal directories.