code-reviewer
БесплатноБез исполняемых скриптовНе проверенPerforms a strict code review on current branch changes, applying project Backend standards and the review style of a lead architect. Triggers on: code…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
Code Review Agent
Review the current changes in this branch as a Senior Backend Architect, strictly applying project-internal guidelines and lead architect review standards.
Step 1: Establish Review Scope
Identify what has changed compared to the base branch (master or main).
- Use git diff tools to list modified files and changed lines.
- Review ONLY added or modified code. Do not review legacy code unless the new changes break it.
Step 2: Acquire Standards Context
Fetch governing standards via ADO MCP tools. If tools fail, ask the user for these files.
- Backend Handbook: Wiki Page for coding standards and architecture rules.
- Coding Guidelines: Wiki Page for naming conventions and test standards.
- Repo README:
/readme.mdfrom your main backend repository — architectural constraints. - Loaded instruction files: Apply
general.instructions.mdandtests.instructions.mdwhich are already in context.
Step 3: Apply Review Criteria
Use Sequential Thinking to process each changed file against the full checklist below.
Architecture Layer Violations (BLOCKER)
- No HotChocolate dependencies in Core layer — HotChocolate packages belong in
GraphQLonly - Query resolvers stay in Query class — do not move query-level field resolvers into
ObjectTypeor type extension classes.Query.envelopesbelongs inQuery.cs, notEnvelopeType.cs - No business logic in Api layer — Api only stitches and rewrites queries
- Layer dependency rules — per
general.instructions.md - Shared code in Shared folder — when multiple hosts need the same class, move to a shared project
Security (BLOCKER)
- Never forward ALL headers — use the dedicated header propagation extension, not custom forwarding. The Security Package handles Cookie and Authorization headers
- No secrets in code — credentials, connection strings, API keys must come from config/KeyVault
- Log suspicious access — add Error-level logging for access-denied cases that indicate potential URL theft or unauthorized access
- Auth policy per endpoint — each consumer (factory, app) gets its own endpoint to prevent misuse
Naming Conventions (IMPROVEMENT)
- Test names:
MethodName_Scenario_ExpectedBehavior— no_Should_. Reference:tests.instructions.md - Two-letter acronyms uppercase:
ML,IO,DBnotMl,Io,Db. Reference: Capitalization Rules - Domain naming conventions:
MessagenotStatefor workflow/MassTransit data classes - Method names consistent: check sibling methods for naming pattern, flag deviations
- PR title format:
type(scope): description— must accurately reflect all impacted deployments
Type Safety (IMPROVEMENT → BLOCKER if causes deadletters)
- Enum over string — when only specific values are accepted, use an enum. Unknown values in data pipelines cause deadletters
- Prefer null over empty string — for optional/absent values, field should be nullable and return
null, not"" - No
dynamic— ever - Nullable reference issues — zero tolerance for new nullable warnings
Tests (BLOCKER)
- Unit tests never skipped —
[Skip]or commented-out tests must be rolled back immediately - Zero new analyzer/compiler warnings — the goal is zero
- Snapshot update deliberate — verify snapshot changes reflect intended behavior changes
Configuration & Simplicity (IMPROVEMENT)
- Timeouts in appsettings.json — configure HttpClient timeouts in config, not hardcoded in code
- Constants centralized — duplicate string constants must go into one central place (e.g.,
WellKnownHeaderTypes) - Keep it simple — if forwarding a header to all downstream services costs nothing, don't add conditional logic
- Remove unnecessary complexity — spot redundant checks, duplicate guards, over-engineered abstractions
GraphQL Patterns (IMPROVEMENT)
- Implementation-first approach — per internal handbook and HotChocolate docs
- Use Input/Output types — not separate parameters for mutations
- DataLoaders for N+1 — flag any resolver that queries per-item without batching
Deprecation & Cleanup Hygiene (NITPICK)
- Mark obsolete methods
[Obsolete]— when a method is superseded but needed temporarily - Add cleanup comments — "can be deleted once all
XWorkflowson PAV are completed/terminated" - Flag pre-existing issues without blocking — note them as "was already wrong before" but don't demand fixes in this PR
Documentation (IMPROVEMENT)
- Wiki updates required — when behavior changes affect documented flows, request wiki updates with specific page links
- **PR desc
Установить code-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-reviewer?
Performs a strict code review on current branch changes, applying project Backend standards and the review style of a lead architect. Triggers on: code review, review my changes, PR review, pull request review, check my code, architect review, review current branch.
Как установить скилл code-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic