quality-auditor
Code quality gatekeeper and auditor. Enforces strict quality gates, resolves the AI verification gap, and evaluates codebases across 12 critical dimensions with evidence-based scoring. Use when auditing code quality, reviewing AI-generated code, scoring codebases against industry standards, or enforcing pre-commit quality gates. Use for quality audit, code review, codebase evaluation, security assessment, technical debt analysis.
What this skill does
# Quality Auditor ## Overview Evaluates tools, frameworks, systems, and codebases against the highest industry standards across 12 weighted dimensions. Produces evidence-based scores, identifies anti-patterns, and generates prioritized improvement roadmaps. Applies extra scrutiny to AI-generated code through the verification gap protocol, ensuring velocity does not compromise integrity. **When to use:** Auditing code quality, reviewing AI-generated code, scoring codebases against industry benchmarks, enforcing pre-commit quality gates, comparing tools or frameworks, assessing technical debt. **When NOT to use:** Quick code reviews without scoring, style-only linting (use a linter), feature implementation, routine PR reviews that do not require a full audit. ## Quick Reference | Dimension | Weight | What to Evaluate | | -------------------- | ------ | ------------------------------------------------------------------- | | Code Quality | 10% | Structure, patterns, SOLID, duplication, complexity, error handling | | Architecture | 10% | Design, modularity, scalability, coupling/cohesion, API design | | Documentation | 10% | Completeness, clarity, accuracy, examples, troubleshooting | | Usability | 10% | Learning curve, installation ease, error messages, ergonomics | | Performance | 8% | Speed, resource usage, caching, bundle size, Core Web Vitals | | Security | 10% | OWASP Top 10, input validation, auth, secrets, dependencies | | Testing | 8% | Coverage (unit/integration/e2e), quality, automation, organization | | Maintainability | 8% | Technical debt, readability, refactorability, versioning | | Developer Experience | 10% | Setup ease, debugging, tooling, hot reload, IDE integration | | Accessibility | 8% | WCAG compliance, keyboard nav, screen readers, cognitive load | | CI/CD | 5% | Automation, pipelines, deployment, rollback, monitoring | | Innovation | 3% | Novel approaches, forward-thinking design, unique value | ## Audit Phases | Phase | Name | Purpose | | ----- | --------------------- | ----------------------------------------------------------------- | | 0 | Resource Completeness | Verify registry/filesystem parity; audit fails if this fails | | 1 | Discovery | Read docs, examine code, test system, review supporting materials | | 2 | Evaluation | Score each dimension with evidence, strengths, and weaknesses | | 3 | Synthesis | Executive summary, detailed scores, recommendations, risk matrix | ## Scoring Scale | Score | Rating | Meaning | | ----- | ----------- | ------------------------------------------- | | 10 | Exceptional | Industry-leading, sets new standards | | 8-9 | Excellent | Exceeds expectations significantly | | 6-7 | Good | Meets expectations with improvements needed | | 5 | Acceptable | Below average, significant improvements | | 3-4 | Poor | Major gaps and fundamental problems | | 1-2 | Critical | Barely functional or non-functional | ## Common Mistakes | Mistake | Correct Pattern | | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | Giving inflated scores without evidence | Every score must cite specific files, metrics, or code examples as evidence | | Skipping Phase 0 resource completeness check | Always verify registry completeness first; missing resources cap the overall score at 6/10 | | Evaluating only code quality, ignoring dimensions | Score all 12 dimensions with appropriate weights; architecture, security, and DX matter equally | | Accepting superficial "LGTM" reviews | Perform deep semantic audits checking contract integrity, security sanitization, and performance hygiene | | Trusting AI-generated code without verification | Apply the verification gap protocol: critic agents, verifiable goals, human oversight for critical paths | | Proceeding after audit failure without re-audit | Stop, analyze the deviation, remediate, then restart the checklist from step 1 | | Using 10/10 scores without exceptional evidence | Reserve 10/10 for truly industry-leading work; most quality tools score 6-7 | | Surface-level static analysis only | Combine linting with architectural fit checks, risk-based PR categorization, and context-aware validation | ## Delegation - **Discover codebase structure and gather audit evidence**: Use `Explore` agent to survey file organization, dependencies, test coverage, and documentation - **Execute targeted quality checks across dimensions**: Use `Task` agent to run linters, security scanners, performance profilers, and accessibility audits - **Design quality improvement roadmap**: Use `Plan` agent to prioritize quick wins, short-term, and long-term recommendations from audit findings > For stylistic cleanup of AI-generated prose and code (emdash overuse, slop vocabulary, over-commenting, verbose naming), use the `de-slopify` skill. > > If the `usability-tester` skill is available, delegate usability dimension evaluation and user flow validation to it. > Otherwise, recommend: `pnpm dlx skills add oakoss/agent-skills -s usability-tester -a claude-code -y` ## References - [Audit Rubric](references/audit-rubric.md) -- pass/warn/fail thresholds, weighted scoring methodology, automated vs manual checklists, score caps, report format - [Dimension Rubrics](references/dimension-rubrics.md) -- detailed scoring criteria, evidence requirements, and rubric tables for all 12 dimensions - [Audit Report Template](references/audit-report-template.md) -- structured report format, executive summary, recommendations, risk assessment - [Anti-Patterns Guide](references/anti-patterns-guide.md) -- code, architecture, security, testing, and process anti-patterns to identify during audits - [Verification Gap Protocol](references/verification-gap-protocol.md) -- AI code verification methodology, critic agents, rejection protocol, risk-based review strategies
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.