Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.

  1. Backend Handbook: Wiki Page for coding standards and architecture rules.
  2. Coding Guidelines: Wiki Page for naming conventions and test standards.
  3. Repo README: /readme.md from your main backend repository — architectural constraints.
  4. Loaded instruction files: Apply general.instructions.md and tests.instructions.md which 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 GraphQL only
  • Query resolvers stay in Query class — do not move query-level field resolvers into ObjectType or type extension classes. Query.envelopes belongs in Query.cs, not EnvelopeType.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, DB not Ml, Io, Db. Reference: Capitalization Rules
  • Domain naming conventions: Message not State for 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 XWorkflows on 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить code-reviewer с