Run a deterministic repository harness audit and return a prioritized scorecard.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-be1390a17469 ,按照其中的说明把「harness-audit」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Run a deterministic repository harness audit and return a prioritized scorecard.
/harness-audit [scope] [--format text|json] [--root path]
scope (optional): repo (default), hooks, skills, commands, agents--format: output style (text default, json for automation)--root: audit a specific path instead of the current working directoryAlways run:
node scripts/harness-audit.js <scope> --format <text|json> [--root <path>]
This script is the source of truth for scoring and checks. Do not invent additional dimensions or ad-hoc points.
Rubric version: 2026-05-19.
The script computes up to 12 fixed categories (0-10 normalized each). The first seven are always applicable; GitHub Integration is always applicable; deploy-target categories are applicable only when a matching marker is detected.
vercel.json or .vercel/ is present)netlify.toml or .netlify/ is present)wrangler.toml or wrangler.jsonc is present)fly.toml is present)Scores are derived from explicit file/rule checks and are reproducible for the same commit. The script audits the current working directory by default and auto-detects whether the target is the ECC repo itself or a consumer project using ECC.
Return:
overall_score out of max_score. max_score depends on which categories are applicable to the target; never assume a fixed total.applicable_categories[] and category_count describing which categories contributed.top_actions).--format json is requested, return the script JSON unchanged.checks[] and top_actions[].Harness Audit (repo, repo): 71/80
- Tool Coverage: 10/10 (10/10 pts)
- Context Efficiency: 9/10 (9/10 pts)
- Quality Gates: 10/10 (10/10 pts)
- GitHub Integration: 2/10 (2/10 pts)
Top 3 Actions:
1) [GitHub Integration] Add at least one workflow under .github/workflows/. (.github/workflows/)
2) [Security Guardrails] Add prompt/tool preflight security guards in hooks/hooks.json. (hooks/hooks.json)
3) [Eval Coverage] Increase automated test coverage across scripts/hooks/lib. (tests/)
$ARGUMENTS:
repo|hooks|skills|commands|agents (optional scope)--format text|json (optional output format)