agentleFS
atomicstrataatomicstrata/llm-wiki-compiler/AGENTS.md

llm-wiki-compiler

AGENTS.md2.2k starsChanged 2 months agoMITView on GitHub

A knowledge compiler CLI. Raw sources in, interlinked wiki out. Before committing any work, and before considering any task complete, you must:

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the atomicstrata/llm-wiki-compiler repository that our weekly crawl found: only 4 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • 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 repository4 other files it gives its agents.

The file

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

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    test files must be smaller than 400 lines excluding comments.

    line 11
  2. Distinctive:

    Avoid Magic Numbers: Replace hard-code values with named constants to give them meaning.

    line 19
  3. Distinctive:

    Use Descriptive Booleans: Boolean names should state a condition, not just its value.

    line 20
  4. Distinctive:

    Keep Code DRY: Duplicate code means duplicate bugs.

    line 21
  5. Distinctive:

    Avoid Deep Nesting: Flatten your code flow to improve clarity and reduce cognitive load.

    line 22
  6. Distinctive:

    Write clear comments for complex logic

    line 30
  7. Distinctive:

    Document public APIs and functions

    line 31
  8. Distinctive:

    Use JSDoc comments for functions

    line 32
  9. Distinctive:

    Keep comments up-to-date with code changes

    line 33
  10. Distinctive:

    Document any non-obvious behavior

    line 34
  11. Distinctive:

    Before committing any work, and before considering any task complete, you must:

    line 38

≈ “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.

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

llmwiki

A knowledge compiler CLI. Raw sources in, interlinked wiki out.

Development Guidelines

Code Style & Standards

  • Code files (TypeScript, Python, JavaScript, shell, SQL) must be smaller than 400 lines excluding comments. Once 400 is exceeded, initiate a refactor. Markdown and other prose/config files (.md, .mdx, .yaml, .json, .toml) are exempt — long planning documents, roadmaps, and reference catalogs are allowed to grow as substance requires.
  • Functions must be smaller than 40 lines excluding comments and the catch/finally blocks of try/catch sections. If a function exceeds that, refactor it.
  • test files must be smaller than 400 lines excluding comments. Once 400 is exceeded, split the tests into multiple files.
  • tests must be smaller than 40 lines excluding comments and the catch/finally blocks of try/catch sections. If a test exceeds that, refactor it, or separate it into multiple tests.

clean code rules

  • Meaningful Names: Name variables and functions to reveal their purpose, not just their value.
  • One Function, One Responsibility: Functions should do one thing.
  • Avoid Magic Numbers: Replace hard-code values with named constants to give them meaning.
  • Use Descriptive Booleans: Boolean names should state a condition, not just its value.
  • Keep Code DRY: Duplicate code means duplicate bugs. Try and reuse logic where it makes sense.
  • Avoid Deep Nesting: Flatten your code flow to improve clarity and reduce cognitive load.
  • Comment Why, Not What: Explain the intention behind your code, not the obvious mechanics.
  • Limit Function Arguments: Too many parameters confuse. Group related data into objects.
  • Code Should Be Self-Explanatory: Well-written code needs fewer comments because it reads like a story.

Comments and Documentation

  • include a substantial JSDoc comment at the top of each file. For python files, use google style docstrings
  • Write clear comments for complex logic
  • Document public APIs and functions
  • Use JSDoc comments for functions
  • Keep comments up-to-date with code changes
  • Document any non-obvious behavior

Pre-Commit Checks

Before committing any work, and before considering any task complete, you must:

  1. npx tsc --noEmit — type-check passes
  2. npm run build — build succeeds
  3. npm test — all tests pass
  4. fallow — run the fallow codebase health analyzer. Fix all issues it reports (dead code, duplication, complexity). Use fallow fix --dry-run to preview auto-fixes, then fallow fix --yes to apply. Fix any remaining issues manually. Do not commit until fallow reports no issues.

General Rules

  • First think through the problem, read the codebase for relevant files.
  • Make every task and code change you do as simple as possible. We want to avoid making any massive or complex changes. Every change should impact as little code as possible. Everything is about simplicity.
  • Never speculate about code you have not opened. If the user references a specific file, you MUST read the file before answering. Make sure to investigate and read relevant files BEFORE answering questions about the codebase. Never make any claims about code before investigating unless you are certain of the correct answer - give grounded and hallucination-free answers.

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.