schemas-js
AGENTS.md3 starsChanged 58 days agoApache-2.0View on GitHub
The majority of code in this repo is generated from API specs. Whenever a change is needed to a generated file, the actual fix should be made upstream in the elastic-client-generator-js repo and then codegen should be rerun. The repo is very likely available in an adjacent directory to this repo in most dev environments. Always check if ../elastic-client-generator-js exists and make edits there if it's available, and the changes don't clobber other in-progress work. Otherwise, respond with instructions for…
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
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 12
Avoid running them if you can provide a more targeted command that validates your exact changes, by e.g.
- Very specific: line 21
Always run builds/typechecks with a timeout (e.g.
- Distinctive: line 24
If a build/typecheck hangs or is aborted, don't retry the same full-repo command.
- Distinctive: line 30
If a full build/typecheck is genuinely required and still fails/OOMs, report that and move on rather than repeating it.
≈ “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
Most code is generated
The majority of code in this repo is generated from API specs. Whenever a change is needed to a generated file, the actual fix should be made upstream in the elastic-client-generator-js repo and then codegen should be rerun. The repo is very likely available in an adjacent directory to this repo in most dev environments. Always check if ../elastic-client-generator-js exists and make edits there if it's available, and the changes don't clobber other in-progress work. Otherwise, respond with instructions for what changes must be made there.
Slow commands
The codebase is quite large, and almost entirely generated, from specs for over 1200 APIs. Commands like the following will often take several minutes to complete:
npm run buildnpm testtsc --noEmit
Avoid running them if you can provide a more targeted command that validates your exact changes, by e.g. providing paths or globs to files that need testing.
If running the full command is unavoidable, do not run with timeout [seconds] [command] or equivalent. It will almost always run longer than your first guess at a time estimate. Rerunning then takes more time and resources than if you'd not applied a timeout at all, and thus should be avoided.
Avoiding stuck/OOM builds
npm run buildand full-projecttsctype-checks are heavy (large generatedsrc/tree). They already run with--max-old-space-size=8192; without that flag, plaintsc --noEmit -p tsconfig.jsonon this repo can OOM.- Always run builds/typechecks with a timeout (e.g. the
timeoutparam onbashtool calls, ortimeout 300 npm run build). Don't run them unbounded and wait indefinitely. - If a build/typecheck hangs or is aborted, don't retry the same full-repo
command. Prefer faster, narrower checks instead:
npm run test:lint(eslint, fast) andnpm run test:unit(vitest, fast) catch most issues without a full build.- Typecheck a single changed file/module instead of the whole project when possible.
- If a full build/typecheck is genuinely required and still fails/OOMs, report that and move on rather than repeating it.
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.

