Code quality

From elasticdotventures/_b00t_ · View interactive version

Code quality is an AI agent skill from the GitHub repository elasticdotventures/_b00t_. Validate code quality using certainty-graded rules. Detect AI artifacts, anti-patterns, and b00t violations. Reports auto-fixable vs review-required findings.

How to use this skill

Skill file

Code Quality Rules

Uses certainty-grade framework. Runs deterministic checks first (code), AI analysis second (reasoning).

Steps

  1. Run HIGH certainty checks (no AI needed). # output: high_findings[]
  2. Run MEDIUM certainty checks (heuristics). # output: medium_findings[]
  3. Run LOW certainty checks (AI judgment). # output: low_findings[]
  4. Apply certainty-grade to each finding.
  5. Group: auto-fixable (HIGH) vs needs-review (MEDIUM) vs human-gate (LOW).
  6. Report summary with counts.

HIGH Certainty Rules (Deterministic)

AI Artifact Detection:

b00t Violations:

Language-Specific:

MEDIUM Certainty Rules (Heuristic)

Documentation Ratios:

Code Smell Patterns:

b00t Alignment:

LOW Certainty Rules (AI Judgment)

Output Format

Code Quality Report: <file/scope>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[HIGH]   3 findings — auto-fixable
  ✗ console.log() at src/app.ts:12
  ✗ TODO without issue at lib/utils.rs:88
  ✗ unwrap() in production at src/main.rs:45

[MEDIUM] 2 findings — needs review
  ⚠ process_data() at src/etl.py:100 — 67 lines, consider split
  ⚠ public fn without docs at src/api.rs:23

[LOW]    1 finding — human gate
  ? naming: `handle_thing()` may be ambiguous in payment context

Auto-fix available: 3 | Review required: 2 | Human approval: 1

Integration

Invoke via: /next-task (pre-merge gate), inline during implementation.

All fixes apply certainty-grade before executing.

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.