agentskills

package
v0.16.521 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0 Imports: 14 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 agentskills installs the skills agents use in a harnessly workspace, for both Claude Code and Codex: the workspace skill (the harnessly command), the skill for writing apps, the boards skill when a boards server is configured, and the artifacts skill when an artifacts catalog is. The skills are the vendored files of skills.Upstream.

Nothing of the person's own is touched. Everything lands in folders named for harnessly:

<data folder>/agent-skills/claude         a Claude Code plugin, loaded with --plugin-dir (skills are harnessly:<name>)
<codex home>/skills/harnessly/<name>      Codex user skills
<data folder>/agent-skills/tools          the artifacts command line client
<bin folder>/{artifacts,boards}           launchers on the PATH of the agents' shells
<bin folder>/{go,vitest,tsc,…}            launchers of heavy checks (internal/heavy)

Each root keeps a manifest of what was written. A file is rewritten only when it is unchanged since harnessly wrote it; one the person made or edited stays, and is reported. A skill that is no longer wanted (its server was removed) is deleted from the manifest's files only. Running it again with nothing new writes nothing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaudePluginDir

func ClaudePluginDir(dataDir string) string

ClaudePluginDir is the Claude Code plugin folder Provision fills.

func Enabled

func Enabled(getenv func(string) string) bool

Enabled reads RUNTIME_AGENT_SKILLS: anything but off, 0, false, no or none installs the skills.

func ToolsDir

func ToolsDir(dataDir string) string

ToolsDir is where the artifacts client lives.

Types

type Options

type Options struct {
	// DataDir is the runtime's data folder; CodexHome Codex's ($CODEX_HOME, else ~/.codex); BinDir the folder of
	// launchers on the agents' PATH ("" installs none: the helpers are then only next to their skills).
	DataDir, CodexHome, BinDir string
	// Harnessly is the harnessly executable to link as <BinDir>/harnessly when nothing is there; "" links none.
	Harnessly string
	// Heavy puts the launchers of heavy checks (go, vitest, playwright, tsc, eslint, npx) into BinDir: they run the tool
	// through `harnessly heavy`, which shares the machine's few slots between agents. It needs Harnessly.
	Heavy bool
	// Boards and Artifacts say whether those servers are configured.
	Boards, Artifacts bool
	// MCPServer is the name the runtime's MCP server has for the agents (RUNTIME_MCP_SERVER); "" is harnessly. The
	// browser-operator subagent lists the browser tools by it.
	MCPServer string
	// Source is the skills' files; nil is skills.Upstream.
	Source fs.FS
}

Options says where the skills go and which are wanted.

type Result

type Result struct {
	Written, Removed []string
	// Kept are files that were left alone because they are not harnessly's or were edited since.
	Kept []string
}

Result lists what a run did, as paths.

func Provision

func Provision(o Options) (Result, error)

Provision writes the skills; the error joins what could not be written, the rest is done.

func (Result) Changed

func (r Result) Changed() bool

Changed says whether the run wrote or removed anything.

Jump to

Keyboard shortcuts

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