chaos-storm
Skill0 starsChanged 2 months agoMITView on GitHub
Chaos Storming codebase health check. Randomly samples files per app, package and tool area, asks four questions of each, and escalates weak files through their imports.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- devils-advocateSkill
- guiding-handSkill
- signal-noiseSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 54
Use the cheapest model that fits each role.
- Distinctive: line 58
No subagents available: do the step yourself, keeping reviewer.md's output contract.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Chaos Storm
Random, indiscriminate sampling beats curated review for measuring real codebase health. You orchestrate; scripts and cheap subagents do the work. Never read sampled source files yourself.
CS = node <this skill's directory>/scripts/chaos-storm.mjs. Run it from the repo root.
1. Landscape (once per repo)
Run CS map.
map exists: skip to step 2.- Otherwise it prints a draft. If it lists
unclassifieddirs, spawn one subagent on the map model (see Models) with mapper.md to classify them. Do not read the tree yourself.
Grill the user briefly, one short round (use your ask-question tool if you have one):
- Which areas to include (default: all apps, packages, tools; skip infra, docs, examples).
- Which extensions (default: the dominant code extensions).
- Files per area (default 5).
Then CS configure --include "<globs or names>" --ext "<.ts,.tsx>" --sample <n>. This writes .chaos-storm/map.json; suggest committing it.
2. Select
CS select (add --seed <s> to replay a run). It prints the run id and, per area, slug plus path:lines (! means over maxLines).
3. Review
For each area, spawn one subagent on the review model. Run areas in parallel. Prompt:
Read
<skill dir>/reviewer.mdand follow it. Run<run id>, area slug<slug>, maxLines<n>. Files:<paths>. Write.chaos-storm/runs/<run id>/reviews/<slug>.json.
Each replies with one line. Then CS validate; send any errors back to that subagent to fix.
4. Escalate
CS escalate lists flagged files with their direct local imports. For each area with flagged files, spawn one review subagent:
Read
<skill dir>/reviewer.md, section Escalation. Run<id>, slug<slug>. Flagged files and deps:<lines from escalate>. Write.chaos-storm/runs/<id>/reviews/<slug>.escalated.json.
Validate again.
5. Report
CS report writes report.md and report.json in the run folder. Relay its summary lines to the user: overall grade, grade per area, and each remedial action. Point to report.md for the per-file tables. Do not paste the full report.
Models
Use the cheapest model that fits each role. map.json models holds the names:
- Claude Code: subagent tool with
model: "haiku"(map) andmodel: "sonnet"(review). - Codex: spawn subagents with the configured models (defaults
gpt-6-lunafor map,gpt-6-solat low effort for review). - No subagents available: do the step yourself, keeping reviewer.md's output contract.
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.

