review-standard
БесплатноБез исполняемых скриптовНе проверенSystematic code review skill checking documentation quality and promoting code reuse
Об этом скилле
Review Standard
This skill instructs AI agents on how to perform comprehensive code reviews before merging changes to the main branch. It ensures quality, consistency, and adherence to project documentation and code reuse standards.
Review Philosophy
Effective code review is:
- Systematic: Follow a consistent process across all reviews
- Standards-based: Enforce documentation standards defined in
document-guidelineskill - Reuse-focused: Prevent reinventing the wheel by identifying existing utilities
- Actionable: Provide specific, implementable recommendations
- Context-aware: Understand the change within the broader codebase architecture
Review Objectives
Every review must assess:
- Documentation Quality: Are changes properly documented per
document-guidelinestandards? - Code Quality & Reuse: Does the code follow best practices and leverage existing utilities?
- Advanced Code Quality: Does the code exhibit clarity, type safety, and appropriate scope?
- Indirection Analysis: Question wrappers and unnecessary abstractions
- Code Repetition Detection: Identify duplicate patterns requiring unified interfaces
- Module Focus Validation: Ensure code paths aren't repurposed for unrelated features
- Interface Clarity: Verify clear separation of declaration, usage, and error handling
- Type Safety: Enforce type annotations and eliminate magic numbers
- Change Impact Control: Validate modifications are scoped appropriately
The review process is designed to catch issues before merge, not to block progress. Reviews provide recommendations - final merge decisions remain with maintainers.
Review Process Overview
When the /code-review command is invoked, agents must:
- Gather context: Get list of changed files and full diff
- Phase 1 - Documentation Review: Validate documentation completeness and quality
- Phase 2 - Code Quality Review: Assess code quality and reuse opportunities
- Phase 3 - Advanced Code Quality Review: Evaluate indirection, type safety, and change scope
- Generate report: Provide structured, actionable feedback
Phase 1: Documentation Quality Review
This phase validates that all changes comply with the document-guideline skill standards.
Step 1: Identify Changed Files
Get the list of all changed files:
git diff --name-only main...HEAD
Categorize files by type:
- Source code files:
.py,.c,.cpp,.cxx,.cc, etc. - Documentation files:
.mdfiles - Test files:
test_*.sh,*_test.py, etc. - Other files: Configuration, data files, etc.
Step 2: Validate Folder README.md Files
Standard: Every folder (except hidden folders) must have a README.md file.
Check:
# Get list of directories with changes
git diff --name-only main...HEAD | xargs -n1 dirname | sort -u
# For each directory, check if README.md exists
Common issues:
- New folder created without
README.md - Existing folder's
README.mdnot updated to reflect new files
Example finding:
❌ Missing folder documentation
claude/skills/new-skill/ - No README.md found
Recommendation: Create README.md documenting:
- Folder purpose (what is this skill for?)
- Key files and their roles
- Integration with other skills
Step 3: Validate Source Code Interface Documentation
Standard: Every source code file must have a corresponding .md file.
File types requiring documentation:
- Python:
*.py→*.md - C/C++:
*.c,*.cpp,*.cxx,*.cc→*.md
Check:
# For each source file in changes, verify .md file exists
git diff --name-only main...HEAD | grep -E '\.(py|c|cpp|cxx|cc)$'
# For each match, check if corresponding .md exists
Review .md content for:
External Interfaces section: Documents public APIs
- Function signatures
- Expected inputs/outputs
- Error conditions
Internal Helpers section: Documents private implementation
- Internal functions
- Helper utilities
- Complex algorithms
Common issues:
- Source file exists but
.mdfile missing .mdfile exists but doesn't document all public functions- Interface documentation doesn't match actual implementation
Example finding:
❌ Missing interface documentation
src/utils/validator.py - No validator.md found
Recommendation: Create validator.md with:
- External Interface: validate_input(), validate_config() signatures
- Internal Helpers: _check_type(), _sanitize_value() descriptions
❌ Incomplete interface documentation
src/api/handler.md - Missing documentation for handle_request() function
Recommendation: Add handle_request() to External Interface section:
- Parameters: request object structure
- Return value: response object or error
- Error conditions: invalid request format, auth failures
Step 4: Validate Test Documentation
Standard: Eve
Установить review-standard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл review-standard?
Systematic code review skill checking documentation quality and promoting code reuse
Как установить скилл review-standard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-standard запускает скрипты?
Нет, скилл состоит только из инструкций (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