frostwind
AGENTS.md87 starsChanged 15 days agoMITView on GitHub
Frostwind is a nature-grounded world compiler for pixel art: encode what a thing is, then derive its pixels. The golden rule is nothing is drawn that can be derived; nothing is chosen that can be measured; nothing is claimed that cannot be checked. Reality and the pixel medium are both authorities. When they conflict the medium wins explicitly, with the legibility floor or authored choice named. LLMs write tables, distributions, constraints, and tests, never individual pixels. A literal is acceptable…
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,040 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 repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/animals.mdcCursor rule
- .cursor/rules/build.mdcCursor rule
- .cursor/rules/built-form.mdcCursor rule
- .cursor/rules/caveman.mdcCursor rule
- .cursor/rules/cost-control.mdcCursor rule
- .cursor/rules/desert.mdcCursor rule
- .cursor/rules/frame-palette.mdcCursor rule
- .cursor/rules/hollow.mdcCursor rule
- .cursor/rules/life.mdcCursor rule
- .cursor/rules/morphology.mdcCursor rule
- .cursor/rules/people.mdcCursor rule
- .cursor/rules/pixel-review-gate.mdcCursor rule
- .cursor/rules/projection.mdcCursor rule
- .cursor/rules/reporting-language.mdcCursor rule
- .cursor/rules/spells.mdcCursor rule
- .cursor/rules/swamp.mdcCursor rule
- .cursor/rules/world.mdcCursor rule
- add-characterSkill
- add-worldSkill
- frame-checkSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run npm run lint, then the closest npm run test:<area>.
- Distinctive: line 68
No em-dashes: Use a comma, a full stop, or parentheses.
- Distinctive: line 71
No throat-clearing: Delete a sentence that announces the next one.
- Distinctive: line 77
Commit messages stay imperative and name the change, in the voice already in the log: "Replace the frame hash with a colour gate that says …
- Distinctive: line 97
A check names an authority and says what moved: Prefer a cheap derived measurement with a diagnostic failure over byte identity.
≈ “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.
Files
Frostwind agent guide
Identity and rule
Frostwind is a nature-grounded world compiler for pixel art: encode what a thing is, then derive its pixels. The golden rule is nothing is drawn that can be derived; nothing is chosen that can be measured; nothing is claimed that cannot be checked. Reality and the pixel medium are both authorities. When they conflict the medium wins explicitly, with the legibility floor or authored choice named.
LLMs write tables, distributions, constraints, and tests, never individual pixels. A literal is acceptable only when its authority and scope are stated. A table that no drawing code reads is only a comment with punctuation.
Reuse before you add. This repository keeps one authority per dimension, so the cheapest correct change is usually an edit to the owner.
Cheap verification
The golden rule is checked by authority + closest test. Re-proving the CANON register in chat is waste.
- Identify the one executable authority (
src/scale.js,src/sunlight.js,src/weather.js, a world stage, a place owner, …). - Edit that surface. Update
docs/DECISIONS.md/docs/CANON.mdonly when the law changes. - Run
npm run lint, then the closestnpm run test:<area>. Prefer checkable consequences over pasting algebra into the conversation.
A claim in a comment is a claim to check. "Reads as hills at a glance" held for months while 100% of lee and 98% of stoss dune pixels painted one rung. Measure it, then hold it with a test.
Pipeline and ownership
- World model:
src/worldgen.jscomposes the stages insrc/world/: terrain, dunes, swamp water, water, siting, life field.BIOMESinsrc/biome.jsis each world's plan. - Sprite synthesis: materials, normals, occlusion, and thickness in
src/sprite.jsandsrc/species.js. A sprite never stores a colour. - Placement: affordance-gated placement in
src/world/placement.js; streaming and the draw list insrc/scene.js. - Composite: ordered GPU passes, batches, targets, shadows, and reflections in
src/render.jsandsrc/shaders/. - Quantise: Bayer dither and the scene-locked palette snap in
src/shaders/sprite.js.
A new world is a BIOMES row, a SCENES row, surface rows, ramps, habitat rows and a roster. A world stage takes a branch only for a new model (a new kind of water, a new landform), keyed on the plan and never on the biome name.
render.js owns the frame: targets, GPU state, batches, and internal resolution. scene.js owns the world: generator, atlas, chunks, entities, traveller, places, and visibility. Do not put biome, doorway, chunk, entity, or place branches into the renderer.
Scenes are exclusive: one resident bake context. src/sprite.js has bake-time LIGHT, so keeping two scenes resident without removing that global is a bug. Cabins, steadings and swamp houses are outdoor props. Doors do not open into rooms.
Authorities
src/scale.jsis the dimensional authority:PLAYER_H = 26 px = 1.70 m. Derive object dimensions from it; never from the window.PROJECTION.mdstates cabinet projection. World depth becomes half as many screen rows; depths stay even.src/palette.jsandsrc/sunlight.jsown ramps and light-derived colour. Assets carry material/ramp ids, never RGB or hex.src/weather.jsowns rain, blown sand and gusts. One wind axis (src/constants.js) drives drifts, ripples, precipitation and sway.LIFE.mdowns semantic life and culture;src/life.js,src/culture.js,src/life-session.js,src/behavior.js, andsrc/life-runtime.jsare its executable authorities. Simulate reasons and consequences everywhere, bodies only near the traveller.docs/LIFE.mdowns production morphology. Its medium laws bind every living body. Species tests own species measurements.src/people.jsowns the human cast and raster selection. Body and figure modules own integer anatomy and drawing.src/culture.jsowns dress.- Preserve module direction and one-way ownership. Never introduce a second copy of a dimension, scene state, palette list or landmark.
Route by task
Routing is path-scoped, so a rule loads only when you touch a matching file. One rule per authority cluster: world, swamp, desert, life, morphology, projection, people, animals, built-form, frame-palette, spells, build. Each names its owning spec and its closest test.
.claude/rules/*.md is the source. npm run rules writes the Cursor mirror,
.cursor/rules/*.mdc, and npm run test:prose fails when the mirror is stale.
Open a spec because a rule sent you there. docs/CANON.md and
docs/DECISIONS.md are for changing a law, not for reading around one.
Which LIFE / MEADOW file: LIFE.md = semantic life/culture contract;
docs/LIFE.md = production morphology (rigged animals); docs/MEADOW.md,
docs/SWAMP.md and docs/DESERT.md = one world's physics each;
docs/life/*.md = habitat dossiers. Do not cross-generalize.
Writing
Plain and short. The reader is a working engineer who wants the fact.
- No em-dashes. Use a comma, a full stop, or parentheses.
- No defining by negation. "X is not a Y, it is a Z" becomes "X is a Z". Contrast between two real things is fine.
- No throat-clearing. Delete a sentence that announces the next one.
- No closing summary.
A comment carries an authority, an invariant, a unit conversion or a measured failure. Delete comments that restate the code or record edit history.
Commit messages stay imperative and name the change, in the voice already in the log: "Replace the frame hash with a colour gate that says what moved".
Prose is budgeted
npm run test:context fails when always-loaded prose or the worst single-file
route grows past CEILING in tools/context-stats.mjs. An always-loaded word
costs every task; a docs/ word costs one route. Deletion beats compression.
.claude/rules/caveman.md carries the method.
Messages to the user are the exception. .claude/rules/reporting-language.md
sets ASD-STE100, which keeps the articles that repository prose drops.
Work and verification
Preserve uncommitted work. Inspect diffs before editing, change only the requested surface, and never “clean up” another author’s changes.
.claude/rules/cost-control.md carries the working method: what to read, how to
delegate, the verification ladder, and when to look at a frame.
A check names an authority and says what moved. Prefer a cheap derived measurement with a diagnostic failure over byte identity. Snapshot the authority, report the changed ramp, world or form, and keep regeneration outside the test.
Frame conformance is the expensive tier. One frame per world, for GPU-path laws rather than value changes structural tests already cover.
Visual tools are narrow: tools/shot.mjs for a frame, tools/houses.mjs for built form, tools/trees.mjs for trees, tools/person.mjs for a person. Subjective pixel-art decisions follow .claude/rules/pixel-review-gate.md.
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
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.

