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.
- backend/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
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
- Very specific: line 29
Do not search mirror worktrees under .claude/worktrees/ (they duplicate the repo and double your results).
- Distinctive: line 33
Inner loop: run the smallest relevant checks for the area you touched.
- Very specific: line 41
Always use ThunderID (or the appropriate template placeholder for the file type).
- Distinctive: line 54
Keep changes minimal and focused on the task requested.
- Distinctive: line 55
Do not add comments, docstrings, or type annotations to code you did not change.
- Distinctive: line 56
Prefer editing existing files over creating new ones.
- Distinctive: line 57
Do not add new dependencies or modify CI/CD pipelines, GitHub Actions, or Makefiles without explicit approval.
- Distinctive: line 58
Do not over-engineer. No premature abstractions, no feature flags, no backwards-compatibility shims.
- Very specific: line 59
Delete dead code cleanly. No // removed or // deprecated placeholder comments.
- Distinctive: line 60
Do not create fallback tests with mock/hardcoded data when original tests fail.
- Distinctive: line 61
Write tests for new features and bug fixes (target 80%+ coverage).
- Distinctive: line 62
Add error handling and logging only where failures are expected and actionable — not for scenarios that cannot happen, and not everywhere.
- Very specific: line 63
Do not use em dashes (—) or double hyphens (--) in copy or UI strings (e.g.
- Very specific: line 70
Use short imperative sentences without conventional commit prefixes (no feat:, fix:, etc.).
≈ “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
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 code | backend/AGENTS.md |
| Frontend React code | frontend/AGENTS.md |
| Documentation | docs/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
rghonors.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 inpr-builder.yml, behind thetrigger-pr-builderlabel, on every pull request. - Per-tool tasks are namespaced
tools_*(for examplemake tools_lint_cli,make tools_test_i18n_extractor);tools_build,tools_testandtools_lintrun every tool. - Note:
make testis 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 wordthunder,Thunder, orTHUNDERas a short form of the product name. - PRs that introduce bare
thunder/Thunder/THUNDER(not part ofthunderid,ThunderID, orTHUNDERID) must not be merged until corrected. - Exceptions: import paths/package names (e.g.,
@thunderid/...) and code identifiers wherethunderis a structural prefix immediately followed byidin 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
// removedor// deprecatedplaceholder 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 #123orFixes #123).
One Commit Per Pull Request
- Each PR must have a single commit. Never leave intermediate or fixup commits in the PR.
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.

