authgear-server: Skill for Claude Code

.claude/skills/api-design/SKILL.md

api-design is a skill for Claude Code from authgear/authgear-server. It costs 87 tokens per session (3,294 once invoked), scanned A, original, Apache-2.0.

An API design and review assistant for Authgear, a software platform for authentication. An API is the defined way that software exposes data or actions to other software.

In plain words
What is it for?
Use it to design or review Authgear HTTP and GraphQL APIs, configuration structures, and authentication-related interfaces.
Why use it?
It gives proposed or existing API designs a consistent review against the project's documented conventions.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is authgear/authgear-server's own configuration. It tells Claude Code how to work on authgear-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything authgear-server configures →

About the project

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.

authgear/authgear-server · 2,133 stars · on GitHub · authgear.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/authgear/authgear-server/main/.claude/skills/api-design/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/authgear/authgear-server

Made for: Claude Code.

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

agentmods badge for api-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/authgear/authgear-server/api-design/github.svg)](https://agentmods.dev/skills/authgear/authgear-server/api-design)
Your own site
<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.

agentmods 80×15 button for api-design

Your own site · 80×15
<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>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 9de6527e9d68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/api-design/SKILL.md · 263 lines

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.


Read the full file on GitHub · 263 lines

Changes

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.

  1. 1mo ago Changed · +29 lines · +47 tokens per session 9de6527e9d68
  2. 2mo ago First seen · 234 lines · 40 tokens per session scan A 58975b084d9d

Subscribe to this mod's changes

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.