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 ¶
ClaudePluginDir is the Claude Code plugin folder Provision fills.
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.