derailed-dash/dazbo-agent-skills/local-code-review
Claude Code and agent skill by derailed-dash/dazbo-agent-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-reviewSemi-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
- Review Workflow
- Mode A: Diff / Change Discovery
- Mode B: Whole-Codebase / Module Discovery
- Review Standards & Five-Axis Evaluation
- Structural Remedies & Hygiene
- Change Sizing & Splitting Heuristics
- Critical Anti-Hallucination Guardrails
- Output Format
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:
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 diffshows 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:
- Project Guidelines & Core Docs:
- Read
AGENTS.md,GEMINI.md, orCLAUDE.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.
- 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.
- 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.
- Optional Tier 1.5 Rubric Pre-Screen (`tiered-rubric-loop`):
- When
SPEC.md,docs/SPEC.md, orLOOPS.mddefinesB1–Bnbinary assertions andtiered-rubric-loopis installed, you can runeval_rubric.py --json(or--base main --jsonin Mode A branch reviews) first to clear routine mechanical checks in ~200 ms and focus deep review onFAIL_FAST, grey-zone, and[arch]assertions.
Step 3: Evaluate Tests, Documentation, & Visual Assets
- 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.
- 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.
- Multimodal & Visual Inspection:
- Inspect any added, modified, or Markdown-referenced image assets and architectural diagrams (
) 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:
- Inspect Working Tree & Untracked Files:
- Run
git status --shortto identify modified, staged, and untracked (`??`) files. - Standard
git diffignores untracked files. Always read untracked source, test, and documentation files that are part of the new work.
- Resolve the Diff Target:
- Explicit ref/branch/commit: Run
git diff <ref>...HEAD(orgit 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...HEADorgit diff master...HEAD).
- 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.
- 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.
- 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:
- Inventory the Codebase:
- If inside a Git repository, run
git ls-filesto 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).
- Systematic Top-Down Traversal:
- Group and inspect files in logical architectural order:
- Manifests, Entrypoints & Configuration (
pyproject.toml, CLI/app entrypoints, config loaders, CI/deployment configs). - Core Domain & Business Logic Modules (data models, schemas, core services, state machines, prompts/agents).
- External Boundaries & Integrations (API clients, database queries, auth, file I/O, shell execution).
- Shared Utilities & Helpers (checking for cross-module duplication, leaky abstractions, or dead helpers).
- Test Suite & Fixtures (assessing coverage gaps, brittle mocks, and missing edge-case tests).
- Documentation & Visual Diagrams (
README.md,ARCHITECTURE.md,docs/*.md, and embedded images). - 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.mdand 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
- SKILL.md in the repositoryCheckingskills/local-code-review/SKILL.md
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
[](https://verified-skill.com/skills/derailed-dash/dazbo-agent-skills/local-code-review)