一键导入
dev-review-diagrams
Validate diagram correctness against the lesson README before pushing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate diagram correctness against the lesson README before pushing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add PBR texture loading with separate roughness/metallic support to an SDL GPU project using forge_scene.h
Add Cook-Torrance PBR shading with GGX, Schlick-GGX, and Schlick Fresnel to an SDL GPU project alongside forge_scene.h
Add instanced grass rendering with segmented blades, wind animation, LOD density rings, and terrain LOD with geomorphing to an SDL GPU project
Add procedural noise texture generation to the asset pipeline — C tool, Python plugin, web UI with live preview
Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend
Add an audio lesson — sound playback, mixing, spatial audio, DSP effects, with SDL GPU scenes and forge UI
| name | dev-review-diagrams |
| description | Validate diagram correctness against the lesson README before pushing |
| argument-hint | [lesson-key, e.g. gpu/34 or math/05] |
| disable-model-invocation | false |
Pre-push validation skill that cross-checks every diagram function against the lesson README to catch correctness issues before they reach CodeRabbit review.
When to use this skill:
/dev-final-pass (section 18)The user provides:
gpu/34, math/05, engine/04If missing, infer from the current branch name or most recent lesson directory.
Read scripts/forge_diagrams/__main__.py and find the lesson's entry in the
DIAGRAMS dict. List every (filename, function) pair registered for the
lesson key.
If the lesson has no registered diagrams, report "No diagrams registered for this lesson" and exit.
Read the full lessons/<category>/<NN-name>/README.md. For each diagram file
referenced in the README (via ), note:
For each diagram function, read its source code in the relevant per-lesson file
under scripts/forge_diagrams/<track>/lesson_NN.py and verify:
y = sin(x), the code must plot np.sin(x), not np.cos(x))Execute each diagram and verify it generates without errors:
python scripts/forge_diagrams --lesson <lesson-key>
If any diagram raises an exception, report the error with traceback.
Present a checklist per diagram:
Diagram Review — Lesson NN: Name
==================================
1. diagram_name.png (function: diagram_diagram_name)
[PASS] Geometry matches README equations
[PASS] Axis labels match README terminology
[PASS] Docstring matches actual content
[FAIL] README says "3 cascade levels" but diagram only shows 2
[PASS] Generates without errors
2. another_diagram.png (function: diagram_another)
[PASS] All checks passed
Overall: 1 issue found — fix before pushing
For each failure, include:
/dev-create-diagram handle that