Documentation
¶
Overview ¶
Package skills installs the CubePath agent skills (github.com/CubePathInc/skills) into the skill directories of the AI coding agents on this machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Targets = []Target{ {ID: "claude", Name: "Claude Code", /* contains filtered or unexported fields */}, {ID: "agents", Name: "Codex, Gemini CLI, Cursor", /* contains filtered or unexported fields */}, }
Targets lists every place skills can be installed. Claude Code reads ~/.claude/skills; Codex, Gemini CLI and Cursor read ~/.agents/skills.
Functions ¶
func ClaudePluginInstalled ¶
func ClaudePluginInstalled() bool
ClaudePluginInstalled reports whether the CubePath plugin is installed in Claude Code, in which case copying the skills into ~/.claude/skills would load them twice.
Types ¶
type Bundle ¶
type Bundle struct {
Manifest Manifest
// Dir holds one directory per skill.
Dir string
// contains filtered or unexported fields
}
Bundle is a downloaded, verified and extracted release.
type Installed ¶
type Installed struct {
Name string `json:"name"`
Version string `json:"version"`
Modified bool `json:"modified"` // edited since cubecli installed it
}
Installed is a skill found in a target directory.
type Manifest ¶
type Manifest struct {
Version string `json:"version"`
MinCubecliVersion string `json:"min_cubecli_version"`
Skills []string `json:"skills"`
}
Manifest is manifest.json at the root of a skills release.
type Outcome ¶
type Outcome struct {
Name string `json:"name"`
Action string `json:"action"` // installed, updated, unchanged, skipped, removed
Reason string `json:"reason,omitempty"`
}
Outcome of installing or removing one skill.
type Target ¶
type Target struct {
ID string // value of --agent
Name string // who reads it, for humans
// contains filtered or unexported fields
}
Target is a skills directory read by one or more agents.
func DefaultTargets ¶
func DefaultTargets() []Target
DefaultTargets returns the detected targets, leaving out Claude Code when the plugin already provides the skills there.
func TargetByID ¶
TargetByID returns the target with the given --agent value.