Command Palette

Search for a command to run...

Back to skills
skill № 33964

dev-asset-lesson

Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend

FreeNo executable scripts
Nebulavenusby Nebulavenus★ 51 GitHub stars

Install dev-asset-lesson in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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 in common/, C tools go in tools/. The lesson directory contains the walkthrough, not the implementation.
  • Test thoroughly. Every module gets a test suite (tests/pipeline/ for Python, tests/test_*.c for 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
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the dev-asset-lesson skill do?

Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend

How do I install the dev-asset-lesson skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the dev-asset-lesson skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare dev-asset-lesson with