example-harness
The example-harness skill scaffolds a working AI agent harness in a single command by selecting from 18 published @metaharness packages covering 9 host integrations and 10 vertical workflows. Use this when you need to quickly spin up a pre-configured harness for a specific platform or use case without navigating the full setup wizard.
git clone --depth 1 https://github.com/ruvnet/agent-harness-generator /tmp/example-harness && cp -r /tmp/example-harness/.claude-plugin/skills/example-harness ~/.claude/skills/example-harnessSKILL.md
# example-harness One-command scaffolding from the 18 **published** `@metaharness/*` example packages — the fastest path from a use-case to a working harness, no template/host flags to remember. Where [`create-harness`](../create-harness/) walks the full wizard, this skill maps a use-case straight onto a published npm wrapper. Each wrapper shells out to `metaharness@latest` with the correct `--template` + `--host` flags, so the result is byte-identical to the full CLI invocation. ## Install ```bash mkdir -p ~/.codex/skills/example-harness curl -fsSL https://raw.githubusercontent.com/ruvnet/agent-harness-generator/main/.codex/skills/example-harness/skill.toml \ -o ~/.codex/skills/example-harness/skill.toml ``` No MCP server needed — the wrapper packages run via `npx`. ## Use ``` /example-harness ``` Codex prompts for the package + a directory name, then runs: ```bash npx --yes @metaharness/<package>@latest <name> ``` ## The 18 packages **Host integrations** (scaffold a workspace wired for one runtime) | Package | Scaffolds | |---|---| | `@metaharness/claude-code` | Claude Code workspace + plugin | | `@metaharness/codex` | OpenAI Codex | | `@metaharness/hermes` | Hermes cli-config | | `@metaharness/pi-dev` | pi.dev AGENTS.md | | `@metaharness/openclaw` | OpenClaw `.openclaw/` | | `@metaharness/rvm` | RVM deployment partition | | `@metaharness/copilot` | VSCode / Copilot `mcp.json` | | `@metaharness/opencode` | OpenCode `.opencode/` | | `@metaharness/github-actions` | GitHub Actions CI/CD (non-interactive) | **Vertical workflows** (ready-made multi-agent pods) | Package | Scaffolds | |---|---| | `@metaharness/devops` | incident response | | `@metaharness/research` | multi-source dossier | | `@metaharness/trading` | quant trading (paper-by-default) | | `@metaharness/support` | customer support | | `@metaharness/legal` | contract redline (drafts only) | | `@metaharness/coding` | engineering pod | | `@metaharness/education` | tutor pod | | `@metaharness/sales` | sales pipeline pod | | `@metaharness/gaming` | game-design pod | | `@metaharness/repo-maintainer` | OSS repo maintainer | ## After scaffolding ```bash cd <name> && npm install npx harness doctor # health-check npx harness validate # full umbrella gate ``` Every scaffold ships a `.claude-plugin/plugin.json`, so it also loads as a Claude Code plugin: `claude -p --plugin-dir <name> "..."`. Per-package deep-dive gists: see [`examples-packages/GISTS.md`](https://github.com/ruvnet/agent-harness-generator/blob/main/examples-packages/GISTS.md).
Diff 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.
Scaffold your own focused AI agent harness — pick host (Claude Code, Codex, pi.dev, Hermes), template, agents, skills, and ship a npm-publishable harness with its own npx CLI. Use when a user asks to "create my own agent harness", "scaffold a harness", "make a custom Claude Code plugin like ruflo", or "build a vertical AI assistant for X".
Kernel-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/kernel@X.Y.Z` next step. Exits 2 if no .harness/manifest.json at path.
GCP 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 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".
Emit .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.
Publish a generated harness to npm — runs the smoke test, signs the witness manifest, and dispatches `npm publish --provenance` from your tagged release.
7-section readiness scorecard for a LOCAL repo. Reports repo type + agent topology + MCP risk + test confidence + release readiness + recommended harness plan + scorecard. Exit 0 ready, 1 needs-work, 2 blocked. --json for the 6-field scorecard, --bundle for the ADR-031 schema-1 envelope.