Project audit

From sd0xdev/sd0x-harness · View interactive version

Project audit is an AI agent skill from the GitHub repository sd0xdev/sd0x-harness. Project health audit with deterministic scoring. Use when: evaluating project quality, onboarding to new codebase, periodic health checks. Not for: runtime performance analysis, security-specific audits (use /codex-security). Output: 5-dimension score + actionable findings.

How to use this skill

Skill file

Project Audit

When NOT to Use

Procedure

  1. Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/run-skill.sh" project-audit audit.js --json to collect deterministic scores
  2. Parse the JSON output — overall_score, status, dimensions, checks, findings, next_actions
  3. If status = Blocked (P0 findings) — highlight critical gaps, suggest immediate fixes
  4. If status = Needs Work (P1 findings) — format improvement roadmap by dimension
  5. If status = Healthy — summarize strengths, note any P2 improvements
  6. Add qualitative interpretation beyond the scores (e.g., "test ratio is good but concentrated in unit tests")

Script Integration

The audit script runs 12 deterministic checks across 5 dimensions:

| Dimension | Checks | What It Measures |

|-----------|--------|-----------------|

| oss | 2 | LICENSE, README quality |

| robustness | 3 | CI config, lint/typecheck, test ratio |

| scope | 2 | Declared features vs implementation, AC completion |

| runnability | 3 | Package manifest, scripts, env/Docker setup |

| stability | 2 | Lock file + audit, type configuration |

Scoring Model

Status Determination

| Status | Condition | Exit Code |

|--------|-----------|-----------|

| Blocked | Any P0 finding | 2 |

| Needs Work | No P0, has P1 | 1 |

| Healthy | No P0/P1 | 0 |

Script Failure Fallback

If the script fails, report the error and suggest running manually (in the plugin's own source checkout without the plugin loaded, the path is scripts/run-skill.sh):

bash "${CLAUDE_PLUGIN_ROOT}/scripts/run-skill.sh" project-audit audit.js --json

Output Format

## Project Audit Report

| Field | Value |
|-------|-------|
| Repo | [name] |
| Score | **[N]/100** |
| Status | [icon] [status] |

### Dimensions
[table of dimension scores]

### Checks
[list of check results with suggestions]

### Next Actions
[prioritized action items]

## Gate: ✅/⛔

References

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.