Skip to content
FunCoding

04-audit

Audit a codebase read-only across seven quality pillars into one ranked report. Use when the user wants to assess, health-check, or audit a codebase or one pillar. Not for fixing findings, reviewing a change, or checking a feature works.

Star
593
License
MIT
Last commit
Dec 1, 2026

plugins/aidd-dev/skills/04-audit/SKILL.md

View on GitHub

Skill: audit

Diagnose a codebase against quality pillars and emit one ranked findings report. Read-only: it identifies and ranks problems, never changes code.

Actions

#ActionPillarLens
01code-qualitycode-qualityClean code (naming, SOLID, DRY, readability, smells) and tech debt (dead code, complexity, file/function size, error handling)
02architecturearchitectureConformance to C4 / ADRs, coupling, boundaries, layering
03securitysecurityOWASP risks, authz, input validation, secrets in code
04dependenciesdependenciesCVEs, licenses, outdated and unused deps, supply chain
05performanceperformanceN+1 queries, hot paths, bundle size, heavy operations
06teststestsCritical-path coverage, flakiness, test pyramid balance
07uiuiLoading/error/empty states, visual hierarchy, design-system drift, responsive, a11y

Run the one pillar named, or offer all seven when the request is unscoped. Before running an action, read its file in actions/, not only the table or assets.

Transversal rules

  • Read-only: diagnose and rank, never edit code.
  • Scope: run the one named pillar, or for an unscoped request ask once "all seven pillars, or one?" before running. Never silently default to one pillar, never blind-run all without offering the choice.
  • One folder per run, aidd_docs/tasks/<yyyy_mm>/<yyyy_mm_dd>_audit/, like a feature folder. Every pillar that runs always writes its own <pillar>.md there, alone or in a full run. A full run additionally writes a merged report.md: one Findings table (category = pillar, severity-first), one Top-actions list, and one Coverage section over all seven pillars.
  • Unscannable pillar: skip it, record it under Coverage > Skipped with the reason, and never invent findings for it.
  • Every file written: run scripts/validate-audit.cjs, next to the loaded SKILL.md, on it, fix each finding and validate again, and after 3 passes stop and show what is left.
  • Every finding row carries a severity, its pillar, a concrete file:line, the issue, a suggested fix, and an effort.

Assets

  • assets/audit-template.md: the report structure both run modes fill.

Similar Skills

rea-analysis-optimization

MOmorluto/rea485k9,215 new stars in the last 7 days

codebase-design

MAmattpocock/skills336k5,004 new stars in the last 7 days

Featured

diagnosing-bugs

Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.

MAmattpocock/skills336k5,004 new stars in the last 7 days

setup-ts-deep-modules

MAmattpocock/skills336k5,004 new stars in the last 7 days

code-review

MAmattpocock/skills336k5,004 new stars in the last 7 days

implement

MAmattpocock/skills336k5,004 new stars in the last 7 days