Agent Skillsruvnet/metaharness › repo-genome

repo-genome

GitHub

为本地仓库生成7部分就绪度评分卡,评估代理拓扑、MCP风险及测试信心。通过退出码判定状态,支持JSON和Bundle格式输出,用于脚手架前检查或CI门禁。

.claude-plugin/skills/repo-genome/SKILL.md ruvnet/metaharness

触发场景

评估本地仓库是否准备好接入Harness 在CI中检查PR的发布就绪度和风险 生成标准化的仓库就绪快照

安装

npx skills add ruvnet/metaharness --skill repo-genome -g -y
更多选项

非标准路径

npx skills add https://github.com/ruvnet/metaharness/tree/main/.claude-plugin/skills/repo-genome -g -y

不安装直接使用

npx skills use ruvnet/metaharness@repo-genome

指定 Agent (Claude Code)

npx skills add ruvnet/metaharness --skill repo-genome -a claude-code -g -y

安装 repo 全部 skill

npx skills add ruvnet/metaharness --all -g -y

预览 repo 内 skill

npx skills add ruvnet/metaharness --list

SKILL.md

Frontmatter
{
    "name": "repo-genome",
    "description": "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."
}

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

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)

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

版本历史

  • 6e1902b 当前 2026-07-05 11:03

同 Skill 集合

.claude-plugin/skills/compare-harnesses/SKILL.md
.claude-plugin/skills/create-harness/SKILL.md
.claude-plugin/skills/diag-harness/SKILL.md
.claude-plugin/skills/example-harness/SKILL.md
.claude-plugin/skills/list-templates/SKILL.md
.claude-plugin/skills/oia-manifest/SKILL.md
.claude-plugin/skills/publish-harness/SKILL.md
.claude-plugin/skills/upgrade-harness/SKILL.md
.claude-plugin/skills/validate-harness/SKILL.md
.claude-plugin/skills/verify-witness/SKILL.md

元信息

文件数
0
版本
c86bc12
Hash
f9793cb4
收录时间
2026-07-05 11:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 08:51
浙ICP备14020137号-1 $访客地图$