add-portal-admin-api-query

add-portal-admin-api-query is a skill for Claude Code from authgear/authgear-server. It costs 22 tokens per session (186 once invoked), scanned A, original, Apache-2.0.

A coding workflow for adding a Portal Admin GraphQL query under the project’s admin API query directory. GraphQL is an API format where a request specifies the fields it wants returned.

In plain words
What is it for?
Use it to read the admin schema, create a query file, include pagination details when needed, and regenerate the project’s types.
Why use it?
It ensures new queries match the existing schema and project conventions instead of using fields that the API does not define.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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,028 stars · on GitHub · authgear.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/authgear/authgear-server/add-portal-admin-api-query
Any agent
npx skills add authgear/authgear-server --skill add-portal-admin-api-query
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 add-portal-admin-api-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/authgear/authgear-server/add-portal-admin-api-query.svg)](https://agentmods.dev/skills/authgear/authgear-server/add-portal-admin-api-query)
Your own site
<a href="https://agentmods.dev/skills/authgear/authgear-server/add-portal-admin-api-query"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/add-portal-admin-api-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00022 $0.00186
Opus 5 $0.00011 $0.00093
Sonnet 5 $0.00004 $0.00037
Haiku 4.5 $0.00002 $0.00019

Measured 6d ago against content hash 24fc0afa83dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

add-portal-admin-api-query 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 6d 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/add-portal-admin-api-query/SKILL.md · 21 lines

What it actually says

Follow this skill when adding a Portal Admin GraphQL query.

Workflow

  1. Read ./portal/src/graphql/adminapi/schema.graphql first.
  2. Create the .graphql file under ./portal/src/graphql/adminapi/query.
  3. Include cursor, pageInfo, and totalCount when the query supports pagination and the user did not ask to omit them.
  4. Query the fields of the entity itself, but avoid nested entities unless the user asked for them.
  5. Run cd ./portal && npm run gentype after adding the file.

Notes

  • Keep the operation name consistent with existing Portal GraphQL naming.
  • Do not invent schema fields; use only what exists in the schema file.
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. 6d ago First seen · 21 lines · 22 tokens per session scan A 24fc0afa83dc

Subscribe to this mod's changes

add-portal-admin-api-query is a skill published in the GitHub repository authgear/authgear-server (2,028 stars, last pushed yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 186 once invoked, about $0.0001 per session on Opus 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.