Scaffolds a custom AI agent harness with CLI, MCP server registration, and memory namespace. Use when a user wants to build their own branded AI assistant or Claude Code plugin.
Ships in metaharness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill scaffolds an AI agent harness — your own focused, branded harness with its own npx <name> CLI, MCP server registration, memory namespace, learning loop, and marketplace identity.
Use this skill when the user wants any of:
npm publish under their own scope/create-harness
The skill asks for:
legal-redline)minimal (default), vertical:trading, vertical:support, vertical:devops, vertical:legal, vertical:research, or eject-from-rufloCalls npx create-agent-harness <name> with the user's choices, copies the chosen template into the current directory, runs the post-generation smoke test, and emits a .harness/manifest.json so future updates can harness upgrade cleanly (copier-style regenerate-diff-merge).
| File | Purpose |
|---|---|
package.json | The harness's npm package, ready to npm publish |
bin/<name>.js | The CLI binary your users invoke |
.claude/settings.json (if Claude Code host) | MCP + hooks wiring |
.codex/config.toml (if Codex host) | MCP table in TOML |
AGENTS.md + SYSTEM.md (if pi.dev host) | Pi extension instructions |
cli-config.yaml (if Hermes host) | Hermes runtime config |
.harness/manifest.json | Generator state — drives drift detection (ADR-008) |
witness.json | Ed25519-signed provenance manifest (ADR-011) |
The user can:
cd <name>
npm install
npm test
npm publish # ship their harness to npm
# their users: npx <name> init
create-agent-harness for the actual file creation, do NOT generate harness file contents yourselfvertical:<X> templates first and offer minimal as the fallbackWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-harness, scaffolding, cli-tool, mcp-server, npm-package
/metaharness:create-harnessfrom metaharness
npx claudepluginhub ruvnet/metaharness --plugin metaharness14 skills in this plugin
/compare-harnessesDiff two scaffolded harnesses (ADR-031). Reports manifest meta drift + host list + per-file fingerprint changes (added/removed/changed). Exits 0 IDENTICAL, 1 DRIFT, 2 missing manifest. Use --bundle for the ADR-031 schema-1 JSON envelope./diag-harnessKernel-version skew check (ADR-027). Reports manifest surface + manifest kernel + installed kernel + verdict (match/patch-diff/minor-diff/major-diff). Exits 1 on minor/major skew with a copy-pasteable `npm install @metaharness/[email protected]` next step. Exits 2 if no .harness/manifest.json at path./example-harnessScaffold a ready-made AI agent harness in one command from the 19 published @metaharness/* example packages — 9 host integrations (Claude Code, Codex, Hermes, pi.dev, OpenClaw, RVM, Copilot, OpenCode, GitHub Actions) + 10 vertical pods (devops, research, trading, support, legal, coding, education, sales, gaming, repo-maintainer)./harness-secretsGCP Secret Manager integration: validate setup, fetch values, or confirm an NPM_TOKEN is non-revoked via `npm whoami`. Used for publish-time token rotation without long-lived keys in CI./list-templatesList the available harness templates and what each one ships with. Use when the user asks "what templates are available", "what verticals does the harness generator support", or "show me what I can scaffold"./oia-manifestEmit .harness/oia-manifest.json declaring layer alignment with the OIA v0.1 9-layer reference architecture. Self-describes the harness's MCP wiring, witness signing, audit log, identity posture (always 'none' at v0.1). --check verifies an existing manifest, --dry-run prints without writing, --json emits to stdout.Other plugins' skills for the same job