agentleFS
arcjetarcjet/arcjet-js/AGENTS.md

arcjet-js

AGENTS.md704 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 code style.

    Of the AGENTS.md files we read, the 35,337 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, 0 are distinctive, and 4 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.

  • 4

    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
  4. Very specific:

    Read docs/README.md inside that installed package first, then read the relevant pages from its docs/ directory before changing Turborepo …

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

arcjet/skills is the canonical source for Arcjet Agent Skills. Change guidance there first, then bring it into this repo, where JS/TS skills ship in npm packages via TanStack Intent. 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.

<!-- BEGIN:turborepo-agent-rules -->

This is NOT the Turborepo you know

Turborepo configuration, task behavior, and CLI commands can vary between installed versions and may differ from your training data. Resolve the turbo package from this file's directory or relevant workspace; in monorepos, it may not be visible from the repository root. For example, run node -p "require.resolve('turbo/package.json')" from a workspace that depends on turbo.

Read docs/README.md inside that installed package first, then read the relevant pages from its docs/ directory before changing Turborepo configuration or commands. Heed deprecation notices. These bundled docs match the installed package version and are available without network access.

This block is written and re-added by turbo before repository-scoped commands when an AI agent is detected. In the Turborepo source repository, its template is defined in crates/turborepo-cli/src/cli/agent_guidance.rs. Removing the managed block while updates are enabled means a later qualifying invocation will add it again. Set "agentGuidance": false in the root turbo.json or turbo.jsonc to opt out; this does not remove an existing block. Keep the block committed with your work to avoid an uncommitted change on the next agent invocation.

<!-- END:turborepo-agent-rules -->

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.