agentsclimarketplace

Harness audit

Skill mifunedev/skills/skills/harness-audit

A portable, cross-agent skill library for Claude Code and compatible AI agents.

Install
npx -y skills add mifunedev/skills --skill harness-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Spawn 4 parallel sub-agents (PM, Implementer, Critic, Explorer) to audit the harness for improvements. Synthesizes findings into tier-ranked actionable list. Outputs recommended next 3 actions. TRIGGER when: asked to audit the harness, find improvements, review system health, "what should we fix", or periodically via heartbeat.

SKILL.md

12.9 KB, as published. Nobody here has run it

Harness Audit

Run 4 parallel audit perspectives (PM, Implementer, Critic, Explorer), synthesize their ranked findings, and produce a single tier-classified improvement list with recommended next actions.

Core principle: evidence over opinion. Every finding must cite a specific file, observed behavior, or gap — no speculative items.

Decision Flow

flowchart TD
    A["Resolve args: $ARGUMENTS"] --> B["Gather context snapshot"]
    B --> C["Spawn 4 auditors IN ONE MESSAGE (parallel sonnet)"]

    C --> PM["PM Auditor<br>onboarding · skill consistency<br>issue templates · wiki/memory"]
    C --> IMP["Implementer Auditor<br>startup reliability · CI/CD<br>test coverage · package health"]
    C --> CRIT["Critic Auditor<br>security · heartbeat reliability<br>worktree cleanup · state corruption"]
    C --> EXP["Explorer Auditor<br>memory quality · wiki utilization<br>heartbeat health · skill staleness"]

    PM & IMP & CRIT & EXP --> SYN["Synthesize: deduplicate + tier-rank"]
    SYN --> OUT["Emit tier-ranked report"]
    OUT --> MEM["Memory Protocol"]

Instructions

1. Resolve arguments

Arguments received: $ARGUMENTS

  • If --focus <area> is present, restrict each auditor to that area (pass as a constraint)
  • If --dry-run is present, print the briefing + auditor prompts and stop — do not spawn agents
  • Otherwise proceed with a full 4-agent audit

2. Gather context snapshot

Read the following before spawning agents. Pass the assembled snapshot to every auditor.

# Harness structure
ls /home/sandbox/harness/.claude/skills/
ls /home/sandbox/harness/.claude/agents/ 2>/dev/null || echo "no agents dir"
ls /home/sandbox/harness/workspace/heartbeats/ 2>/dev/null || echo "no heartbeats"
ls /home/sandbox/harness/memory/ 2>/dev/null | tail -10
ls /home/sandbox/harness/docs/wiki/ 2>/dev/null | head -20

# Package health
cat /home/sandbox/harness/package.json 2>/dev/null | head -30
cat /home/sandbox/harness/apps/docs/package.json 2>/dev/null | head -30

# CI definition
ls /home/sandbox/harness/.github/workflows/ 2>/dev/null

# Worktrees
git -C /home/sandbox/harness worktree list 2>/dev/null

# Recent memory
tail -40 /home/sandbox/harness/MEMORY.md 2>/dev/null

Assemble a Context Snapshot (compact markdown, ~300 words):

## Harness Context Snapshot — YYYY-MM-DD

### Skills present
[list]

### Agents present
[list or "none"]

### Heartbeats
[list files + frontmatter status if readable]

### Memory logs (recent)
[last 10 daily log files]

### Wiki pages
[list or "none"]

### Packages
- root: [version, dep count]
- apps/docs: [version, dep count]

### CI workflows
[list]

### Git worktrees
[list]

### Focus constraint
[value of --focus or "none — full audit"]

3. Spawn 4 auditors in ONE message (parallel)

Launch 4 Agent tool calls in a single message. Each receives the Context Snapshot and its specific audit mandate below. All agents use sonnet model and Ultra compression for their output (consumed by the synthesis step, not humans).


PM Auditor

You are a Product Manager auditing the Open Harness project. Read the Context Snapshot provided. Then inspect the repo at /home/sandbox/harness for evidence supporting or refuting each check below. Use Read, Glob, and Grep tools freely. Return findings in the Ultra-compressed format defined at the end.

Audit areas:

  1. Developer onboarding friction — Read .devcontainer/, Makefile, install/, CLAUDE.md, workspace/AGENTS.md. Count the distinct manual steps required from git clone to a working sandbox. Flag any step that is undocumented, error-prone, or requires copy-pasting secrets.

  2. Skill consistency — Read every SKILL.md under .claude/skills/ and workspace/.claude/skills/. Check: does each have valid YAML frontmatter (name, description)? Does each follow imperative instructions? Are any stale (no recent invocation evidence in memory logs)?

  3. Issue template completeness — List .github/ISSUE_TEMPLATE/ files. For each template, check: does it have required fields, clear labels, and assignment guidance?

  4. Wiki/memory utilization — Count wiki pages under docs/wiki/. Count daily memory logs under memory/. Are logs recent (within 7 days)? Are wiki pages populated or placeholder-empty?

Return format (Ultra compression):

PM_FINDINGS
[AREA] [SEVERITY: H/M/L] [EFFORT: S/M/L] [FINDING] | [EVIDENCE: file or observation]
...
WORKING
[what is functioning well]
END

Implementer Auditor

You are a senior engineer auditing the Open Harness project. Read the Context Snapshot provided. Then inspect the repo at /home/sandbox/harness. Use Read, Glob, Grep, and Bash tools freely. Return findings in the Ultra-compressed format defined at the end.

Audit areas:

  1. Startup reliability — Read .devcontainer/docker-compose.yml, .devcontainer/entrypoint.sh, workspace/startup.sh. Look for: race conditions (services starting before deps are ready), silent failure paths (errors swallowed without exit codes), missing healthchecks on compose services.

  2. Test coverage — Check scripts/__tests__/ and apps/docs/ for test files. Run ls scripts/__tests__/ 2>/dev/null and ls apps/docs/src/__tests__/ 2>/dev/null. Check .github/workflows/ for test job definitions. Are the orchestrator scripts and docs app tested in CI?

  3. CI/CD completeness — Read each workflow file. Are there gaps: missing lint, missing type-check, no test job, no release job, no deploy step?

  4. Package health — For root package.json and each apps/*/package.json, check: pinned vs caret deps, presence of build script, presence of test script.

  5. Compose overlay fragility — Read .devcontainer/docker-compose*.yml files. Look for: hardcoded paths, missing restart: unless-stopped on long-lived services, volumes without named mounts, environment variables without defaults.

Return format (Ultra compression):

IMP_FINDINGS
[AREA] [SEVERITY: H/M/L] [EFFORT: S/M/L] [FINDING] | [EVIDENCE: file:line or command output]
...
WORKING
[what is solid]
END

Critic Auditor

You are an adversarial security and reliability critic auditing the Open Harness project. Assume everything is broken until proven otherwise. Read the Context Snapshot. Inspect /home/sandbox/harness. Use Read, Glob, Grep, and Bash tools. Return findings in the Ultra-compressed format defined at the end.

Audit areas:

  1. Security posture — Check: is the Docker socket mounted into containers (/var/run/docker.sock)? Are any containers running with --privileged or user: root? Are there default passwords or hardcoded secrets in compose files or entrypoints? Is sudo unrestricted inside the sandbox?

  2. Heartbeat reliability — Read all files in workspace/heartbeats/. For each: is there a watchdog/restart mechanism? What happens if the heartbeat process crashes — does it auto-recover? Is the cron/daemon config present and valid?

  3. Worktree cleanup — Run git -C /home/sandbox/harness worktree list. Identify orphaned agent branches (agent/*) with no recent commits (check git log --since="7 days ago"). Is there any automated cleanup?

  4. State corruption risks — Look for: shared files written by multiple agents concurrently (e.g., MEMORY.md), no file locking on append operations, mid-commit crash scenarios (partial writes to critical files), compose volumes that could diverge.

Return format (Ultra compression):

CRITIC_FINDINGS
[AREA] [SEVERITY: H/M/L] [EFFORT: S/M/L] [FINDING] | [EVIDENCE: file or observed gap]
...
WORKING
[what is hardened or acceptable]
END

Explorer Auditor

You are a system archaeologist auditing the Open Harness project. Your job is to discover what is actually happening vs. what the documentation claims. Read the Context Snapshot. Inspect /home/sandbox/harness and /home/sandbox/harness/workspace. Use Read, Glob, Grep, and Bash tools. Return findings in the Ultra-compressed format defined at the end.

Audit areas:

  1. Memory system quality — Read the 5 most recent daily logs in memory/. Are entries following the Memory Improvement Protocol (Result/Action/Observation/Duration)? Is quality declining over time (shorter entries, missing fields)? Are entries actually present?

  2. Wiki utilization — List all files under docs/wiki/. For each, check if it has substantive content (>10 lines) or is a placeholder stub. What percentage is populated?

  3. Heartbeat health — For each heartbeat file in workspace/heartbeats/, classify: ACTIVE (recently logged evidence), STALE (defined but no recent log evidence), MISCONFIGURED (broken frontmatter or missing schedule). Check memory logs for heartbeat execution traces.

  4. Agent worktree status — Run git -C /home/sandbox/harness worktree list and git -C /home/sandbox/harness branch -a | grep agent/. Classify each: ACTIVE (commits in last 7 days), IDLE (commits 7-30 days ago), ORPHANED (no commits in 30+ days or branch deleted).

  5. Skill usage patterns — Read MEMORY.md and recent daily logs. Which skills appear in memory entries (evidence of use)? Which skills exist in .claude/skills/ but never appear in logs (potentially stale or unknown)?

Return format (Ultra compression):

EXP_FINDINGS
[AREA] [SEVERITY: H/M/L] [EFFORT: S/M/L] [FINDING] | [EVIDENCE: file or log reference]
...
WORKING
[what is healthy]
END

4. Synthesize findings

After all 4 auditors return, synthesize into the output format:

  1. Deduplicate — if 2+ auditors flag the same issue, merge into one entry (note multiple sources)
  2. Tier-rank using this matrix:
TierCriteria
Tier 1: Fix NowSeverity H + any effort, OR Severity M + Effort S
Tier 2: Build NextSeverity M + Effort M/L, OR Severity L + Effort S with clear payoff
Tier 3: Design Decisions NeededRequires architectural choice, policy decision, or cross-team alignment before action
  1. Identify what's working — consolidate all WORKING entries from auditors
  2. Select top 3 actions — the 3 highest-leverage Tier 1 items (or Tier 2 if Tier 1 is empty), stated as concrete next steps (e.g., "Add healthcheck to postgres service in .devcontainer/docker-compose.yml")

5. Emit the report

## Harness Audit — YYYY-MM-DD

### Tier 1: Fix Now (high impact, low-medium effort)
| # | Issue | Source | Effort | Why |
|---|-------|--------|--------|-----|
| 1 | ... | PM/IMP/CRITIC/EXP | S/M/L | ... |

### Tier 2: Build Next (medium impact, medium effort)
| # | Issue | Source | Effort | Why |
|---|-------|--------|--------|-----|

### Tier 3: Design Decisions Needed
| # | Issue | Source | Why |
|---|-------|--------|-----|

### What's Working (keep investing)
- ...

### Recommended Next 3 Actions
1. ...
2. ...
3. ...

6. Memory Protocol

Append to memory/YYYY-MM-DD/log.md where today = date -u +%Y-%m-%d:

## [Harness Audit] — HH:MM UTC
- **Result**: OP
- **Action**: audited N areas, found M tier-1 issues
- **Observation**: [one sentence — top finding]

See context/rules/memory.md for the canonical Memory Improvement Protocol.

Reference

Auditor-to-area mapping

AuditorPrimary areas
PMOnboarding, skill consistency, issue templates, wiki/memory utilization
ImplementerStartup reliability, test coverage, CI/CD, package health, compose overlays
CriticSecurity, heartbeat reliability, worktree cleanup, state corruption
ExplorerMemory quality, wiki utilization, heartbeat health, worktree status, skill usage

Severity and effort definitions

LabelSeverity meaningEffort meaning
HData loss, security breach, or blocks all agentsS = < 1 hour
MDegrades reliability or developer experienceM = 1 hour – 1 day
LNice-to-have, cosmetic, or minor frictionL = > 1 day

Key paths

ResourcePath
Orchestrator skills.claude/skills/
Workspace skillsworkspace/.claude/skills/
Heartbeatsworkspace/heartbeats/
Memory logsmemory/YYYY-MM-DD/log.md
Long-term memoryMEMORY.md
Wikidocs/wiki/
Compose.devcontainer/docker-compose.yml
Entrypoint.devcontainer/entrypoint.sh
CI workflows.github/workflows/
Docs appapps/docs/
Orchestrator scriptsscripts/ (with tests in scripts/__tests__/)

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.