web-of-flaws / guides
AGENTS.md8 starsChanged 3 months agoMITView on GitHub
This directory contains the source Markdown for the security-rule catalog. Category README.md files are indexes; every rule is exactly one Markdown file. - Start every rule with YAML frontmatter. Keep its stable WOF-<FAMILY>-<NUMBER> ID; never reuse an ID for a different flaw. - Use one of vulnerability, weakness, or hardening-gap for kind. Treat severity and exploitability as rule-level defaults, not a verdict for every candidate match. - Declare CWE and OWASP mappings under standards, then include canonical supporting URLs under…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- catalog/AGENTS.mdAGENTS.md
- .github/actions/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/scripts/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 1 is common, 3 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Very specific: line 10
Start every rule with YAML frontmatter.
- Very specific: line 12
Use one of vulnerability, weakness, or hardening-gap for kind.
- Very specific: line 18
Keep the required heading order mentioned in .markdownlint-cli2.jsonc.
- Distinctive: line 19
Use authoritative, allowlisted reference domains only.
- Distinctive: line 21
Update the nearest category index for a new guide or changed title.
- Common: line 23
When you add a code example or snippet, check its syntax and correctness, make code self-explanatory, and avoid including secrets or …
- Distinctive: line 25
Always ensure that a guide is easy to understand and follow by human readers.
- Very specific: line 41
Use python3 scripts/check.py --check guides, --check catalog, or --check standards only when the change is deliberately limited to that …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Guide Instructions
Scope
This directory contains the source Markdown for the security-rule catalog. Category README.md
files are indexes; every rule is exactly one Markdown file.
Rule Contract
- Start every rule with YAML frontmatter. Keep its stable
WOF-<FAMILY>-<NUMBER>ID; never reuse an ID for a different flaw. - Use one of
vulnerability,weakness, orhardening-gapforkind. Treat severity and exploitability as rule-level defaults, not a verdict for every candidate match. - Declare CWE and OWASP mappings under
standards, then include canonical supporting URLs under## References. - A
dataflowrule declaressourcesandsinks, neverindicators. Asemantic-patternrule declaresindicators, neversourcesorsinks. - Keep the required heading order mentioned in
.markdownlint-cli2.jsonc. - Use authoritative, allowlisted reference domains only. Add an allowlist entry only when the source is authoritative and its scope and purpose are clear.
- Update the nearest category index for a new guide or changed title. Notes are explanatory content, not rules: do not give them rule frontmatter or add them to the generated catalog.
- When you add a code example or snippet, check its syntax and correctness, make code self-explanatory, and avoid including secrets or sensitive data. Use a language-specific fenced code block with the correct language tag.
- Never add code blocks with an example that can be executed as a real attack as-is. If you need to demonstrate an exploit, use a safe, non-exploitable example or a mockup. On the other hand, never invent a vulnerability or weakness that does not exist in real-world software and make code examples close to real-world scenarios.
- Always ensure that a guide is easy to understand and follow by human readers. Use clear and concise language, and provide context for why the rule is important and how it can be applied in practice.
- There should be a clear separation between guides, never duplicate content across guides. If you find that a guide is too long or complex, consider breaking it into multiple guides with clear relationships and references. If you are unsure about the best way to structure a guide, report it directly and don't make assumptions about the best way to structure it
Generated Data
Guides are the source of truth. Never edit catalog/rules.json manually. After changing guide
metadata, run python3 scripts/generate_catalog.py. After changing guide groups, run
python3 scripts/sync_guide_labels.py.
Required Checks
markdownlint-cli2
python3 scripts/check.pyUse python3 scripts/check.py --check guides, --check catalog, or --check standards only when
the change is deliberately limited to that invariant. Run the full command for a normal guide change.
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.

