agentleFS
thunder-idthunder-id/thunderid/AGENTS.md

thunderid

AGENTS.md588 starsChanged 7 months agoApache-2.0View on GitHub

ThunderID is a lightweight, open-source IAM stack: a Go backend (backend/) and React frontend (frontend/) in a monorepo. It provides authentication and authorization via OAuth2/OIDC, flexible orchestration flows, and individual auth mechanisms (password, passwordless, social login). Load only the guidance the task needs: The .agent/skills/ entries above are internal guidance for developing ThunderID. Consumer-facing setup and framework-integration skills (setup-thunderid, integrate-*) live in the separate ThunderID Skills repository (installable via /plugin marketplace add thunder-id/skills) and are not used when working in…

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

  • In this repository5 other files it gives its agents.

The file

Show its rules and text

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

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

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

    Do not search mirror worktrees under .claude/worktrees/ (they duplicate the repo and double your results).

    line 29
  2. Distinctive:

    Inner loop: run the smallest relevant checks for the area you touched.

    line 33
  3. Very specific:

    Always use ThunderID (or the appropriate template placeholder for the file type).

    line 41
  4. Distinctive:

    Keep changes minimal and focused on the task requested.

    line 54
  5. Distinctive:

    Do not add comments, docstrings, or type annotations to code you did not change.

    line 55
  6. Distinctive:

    Prefer editing existing files over creating new ones.

    line 56
  7. Distinctive:

    Do not add new dependencies or modify CI/CD pipelines, GitHub Actions, or Makefiles without explicit approval.

    line 57
  8. Distinctive:

    Do not over-engineer. No premature abstractions, no feature flags, no backwards-compatibility shims.

    line 58
  9. Very specific:

    Delete dead code cleanly. No // removed or // deprecated placeholder comments.

    line 59
  10. Distinctive:

    Do not create fallback tests with mock/hardcoded data when original tests fail.

    line 60
  11. Distinctive:

    Write tests for new features and bug fixes (target 80%+ coverage).

    line 61
  12. Distinctive:

    Add error handling and logging only where failures are expected and actionable — not for scenarios that cannot happen, and not everywhere.

    line 62
  13. Very specific:

    Do not use em dashes (—) or double hyphens (--) in copy or UI strings (e.g.

    line 63
  14. Very specific:

    Use short imperative sentences without conventional commit prefixes (no feat:, fix:, etc.).

    line 70

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

Project Overview

ThunderID is a lightweight, open-source IAM stack: a Go backend (backend/) and React frontend (frontend/) in a monorepo. It provides authentication and authorization via OAuth2/OIDC, flexible orchestration flows, and individual auth mechanisms (password, passwordless, social login).

  • ARCHITECTURE.md — read only for cross-cutting changes
  • Build and run: Makefile and README.md
  • Documentation at docs/content

Where to Look Next

Load only the guidance the task needs:

Working on…Read
Backend Go codebackend/AGENTS.md
Frontend React codefrontend/AGENTS.md
Documentationdocs/AGENTS.md
A ThunderID client SDK or integration package.agent/skills/sdk-development/SKILL.md
Database schema, queries, or stores.agent/skills/db/SKILL.md
Browser automation / Console UI verification.agent/skills/console/SKILL.md
Resolving a pnpm/npm security advisory.agent/skills/fix-npm-vulnerability/SKILL.md
Auditing or pruning existing pnpm overrides.agent/skills/prune-npm-overrides/SKILL.md

The .agent/skills/ entries above are internal guidance for developing ThunderID. Consumer-facing setup and framework-integration skills (setup-thunderid, integrate-*) live in the separate ThunderID Skills repository (installable via /plugin marketplace add thunder-id/skills) and are not used when working in this repo.

Search Hygiene

  • rg honors .gitignore, which already excludes build outputs, node_modules, .claude/, /coverage, tests/e2e/distribution/, .turbo, and generated API specs — don't search them.
  • Do not search mirror worktrees under .claude/worktrees/ (they duplicate the repo and double your results).

Validation Ladder

  • Inner loop: run the smallest relevant checks for the area you touched. The scoped AGENTS files say which tests to run.
  • Pre-PR gate: make pr_checks — the authoritative gate (verify_mocks → lint → format_check → tool lint and tests → unit/frontend/integration tests → builds).
  • The CLI e2e suite (make tools_test_cli_e2e) is not part of that gate: it downloads a real release and boots a server. CI runs it in pr-builder.yml, behind the trigger-pr-builder label, on every pull request.
  • Per-tool tasks are namespaced tools_* (for example make tools_lint_cli, make tools_test_i18n_extractor); tools_build, tools_test and tools_lint run every tool.
  • Note: make test is backend-only (unit + integration), not full-repo validation.

Product Name Rules

  • Always use ThunderID (or the appropriate template placeholder for the file type). Never use the bare word thunder, Thunder, or THUNDER as a short form of the product name.
  • PRs that introduce bare thunder/Thunder/THUNDER (not part of thunderid, ThunderID, or THUNDERID) must not be merged until corrected.
  • Exceptions: import paths/package names (e.g., @thunderid/...) and code identifiers where thunder is a structural prefix immediately followed by id in any casing are allowed.

Product Positioning

  • Canonical category descriptor (prose): open-source IAM stack. Use it wherever the product is defined in prose (READMEs, docs, Helm charts). Do not reintroduce "IAM engine/platform/server", "identity management suite/system/product/platform/service", or "Identity Provider" as the product category.
  • Audience triplet: humans, AI agents, and machines, in that order. Do not use "workloads" or "resources".
  • The four product pillars, in order: Agent-native Identity, Post-quantum-safe by Design, Decentralized Identity, Lightweight Runtime with GitOps Support. Reuse these names (match each surface's casing convention).
  • Exception: the docs marketing tagline "Auth for Modern Apps and AI Agents" (docs/docusaurus.product.config.ts) is a deliberate slogan, not the prose category descriptor; leave it as-is.

General Rules

  • Keep changes minimal and focused on the task requested. Do not refactor, "improve", or clean up surrounding code.
  • Do not add comments, docstrings, or type annotations to code you did not change.
  • Prefer editing existing files over creating new ones.
  • Do not add new dependencies or modify CI/CD pipelines, GitHub Actions, or Makefiles without explicit approval.
  • Do not over-engineer. No premature abstractions, no feature flags, no backwards-compatibility shims.
  • Delete dead code cleanly. No // removed or // deprecated placeholder comments. No renaming unused variables to _ prefixed names — remove them entirely unless required by an interface, callback, or framework signature.
  • Do not create fallback tests with mock/hardcoded data when original tests fail. Fix the actual failing tests.
  • Write tests for new features and bug fixes (target 80%+ coverage).
  • Add error handling and logging only where failures are expected and actionable — not for scenarios that cannot happen, and not everywhere.
  • Do not use em dashes (—) or double hyphens (--) in copy or UI strings (e.g. i18n locale files). Prefer a comma, period, or rephrasing instead.

Git and PR Conventions

  • Adhere to .github/pull_request_template.md.

Commit Messages

  • Use short imperative sentences without conventional commit prefixes (no feat:, fix:, etc.).
  • Reference the related issue or pull request when applicable (e.g., Refs #123 or Fixes #123).

One Commit Per Pull Request

  • Each PR must have a single commit. Never leave intermediate or fixup commits in the PR.

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.