pixtuoid: Skill for Claude Code

.claude/skills/procedural-lofi/SKILL.md

procedural-lofi is a skill for Claude Code from IvanWng97/pixtuoid. It costs 142 tokens per session (3,516 once invoked), scanned A, original, MIT.

A coding recipe for generating lofi or ambient sound at runtime from synthesized tones and fixed parameter tables, without shipping audio samples.

In plain words
What is it for?
Use it to create lofi music or ambient sounds such as rain, typing, chimes, printers, or water coolers. It includes scripts for analyzing a reference recording, auditioning sounds, and freezing a selected result into code.
Why use it?
It helps avoid audio files and sample royalties while producing sound that can vary over time.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is IvanWng97/pixtuoid's own configuration. It tells Claude Code how to work on pixtuoid 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 pixtuoid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to IvanWng97/pixtuoid. 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/IvanWng97/pixtuoid/main/.claude/skills/procedural-lofi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/IvanWng97/pixtuoid

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 procedural-lofi

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanwng97/pixtuoid/procedural-lofi"><img src="https://agentmods.dev/badge/skills/ivanwng97/pixtuoid/procedural-lofi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,516 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00142 $0.03516
Opus 5.5 $0.00057 $0.01406
Sonnet 5.5 $0.00028 $0.00703
Haiku 4.5 $0.00014 $0.00352

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

Security

Grade A, and why

procedural-lofi 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 15d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/analyze_drops.py, scripts/analyze_rain.py, scripts/analyze_typing.py, …), 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.

Makes network callslowCapability

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

(`yt-dlp` / `curl` for analysis only; for an endless live stream, `yt-dlp -g` gets the
.claude/skills/procedural-lofi/SKILL.md · 219 lines

How it starts

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

Procedural Lofi — build a soundtrack in code, not in a sample pack

This skill is the end-to-end recipe for a lofi bed (and its sibling ambient sounds: rain, keystrokes, door chimes, printer, water cooler…) that is synthesized at runtime from constants — zero audio files, zero royalties, and no two minutes ever sound the same.

Two documents ship alongside this one:

  • reference/LOFI-BIBLE.md — the parameter tables. Harmony (chord grammar, voice-leading, register clamps), groove (swing %, drag ms, velocity curves), per-voice sound design (pad / bass / EP keys / sparkle / drums / texture / tape chain), mix targets (band shares, HPF strategy, loudness), and generative lessons from prior art. Every number is cited and, where it conflicts with a measurement, the measurement wins.
  • scripts/ — the Python (numpy) pipeline: analyze_*.py (fingerprint a reference), synth_audition.py (a runnable numpy synth that produces .wav auditions), and export_score.py (freeze a good take into a constants table for the port).

Read those two when you reach the step that needs them. This file is the map.


The core idea (why code, not samples)

A sampled lofi loop is: (a) a licensing liability, (b) heavy to bundle, and (c) audibly repetitive — the human brain catches a loop seam on the 3rd or 4th pass. Synthesizing it solves all three:

  • Legal: acoustic parameters are not copyrightable. You measure a reference to get target numbers (this band has 55% of the power, the centroid sits at 150 Hz, drops land 13 dB above the bed). You never keep or ship the reference bytes. What ships is your own oscillator code hitting those numbers.
  • Size: a few kilobytes of constant tables + a synth function vs. megabytes of PCM.
  • Never repeats (in practice), from three stacked tricks: (1) the frozen musical composition — pad, drums, and the melody (keys + sparkle) — loops in lockstep, but the loop is made long enough that its repetition doesn't fatigue (this project doubled its day loop from 4 to 8 bars precisely because a short looped melody was audibly repetitive — "loop the bed" does not mean "make it short"); (2) the genuinely-stochastic layers — rain drops and keystrokes — are scattered fresh at runtime from a seeded RNG, laid over the loop; (3) a busy-ness stem mixer fades whole stems (drums, keys…) in and out by how active the scene is, so the arrangement keeps changing even though the notes don't. The result reads as "never the same two minutes" without regenerating harmony. (Regenerating melody live is possible but it's the hard, optional part — the shipped product froze the melody and leaned on 1–3 instead.)

Read the full file on GitHub · 219 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. 15d ago Changed aab93723cc60
  2. 26d ago Changed · -6 lines 88ff3bc6debb
  3. 1mo ago First seen · 225 lines · 142 tokens per session scan A 96b7a62af6ad

Subscribe to this mod's changes

procedural-lofi is a skill published in the GitHub repository IvanWng97/pixtuoid (491 stars, last pushed 15d ago), licensed MIT. It adds 142 tokens to every session and 3,516 once invoked, about $0.0006 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-08-30.