dev-final-pass
Run a quality review pass on a lesson before publishing, catching recurring issues found across project PR history
от 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.
17ornormal-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.mdexists -
lessons/<track>/NN-name/main.cexists (GPU, physics, audio, engine lessons) — asset lessons may use Python entry points instead -
lessons/<track>/NN-name/CMakeLists.txtexists (C lessons only — asset lessons that are pure Python do not need one) -
lessons/<track>/NN-name/assets/screenshot.pngexists (GPU, physics, audio lessons) — not just a placeholder -
.claude/skills/<topic>/SKILL.mdexists (the matching skill) - Root
CMakeLists.txtincludesadd_subdirectory(lessons/<track>/NN-name)(C lessons only) - Root
PLAN.mdhas 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_InitSDL_ClaimWindowForGPUDeviceSDL_SetGPUSwapchainParametersSDL_SubmitGPUCommandBufferSDL_CancelGPUCommandBufferSDL_UploadToGPUBuffer(via command buffer submit)SDL_WindowSupportsGPUSwapchainCompositionSDL_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_SubmitGPUCommandBuffercall checks the return value - Every
SDL_SetGPUSwapchainParameterscall checks the return value -
SDL_Initreturn is checked inSDL_AppInit -
SDL_ClaimWindowForGPUDevicereturn 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_AcquireGPUCommandBufferhas a matching submit or cancel on every code path that follows — including early returns from failedBeginRenderPass, failedensure_*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 returnsSDL_APP_CONTINUE
Skip for: math, engine, UI, asset lessons.
3. Magic numbers (20+ PR comm
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…