agentleFS
saizulsaizul/nodejs-backend-skills/AGENTS.md

nodejs-backend-skills

AGENTS.md0 starsChanged 3 days agoMITView on GitHub

Guidance for Codex CLI and other coding agents that use or work on this repository. The skills live in skills/<name>/SKILL.md and follow the Agent Skills format. Codex discovers them when they are copied to ~/.agents/skills/ or .agents/skills/ (see README "Install"). If you are reading this file inside the repository instead: 2. Read that SKILL.md completely and follow its Workflow section in order. 3. Paths such as scripts/x.py, references/y.md and assets/z.ts are relative to the skill folder. ${CLAUDE_SKILL_DIR} in the text…

  • Reads credentials
  • Installs packages

The file

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

6 rules. About 1 is common, 0 are distinctive, and 5 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Read that SKILL.md completely and follow its Workflow section in order.

    line 24
  2. Very specific:

    Read files in references/ only when a workflow step points to them.

    line 27
  3. Very specific:

    Never print, paste or commit secrets: .env contents, tokens, passwords, private keys, connection strings with passwords.

    line 36
  4. Common:

    When a secret is found in code, logs, images or git history, tell the user to rotate it.

    line 38
  5. Very specific:

    Every script needs tests in tests/test_<skill_with_underscores>.py with fixtures in tests/fixtures/<skill>/ (a bad project and a clean one …

    line 57
  6. Very specific:

    Keep each SKILL.md under 400 lines.

    line 60

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

AGENTS.md

Guidance for Codex CLI and other coding agents that use or work on this repository.

Using the skills

The skills live in skills/<name>/SKILL.md and follow the Agent Skills format. Codex discovers them when they are copied to ~/.agents/skills/ or .agents/skills/ (see README "Install"). If you are reading this file inside the repository instead:

  1. Pick the skill whose description matches the user's request:

    Request is aboutSkill
    security review, hardening, JWT, cookies, injection, helmet, rate limitsnode-security-review
    package.json, lockfiles, npm scripts, npm audit results, supply chainpackage-json-audit
    hanging requests, try/catch, async errors, problem+json, process handlerserror-handling-patterns
    logging, pino, request ids, OpenTelemetry, tokens in logslogging-and-tracing
    .env, .env.example, process.env, zod config, secrets in configenv-config
    slow endpoints, load tests, autocannon, profiling, event loop lagapi-performance
    queues, BullMQ, retries, idempotency, cron/schedules, workersbackground-jobs
    Docker, PM2, systemd, health checks, graceful shutdown, deploy 502snode-deploy
  2. Read that SKILL.md completely and follow its Workflow section in order.
  3. Paths such as scripts/x.py, references/y.md and assets/z.ts are relative to the skill folder. ${CLAUDE_SKILL_DIR} in the text means that folder; Codex does not expand it.
  4. Read files in references/ only when a workflow step points to them.

Safety rules (apply to every skill)

  • The scripts are read-only, offline and never execute the user's code. Commands that change things (npm audit fix, npm install, docker build, load tests, deploys) are shown to the user first and run only with their approval.
  • Load tests (autocannon) only against servers the user owns and names; never production without explicit approval.
  • Never print, paste or commit secrets: .env contents, tokens, passwords, private keys, connection strings with passwords. The scripts hide values; keep it that way in summaries.
  • When a secret is found in code, logs, images or git history, tell the user to rotate it; moving or deleting it is not enough.
  • Propose code changes as diffs and wait for confirmation before editing.

Working on this repository

python -m venv .venv && . .venv/bin/activate
pip install -r requirements-dev.txt
python tools/validate_skills.py   # frontmatter, sections, links, assets, marketplace listing
ruff check . && ruff format --check .
pytest
  • Scripts: Python 3.8+ standard library only, #!/usr/bin/env python3, argparse with --help, --json where output is structured, exit 0/1/2 (ok / findings / error).
  • Scripts stay standalone (one file each, no shared module) so a single skill folder can be copied on its own. The JS/TS scanners share the same small helper block (comment stripping, file walking, reporting); keep copies in sync when you change it.
  • Every script needs tests in tests/test_<skill_with_underscores>.py with fixtures in tests/fixtures/<skill>/ (a bad project and a clean one at minimum). Use example.com and obviously fake secrets that secret scanners do not match.
  • Keep each SKILL.md under 400 lines; move detail to references/.
  • A new skill must be added to .claude-plugin/marketplace.json (plugins[0].skills), the README table, the table above and CHANGELOG.md. The validator enforces the manifest.

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.