Skip to main content
ClaudeWave
Skill119 repo starsupdated today

repo-genome

repo-genome evaluates whether a local repository is ready for agent harness deployment by generating a seven-section readiness scorecard covering repo profile, agent topology, MCP risk assessment, test confidence, release readiness, and recommended harness configuration. Use it before scaffolding a harness to determine cleanup needs, in CI pipelines to monitor readiness thresholds, or to generate shareable readiness snapshots for support and decision-making.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/ruvnet/agent-harness-generator /tmp/repo-genome && cp -r /tmp/repo-genome/.claude-plugin/skills/repo-genome ~/.claude/skills/repo-genome
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# repo-genome

> Codex skill: 7-section readiness scorecard for a local repo — the
> ADR-031 Bundle JSON Pattern surfaced through Codex (iter 110 → 114).

## What it does

Answers a different question than `analyze-repo`:

- **analyze-repo** — "which archetype / template / agents fit this repo?"
- **repo-genome** — "is this repo READY for that harness, and what's the risk?"

Produces a 7-section report:

1. **Repo profile** — type, languages, build/test commands, ci presence
2. **Agent topology** — recommended roles (maintainer / tester / security / release)
3. **MCP risk model** — surface + numeric risk + policy posture
4. **Test confidence** — how strong are the test signals
5. **Release readiness** — buildable / testable / ci-wired
6. **Recommended harness plan** — template, archetype, hosts, agents, skills
7. **Scorecard** — risk_score, publish_readiness, test_confidence

LOCAL-only, deterministic, never executes repo code. Same invariant as
`analyze-repo` (inherited via the shared inventory/profile pipeline).

| Verdict | Exit | Meaning |
|---|---|---|
| `ready` | 0 | publish_readiness >= 0.75 && risk_score < 0.35 |
| `needs-work` | 1 | somewhere in the middle |
| `blocked` | 2 | risk_score >= 0.7 |

## Usage from Codex

```
/repo-genome path=./my-repo
/repo-genome path=./my-repo bundle=true
/repo-genome path=./my-repo out=./harness-genome.json
```

## Equivalent CLI

```bash
harness genome ./my-repo                          # text report
harness genome ./my-repo --json                   # 6-field scorecard JSON
harness genome ./my-repo --bundle                 # ADR-031 schema-1 envelope
harness genome ./my-repo --out harness-genome.json # write scorecard to file
```

## Sample 6-field output (--json)

```json
{
  "repo_type": "rust_node_polyglot_mcp_ci",
  "agent_topology": ["maintainer", "tester", "security", "release"],
  "risk_score": 0.31,
  "mcp_surface": "local_default_deny",
  "test_confidence": 0.86,
  "publish_readiness": 0.78
}
```

## When to use it

- Before scaffolding a harness — run genome first, decide whether the
  repo is ready or needs cleanup
- In CI on incoming PRs — post the genome report as a check; alert when
  risk_score crosses a threshold
- For support tickets — `--bundle` emits the full readiness snapshot
  sanitised for safe sharing

## Related skills

- `repo-analyze` (iter — proposed) — the archetype-and-plan recommendation
- `compare-harnesses` (iter 109) — diff two scaffolded harnesses
- `diag-harness` (iter 70) — kernel-version skew check
- `score-harness` (iter 114) — post-scaffold harness scorecard

## See also

- [ADR-030 Discovery Loop](../../../docs/adrs/ADR-030-discovery-loop.md)
- [ADR-031 Bundle JSON Pattern](../../../docs/adrs/ADR-031-bundle-json-pattern.md)
compare-harnessesSkill

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.

create-harnessSkill

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".

diag-harnessSkill

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.

example-harnessSkill

Scaffold 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-secretsSkill

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-templatesSkill

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".

oia-manifestSkill

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-harnessSkill

Publish a generated harness to npm — runs the smoke test, signs the witness manifest, and dispatches `npm publish --provenance` from your tagged release.