paper-cranes: Skill for Claude Code

.claude/skills/jam/SKILL.md

jam is a skill for Claude Code from loqwai/paper-cranes. It costs 44 tokens per session (1,077 once invoked), scanned A, original, BSD-3-Clause.

A command that opens a shader jam page with a selected visual shader, optional controls, and a music source such as Spotify or SoundCloud. A shader is code that creates graphics, often in real time.

In plain words
What is it for?
Use it to launch a fullscreen shader session, connect a controller and music, and tweak visual effects with the available controls.
Why use it?
It prepares the development page and supporting services for live visual experimentation without opening the full code editor.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is loqwai/paper-cranes's own configuration. It tells Claude Code 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/.claude/skills/jam/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/loqwai/paper-cranes

Made for: Claude Code.

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 jam

README.md
[![agentmods](https://agentmods.dev/badge/skills/loqwai/paper-cranes/jam/github.svg)](https://agentmods.dev/skills/loqwai/paper-cranes/jam)
Your own site
<a href="https://agentmods.dev/skills/loqwai/paper-cranes/jam"><img src="https://agentmods.dev/badge/skills/loqwai/paper-cranes/jam/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 jam

Your own site · 80×15
<a href="https://agentmods.dev/skills/loqwai/paper-cranes/jam"><img src="https://agentmods.dev/badge/skills/loqwai/paper-cranes/jam.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00044 $0.01077
Opus 5.5 $0.00018 $0.00431
Sonnet 5.5 $0.00009 $0.00215
Haiku 4.5 $0.00004 $0.00108

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

Security

Grade A, and why

jam scanned grade A with 1 finding 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 5d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

!`curl -s -o /dev/null -w "%{http_code}" http://localhost:6969/ 2>/dev/null || echo "not running"`
.claude/skills/jam/SKILL.md · 100 lines

How it starts

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

Jam — Launch a Jam Page Session

Open the jam page (/jam.html) with a shader, optional controller, and music source. The jam page is lighter than the editor — the shader alone on screen + MIDI knobs + spacebar snapshots. No Monaco editor.

Context

Arguments (optional shader path, controller, or music URL): !echo "$ARGUMENTS"

Dev server status: !curl -s -o /dev/null -w "%{http_code}" http://localhost:6969/ 2>/dev/null || echo "not running"

Modified shaders in worktree: !git diff --name-only HEAD | grep '\.frag$' | head -3 2>/dev/null; git status --short | grep '\.frag' | head -3 2>/dev/null

Available controllers: !ls controllers/*.js 2>/dev/null | sed 's|controllers/||;s|\.js||'

Steps

1. Ensure the dev server is running

Check if localhost:6969 responds. If not:

npm run dev &

Wait for it (poll with curl, max 10 seconds).

2. Determine the shader

Parse $ARGUMENTS for a shader path. Fall back to:

  1. Most recently modified .frag in the worktree
  2. redaphid/wip/the-coat-fur-coat/the-coat-3 (the latest jam shader)

3. Determine the controller

Check if the shader has a matching controller in controllers/. Convention: shader the-coat-3.frag → controller the-coat.js.

If a controller exists, add &controller=<name> to the URL.

4. Determine the music source

Parse $ARGUMENTS for a URL (Spotify, SoundCloud, YouTube). If none provided, default to https://open.spotify.com.

5. Open Chrome and connect

  1. Ensure Chrome is running (pgrep -x "Google Chrome" or open -a "Google Chrome")
  2. Call tabs_context_mcp with createIfEmpty: true
  3. Create a tab for the music source and navigate there
  4. Create a tab for the jam page:
    http://localhost:6969/jam.html?shader=<path>&audio=tab&controller=<name>
    

6. Verify the connection

Run on the jam page tab:

JSON.stringify({ cranes: !!window.cranes, shader: !!window.cranes?.shader })

7. Tell the user we're ready

Short and excited:

Jam page up with [shader]. [Music source] is ready. Play a track, share tab audio, and hit spacebar to snapshot. Let's go!

Read the full file on GitHub · 100 lines

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. 5d ago Changed e1a32d756ea0
  2. 11d ago First seen · 100 lines · 44 tokens per session scan A a29654bc8509

Subscribe to this mod's changes

jam is a skill published in the GitHub repository loqwai/paper-cranes (7 stars, last pushed 3d ago), licensed BSD-3-Clause. It adds 44 tokens to every session and 1,077 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens