skills/writing/make-program-tutorial/SKILL.md
Manual invocation only; use only when the user explicitly requests `make-program-tutorial` by exact name, OR when the user asks to use a skill to create an SDK/API/library tutorial. Create a clear, reproducible, step-by-step tutorial for a specific API/SDK/library (or a set of functions/classes), with runnable examples, expected outputs, and basic troubleshooting.
npx skillsauth add igamenovoer/magic-context make-program-tutorialInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<workspace>/tmp/tutorials/<tutorial-name>; if the user specifies a dir, prefer the user-provided one)Default output directory:
<workspace>/tmp/tutorials/<tutorial-name>Create the output directory with:
tut-<what>.mdscripts/ (end-to-end runnable scripts for this tutorial)inputs/ (small tutorial-specific inputs, if applicable)outputs/ (tutorial-specific outputs, if applicable)In tut-<what>.md, include a YAML front matter block that records the runtime environment at the time the tutorial is created, including the base git commit hash of the workspace/repo.
Always provide end-to-end runnable scripts under scripts/ and have the tutorial instruct users to run those scripts (instead of embedding long code blocks in the doc).
scripts/scripts/ that demonstrate the full “happy path”.inputs/ (prefer real files; synthesize only if necessary and explain why)outputs/scripts/run.py unless multiple steps are clearer.tut-<what>.md (tutorial doc)Choose a short, specific <what> (e.g., tut-httpx-basics.md, tut-onnxruntime-infer.md).
Follow the template in templates/tut-what.md:
scripts/... and show the exact command(s) to run.created_at (ISO8601), tutorial_name, topicbase_commit (workspace git commit hash)runtime (OS, CPU/GPU, Python version, key package versions if relevant)inputs/.outputs/.data-ai
Create readable Mermaid diagrams inside Markdown files. Use for flowcharts and sequence diagrams that must render cleanly in common Markdown renderers (e.g., GitHub) without horizontal scrolling. Covers fenced mermaid blocks, init/theme styling, label wrapping with <br/>, and sequenceDiagram layout rules (short IDs, wrapped labels, don’t break identifiers).
testing
Use when the user wants to create a self-hosted, offline-installable Conda channel (mirror) containing a specific subset of packages using Pixi.
tools
Guides the agent to setup a new or existing Pixi environment for compiling C++ and CUDA code. It ensures the correct compilers, toolkits, and CMake configurations are in place for a robust user-space build.
tools
Use when the user says "use pixi to install <some nvidia tool>" (or similar) and wants NVIDIA/CUDA/GPU packages installed via Pixi (no sudo/apt), e.g., CUDA toolkit pieces, cuDNN/NCCL, PyTorch CUDA builds, RAPIDS.