Documentation
¶
Overview ¶
Package skills provides embedded skill files for AI agents (Claude Code, Codex) and installation utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInstalled ¶
IsInstalled checks if any roborev skills are installed for the given agent
Types ¶
type AgentStatus ¶ added in v0.23.0
type AgentStatus struct {
Agent Agent
Available bool // Whether the agent config dir exists
Skills map[string]SkillState // keyed by dir name (e.g. "roborev-fix")
}
AgentStatus describes the installation state for a single agent.
func Status ¶ added in v0.23.0
func Status() []AgentStatus
Status returns per-agent, per-skill installation state.
type InstallResult ¶
type InstallResult struct {
Agent Agent
Installed []string
Updated []string
Skipped bool // True if agent config dir doesn't exist
}
InstallResult contains the result of a skill installation
func Install ¶
func Install() ([]InstallResult, error)
Install installs skills for all supported agents whose config directories exist. It is idempotent - running multiple times will update existing skills.
func Update ¶
func Update() ([]InstallResult, error)
Update updates skills for agents that already have them installed and removes legacy skills that are no longer shipped.
type SkillInfo ¶ added in v0.23.0
type SkillInfo struct {
DirName string // e.g. "roborev-fix"
Name string // e.g. "roborev-fix"
Description string
}
SkillInfo describes an available skill.
func ListSkills ¶ added in v0.23.0
ListSkills returns metadata for all embedded skills, deduplicated by directory name. When the same skill exists across multiple agents, the first agent's metadata is used.
type SkillState ¶ added in v0.23.0
type SkillState int
SkillState describes whether a skill is installed and up to date for an agent.
const ( SkillMissing SkillState = iota // Not installed SkillCurrent // Installed and matches embedded version SkillOutdated // Installed but content differs from embedded )