skills

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

View Source
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

func Fetch(ctx context.Context, client *http.Client, ref string) (map[string][]byte, error)

Fetch downloads one ref of the skill and returns its files, keyed by their path within the skill directory.

func IDs

func IDs() []string

IDs lists every agent id, for an error that has to name the choices.

func Install

func Install(files map[string][]byte, skillsDir string) (string, error)

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

func Installed(skillsDir string) (version string, ok bool)

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

func LatestRef(ctx context.Context, client *http.Client) (string, error)

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.

func Remove

func Remove(skillsDir string) (bool, error)

Remove deletes an installed skill, reporting whether there was one.

func Version

func Version(files map[string][]byte) string

Version reads the version out of a freshly fetched skill.

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.

func Agents

func Agents() []Agent

Agents is every tool this command knows how to install into.

func Detect

func Detect() []Agent

Detect returns the tools that appear to be installed.

func Find

func Find(id string) (Agent, bool)

Find returns the agent with this id.

func (Agent) Present

func (a Agent) Present() bool

Present reports whether this tool looks installed on this machine.

The test is the configuration directory rather than the skills directory, because a tool that has never been given a custom skill does not have the second one yet. Creating it is part of installing.

func (Agent) SkillsDir

func (a Agent) SkillsDir(project bool) (string, error)

SkillsDir is where this agent keeps its skills, or an error saying why not.

Jump to

Keyboard shortcuts

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