Agent Skills
› authgear/authgear-server
› add-portal-admin-api-query
add-portal-admin-api-query
GitHub指导在Portal Admin中新增GraphQL查询的标准流程,包括读取Schema、创建文件、处理分页及生成类型。
Trigger Scenarios
需要添加Portal Admin GraphQL查询
修改或扩展Admin API查询接口
Install
npx skills add authgear/authgear-server --skill add-portal-admin-api-query -g -y
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
- Read
./portal/src/graphql/adminapi/schema.graphqlfirst. - Create the
.graphqlfile under./portal/src/graphql/adminapi/query. - Include
cursor,pageInfo, andtotalCountwhen the query supports pagination and the user did not ask to omit them. - Query the fields of the entity itself, but avoid nested entities unless the user asked for them.
- Run
cd ./portal && npm run gentypeafter 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


