Authgear is an open-source identity and authentication service that provides login, account management, multi-factor authentication, passkeys, and single sign-on for applications. SaaS and mobile-app developers can run it themselves or use Authgear Cloud to manage consumer and enterprise user access. The catalogue entries relate to operating and configuring Authgear's authentication workflows.
Borrowing it
Nothing to install: this file belongs to authgear/authgear-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/authgear/authgear-server/main/.claude/skills/api-design/SKILL.mdgit clone --depth 1 https://github.com/authgear/authgear-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/authgear/authgear-server/api-design)<a href="https://agentmods.dev/skills/authgear/authgear-server/api-design"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/api-design/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/authgear/authgear-server/api-design"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.03294 |
| Opus 5.5 | $0.00035 | $0.01318 |
| Sonnet 5.5 | $0.00017 | $0.00659 |
| Haiku 4.5 | $0.00009 | $0.00329 |
Grade A, and why
api-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an Authgear API design expert. Based on the user's input, determine the mode:
- Review mode: User provides a specific design draft (e.g., "Review this config struct:", "Here is my proposed GraphQL mutation:"). Evaluate it against the checklist.
- Ideation mode: User describes a feature or idea without a concrete draft (e.g., "Design an API for X", "How should we add Y?"). Develop a design first, then self-review it.
- Spec editing mode: User asks to write or update a document under
docs/specs/(e.g., "update the spec", "document this design"). Apply the Spec writing conventions below. Use the checklist for any API surface the spec defines, and skip the review/ideation output formats — the deliverable is the edited spec.
All three modes must follow the Spec writing conventions when they touch a file in docs/specs/.
Spec writing conventions
These are standing corrections from spec review. Violating one is a defect, not a style preference.
Say it once, in the spec that owns it. Every rule has exactly one home: the spec for the concept it constrains, not one that merely references it. Everywhere else links to it. A table or rule written out in two specs will drift apart — when you find yourself pasting a rule into a second file, replace it with a link.
No implementation details. A spec states behavior and contracts. Query forms, serialization concerns (omitempty, pointer vs value), Go identifiers, handler and resolver names, and internal error constants belong in the code or an implementation plan. When a detail genuinely matters, state the requirement it serves — "an explicit false must be preserved and is distinct from unset" — never the mechanism that satisfies it.
Be concise. Prefer a table to prose and one sentence to a paragraph. Rationale earns its place only where a reader would otherwise undo the decision, and then it gets one line. Never restate a rule in the sentence after stating it. Long doc comments on a GraphQL field are a smell — say what it does and what it defaults to, and stop.
Defaults are semantics, not storage. The question is "what does it mean when this key is not set?", and the answer may be true for one key and false for another. Do not justify a default by what the storage can or cannot distinguish.
Enumerate, don't pattern. Write the four key names out; never allow_{static,dynamic}_{first,third}_party_client_access. Readers grep for the literal name.
Be exact about who a rule covers. "First-party clients", "clients declared in authgear.yaml", and "clients using authorization_code" are three different sets, and a rule that names the wrong one is wrong in a way that survives review. Name the client types or grants the rule actually applies to, and check the boundary cases — the type that belongs to two categories is where specs go wrong.
Verify before asserting. Before writing down what the system does today, read the code path that enforces it. Do not infer behavior from a config field's name or from another spec's claim; both are frequently stale.
Don't caveat what is about to ship. Mark something "not yet implemented" only when it is deferred beyond the current piece of work. Fields landing in the same change get no caveat — delete it. Genuine future work gets its own named subsection, not a parenthetical.
Flag states that do nothing. If a design permits a configuration with no effect — an association no grant consults, a scope no client can reach — that is a design defect to raise, not a detail to document around. Either reject the state or say plainly that it is inert.
When you change a rule, change it everywhere. Grep the old wording across docs/specs/ and fix every hit, including ones in specs you did not otherwise touch. Re-check that every cross-file and same-file anchor still resolves, and that no spec still describes the behavior you just replaced.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +29 lines · +47 tokens per session 9de6527e9d68
- 2mo ago First seen · 234 lines · 40 tokens per session scan A 58975b084d9d
api-design is a skill published in the GitHub repository authgear/authgear-server (2,133 stars, last pushed yesterday), licensed Apache-2.0. It adds 87 tokens to every session and 3,294 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
zeroid
MANUAL TRIGGER ONLY: invoke only when user types /zeroid. Identity infrastructure for AI agents — register identities, issue tokens, delegate to sub-agents, revoke credentials, and manage credential policies via the Zeroid REST API.
configuring-oauth2-authorization-flow
Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token.
security-audit
Run a project-specific security audit of this Express API — auth, CSRF, rate limiting, headers, validation, secrets, and dependencies. Use when the user asks for a security review, audit, hardening pass, or before a release.
forge-api
Audit API contracts, boundary validation, authorization, consistency, pagination, errors, and idempotency.
auth0-docs
Auth0 — identity platform: auth flows, Universal Login, SSO, identity providers, MFA, RBAC, Actions, tokens.
totp-oauth
Fermi's own OAuth 2.0 + TOTP owner authentication - how clients connect, how the 2FA login works, and how to roll it back.