skills

package
v0.51.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 10 Imported by: 0

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

func IsInstalled(agent Agent) bool

IsInstalled checks if any roborev skills are installed for the given agent

Types

type Agent

type Agent string

Agent represents a supported AI agent

const (
	AgentClaude Agent = "claude"
	AgentCodex  Agent = "codex"
)

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

func ListSkills() ([]SkillInfo, error)

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL