What problem does it solve?
GraphQL schema files and generated frontend types in authgear-server are checked into the repository, so editing them by hand leads to drift, inconsistency, and broken builds. This Skill enforces the correct regeneration workflow so generated artifacts always match their sources.
Core Features & Use Cases
- Ordered regeneration workflow: Runs
make export-schemas first, then cd portal && npm run gentype, ensuring portal types are generated from up-to-date schema files.
- Generated-file discipline: Prevents hand-editing of generated outputs such as
portal/src/graphql/adminapi/schema.graphql and *.generated.ts files.
- Commit hygiene and verification: Keeps generated outputs in the same commit as the source change and verifies affected packages with the narrowest relevant tests or typecheck.
- Use Case: After adding a new field to the Admin API GraphQL schema in Go, use this Skill to regenerate the schema file and portal TypeScript types, then run the relevant typecheck before committing everything together.
Quick Start
Regenerate the GraphQL schemas and portal generated types for my recent Admin API schema change and verify the affected packages.