Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fcsouza/agent-skills --skill procedural-gengit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote 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.
[](https://agentmods.dev/skills/fcsouza/agent-skills/procedural-gen)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/procedural-gen"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/procedural-gen/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.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/procedural-gen"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/procedural-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01595 |
| Opus 5.5 | $0.00031 | $0.00638 |
| Sonnet 5.5 | $0.00016 | $0.00319 |
| Haiku 4.5 | $0.00008 | $0.00160 |
Grade A, and why
procedural-gen 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 19d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Procedural generation
Decide before you build
State these for each generator. They set where validation effort goes.
- Online (at runtime) or offline (at build time). Runtime generators must run in milliseconds.
- Necessary or optional content. A level with no reachable exit is a bug. A misplaced decoration is not. Validate necessary content fully and optional content lightly.
- Deterministic or stochastic. Deterministic means the same seed and parameters give the same content, which lets you reproduce bugs, share seeds and regenerate instead of store.
- Constructive (one pass) or generate-and-test (loop until a test passes). Both are normal. Generate-and-test needs a retry cap.
Rules
- Seed everything. Use a seeded PRNG such as mulberry32 (in
boilerplate/dungeon-generator.ts).Math.random()cannot be seeded or reset by the caller. - Derive one seed per system from the world seed (
<worldSeed>:<system>:<id>), so changing one generator does not shift the output of the others. Readtemplates/world-seed-config.mdwhen you design the derivation and the generation order. - Set the budget first. Min and max for rooms, enemies, items and path length come before any generation code. The budget is the design.
- Generate in layers. Macro structure first (world, regions, areas), then detail (rooms, props, items). Each layer constrains the next.
- Prefer playability by construction. Cap gap widths at the jump range and connect rooms along the tree. Check afterwards only what construction cannot promise.
- Emit a witness. Generate a solution path with the level and test it. A level with a valid path is solvable. Reachability found by a later search is a bug found late.
- Cap every retry loop. Fail with a clear error and loosen the budget. Never
while (true). - Do not simulate more detail than the player sees. Extra layers cost time and make causes hard to trace.
- Cache or regenerate, never both. Store what the player can change or what is slow to build. Regenerate what the player only observes.
- Version the generator. Any algorithm change makes old seeds produce different content. Store the generator version beside the seed.
What ships with it
4 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.
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.
- 19d ago Changed · -98 lines · +12 tokens per session ea08be6d726b
- 3mo ago First seen · 209 lines · 66 tokens per session scan A 42d4cfd9021b
procedural-gen is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,595 once invoked, about $0.0003 per session on Opus 5.5. 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-08-30.
procedural-gen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| procedural-genfcsouza/agent-skills | Skill | 29 | today | MIT | A | 78 | Claude Code |
| playtest-reportDonchitos/Claude-Code-Game-Studios | Skill | 42k | 24d ago | MIT | A | 20 | Claude Code |
| godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skills | Skill | 13k | 3d ago | Apache-2.0 | A | 93 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 121 | Claude Code |
| texture-workflowarjun988/blender-skills | Skill | 5.8k | 27d ago | MIT | A | 41 | Claude Code |
| motionOpenDCAI/GameFactory-3A | Skill | 1.6k | yesterday | Apache-2.0 | A | 0 | Claude Code, Codex |
| gamedev-shadersericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 102 | Claude Code, Codex |