paper-cranes: Skill for Claude Code

.agents/skills/shader/SKILL.md

shader is a skill for Claude Code, Codex from loqwai/paper-cranes. It costs 0 tokens per session (3,355 once invoked), scanned A, original, BSD-3-Clause.

A workflow for creating, changing, or fixing Paper Cranes shaders, which are programs that draw the show’s visuals. It emphasizes the visual result, response to music and controls, and measured frame rate.

In plain words
What is it for?
Use it to design or fork visuals, connect audio or knobs to them, fix rendering problems, and assess their appearance and speed.
Why use it?
It checks more than whether the code compiles: the visual must remain usable in silence, respond as intended, and run smoothly on a phone.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is loqwai/paper-cranes's own configuration. It tells Claude Code and Codex how to work on paper-cranes itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything paper-cranes configures →

Reuse

Borrowing it

Nothing to install: this file belongs to loqwai/paper-cranes. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/loqwai/paper-cranes/main/.agents/skills/shader/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/loqwai/paper-cranes

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shader

README.md
[![agentmods](https://agentmods.dev/badge/skills/loqwai/paper-cranes/shader/github.svg)](https://agentmods.dev/skills/loqwai/paper-cranes/shader)
Your own site
<a href="https://agentmods.dev/skills/loqwai/paper-cranes/shader"><img src="https://agentmods.dev/badge/skills/loqwai/paper-cranes/shader/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shader

Your own site · 80×15
<a href="https://agentmods.dev/skills/loqwai/paper-cranes/shader"><img src="https://agentmods.dev/badge/skills/loqwai/paper-cranes/shader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03355
Opus 5.5 $0.00000 $0.01342
Sonnet 5.5 $0.00000 $0.00671
Haiku 4.5 $0.00000 $0.00335

Measured 8d ago against content hash d6aca5b5abb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shader scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (bin/shader-check.mjs, bin/shader-check.node-test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/shader/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shader

A shader Aaron puts on the wall reacts visibly to the music at phone-mic level, never shivers or strobes, looks good with every knob at 0 and the room silent, and holds 60 fps on a phone. This skill gets a shader there and proves it with numbers. "It compiles" is not proof.

Read references/taste.md before you design anything. It is his words, and they decide what ships.

Route elsewhere

The ask Use
Run a show, preflight, panic, setlist /show (/clit-show, /sun-show for those shows)
Change the look while he plays the dials /partner (it proposes; it does not edit his wall)
"Keep this", turn kept moments into forks /keep
Swap a shader between knob mode and audio mode /solo
Prove a page or feature in the browser /verify-paper-cranes (this skill's gate builds on it)
Record a video of a shader /record

Look it up first

He has almost always discussed the shader before. Before writing code:

  1. Search mindmeld for the shader or series name (cwd = the repo) and read the top sessions.
  2. Read journals/<name>*-cool-moments.md and the shader's own <name>.md: what he praised, what he made you remove ("Removed effects (do not re-introduce)" sections exist for a reason).
  3. Read the parent .frag if this is a fork, and any controller its URL names.

Workflow

  1. Write the intent in one sentence: what the picture is, and what the music does to it. A place to explore beats a picture to look at (taste.md, "Form").
  2. Make the files. shaders/wip/<series>/1.frag plus one doc, <series>.md, in the same folder. No author folder: not claude/wip, not wip/claude. A fork is the next number (2.frag), never an edit in place: the parent stays as the fallback. Line 1 is #version 300 es if you use one, then metadata (// @fullscreen: true, // @mobile: true, // @tags: ...); a ShaderToy-style mainImage needs no #version. Put a // preset: <url> line with the params it needs (controller=, wavelet=true).
  3. Lay the file out in blocks, in this order: header comment (intent, the audio map, what knob 0 means), knob map, conditioned inputs, the #define swap block for every audio term, structure, light, colour, output guard. The swap pattern (an audio #define with its constant twin commented out under it) is in the repo AGENTS.md; keep it, it is how you isolate a bad term live.
  4. Build the structure in silence first. Render with no audio until the resting picture is beautiful and always moving on its own clocks. Give it several independent shape axes, not just a zoom.
  5. Wire audio by channel (below), one domain at a time, 12 or more features in all, each a small verb on its own element. Start reactions at 3-5x what feels tasteful.
  6. Name the knobs on the line that uses them: // K4 ZOOM (0 = home, 1 = 3x). Tooling reads the ALL-CAPS name (vite-plugins/shader-plugin.js). Knob 0 must look good; no knob value may break the look. Pick numbers that don't collide with the series you forked.
  7. Pass the gate (below). Fix every FAIL; fix or explain every WARN.
  8. Document and commit. In <series>.md: intent, the audio map and why, the knob map, and per iteration what changed and the numbers. Commit, run npm run shader-dates, commit shader-dates.json, push, and give the preview link https://<branch>.paper-cranes-visuals.pages.dev/?shader=wip/<series>/1&<preset params>.

Read the full file on GitHub · 188 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 188 lines · 0 tokens per session scan A d6aca5b5abb5

Subscribe to this mod's changes

shader is a skill published in the GitHub repository loqwai/paper-cranes (7 stars, last pushed 6d ago), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 3,355 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

shader compared with skills from other repositories

shader next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shaderloqwai/paper-cranesSkill76d agoBSD-3-ClauseA0Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code