agentleFS
latentastronautlatentastronaut/la-sfx-skill/AGENTS.md

la-sfx-skill

AGENTS.md1 starsChanged 8 days agoMITView on GitHub

This repo is sfx, a Claude skill that makes sound effects with code (numpy and scipy only). If you are an agent helping someone contribute, read this first, then CONTRIBUTING.md. CLAUDE.md points here, so every agent reads the same file. This is the rule everything else follows from. Use uv run; each script declares its own dependencies. Render test sounds into a scratch folder with --out, not into the repo.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 1 is common, 1 is distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never say a sound is good, and never pick between takes.

    line 9
  2. Very specific:

    Before a person hears a new real-world sound, fit it to a reference: sfx.py compare yours.wav reference.wav, then sfx.py spec on both and …

    line 10
  3. Very specific:

    Use uv run; each script declares its own dependencies.

    line 39
  4. Common:

    numpy and scipy only: No new dependencies, no models, no API keys.

    line 43
  5. Very specific:

    Keep the counts true: If you add or remove a recipe or transform, update the numbers in README.md and RECIPES in assets/src/draw.html.

    line 52
  6. Distinctive:

    Code style: follow the file you are in.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Notes for coding agents

This repo is sfx, a Claude skill that makes sound effects with code (numpy and scipy only). If you are an agent helping someone contribute, read this first, then CONTRIBUTING.md. CLAUDE.md points here, so every agent reads the same file.

You cannot hear

This is the rule everything else follows from.

  • Never say a sound is good, and never pick between takes. check and spec find faults; they don't tell you a sound is right. Make candidates, build the audition page (sfx.py audition <folder>), and let the person listen.
  • Before a person hears a new real-world sound, fit it to a reference: sfx.py compare yours.wav reference.wav, then sfx.py spec on both and look at the two pictures side by side. Sounds built from reasoning alone nearly always failed when someone listened.
  • A flag from check means "a person should listen for this". It is not a verdict.

Layout

PathWhat it is
skills/sfx/SKILL.mdWhat Claude reads when it uses the skill. Its description decides when the skill is picked, so treat edits to it as behaviour changes.
skills/sfx/references/Timing, sound design, the ambience method, where free sounds can be had.
skills/sfx/scripts/sfx.pyThe command line.
skills/sfx/scripts/sfx_recipes.pyThe recipe registry (@recipe), the levels (LEVELS) and the core recipes. The other sfx_*.py files register more recipes by kind.
skills/sfx/scripts/sfx_dsp.pyBuilding blocks: oscillators, noise, filters, reverb, stretch, loudness, WAV writing.
skills/sfx/scripts/sfx_fx.py, sfx_check.py, sfx_sources.pyTransforms; measurements and the spectrogram; the only code that touches the network (find, fetch).
skills/sfx/scripts/data/Measured loudness curves for footsteps and stream. tools/measure/ has the scripts that made them.
skills/sfx/tests/test_sfx.pyThe tests. CI runs them on pushes to main and on pull requests.
.claude-plugin/The plugin and its one-skill marketplace.
assets/The banner, social preview and icon; assets/src/ draws them.

Commands

uv run skills/sfx/tests/test_sfx.py            # all tests, about 40 seconds, no network
uv run skills/sfx/scripts/sfx.py list           # every recipe and transform
uv run skills/sfx/scripts/sfx.py list riser     # one entry with its parameters
uv run skills/sfx/scripts/sfx.py make riser seconds=2 --out /tmp/try
uv run skills/sfx/scripts/sfx.py check /tmp/try/*.wav
uv run skills/sfx/scripts/sfx.py spec /tmp/try/riser_v001.wav

Use uv run; each script declares its own dependencies. Render test sounds into a scratch folder with --out, not into the repo.

Rules for a change

  • numpy and scipy only. No new dependencies, no models, no API keys.
  • No audio files in the repo, including test fixtures. Measured numbers are fine; say where they came from.
  • Same seed and parameters, same samples. A recipe takes randomness only from the rng it is handed. Never call the global random functions or the clock.
  • The sync point is computed, not measured. A recipe whose sync point is not its first sample returns (signal, {mark: seconds}), with the first mark as the sync point, worked out from the parameters.
  • Write the registry text for someone who can't hear. A recipe's about, use and each parameter's description are what an agent reads to choose and set a sound. Give useful values in the text ("0.3 tight, 4 huge").
  • Give every recipe a level in LEVELS and end it with d.finish(...).
  • The network stays in sfx_sources.py. Nothing else may open a connection. fetch records each sound's source, author and licence beside the file.
  • Nothing is overwritten. Output files are versioned (name_v001.wav); write_wav refuses to replace a file.
  • A new recipe with a sync point gets a test for that point.
  • Keep the counts true. If you add or remove a recipe or transform, update the numbers in README.md and RECIPES in assets/src/draw.html.
  • Code style: follow the file you are in. Long lines are used here on purpose; comments say why, not what.

What not to attempt without a person

Breaking glass, footsteps on grass, gravel or snow, engines, doors, water drops, and anything meant to sound far away have each failed more than once when listened to. They are the open problems in CONTRIBUTING.md. An attempt is welcome, but it needs a reference to fit to and a person to listen before it goes in a pull request.

Pull requests

Say what you compared the sound with and who listened. Run the tests. Keep a pull request to one recipe or one fix.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.