Agent Skills
› authgear/authgear-server
› add-portal-admin-api-mutation
add-portal-admin-api-mutation
GitHub指导在 Portal Admin 中添加 GraphQL mutation,包括读取 schema、创建文件、查询字段及运行类型生成脚本。
Trigger Scenarios
需要添加新的 Portal Admin GraphQL mutation
修改 portal 目录下的 graphql 文件
Install
npx skills add authgear/authgear-server --skill add-portal-admin-api-mutation -g -y
SKILL.md
Frontmatter
{
"name": "add-portal-admin-api-mutation",
"description": "Add a Portal Admin GraphQL mutation under portal\/src\/graphql\/adminapi\/mutations.",
"argument-hint": "<mutation name>"
}
Follow this skill when adding a Portal Admin GraphQL mutation.
Workflow
- Read
./portal/src/graphql/adminapi/schema.graphqlfirst. - Create the
.graphqlfile under./portal/src/graphql/adminapi/mutations. - Query all fields on the top-level entity unless the user explicitly says otherwise.
- 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


