Command Palette

Search for a command to run...

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

review-sprint

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

Post-implementation mechanical audit of sprint deliverables.

leogodin217от leogodin217★ 65 звёзд на GitHub

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

Review Sprint

Post-implementation review with fresh eyes. Run after implement-sprint completes.

Argument

/review-sprint <sprint-name> — required when more than one sprint dir exists with phases still in progress. If exactly one is in progress, the name may be omitted.

The sprint's parent branch (the diff base) is read from docs/sprints/<sprint-name>/state.yaml:parent_branch. Run from inside the sprint's worktree (../worktrees/<sprint-name>) — review-sprint operates on the worktree's checkout, not the main repo.

Conventions

Throughout this skill:

  • <sprint> — the sprint name (also the directory under docs/sprints/ and the suffix on the sprint/<sprint> branch)
  • <parent> — the value of state.yaml:parent_branch for this sprint
  • <diff-base> — $(git merge-base HEAD <parent>). Substitute literally in commands.

Purpose

Catch issues that slip through when implementer is too close to the code:

  • Dead code and scaffolding
  • Test names that don't match test behavior
  • Spec-implementation drift
  • Uncovered error paths

Context posture

Deliberately minimal — do NOT run /understand, and do NOT load architecture docs. This is load-bearing, not an oversight. The review's value is judging the code as written against the spec as written; knowing why the design was chosen makes a reviewer rationalize what it finds instead of flagging it. Any later edit that adds an architecture load here removes the thing the skill is for.

Fresh eyes means deliberately ignorant of intent, not of context. The sibling source in tier 2 is mandatory precisely because it is not intent — it is what already exists.

Two tiers. The first is enough for mechanical checks (dead code, lint, coverage). The second is required for consistency checks (DRY, helper duplication, spec-vs-codebase). Skipping tier 2 was the historical reason review-sprint missed cross-cutting smells.

Tier 1 — always load

  1. CLAUDE.md — Principles — especially no-invented-values and no-future-scaffolding — and the Anti-Patterns table
  2. docs/sprints/<sprint-name>/spec.md — what was planned
  3. Changed files this sprint (git diff $(git merge-base HEAD <parent_branch>)..HEAD --name-only, where <parent_branch> comes from state.yaml)
  4. Test files for changed code

Tier 2 — load before consistency checks (§2, §4, §7)

  1. Sibling source files in every package the sprint touched. Required for duplicate-helper detection: a new helper looks fine in the diff and identical to a pre-existing helper two files away.
  2. Existing test files in those source trees. Required for test-value audit: a new test file with 4 near-identical tests is only suspicious when you've seen how the rest of the suite expresses similar shapes.

Without tier 2, the "Consistency / DRY" gate is unauditable.

Review Process

1. Dead Code Scan

Scaffolding patterns (mechanical):

git grep -n "# Future:" -- ':(glob)**/src/**/*.py'
git grep -n "# TODO:"   -- ':(glob)**/src/**/*.py'
git grep -n "pass$"     -- ':(glob)**/src/**/*.py'

Flag: Any loop body that only contains pass, continue, or comments.

Flag: Any __init__ that stores data not used by other methods.

Inert-rename patterns (judgment, requires reading the diff):

# Self-renames: assignment whose RHS is just another local name with no
# subsequent semantic divergence.
git diff <diff-base>..HEAD -- '*.py' | grep -E "^\+\s+(\w+)\s*=\s*(\w+)\s*$"

For every + foo = bar line in the diff, ask: does bar get reassigned later? Does foo carry a different type than bar? If neither, it is a dead alias (e.g., full_record_id = record_id — the historical miss).

Flag: Inert assignments where the RHS is the only thing the LHS ever holds and the rename adds no semantic distinction.

Flag: 1- or 2-element collection literals stored in module-level constants (_FOO = frozenset({1, 6})) used in exactly one membership test. Inline as a tuple literal.

Exported-but-uncalled symbols (no-future-scaffolding, end-state check):

The phase-level reviewer intentionally does NOT flag exported symbols whose only would-be consumer is a later phase of the same sprint — that is the expected mid-sprint state. At sprint level, the end state is visible, and any symbol the sprint added that no production code calls is dead.

# For each public symbol added by the sprint diff to src/ (not __init__.py
# re-exports), use find_references to check for production callers
# (anything outside tests/ and demos/).
git diff <diff-base>..HEAD -- ':(glob)**/src/**/*.py' | grep -E "^\+def [a-z]"
git diff <diff-base>..HEAD -- ':(glob)**/src/**/*.py' | grep -E "^\+class [A-Z]"

Flag: Any sprint-added public symbol whose only references are in tests, demos, __init__.py re-exports, or other sprint-added symbols that are themselves uncalled. The chain must terminate in a production caller; otherwise the whole chain is dead.

2. Consis

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

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

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

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

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

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

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

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

FAQ

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

Post-implementation mechanical audit of sprint deliverables.

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

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

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

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

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

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