Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install fetches a skill from source and installs it into targetDir. Source formats:
- "owner/repo@skill-name" or "owner/repo@skill-name#ref" (GitHub shorthand)
- "https://github.com/owner/repo/tree/branch/path" (GitHub URL)
- "https://gitlab.com/owner/repo" (GitLab URL)
- "./local/path" (local directory)
- "https://example.com/SKILL.md" (direct URL)
Returns the installed skill name.
Types ¶
type SearchResult ¶
type SearchResult struct {
ID string `json:"id"`
SkillID string `json:"skillId"`
Name string `json:"name"`
Installs int `json:"installs"`
Source string `json:"source"`
}
SearchResult represents a skill from the skills.sh ecosystem.
type SkillsTool ¶
type SkillsTool struct {
// contains filtered or unexported fields
}
SkillsTool exposes skill management as an agent tool.
func NewTool ¶
func NewTool(annaHome, workspace, cwd string) *SkillsTool
NewTool creates a SkillsTool for the given anna home, workspace and working directory.
func (*SkillsTool) Definition ¶
func (t *SkillsTool) Definition() toolspec.Definition
Definition returns the tool definition for the LLM.
Click to show internal directories.
Click to hide internal directories.