dev-asset-lesson
Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend
от Nebulavenus★ 51 звезда на GitHub
Установить dev-asset-lesson в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Create a new asset pipeline lesson. This is a hybrid track — the pipeline
orchestrator is Python, performance-critical processing uses compiled C tools
(meshoptimizer, MikkTSpace), and procedural geometry lives in a header-only C
library (common/shapes/forge_shapes.h).
The goal is not just pedagogical. Every library, tool, and pipeline
component built in an asset lesson must be production-quality — well-tested,
documented, and designed for reuse beyond the lesson. The project's own
PLAN.md has a "Project Integration" section where forge-gpu's existing
assets (models, textures, skyboxes) are processed through the pipeline we
build. So the pipeline, plugins, and C tools are not toy examples scoped to a
single lesson — they are the actual tooling this project depends on.
Concretely this means:
- Libraries and tools are shared, not lesson-local. Python code goes in
pipeline/, C libraries go incommon/, C tools go intools/. The lesson directory contains the walkthrough, not the implementation. - Test thoroughly. Every module gets a test suite (
tests/pipeline/for Python,tests/test_*.cfor C). Edge cases, error paths, and realistic inputs — not just happy-path smoke tests. - Design for integration. The Python pipeline will process forge-gpu's own models and textures. The C mesh tool will be invoked by the pipeline as a subprocess. The shapes library is already used by GPU and physics lessons. Build APIs that work for real projects.
- Don't cut corners for pedagogy. If the correct approach requires more code, write more code. Simplifying for the lesson at the cost of correctness or reusability defeats the purpose.
When to use this skill:
- You need to teach asset import, processing, or optimization concepts
- A learner wants to build tooling that transforms raw art into GPU-ready formats
- The lesson involves texture compression, mesh optimization, or asset bundling
- The lesson adds a web UI for browsing, previewing, or configuring assets
- The lesson creates procedural geometry from parametric equations
- The lesson integrates third-party C libraries (meshoptimizer, MikkTSpace)
Smart behavior:
- Before creating a lesson, check if an existing asset lesson already covers it
- Asset lessons are tool-building lessons — every concept must produce a working CLI command, C tool, library, or web page
- Focus on why each processing step matters for GPU performance
- Cross-reference GPU lessons that consume the processed assets
- Determine the lesson type (Python, C tool, or C library) before scaffolding
Arguments
The user (or you) can provide:
- Number: two-digit lesson number (e.g. 01, 02)
- Topic name: kebab-case (e.g. pipeline-scaffold, texture-processing)
- Description: what this teaches (e.g. "Plugin discovery, CLI entry point, TOML config")
If any are missing, infer from context or ask.
Lesson Types
The asset pipeline track has three lesson types. Determine which type applies before scaffolding.
Type A: Python lessons
Pipeline scaffold, texture processing, asset bundles, web frontend. These add
functionality to the shared pipeline/ package at the repo root (not
lesson-local code). The lesson directory contains only the README, diagrams,
example config, and sample assets.
Directory structure:
pipeline/ # shared library (repo root) — code goes HERE
__init__.py
__main__.py
config.py, plugin.py, scanner.py, ...
plugins/
<type>.py # built-in plugins grow lesson by lesson
tests/
pipeline/ # tests for the shared library
test_<module>.py
lessons/assets/NN-topic-name/
README.md # lesson walkthrough pointing at pipeline/ code
pipeline.toml # example config for hands-on testing
assets/ # sample source files, diagrams
Not added to CMakeLists.txt — Python projects are not C targets.
pyproject.toml is at the repo root — one package for the whole pipeline.
Type B: C tool lessons
Mesh processing with third-party C libraries (meshoptimizer, MikkTSpace). The C tool is a standalone executable that the Python pipeline invokes as a subprocess.
Directory structure:
lessons/assets/NN-topic-name/
README.md
main.c # standalone C tool
CMakeLists.txt # builds the tool, fetches dependencies
tests/
test_<tool>.c # C test suite
Added to CMakeLists.txt — C tools need a build target. Add under an "Asset Pipeline Lessons" section (create it if needed, after Physics Lessons or at the end before Tests).
Type C: C library lessons
Procedural geometry and other header-only libraries that live in common/.
These produce a library, a test suite, and optionally a GPU lesson that
renders the output.
Directory structure:
common/<lib>/
forge_<lib>.h # header-only library
READ
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dev-asset-lesson?
Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend
Как установить скилл dev-asset-lesson?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-asset-lesson запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…