| name | harness-audit |
| description | Check system setup health across 7 categories. Use for /harness-audit, "verify my setup", "check harness". NOT for project quality (/audit) or eval scoring (/eval-score). |
| model | sonnet |
| effort | low |
| allowed-tools | Read, Bash, Glob, Grep |
Harness Audit: Control Plane Health Score
EXECUTE this skill now. Follow the workflow steps below using the provided $ARGUMENTS. Do NOT describe, summarize, or explain this skill โ run it.
Constants
CLAUDE_DIR: C:/Users/gurusharan.gupta/.claude
REGISTRY_DIR: C:/Users/gurusharan.gupta/Agents/Claude Code
Category 1: Tool Coverage (4 checks)
- Skills installed โ
ls ~/.claude/skills/ has โฅ 8 skill directories
- Core skills present โ scan, audit, research, execplan, init-project all exist in
~/.claude/skills/
- Bin scripts valid โ
bin/scan.sh and bin/install.sh exist and are executable
- Manifest exists โ
manifest.json present and valid JSON (check with python -m json.tool manifest.json)
Category 2: Context Efficiency (4 checks)
- Global CLAUDE.md size โ word count โค 500 words (token efficient)
- Project CLAUDE.md size โ word count โค 300 words if present
- Skills have context:fork โ count skills with
context: fork in frontmatter; PASS if โฅ 70% of exploration/registry skills have it (scan, audit, dashboard, register, context-budget, verify, save-session = 7; PASS if โฅ 5 have it)
- Skill size limit โ no individual SKILL.md exceeds 200 lines
Category 3: Quality Gates (4 checks)
- Model frontmatter โ all SKILL.md files have a
model: field in frontmatter
- Effort frontmatter โ all SKILL.md files have an
effort: field
- Eval criteria exist โ
eval/criteria/ has โฅ 1 non-template JSON file
- Principles registered โ
principles/_index.json exists and has โฅ 3 entries
Category 4: Session Persistence (4 checks)
- save-session skill โ
~/.claude/skills/save-session/SKILL.md exists
- resume-session skill โ
~/.claude/skills/resume-session/SKILL.md exists
- session-data dir โ
~/.claude/session-data/ directory exists (create if missing)
- Context budget skill โ
~/.claude/skills/context-budget/SKILL.md exists
Category 5: Eval Coverage (4 checks)
- Eval scaffolds โ
eval/scaffolds/ has โฅ 1 directory
- Eval history โ
eval/history/ has โฅ 1 score entry
- Criteria coverage โ each workflow in
workflows/ has a matching criteria file in eval/criteria/
- Score recency โ most recent score in
eval/history/ is within 30 days (check file mtime)
Category 6: Security Guardrails (4 checks)
- Hooks managed-only โ
~/.claude/settings.json does not contain any hooks key (managed-only env)
- Bypass disabled โ
settings.json does not have bypassPermissionsMode: true
- MCP whitelist โ if
.mcp.json exists, all servers are in the known whitelist (context7, playwright, or other explicitly approved)
- No secrets in skills โ no SKILL.md file contains patterns matching
(password|secret|api_key|token)\s*=\s*['\"][^'\"]{8,}
Category 7: Cost Efficiency (4 checks)
- Mechanical skills use Haiku โ scan, register, dashboard, context-budget, save-session, verify all have
model: haiku
- Model routing documented โ
~/.claude/CLAUDE.md contains either a model routing table OR a reference to rules/performance.md (check for "rules/" or "model routing" or "Model Routing" in the file)
- Subagent model set โ
settings.json has CLAUDE_CODE_SUBAGENT_MODEL=haiku in env block
- Token cap set โ
settings.json has MAX_THINKING_TOKENS in env block
Scoring Workflow
For each check:
- Use Read/Glob/Bash/Grep to evaluate the condition
- Record PASS or FAIL with a one-line reason
After all checks, compute:
- Per-category score: (passed / 4) ร 10 โ 0โ10
- Overall score: average of 7 category scores โ 0โ10
Output Format
## Harness Audit Report โ <date>
| # | Category | Score | Checks |
|---|----------|-------|--------|
| 1 | Tool Coverage | X/10 | 4 PASS / 0 FAIL |
| 2 | Context Efficiency | X/10 | 3 PASS / 1 FAIL |
| 3 | Quality Gates | X/10 | ... |
| 4 | Session Persistence | X/10 | ... |
| 5 | Eval Coverage | X/10 | ... |
| 6 | Security Guardrails | X/10 | ... |
| 7 | Cost Efficiency | X/10 | ... |
**Overall Score: X.X / 10**
### Failures
<list each failed check with: check name, what was found, how to fix>
### Grade
- 9.0โ10: Excellent โ control plane is production-ready
- 7.0โ8.9: Good โ minor gaps, address before scaling
- 5.0โ6.9: Fair โ notable gaps affecting efficiency
- < 5.0: Poor โ critical issues require immediate attention
Stop and report even if some checks error (e.g., file missing). A missing file is a FAIL, not an error.