Command Palette

Search for a command to run...

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

review-standard

БесплатноБез исполняемых скриптовНе проверен

Systematic code review skill checking documentation quality and promoting code reuse

Synthesys-Labот Synthesys-Lab★ 71 звезда на GitHub21 установка в других каталогах

Об этом скилле

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-guideline skill
  • 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:

  1. Documentation Quality: Are changes properly documented per document-guideline standards?
  2. Code Quality & Reuse: Does the code follow best practices and leverage existing utilities?
  3. 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:

  1. Gather context: Get list of changed files and full diff
  2. Phase 1 - Documentation Review: Validate documentation completeness and quality
  3. Phase 2 - Code Quality Review: Assess code quality and reuse opportunities
  4. Phase 3 - Advanced Code Quality Review: Evaluate indirection, type safety, and change scope
  5. 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: .md files
  • 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.md not 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:

  1. External Interfaces section: Documents public APIs

    • Function signatures
    • Expected inputs/outputs
    • Error conditions
  2. Internal Helpers section: Documents private implementation

    • Internal functions
    • Helper utilities
    • Complex algorithms

Common issues:

  • Source file exists but .md file missing
  • .md file 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

Полный SKILL.md на GitHub

Установить review-standard в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл review-standard?

Systematic code review skill checking documentation quality and promoting code reuse

Как установить скилл review-standard?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл review-standard запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить review-standard с