agentleFS
arcjetarcjet/arcjet-js/AGENTS.md

arcjet-js

AGENTS.md685 starsChanged 3 months agoApache-2.0View on GitHub

Do not add application examples under examples/ in this repository. Examples were removed from this SDK in #6217. New and remaining examples belong in arcjet/examples. The current migration PR is arcjet/examples#193 — add Guard / adapter demos there (or a follow-up on that repo), not here. That includes: Follow arcjet/examples CONTRIBUTING.md and its canonical example pattern (package.json metadata, templated README, Dockerfile, compose.yaml, devcontainer, LICENSE). Pin Arcjet packages to published versions. Standalone AI examples that need a model key stay out…

  • 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Do not add application examples under examples/ in this repository.

    line 5
  2. Very specific:

    Follow arcjet/examples CONTRIBUTING.md and its canonical example pattern (package.json metadata, templated README, Dockerfile, …

    line 19
  3. Very specific:

    Do not restore .github/workflows/reusable-examples.yml or re-add an examples CI job in this repo for new work.

    line 24

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

Agent guidance

Examples live in arcjet/examples

Do not add application examples under examples/ in this repository.

Examples were removed from this SDK in #6217. New and remaining examples belong in arcjet/examples. The current migration PR is arcjet/examples#193 — add Guard / adapter demos there (or a follow-up on that repo), not here.

That includes:

  • Framework apps (nextjs-*, express-*, …)
  • Guard integration demos (nextjs-ai-agent, eve-agent, mastra-agent)

Follow arcjet/examples CONTRIBUTING.md and its canonical example pattern (package.json metadata, templated README, Dockerfile, compose.yaml, devcontainer, LICENSE). Pin Arcjet packages to published versions. Standalone AI examples that need a model key stay out of the default compose/CI matrix.

Do not restore .github/workflows/reusable-examples.yml or re-add an examples CI job in this repo for new work.

README and skill links should point at https://github.com/arcjet/examples/tree/main/examples/<name>, not at a path under this repository.

Agent Skills

JS/TS Agent Skills ship in npm packages via TanStack Intent, not in arcjet/skills. Keep SKILL.md files beside their source docs (arcjet-skills/docs/, arcjet-guard/README.md). Validate with intent validate. Conservative stale checks fail a PR when a declared source changes and the skill does not. Consumers allowlist packages and load one skill per task; editor hooks are not a security boundary.

Integration work: review before a PR

For Guard vendor integrations and other integration work, keep going on a branch and push it. Do not open a pull request until David confirms after reviewing the code. The final report must include the exact branch name, commit SHA, and a concise diff summary.

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.