Agent Skillsauthgear/authgear-server › add-portal-admin-api-query

add-portal-admin-api-query

GitHub

指导在 Portal Admin 中添加 GraphQL 查询的技能。包括读取现有 schema、创建查询文件、处理分页字段、遵循命名规范及运行代码生成脚本,确保新增查询符合项目规范。

.claude/skills/add-portal-admin-api-query/SKILL.md authgear/authgear-server

Trigger Scenarios

需要添加新的 Portal Admin GraphQL 查询 修改或扩展前端管理界面的数据获取逻辑

Install

npx skills add authgear/authgear-server --skill add-portal-admin-api-query -g -y
More Options

Non-standard path

npx skills add https://github.com/authgear/authgear-server/tree/main/.claude/skills/add-portal-admin-api-query -g -y

Use without installing

npx skills use authgear/authgear-server@add-portal-admin-api-query

指定 Agent (Claude Code)

npx skills add authgear/authgear-server --skill add-portal-admin-api-query -a claude-code -g -y

安装 repo 全部 skill

npx skills add authgear/authgear-server --all -g -y

预览 repo 内 skill

npx skills add authgear/authgear-server --list

SKILL.md

Frontmatter
{
    "name": "add-portal-admin-api-query",
    "description": "Add a Portal Admin GraphQL query under portal\/src\/graphql\/adminapi\/query.",
    "argument-hint": "<query name>"
}

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.

Version History

  • 2dd6d88 Current 2026-07-24 16:30

Same Skill Collection

.claude/skills/add-go-test/SKILL.md
.claude/skills/add-portal-admin-api-mutation/SKILL.md
.claude/skills/add-portal-screen/SKILL.md
.claude/skills/api-design/SKILL.md
.claude/skills/bootstrap-local-dev/SKILL.md
.claude/skills/dep-audit/SKILL.md
.claude/skills/generate-schemas-and-gentype/SKILL.md
.claude/skills/new-siteadmin-api/SKILL.md
.claude/skills/review-pr/SKILL.md
.claude/skills/update-deps/SKILL.md
.claude/skills/update-email-templates/SKILL.md
.claude/skills/update-feature-config/SKILL.md
.claude/skills/update-important-modules/SKILL.md
.claude/skills/update-portal-ui/SKILL.md
.claude/skills/update-vettedpositions/SKILL.md
.claude/skills/write-e2e-test/SKILL.md
.claude/skills/write-implementation-plan/SKILL.md
.claude/skills/update-go-version/SKILL.md
.claude/skills/portal-admin-api-graphql/SKILL.md

Metadata

Files
0
Version
7b873ba
Hash
24fc0afa
Indexed
2026-07-24 16:30

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-02 23:45
浙ICP备14020137号-1 $bản đồ khách truy cập$