harness-audit
БесплатноБез исполняемых скриптовНе проверенAudit and harden a repository's AI coding agent harness across the 6 Software Factory Stations (Intent, Harness, Loop, Graph, Verification, Release) and place…
от wondelai★ 2 835 звёзд на GitHubОб этом скилле
Harness Audit
Audit, score, and harden the repository machinery around your coding agents — instructions, permissions, hooks, MCP configs, verification loops, worktree isolation, test oracles, and release gates — so Claude Code, OpenAI Codex, and Cursor produce reliable, verifiable changes instead of plausible-looking regressions.
Core Principle
Autonomy is earned by verification, never granted by prompt optimism. A repository's maturity on the Autonomy Ladder (Level 0 to Level 5) is capped by its weakest safety gate: polished AGENTS.md files cannot compensate for missing CI, hardcoded secrets, broken MCP servers, or tests an agent can silently weaken to go green. Every audit starts with deterministic facts on disk — ideally by running npx @wondelai/harness-audit — pairs them with a qualitative inspection of instruction signal-to-noise and test strength, and closes every fix with a command-and-output verification ledger.
Two framing rules govern every audit and remediation:
- One level per loop, capped by risk class. Maturity belongs to a repeatable class of change (dependency bumps, bug fixes, feature work), while risk class (
low,medium,high,critical) caps individual changes. Auth, payments, schema migrations, secrets, tests, and CI remain human-read even in a Level 4–5 repository. - Verify every claim against the live repo. Never invent build commands, flags, or MCP package names from memory. Run every verification command and check every config key before committing it to
AGENTS.mdor CI.
Scoring
Goal: 10/10. score = number of Quick Diagnostic rows passed (10 rows, 1 point each).
- 9–10: Production-grade harness (typically Autonomy Level 4–5, subject to zero blocking caps) — maintain through periodic audits and incident feedback loops.
- 7–8: Solid Level 3 foundation — focus on oracle protection (
CODEOWNERS), evidence-oriented PR templates, and eliminating review bottlenecks. - 5–6: Level 2 paired ceiling — consolidate instructions, harden permissions/hooks/MCP hygiene, and establish a single fast verification loop before scaling agent autonomy.
- ≤4: Level 0–1 ad-hoc state — establish canonical
AGENTS.md, deterministic localtypecheck+lint+test, and PR-triggered CI before delegating multi-file tasks.
Hard gating caps (blocking regardless of raw score): hardcoded credentials or retired/bypassed permission policies cap a repo at Level 2; missing CI or tautological/broken tests cap it at Level 3; unprotected test/CI oracles cap it at Level 4.
Framework
1. Run the Deterministic Baseline First
Core concept: Before offering opinions, establish an objective, file-backed baseline across all six Software Factory Stations (Intent, Harness, Loop, Graph, Verification, Release).
Why it works: LLMs naturally flatter a codebase or fixate on whichever file was opened last. A deterministic scan measures every station uniformly, flags silent tool traps (such as backticked `@AGENTS.md` or retired Codex approval_policy = "untrusted"), and applies gating caps honestly.
Key insights:
- Run
npx @wondelai/harness-audit --format json(or--format terminal) when shell execution is available; it runs 30 deterministic checks locally with zero runtime dependencies and zero telemetry. - When running in a restricted or read-only environment without
npx, execute the exact same 6-station inspection manually using file reads and grep. - Always separate repo artifacts (observable on disk) from org & workflow practices (PR review queues, spec-first discipline, revert tracking — captured via
--interviewor 3–5 targeted questions).
Tool commands:
| Goal | Command |
|---|---|
| Quick terminal scorecard | npx @wondelai/harness-audit |
| Machine-readable JSON for agent processing | npx @wondelai/harness-audit --format json |
| Standalone shareable HTML report (Schematic style) | npx @wondelai/harness-audit --format html --out harness-audit.html |
| Tailored remediation prompt | npx @wondelai/harness-audit --prompt --out HARNESS-FIX-PROMPT.md |
| CI quality gate (exits 1 below threshold) | npx @wondelai/harness-audit --ci --min-score 70 --format json |
| Safe starter scaffolding (preview first) | npx @wondelai/harness-audit init --dry-run --tools claude-code,cursor,codex |
See references/stations-and-checks.md when executing the audit manually or interpreting any of the 30 check IDs — contains the complete check catalog, station weights, gating cap rules, and tool-specific failure signatures across Claude Code, Codex, and Cursor.
2. Station 1 — Intent: Single Source, Tight Budget, Scoped Rules
Core concept: One concise canonical brief (AGENTS.md, target ≤ 150 lines) owns project-wide commands and invariants; tool adapters stay paper-thin; directory-specific rules load only when matching paths are touched.
**Why it wor
Установить harness-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл harness-audit?
Audit and harden a repository's AI coding agent harness across the 6 Software Factory Stations (Intent, Harness, Loop, Graph, Verification, Release) and place it on the Autonomy Ladder (Level 0–5). Use when you need to: (1) audit a repo's readiness for Claude Code, Codex, or Cursor using `@wondelai/harness-audit` or manual inspection, (2) diagnose why agents drift, loop, break tests, or stall in PR review, (3) fix duplicated AGENTS.md/CLAUDE.md, broken MCP configs, retired Codex settings, unguarded Stop hooks, or weak test oracles, (4) generate a verified remediation plan or scaffold starter harness files safely, or (5) climb from Level 2 paired prompting to Level 3–4 spec-driven verified loops.
Как установить скилл harness-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл harness-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic