authgear-server: Skill for Claude Code

.claude/skills/new-siteadmin-api/SKILL.md

new-siteadmin-api is a skill for Claude Code from authgear/authgear-server. It costs 43 tokens per session (2,263 once invoked), scanned A, original, Apache-2.0.

A staged workflow for adding a Site Admin API feature, from designing its OpenAPI description to generating models and connecting the service handler. OpenAPI is a standard format for describing HTTP APIs.

In plain words
What is it for?
Use it when adding a new endpoint or replacing a placeholder with real data in the Site Admin service.
Why use it?
It keeps the API design, generated code, implementation, and user approvals in a defined order instead of mixing them together.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go generate ./pkg/siteadmin/....

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/new-siteadmin-api/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 new-siteadmin-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/authgear/authgear-server/new-siteadmin-api/github.svg)](https://agentmods.dev/skills/authgear/authgear-server/new-siteadmin-api)
Your own site
<a href="https://agentmods.dev/skills/authgear/authgear-server/new-siteadmin-api"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/new-siteadmin-api/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 new-siteadmin-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/authgear/authgear-server/new-siteadmin-api"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/new-siteadmin-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,263 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.00043 $0.02263
Opus 5.5 $0.00017 $0.00905
Sonnet 5.5 $0.00009 $0.00453
Haiku 4.5 $0.00004 $0.00226

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

Security

Grade A, and why

new-siteadmin-api 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 2mo 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/new-siteadmin-api/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a new Site Admin API feature: $ARGUMENTS

Follow the stages below in order. Confirm with the user before moving from one stage to the next.


Stage 1: Design and confirm OpenAPI spec

Add the endpoint to docs/api/siteadmin-api.yaml:

  • Add the path under paths: with appropriate HTTP method(s)
  • Use $ref: "#/components/responses/BadRequest", Forbidden, NotFound for error responses
  • Add any new request/response schemas to components/schemas:
  • Follow existing conventions: snake_case fields, hyphenated paths, format: date for date strings

Stop here. Present the spec diff to the user and wait for confirmation before proceeding.


Stage 2: Generate models

make generate

Avoid external type imports: pkg/siteadmin/model/oapi-codegen.yaml maps format: date → string and format: email → string so that no github.com/oapi-codegen/runtime/types import is generated. If you add a new OpenAPI format that would otherwise pull in an external type, add a mapping to output-options.type-mapping in that file before regenerating.

Commit: "[Site Admin] Generate models for <feature>"


Stage 3: Create and wire the handler file

Create pkg/siteadmin/transport/handler_<name>.go. No dummy data — leave ServeHTTP as a stub that returns http.NotFound:

package transport

import "net/http"

func Configure<Name>Route(route httproute.Route) httproute.Route {
    return route.WithMethods("OPTIONS", "GET"). // always include "OPTIONS" for CORS preflight
        WithPathPattern("/api/v1/...")
}

type <Name>Handler struct {
    // Service dependencies added in Stage 5
}

type <Name>Params struct {
    // path and query params
}

func parse<Name>Params(r *http.Request) (<Name>Params, error) {
    // parse path params via httproute.GetParam(r, "paramName")
    // query params: use helpers from params.go (getIntParam, getDateParam, etc.)
    // POST body: decode JSON, validate with validation.NewSimpleSchema
}

func (h *<Name>Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    _, err := parse<Name>Params(r)
    if err != nil {
        writeError(w, r, err)
        return
    }
    http.NotFound(w, r)
}

Read the full file on GitHub · 232 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. 2mo ago First seen · 232 lines · 43 tokens per session scan A b9b2c1bce614

Subscribe to this mod's changes

new-siteadmin-api is a skill published in the GitHub repository authgear/authgear-server (2,133 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 2,263 once invoked, about $0.0002 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.

Related

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.

highflame-ai/zeroid · 51 tokens

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.

26zl/cybersec-toolkit · 44 tokens

auth0-docs

Auth0 — identity platform: auth flows, Universal Login, SSO, identity providers, MFA, RBAC, Actions, tokens.

pledgeandgrow/pledge-skills · 32 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.

abel30567/fermi-mcp · 38 tokens

keycloak-migration-doctor

Preflight a Keycloak export, import or migration on a Skycloak-managed cluster against the known blockers, and diagnose a job that already failed by reading the failure reason the API records but the dashboard notice does not show. Use when an export or import fails, a migration stalls, or before moving realm data in…

sky-cloak/skycloak-mcp · 72 tokens

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.

andycungkrinx91/konoha · 44 tokens