Command Palette

Search for a command to run...

Назад к скиллам
скилл № 83205

dev-final-pass

Run a quality review pass on a lesson before publishing, catching recurring issues found across project PR history

БесплатноБез исполняемых скриптов
Nebulavenusот Nebulavenus★ 51 звезда на GitHub

Установить dev-final-pass в Claude Code и Claude Desktop

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

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

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

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

Run a systematic quality review on any lesson (GPU, math, engine, UI, physics, audio, or asset pipeline) before creating a PR with /dev-create-pr. This skill encodes recurring themes from PR review feedback across the project's history.

The user provides:

  • Lesson number or name (e.g. 17 or normal-maps)

If missing, infer from the current branch name or most recent lesson directory.

How to run this skill

Work through each section below in order. For each check, read the relevant files and verify compliance. Report a summary at the end with pass/fail per section and specific issues found.

Be literal and exhaustive. This is C — no RAII, no garbage collector. Every resource you acquire must be released on every exit path, every struct field must be documented, every error must be handled. Do not rationalize away findings with "it's probably fine" or "the section comment covers it." If the check says every field, check every field. If it says every error path, trace every error path.

Use a Task agent (model: haiku) for builds, shader compilation, linting, and other command execution — never run those directly from the main agent.


0. Required files

Verify the lesson has all required pieces.

What to check:

  • lessons/<track>/NN-name/README.md exists
  • lessons/<track>/NN-name/main.c exists (GPU, physics, audio, engine lessons) — asset lessons may use Python entry points instead
  • lessons/<track>/NN-name/CMakeLists.txt exists (C lessons only — asset lessons that are pure Python do not need one)
  • lessons/<track>/NN-name/assets/screenshot.png exists (GPU, physics, audio lessons) — not just a placeholder
  • .claude/skills/<topic>/SKILL.md exists (the matching skill)
  • Root CMakeLists.txt includes add_subdirectory(lessons/<track>/NN-name) (C lessons only)
  • Root PLAN.md has the lesson checked off or added

Shader directory: Only required if the lesson has its own shaders beyond what forge_scene.h provides. GPU lessons using forge_scene.h for the rendering baseline do not need a shaders/ directory unless they add lesson-specific shaders.


1. SDL GPU bool return checks (40+ PR comments historically)

This is the single most common PR finding. Every SDL function that returns bool must be checked. Search all .c and .h files in the lesson directory (not just main.c) for every SDL call and verify each one that returns bool has error handling.

Functions that return bool (non-exhaustive):

  • SDL_Init
  • SDL_ClaimWindowForGPUDevice
  • SDL_SetGPUSwapchainParameters
  • SDL_SubmitGPUCommandBuffer
  • SDL_CancelGPUCommandBuffer
  • SDL_UploadToGPUBuffer (via command buffer submit)
  • SDL_WindowSupportsGPUSwapchainComposition
  • SDL_SetGPUBufferName / SDL_SetGPUTextureName

Required pattern:

if (!SDL_SomeFunction(args)) {
    SDL_Log("SDL_SomeFunction failed: %s", SDL_GetError());
    /* clean up any resources allocated so far */
    return false; /* or SDL_APP_FAILURE */
}

What to check:

  • Every SDL_SubmitGPUCommandBuffer call checks the return value
  • Every SDL_SetGPUSwapchainParameters call checks the return value
  • SDL_Init return is checked in SDL_AppInit
  • SDL_ClaimWindowForGPUDevice return is checked
  • Helper functions that call SDL submit propagate failure (return NULL or false)
  • Failure paths log the function name and SDL_GetError()
  • Failure paths clean up resources allocated before the failure point

How to search: Use Grep for patterns like SDL_Submit, SDL_SetGPUSwapchain, SDL_Init(, SDL_Claim across all .c and .h files in the lesson directory and verify each has an if (!...) wrapper.

Skip for: math lessons, engine lessons, UI lessons, asset lessons (no SDL GPU calls).


2. Command buffer lifecycle (acquired from Lesson 24 review)

Every acquired command buffer must be either submitted or canceled. There is no automatic cleanup — an abandoned command buffer is a resource leak. This is C: if you acquire it, you release it, on every path.

Key SDL3 constraint: SDL_CancelGPUCommandBuffer is not allowed after a swapchain texture has been acquired on that command buffer. After swapchain acquisition, you must submit (even on error).

What to check:

  • Every SDL_AcquireGPUCommandBuffer has a matching submit or cancel on every code path that follows — including early returns from failed BeginRenderPass, failed ensure_* helpers, etc.
  • Error paths before swapchain acquisition use SDL_CancelGPUCommandBuffer(cmd)
  • Error paths after swapchain acquisition use SDL_SubmitGPUCommandBuffer(cmd) (submit the partial/empty command buffer)
  • The !swapchain_tex (minimized window) path submits the empty command buffer and returns SDL_APP_CONTINUE

Skip for: math, engine, UI, asset lessons.


3. Magic numbers (20+ PR comm

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

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

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

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

FAQ

Что делает скилл dev-final-pass?

Run a quality review pass on a lesson before publishing, catching recurring issues found across project PR history

Как установить скилл dev-final-pass?

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

Скилл dev-final-pass запускает скрипты?

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

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

Сравнить dev-final-pass с