git-review
БесплатноБез исполняемых скриптовНе проверенReview code changes against requirements and original design. Validates implementation correctness, design alignment, code quality, and runs tests. Use before…
от tsaol★ 69 звёзд на GitHubОб этом скилле
Git Review - Requirements Check, Design Validation & Testing
Overview
This skill performs a thorough code review by:
- Verifying code changes match the stated requirements (issue, PR description, or user input)
- Checking changes are sensible modifications aligned with the original design
- Evaluating code quality, patterns, and potential issues
- Running project tests to ensure nothing is broken
When to Use
Trigger /git-review when:
- You've finished implementing a feature and want to verify before committing
- You want to validate code changes against an issue or PR description
- You need a sanity check that changes align with the project's architecture
- Before running
/git-committo ensure quality
Usage
/git-review # Review all uncommitted changes
/git-review <issue-url> # Review changes against a GitHub issue
/git-review <pr-url> # Review an existing PR
/git-review --design-only # Skip tests, only check design alignment
/git-review --test-only # Only run tests
Flag behavior
- No flags: Run all 6 phases
--design-only: Run Phase 1 (context) → Phase 2 (requirements) → Phase 3 (design) → Phase 4 (code quality) → Phase 6 (report). Skip Phase 5 (tests).--test-only: Run Phase 1 (context) → Phase 5 (tests) → Phase 6 (report). Skip Phase 2-4.
Workflow
Code Changes Ready
|
/git-review
|
+----------------------------------+
| Phase 1: Gather Context |
| - Collect uncommitted changes |
| - Read requirements source |
| - Read design docs |
+----------------------------------+
|
+----------------------------------+
| Phase 2: Requirements Check |
| - Map changes to requirements |
| - Flag missing implementations |
| - Flag scope creep |
+----------------------------------+
|
+----------------------------------+
| Phase 3: Design Alignment |
| - Check architecture fit |
| - Validate patterns & naming |
| - Review data model changes |
+----------------------------------+
|
+----------------------------------+
| Phase 4: Code Quality |
| - Logic correctness |
| - Error handling |
| - Security considerations |
| - Edge cases |
+----------------------------------+
|
+----------------------------------+
| Phase 5: Run Tests |
| - Detect test framework |
| - Run existing tests |
| - Report failures |
+----------------------------------+
|
+----------------------------------+
| Phase 6: Review Report |
| - Summary with verdict |
| - Issues & recommendations |
| - Suggested fixes |
+----------------------------------+
Phase Details
Phase 1: Gather Context
Collect all information needed for the review.
1a. Collect code changes:
# Uncommitted changes (staged + unstaged)
git diff HEAD
# If no uncommitted changes, review last commit only
git show HEAD --stat
git diff HEAD~1 HEAD
# List changed files
git diff HEAD --name-only
1b. Identify requirements source:
Requirements can come from:
- GitHub Issue: Extract from issue URL via
gh issue view <number> - GitHub PR: Extract from PR description via
gh pr view <number> - User input: The user describes what the changes should do
- Commit messages: Infer intent from recent commit messages
# If a GitHub issue/PR URL is provided
gh issue view <number> --json title,body,labels
gh pr view <number> --json title,body,commits,files
# Recent commit messages for context
git log --oneline -10
1c. Find design documents:
# Look for design docs in the project
find . -maxdepth 3 \( \
-name "DESIGN.md" -o \
-name "ARCHITECTURE.md" -o \
-name "*.design.md" -o \
-name "design*.md" -o \
-name "SPEC.md" -o \
-name "spec*.md" -o \
-name "RFC*.md" -o \
-name "ADR*.md" \
\) -not -path "*/node_modules/*" -not -path "*/.git/*"
# Also check for inline design comments in changed files
Phase 2: Requirements Check
Compare the code changes against stated requirements.
Checklist:
- Completeness: Every requirement has a corresponding code change
- No missing pieces: All acceptance criteria are addressed
- No scope creep: Changes don't include unrelated modifications
- Edge cases: Requirements' edge cases are handled
How to check:
- Parse the requirements into a bullet list of expected behaviors
- For each requirement, identify the code that implements it
- Flag any requirement without matching code (missing implementation)
- Flag any code change that doesn't map to a requirement (scope creep)
Phase 3: Design Alignment
Verify changes respect the project's existing architecture and design.
Checklist:
- Architecture fit: New c
Установить git-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-review?
Review code changes against requirements and original design. Validates implementation correctness, design alignment, code quality, and runs tests. Use before committing or creating a PR.
Как установить скилл git-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-review запускает скрипты?
Нет, скилл состоит только из инструкций (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