smithery/dmitrl-dev

Two-Stage Code Review

Разделение code review на Spec Compliance и Code Quality для повышения точности

Installation

$ npx skills add smithery/dmitrl-dev --skill two-stage-code-review

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/dmitrl-dev.

npx skills add smithery/dmitrl-dev

Browse all from smithery/dmitrl-dev

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,809 B
  • docs SUMMARY.md 141 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Two-Stage Code Review

Адаптировано из Superpowers для SENTINEL DevKit

Философия

Традиционный code review смешивает две разные задачи:

  1. Соответствие спецификации — делает ли код то, что нужно?
  2. Качество кода — хорошо ли написан код?

Смешивание ведёт к пропуску ошибок. Разделяем на два прохода.


Stage 1: Spec Compliance Review

Фокус

  • Реализует ли код ВСЕ требования из спецификации?
  • Нет ли пропущенных edge cases?
  • Соответствует ли поведение acceptance criteria?

Checklist

- [ ] Все требования из spec покрыты
- [ ] Все acceptance criteria выполнимы
- [ ] Edge cases из spec обработаны
- [ ] Error states соответствуют spec
- [ ] API contracts соблюдены

НЕ проверяем на этом этапе

  • Naming conventions
  • Code style
  • Performance optimizations
  • Refactoring opportunities

Stage 2: Code Quality Review

Фокус

  • Читаемость и maintainability
  • Соответствие паттернам проекта
  • Performance considerations
  • Security implications

Checklist

- [ ] Clean Architecture соблюдена
- [ ] Нет code smells (God objects, long methods)
- [ ] Naming понятное и консистентное
- [ ] Error handling корректный
- [ ] Нет security anti-patterns
- [ ] Тесты читаемые и независимые

Workflow (DOT)

digraph two_stage_review {
    rankdir=TB;
    node [shape=box, style=rounded];
    
    start [label="Code Ready for Review"];
    stage1 [label="Stage 1: Spec Compliance\n(Reviewer A)"];
    stage1_fail [label="Spec Issues Found", style=filled, fillcolor=salmon];
    stage2 [label="Stage 2: Code Quality\n(Reviewer B or same)"];
    stage2_fail [label="Quality Issues Found", style=filled, fillcolor=salmon];
    fix [label="Fix Issues", style=filled, fillcolor=lightyellow];
    approved [label="✅ Approved", style=filled, fillcolor=lightgreen];
    
    start -> stage1;
    stage1 -> stage1_fail [label="FAIL"];
    stage1 -> stage2 [label="PASS"];
    stage1_fail -> fix;
    stage2 -> stage2_fail [label="FAIL"];
    stage2 -> approved [label="PASS"];
    stage2_fail -> fix;
    fix -> stage1 [label="re-review"];
}

Когда использовать

Ситуация Two-Stage?
Новый engine ✅ Да
Bugfix ⚠️ Stage 1 минимальный
Refactoring ⚠️ Stage 2 основной
Security-критичный код ✅ Да + Security Audit

Интеграция с SENTINEL

Для Engine Development

  1. Stage 1: Проверить что engine обрабатывает ВСЕ payloads из spec
  2. Stage 2: Проверить Clean Architecture, performance, edge cases

Для Shield Components

  1. Stage 1: Protocol compliance, API compatibility
  2. Stage 2: Memory safety, performance, code style

Anti-patterns

Смешивание стадий — "код работает, но naming плохой" на Stage 1 ❌ Пропуск Stage 1 — "код красивый, наверное работает" ❌ Один reviewer на обе стадии без паузы — свежий взгляд важен