agentleFS
secondorderaisecondorderai/ouroboros/.agents/skills/ou-full-code-review/SKILL.md

ou-full-code-review

Skill3 starsChanged 6 months agoMITView on GitHub

Perform a comprehensive full-codebase code review using specialized parallel agents. Use this skill whenever the user asks for a "full code review", "codebase review", "review everything", "audit the code", "code health check", or any request to review the entire project (not just a PR or single file). Also trigger when the user says things like "what's wrong with this codebase", "find all the issues", "review all my code", or "comprehensive review". This is specifically for whole-codebase analysis, not single-file or PR-scoped reviews.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a comprehensive, multi-dimensional code review across the entire codebase by dispatching specialized review agents in parallel.

    line 15
  2. Distinctive:

    Before dispatching agents, understand what you're reviewing:

    line 43
  3. Distinctive:

    Read the project's AGENTS.md for conventions and standards the agents should check against

    line 45
  4. Distinctive:

    Run git diff --stat to understand recent changes (agents can weight recent code higher)

    line 46
  5. Distinctive:

    Create tickets/TODOs for warnings

    line 150
  6. Distinctive:

    Read its AGENTS.md or equivalent config for project-specific conventions

    line 157

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Full Codebase Review

Run a comprehensive, multi-dimensional code review across the entire codebase by dispatching specialized review agents in parallel. Each agent focuses on a different quality dimension, and their findings are synthesized into a unified report.

Why parallel agents?

A single-pass review misses things. Silent failures hide in catch blocks. Type designs erode over time. Comments drift from the code they describe. Tests cover happy paths but miss edges. By running six focused reviewers simultaneously, each with a specific lens, you get deeper coverage faster than a sequential review ever could.

Review Dimensions

Each agent targets a specific quality concern:

AgentFocusWhat it catches
silent-failure-hunterError handling integritySwallowed exceptions, empty catch blocks, fallbacks that mask real errors, inadequate error propagation
code-reviewerStandards & conventionsStyle violations, anti-patterns, deviations from AGENTS.md conventions, potential bugs
type-design-analyzerType system qualityWeak encapsulation, missing invariants, overly permissive types, stringly-typed interfaces
comment-analyzerDocumentation accuracyStale comments, misleading docstrings, comment rot, missing docs on complex logic
code-simplifierCode clarityUnnecessary complexity, dead code, over-abstraction, opportunities to simplify
pr-test-analyzerTest coverage gapsMissing edge case tests, untested error paths, inadequate assertion quality

Execution Steps

1. Identify scope

Before dispatching agents, understand what you're reviewing:

  • Read the project's AGENTS.md for conventions and standards the agents should check against
  • Run git diff --stat to understand recent changes (agents can weight recent code higher)
  • Get a file listing of the source directories to determine the review surface

For the ouroboros project specifically, the key source directories are:

  • src/ — all production TypeScript code
  • tests/ — test suite

2. Dispatch all six agents in parallel

Spawn each agent using the Agent tool with the appropriate subagent_type from pr-review-toolkit. Launch ALL SIX in a single message to maximize parallelism.

Each agent needs a clear prompt that includes:

  • The project root path
  • Which files/directories to focus on (typically src/ for production code)
  • The project conventions (from AGENTS.md) — especially the Result<T, Error> pattern, Zod validation, tool interface contract, and "never throw" rule
  • What to report: file path, line number, severity (critical/warning/info), description

Prompt template for each agent:

Review the codebase at [project-root] for [agent's focus area].

Project conventions (from AGENTS.md):
- TypeScript on Bun runtime
- All tools export: name, description, schema (JSON Schema), execute (async fn)
- Error handling: all tools return Result<T, Error> — never throw
- Use Zod for runtime type validation
- Prefer composition over inheritance
- Skills conform to agentskills.io spec

Focus on the src/ directory. For each finding, report:
- File path and line number
- Severity: critical / warning / info
- Clear description of the issue
- Suggested fix (brief)

Be selective — report only genuine issues, not style nitpicks. Prioritize
findings that could cause bugs, data loss, or maintenance headaches.

Adapt the focus instruction per agent:

  • silent-failure-hunter: "identify silent failures, swallowed errors, empty catch blocks, try/catch that logs but doesn't propagate, and fallback behavior that could mask real problems"
  • code-reviewer: "check adherence to the project conventions listed above, identify potential bugs, logic errors, and security concerns"
  • type-design-analyzer: "analyze type definitions for encapsulation quality, invariant expression, and whether types enforce their contracts or allow invalid states"
  • comment-analyzer: "check that comments accurately describe the code, identify stale or misleading comments, and flag complex logic that lacks explanation"
  • code-simplifier: "identify unnecessary complexity, dead code, over-engineering, and opportunities to simplify while preserving functionality"
  • pr-test-analyzer: "review the tests/ directory for coverage gaps, missing edge cases, untested error paths, and assertion quality"

3. Collect and synthesize results

As agents complete, gather their findings. Then produce a unified review report organized by severity and file, not by agent. The user cares about "what's wrong with my code" — not "what did agent X find."

Report structure:

# Full Codebase Review — [Project Name]

## Summary
- X critical issues, Y warnings, Z informational notes
- Key themes: [2-3 sentence overview of the main patterns found]

## Critical Issues
[Issues that could cause bugs, data loss, or security problems]

### [file:line] — [short title]
**Found by:** [agent name]
[Description and suggested fix]

## Warnings
[Issues that hurt maintainability or deviate from conventions]

### [file:line] — [short title]
**Found by:** [agent name]
[Description and suggested fix]

## Informational
[Opportunities for improvement, not urgent]

### [file:line] — [short title]
**Found by:** [agent name]
[Description and suggested fix]

## Test Coverage Gaps
[Dedicated section for test findings since they're actionable separately]

## Positive Observations
[2-3 things the codebase does well — reviews shouldn't be purely negative]

4. Deduplicate and cross-reference

Multiple agents may flag the same issue from different angles. For example, a silent-failure-hunter finding about a swallowed error and a code-reviewer finding about a missing Result return are likely the same issue. Merge these, noting which agents flagged it (higher confidence when multiple agents agree).

5. Present the report

Share the synthesized report. After presenting it, offer to:

  • Fix critical issues immediately
  • Create tickets/TODOs for warnings
  • Dive deeper into any specific finding

Adapting to other projects

This skill is written with ouroboros conventions in mind, but the pattern works for any TypeScript/JavaScript project. When reviewing a different project:

  • Read its AGENTS.md or equivalent config for project-specific conventions
  • Adjust the conventions section in each agent's prompt
  • Adjust source directories as needed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.