derailed-dash/dazbo-agent-skills/local-code-review

Claude Code and agent skill by derailed-dash/dazbo-agent-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Conducts a rigorous, multi-axis local code, documentation, and architecture review in any project (GitHub, Bitbucket, GitLab, or a local directory). Supports both Diff/Change Review Mode (uncommitted changes, branches, commit ranges) and Whole-Codebase Audit Mode (reviewing an entire repository or module without relying on Git diffs). Evaluates correctness, simplicity, architecture, security, performance, test quality, documentation alignment, and visual assets using Dazbo's core review rubric…

Install

npx vskill@latest install derailed-dash/dazbo-agent-skills/local-code-review

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as derailed-dash/dazbo-agent-skills/local-code-review.

Local Code & Technical Review (local-code-review)

Conducts a high-signal, multi-dimensional review of code, tests, documentation, configuration, and visual diagrams in any local workspace—whether hosted on GitHub, Bitbucket, GitLab, or not yet under version control.

Supports two operating modes:

  • Mode A — Diff / Change Review: Reviews uncommitted work, staged diffs, a feature branch, or a specific commit range.
  • Mode B — Whole-Codebase / Module Audit: Reviews an entire repository, package, or directory from top to bottom without relying on Git diffs.

Table of Contents


Triggers

Activate this skill whenever:

  • The user asks for a local code review, diff review, branch review, or pre-commit / pre-push review.
  • The user asks to review the whole codebase, audit a repository, or review a specific module/directory.
  • You or another agent have completed a non-trivial feature, refactor, or bug fix and need a structured quality gate before committing or merging.
  • The user pastes a diff inline or asks to review changes in a project that does not use GitHub Actions (e.g. Bitbucket or local repositories).

Review Workflow

Copy and follow this checklist in order:

text
Local Review Progress:
- [ ] Step 1: Select review mode (Mode A: Diff Review vs Mode B: Whole-Codebase Audit) and gather target files
- [ ] Step 2: Load repository rules, core documentation, and architectural context
- [ ] Step 3: Evaluate tests, documentation alignment, and visual assets
- [ ] Step 4: Perform the Five-Axis Evaluation & check structural remedies
- [ ] Step 5: Verify findings against actual file contents on disk (anti-hallucination pass)
- [ ] Step 6: Present severity-ranked review and offer to apply fixes
Step 1: Select Mode & Gather Target Files

Determine whether the user wants a Diff / Change Review (Mode A) or a Whole-Codebase / Module Audit (Mode B):

  • Choose Mode B (Whole-Codebase Audit) if the user explicitly asks to review the whole codebase/project/module, if there is no Git repository, or if the working tree is clean on the default branch (main/master) with no commit range specified.
  • Choose Mode A (Diff Review) if the user asks to review recent changes, uncommitted work, a branch, or a PR/commit range, or if git status --short / git diff shows active local work.

Follow the corresponding discovery procedure below (Mode A or Mode B).

Step 2: Assemble Project & Domain Context

Always load the repository's rules and architectural intent before judging code:

  1. Project Guidelines & Core Docs:
  • Read AGENTS.md, GEMINI.md, or CLAUDE.md (at root or .agents/) to learn repository-specific conventions, coding standards, and architectural rules.
  • Read README.md, ARCHITECTURE.md / docs/architecture.md, DESIGN.md / docs/DESIGN.md, SPEC.md / docs/SPEC.md, TODO.md, and package manifests (pyproject.toml, package.json, go.mod, Cargo.toml, etc.) where present.
  1. Custom Review Instructions:
  • Check for optional repository-specific reviewer guardrails in review-instruction-additions.md, .agents/review-instructions.md, or .github/review-instruction-additions.md.
  1. Domain Skills & Official Documentation:
  • Check if any installed workspace or global agent skills apply to the technologies used in the project.
  • If the code touches Google Cloud (Cloud Run, GKE, BigQuery, Cloud Logging, IAM), Firebase, Vertex AI, or Gemini SDKs, use the Google Developer Knowledge MCP tools (search_documents, get_documents) and Gemini API Docs MCP tools (gemini_search_docs, gemini_get_doc) to verify current API best practices and model identifiers. When checking SDK calls or enum parameters, also inspect the installed package types (e.g. in .venv) to catch silent enum warnings or schema mismatches.
  1. Optional Tier 1.5 Rubric Pre-Screen (`tiered-rubric-loop`):
  • When SPEC.md, docs/SPEC.md, or LOOPS.md defines B1–Bn binary assertions and tiered-rubric-loop is installed, you can run eval_rubric.py --json (or --base main --json in Mode A branch reviews) first to clear routine mechanical checks in ~200 ms and focus deep review on FAIL_FAST, grey-zone, and [arch] assertions.
Step 3: Evaluate Tests, Documentation, & Visual Assets
  1. Review Tests & Verification Coverage:
  • Do tests exist for the critical behaviours and edge cases?
  • Do they test actual behaviour rather than mocking away implementation details?
  • Active Verification: Run the test suite and static checks (pyright/mypy, ruff, codespell) locally if fast and safe. For critical logic changes, check whether inverting a key condition causes a test failure; a condition that can be inverted while the test suite stays green reveals a missing test case.
  1. Holistic Documentation & Configuration Review:
  • Verify that README.md, ARCHITECTURE.md / docs/architecture.md, SPEC.md / docs/SPEC.md, TODO.md, CLI help text, and deployment/config files accurately reflect the implementation on disk. Flag documentation drift, stale instructions, or Mermaid/ASCII box diagrams in Markdown docs as concrete findings.
  1. Multimodal & Visual Inspection:
  • Inspect any added, modified, or Markdown-referenced image assets and architectural diagrams (![...](path/to/diagram.png)) using multimodal file viewing.
  • In Mode A, compare modified images against their baseline (git show <base>:<path>) to check for visual regressions.
  • In Mode B, verify that architecture/design diagrams match the actual module structure and data flows in the codebase.

Mode A: Diff / Change Discovery

When reviewing a changeset:

  1. Inspect Working Tree & Untracked Files:
  • Run git status --short to identify modified, staged, and untracked (`??`) files.
  • Standard git diff ignores untracked files. Always read untracked source, test, and documentation files that are part of the new work.
  1. Resolve the Diff Target:
  • Explicit ref/branch/commit: Run git diff <ref>...HEAD (or git diff <commit>).
  • Uncommitted working tree changes: Inspect both staged (git diff --cached) and unstaged (git diff HEAD) changes.
  • Feature branch with a clean working tree: Compare against the default branch (git diff main...HEAD or git diff master...HEAD).
  1. Read Full Current Files & Direct Neighbours:
  • Read the full current file content of every modified file (not just the diff hunk) plus direct callers/imports so you understand surrounding control flow and line numbers.
  1. Filter Noise:
  • Skip generated lockfiles (uv.lock, package-lock.json, pnpm-lock.yaml, yarn.lock, cargo.lock, go.sum), binaries, minified bundles (*.min.js), and encrypted secrets (*.enc, .env), except to confirm lockfile synchronisation when manifests change. Do not flag intentionally excluded vendored/generated paths or omitted lockfiles/binaries as missing from the diff.
  1. Diff Scope Discipline:
  • Focus inline findings on the changed lines and their direct blast radius (broken callers, missing tests, or doc drift caused by the diff).

Mode B: Whole-Codebase / Module Discovery

When reviewing an entire codebase or specific directory without relying on Git diffs:

  1. Inventory the Codebase:
  • If inside a Git repository, run git ls-files to list tracked files cleanly. If not a Git repository, list files recursively while excluding .git/, .venv/, venv/, node_modules/, dist/, build/, __pycache__/, lockfiles, and binary/encrypted files.
  • If the user scoped the review to a specific package or directory, restrict the primary inventory to that path while still reading root guidelines (AGENTS.md, README.md, pyproject.toml).
  1. Systematic Top-Down Traversal:
  • Group and inspect files in logical architectural order:
  1. Manifests, Entrypoints & Configuration (pyproject.toml, CLI/app entrypoints, config loaders, CI/deployment configs).
  2. Core Domain & Business Logic Modules (data models, schemas, core services, state machines, prompts/agents).
  3. External Boundaries & Integrations (API clients, database queries, auth, file I/O, shell execution).
  4. Shared Utilities & Helpers (checking for cross-module duplication, leaky abstractions, or dead helpers).
  5. Test Suite & Fixtures (assessing coverage gaps, brittle mocks, and missing edge-case tests).
  6. Documentation & Visual Diagrams (README.md, ARCHITECTURE.md, docs/*.md, and embedded images).
  7. Cross-Cutting Synthesis:
  • In Whole-Codebase Mode, evaluate systemic patterns across files—such as inconsistent error handling, duplicated logic across modules, circular dependencies, unreferenced dead code across the repo, security boundary gaps, and mismatches between ARCHITECTURE.md / docs/architecture.md and the code.

Review Standards & Five-Axis Evaluation

Review Philosophy & Approval Bar
  • Continuous Code Health Improvement: Approve changes or modules when they maintain or improve overall codebase health, even if not perfect. Do not Nit-pick purely stylistic preferences when project conventions are followed.
  • Lead with Leverage: Order findings by impact—correctness and security first, then structural/architectural flaws and missed simplifications, then minor nits last. Never bury a high-conviction structural issue under a long list of cosmetic suggestions.
The Five Quality Axes

Evaluate systematically across five core engineering dimensions:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/derailed-dash/dazbo-agent-skills/local-code-review/badge)](https://verified-skill.com/skills/derailed-dash/dazbo-agent-skills/local-code-review)

Something wrong with this skill or its page? Tell us.