agentleFS
ElasticKnown publisherelastic/elastic-transport-js/AGENTS.md

elastic-transport-js

AGENTS.md8 starsChanged 11 months agoApache-2.0View on GitHub

Always use npm commands, not yarn, pnpm or any other third-party packaging tool. The entire test suite (npm test) must pass and exit cleanly before you commit code. All code in src/ and test/, and any scripts run by npm that are defined in package.json, must be runnable with equivalent results on Linux, MacOS and Windows. For example, running the following scripts using npm run: All markdown instructions authored for other agents must be as concise as possible. If a…

  • 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.

The file

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

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always use npm commands, not yarn, pnpm or any other third-party packaging tool.

    line 5
  2. Very specific:

    Run all tests: npm test

    line 8
  3. Very specific:

    Run just unit tests: npm run test:unit

    line 9
  4. Very specific:

    Run just the linter: npm run lint

    line 10
  5. Very specific:

    Run npm test (which will also rebuild all code changes first) to verify all tests pass

    line 29
  6. Very specific:

    All code in src/ and test/, and any scripts run by npm that are defined in package.json, must be runnable with equivalent results on Linux, …

    line 33
  7. Distinctive:

    All markdown instructions authored for other agents must be as concise as possible.

    line 45
  8. Very specific:

    If a specific action you learned to do better will be useful to other agents doing the same task in the future, but may not be needed for …

    line 47
  9. Distinctive:

    If you learned something that will be useful to any contributor to this project, update AGENTS.md.

    line 49

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

AGENTS.md

Setup commands

Always use npm commands, not yarn, pnpm or any other third-party packaging tool.

  • Install dependencies: npm install
  • Run all tests: npm test
  • Run just unit tests: npm run test:unit
  • Run just the linter: npm run lint
  • Fix linter issues: npm run lint:fix
  • Build TypeScript (outputs both ESM and CommonJS): npm run build

Testing

The entire test suite (npm test) must pass and exit cleanly before you commit code.

Project Structure

  • src/ - TypeScript source files
  • lib/ - Compiled CommonJS output
  • esm/ - Compiled ES Module output
  • test/unit/ - Unit tests
  • test/acceptance/ - Integration/acceptance tests

Development Workflow

  1. Make changes to src/**/*.ts files
  2. Run npm test (which will also rebuild all code changes first) to verify all tests pass

OS Compatibility

All code in src/ and test/, and any scripts run by npm that are defined in package.json, must be runnable with equivalent results on Linux, MacOS and Windows. For example, running the following scripts using npm run:

# BAD - Creates invalid JSON on Windows with single quotes
echo '{"type":"module"}' > file.json

# GOOD - Use Node.js for cross-platform JSON file creation
node -e "require('fs').writeFileSync('file.json', JSON.stringify({type:'module'}, null, 2))"

Adding new agent instructions

All markdown instructions authored for other agents must be as concise as possible.

If a specific action you learned to do better will be useful to other agents doing the same task in the future, but may not be needed for ALL agent-related tasks, create or update skills in .github/skills/.

If you learned something that will be useful to any contributor to this project, update AGENTS.md.

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.