Documentation
¶
Overview ¶
Package skills installs the Out Plane agent skill into a coding agent.
The skill lives in its own repository, github.com/outplane/skills, and that repository is the source of truth. It is installed by tools that have never heard of this CLI, through plugin marketplaces and through the skills CLI, and it is released on its own schedule so that a wording fix does not have to wait for a CLI release. This command is a third door onto the same thing, for people who already have the CLI and would rather not learn a second tool's install flow.
Which is why it fetches rather than carries a copy. A skill compiled into this binary would be exactly as old as the binary, and the whole point of publishing the skill separately is that it does not have to be.
Index ¶
- Constants
- func Fetch(ctx context.Context, client *http.Client, ref string) (map[string][]byte, error)
- func IDs() []string
- func Install(files map[string][]byte, skillsDir string) (string, error)
- func Installed(skillsDir string) (version string, ok bool)
- func LatestRef(ctx context.Context, client *http.Client) (string, error)
- func Remove(skillsDir string) (bool, error)
- func Version(files map[string][]byte) string
- type Agent
Constants ¶
const Dir = "use-outplane"
Dir is the skill's directory name, in the repository and on disk. An agent finds a skill by its directory, so the two have to match.
const Repo = "outplane/skills"
Repo is the skill's home. Everything here reads from it and nothing writes.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
Fetch downloads one ref of the skill and returns its files, keyed by their path within the skill directory.
func Install ¶
Install writes the skill into a skills directory, replacing what is there.
Replacing rather than merging, because a file removed upstream has to disappear here too: a reference the skill no longer points at is a file nothing will ever load and nobody will ever notice.
func Installed ¶
Installed reads the version of the skill in this directory, if one is there.
From the skill's own frontmatter rather than a marker file this command writes: a marker would be a file the agent does not expect in a skill folder, and it would disagree with the frontmatter the moment somebody installed the skill another way, which is exactly the case this has to report on.
func LatestRef ¶
LatestRef asks the repository which release is newest.
The API rather than the /releases/latest redirect: the redirect is HTML and took its time to resolve for a freshly published release, and this answer has to be right the first time somebody runs the command.
Types ¶
type Agent ¶
type Agent struct {
ID string // what --agent accepts
Name string // what a person reads
// contains filtered or unexported fields
}
Agent is a coding tool that reads skills from a directory.