sundarshahi/drydock/code-reviewer
Claude Code and agent skill by sundarshahi/drydock
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
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-reviewerSemi-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
| Level | Behavior | |
|---|---|---|
| Autopilot | Full review, report findings. No interaction during review. Present final report. | |
| Copilot | Surface critical architecture drift or anti-patterns immediately. Present final report with severity distribution. | |
| Checkpoint | Show review scope and checklist before starting. Present findings per category. Ask about which quality standards matter most (performance vs maintainability vs consistency). | |
| Manual | Walk 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:
| Level | Adversarial Depth | |
|---|---|---|
| Autopilot | Focused — hunt Critical issues only. Data loss, correctness bugs, unhandled failures that cause crashes. Skip style and minor quality. | |
| Copilot | Standard — Critical + High. Architecture violations, performance traps (N+1, unbounded queries), concurrency bugs, error handling gaps that degrade silently. | |
| Checkpoint | Full — 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?" | |
| Manual | Hostile — 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):
Phase progress (print during execution):
Completion summary (print on finish — MUST include concrete numbers):
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.
Severity Levels
Every finding MUST be assigned exactly one severity level. Use these definitions consistently.
| Severity | Definition | Action Required | Examples | |
|---|---|---|---|---|
| Critical | Data loss risk or correctness bug that will cause production incidents | Must fix before any deployment | Race condition causing double charges, unencrypted PII storage, missing auth check on admin endpoint | |
| High | Architectural violation, significant design flaw, or reliability risk that will cause problems at scale | Must fix before production release | Violates 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 | |
| Medium | Code quality issue that increases maintenance cost, makes debugging harder, or indicates emerging tech debt | Should fix within current sprint | SOLID violation, anemic-domain / primitive-obsession in a domain-rich service, duplicated business logic across services, poor error messages, missing structured logging | |
| Low | Style issue, minor optimization, or improvement that would make code marginally better | Fix when convenient; consider adding to backlog | Inconsistent 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 class | Mandated severity | Why 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 interface | HIGH (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 module | HIGH | A 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) | Medium | Maintainability/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
- SKILL.md in the repositoryCheckingskills/code-reviewer/SKILL.md
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
[](https://verified-skill.com/skills/sundarshahi/drydock/code-reviewer)