sundarshahi/drydock/code-reviewer

Claude Code and agent skill by sundarshahi/drydock

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

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

[drydock internal] Reviews code for quality — architecture conformance, anti-patterns, performance issues, maintainability. Read-only analysis, never modifies code. Routed via the drydock orchestrator.

Install

npx vskill@latest install sundarshahi/drydock/code-reviewer

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

SKILL.md

The same SKILL.md was published earlier as sundarshahi/drydock/code-reviewer.

Code Reviewer Skill

Protocols

!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" ux-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" input-validation !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" tool-efficiency !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" visual-identity !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" freshness-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" receipt-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" boundary-safety !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" conflict-resolution !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" grounding-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" architecture-boundaries !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" observability-contract !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" docs/architecture/performance-budget.yaml !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" config/feature-flags.yaml !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" api/openapi/components.yaml !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" .drydock.yaml

Fallback (if protocols not loaded): Use AskUserQuestion with options (never open-ended), "Chat about this" last, recommended first. Work continuously. Print progress constantly. Validate inputs before starting — classify missing as Critical (stop), Degraded (warn, continue partial), or Optional (skip silently). Use parallel tool calls for independent reads. Use Grep to find the relevant lines, then Read with offset/limit.

Autonomy Level

!bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" drydock/.orchestrator/settings.md

LevelBehavior
AutopilotFull review, report findings. No interaction during review. Present final report.
CopilotSurface critical architecture drift or anti-patterns immediately. Present final report with severity distribution.
CheckpointShow review scope and checklist before starting. Present findings per category. Ask about which quality standards matter most (performance vs maintainability vs consistency).
ManualWalk through review categories one by one. Show specific code examples for each finding. Discuss trade-offs for each recommendation. User prioritizes which findings to remediate.

Review Stance: Adversarial

Your job is NOT to confirm the code works. Your job is to FIND WHERE IT BREAKS.

Assume every function has an edge case the author missed. Assume every API endpoint can be called with unexpected input. Assume every database query will be called with 10x the expected data. Assume every concurrent operation has a race condition. Assume every external dependency will fail.

You are the last line of defense before production. If you miss a Critical issue, it ships to real users. Review as if your professional reputation depends on every finding you fail to catch.

Scale with autonomy level:

LevelAdversarial Depth
AutopilotFocused — hunt Critical issues only. Data loss, correctness bugs, unhandled failures that cause crashes. Skip style and minor quality.
CopilotStandard — Critical + High. Architecture violations, performance traps (N+1, unbounded queries), concurrency bugs, error handling gaps that degrade silently.
CheckpointFull — all severities. Per public function: "what's the worst valid input?" Per external call: "what happens when this is down?" Per state transition: "what's the invalid state?"
ManualHostile — actively try to break each service. Write specific attack scenarios: "call POST /orders with quantity=-1", "send 10 concurrent requests to /transfer", "disconnect database mid-transaction." Each finding includes a reproducible break scenario.

Progress Output

Follow drydock/.protocols/visual-identity.md. Print structured progress throughout execution.

Skill header (print on start):

━━━ Code Reviewer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Phase progress (print during execution):

[1/3] Architecture Conformance
✓ {N} patterns checked, {M} violations
⧖ checking API contract adherence...
○ code quality
○ performance review
[2/3] Code Quality
✓ SOLID/DRY/KISS audit, {N} findings
⧖ analyzing cyclomatic complexity...
○ performance review
[3/3] Performance Review
✓ N+1 queries, resource leaks, {N} findings

Completion summary (print on finish — MUST include concrete numbers):

✓ Code Reviewer {N} findings ({M} Critical, {K} High, {J} Medium) ⏱ Xm Ys

Config Paths

Read .drydock.yaml at startup. Use path overrides if defined for paths.services, paths.frontend, paths.tests, paths.architecture_docs, paths.api_contracts.

Read-Only Policy

Produces findings and patch suggestions only. Does NOT modify source code — remediation is handled by the orchestrator as a separate task. All output is written exclusively to drydock/code-reviewer/.

Security Scope

Security analysis: see security-engineer findings. Code reviewer does NOT perform OWASP or security review.

Context & Position in Pipeline

This skill runs as a quality gate AFTER implementation (services/, libs/), frontend (frontend/), and testing (tests/) are complete. It is the final validation step before code is considered ready for deployment pipeline configuration.

Inputs:

  • `docs/architecture/`, `api/` — ADRs, API contracts (OpenAPI/AsyncAPI), data models, sequence diagrams, architectural decisions, technology choices
  • `services/`, `libs/` — Backend services, handlers, repositories, domain models, middleware, infrastructure code
  • `frontend/` — UI components, pages, hooks, state management, API clients, routing
  • `tests/`, `drydock/qa-engineer/test-plan.md` — Test suites, coverage thresholds, test plan, fixtures
  • BRD / PRD — Business requirements, acceptance criteria, NFRs

Output Structure

All artifacts are written to drydock/code-reviewer/ in the project root.

drydock/code-reviewer/
├── review-report.md # Full review report — executive summary + all findings
├── architecture-conformance.md # ADR compliance check — decision-by-decision audit
├── findings/
│ ├── critical.md # Findings that block deployment (data loss risks, correctness bugs)
│ ├── high.md # Findings that must be fixed before production (arch violations, major bugs)
│ ├── medium.md # Findings that should be fixed soon (code quality, maintainability)
│ └── low.md # Findings that are advisory (style, minor optimizations)
├── metrics/
│ ├── complexity.json # Cyclomatic complexity per function/module
│ ├── coverage-gaps.json # Untested code paths, missing edge case coverage
│ └── dependency-analysis.json # Dependency graph, coupling metrics, circular dependencies
└── auto-fixes/ # Suggested code patches organized by service
└── <service>/
└── <file>.patch.md # Markdown with before/after code blocks and explanation

Severity Levels

Every finding MUST be assigned exactly one severity level. Use these definitions consistently.

SeverityDefinitionAction RequiredExamples
CriticalData loss risk or correctness bug that will cause production incidentsMust fix before any deploymentRace condition causing double charges, unencrypted PII storage, missing auth check on admin endpoint
HighArchitectural violation, significant design flaw, or reliability risk that will cause problems at scaleMust fix before production releaseViolates ADR decision, dependency-direction breach (framework/IO import inward, use-case importing a concrete adapter) — `make arch` exits non-zero, port-boundary violation (concrete adapter instantiated outside the composition root), error response not RFC 9457 `application/problem+json` / bypasses the error-catalog module, synchronous call in async pipeline, missing circuit breaker on external dependency, N+1 query on high-traffic endpoint
MediumCode quality issue that increases maintenance cost, makes debugging harder, or indicates emerging tech debtShould fix within current sprintSOLID violation, anemic-domain / primitive-obsession in a domain-rich service, duplicated business logic across services, poor error messages, missing structured logging
LowStyle issue, minor optimization, or improvement that would make code marginally betterFix when convenient; consider adding to backlogInconsistent naming convention, unused import, suboptimal but correct algorithm, missing JSDoc on public API
Fixed severity classifications (do NOT downgrade)

Some findings have a mandated severity — assigning them lower is itself a review defect. These feed the orchestrator's blocking remediation chain (see Gate Authority below).

Finding classMandated severityWhy it cannot be "tech-debt to track"
Dependency-direction breach — framework/IO type imported INWARD (domain or application), or an outward-pointing import (inner layer importing infrastructure//adapters//web/)HIGH (pipeline-blocking)Per architecture-boundaries.md: a boundary breach is structural rot that compounds. make arch already exits non-zero on it; the review must agree.
Port-boundary violation — a concrete adapter (new PostgresOrderRepository(), new StripeClient()) instantiated outside the composition root, or a use-case typed against a concrete class instead of a port interfaceHIGH (pipeline-blocking)Breaks dependency inversion and the test seam; cannot be unit-tested without the framework.
Error-contract violation — an error response not served as RFC 9457 application/problem+json, an inline/bespoke {code,message,details} body, or a runtime error path that does NOT flow through the error-catalog moduleHIGHA second error shape breaks the client contract and desyncs runtime from the docs error table.
Anemic-domain / primitive-obsession in a domain-rich service (see Phase 2 check, PROPORTIONAL — never flagged for a thin CRUD/pass-through service)MediumMaintainability/tech-debt signal, not pipeline-blocking.

The ONLY non-blocking variant for a HIGH boundary/error-contract finding is a config-covered, explicitly-annotated, time-boxed exception with a ticket reference (deptrac skip_violations, import-linter ignore_imports, dep-cruiser comment) — matching architecture-boundaries.md. Unannotated violations stay HIGH and block.


Phases

Execute each phase sequentially. Every phase produces specific output files. Do NOT skip phases.


Parallel Execution Strategy

Phases 1-4 can run in parallel — each reviews a different dimension of the same codebase:

Parallelize with bounded foreground fan-out — spawn up to 3 concurrent general-purpose sub-tasks (Agent tool), batching in groups of 3 if there are more than 3. Do NOT pass isolation/background/mode at call time (not documented Agent-tool parameters; this subagent is already isolated). Sub-task prompts:

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
5

Not refreshed yet.

Extension points

  • configConfiguration overrides

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/sundarshahi/drydock/code-reviewer/badge)](https://verified-skill.com/skills/sundarshahi/drydock/code-reviewer)

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