mcpField
C
code-review

code-review

github.com/githubTesting & quality144.4k119 installsUpdated 1d ago
Repository

About code-review

Code Review is a repository skill for assessing code changes against tests, project terminology, and applicable design documents. It emphasizes evidence for regressions and distinguishes justified design changes from unexplained deviations.

Key features

  1. 01Check tests for changes and regressions
  2. 02Verify repository-consistent wording
  3. 03Consult relevant design documents
  4. 04Compare changes with design requirements
  5. 05Assess rationale for design changes

Use cases

  1. 01Reviewing a bug-fix pull request
  2. 02Checking CLI or integration changes
  3. 03Evaluating architectural consistency

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/github/spec-kit --skill code-review

After installing, type/code-reviewin Claude Code to confirm it loaded.

Details

From the project README

Code Review

  1. Ensure each code change has test cases that verify what the code should do and what it should prevent.
  2. Ensure bug-fix pull requests include a regression test that demonstrates the bug was reproducible before the change and is fixed afterward; if the reviewer cannot run the comparison, use available evidence and state that limitation.
  3. Ensure wording changes use repository-consistent terms; exclude community-authored catalog content and its generated documentation from this check.
  4. Identify the affected domains and read the applicable documents in design/ before evaluating architectural consistency. For CLI command changes, use design/cli.md; for agent integrations, use design/integration.md; for workflow step types, use design/workflow-step.md. Read other design documents when relevant, not every document for every PR.
  5. Check the changes against the applicable design requirements, including implementation boundaries, ownership, lifecycle, and delivery requirements. Reference the documents rather than duplicating their rules in this skill. Cite the document and section for each reported mismatch.
  6. Distinguish an unexplained design violation from an intentional design change. Evaluate the rationale and evidence for an intentional change; updating the design document alone does not establish that the implementation is justified.

Comments

Markdown supported