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.
func SkillsDefinition ¶ added in v0.8.0
func SkillsDefinition() toolspec.Definition
SkillsDefinition returns the tool definition without requiring runtime paths.
Types ¶
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. The workspace should be a per-agent workspace path (e.g. workspaces/{agentID}/) so that installed skills are isolated per agent.
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.