
Codegen
- 39 installs
- 80 repo stars
- Updated July 29, 2026
- cartridge-gg/controller
Regenerate GraphQL TypeScript types from the Cartridge API schema when queries or the schema change.
About
Regenerates GraphQL TypeScript types from the Cartridge API schema in the keychain package. A developer uses it after the API schema changes or GraphQL queries are added or modified.
- Regenerates GraphQL types from the Cartridge API schema
- Runs pnpm keychain codegen and verifies generated graphql.ts
Codegen by the numbers
- 39 all-time installs (skills.sh)
- Ranked #1,152 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Jul 30, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cartridge-gg/controller --skill codegenAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 39 |
|---|---|
| repo stars | ★ 80 |
| Last updated | July 29, 2026 |
| Repository | cartridge-gg/controller ↗ |
What it does
Regenerate GraphQL TypeScript types from the Cartridge API schema when queries or the schema change.
Files
GraphQL Codegen Skill
Regenerate GraphQL types from API schema.
Usage
Run when:
- API schema has changed
- GraphQL queries/mutations added or modified
- Type errors in API calls
Steps
1. Run pnpm --filter @cartridge/keychain codegen 2. Verify generated types in packages/keychain/src/utils/api/graphql.ts 3. Check for any TypeScript errors in files using the API 4. Run pnpm test to ensure tests still pass
Configuration
- Schema source: https://api.cartridge.gg/query
- Config:
packages/keychain/src/utils/api/codegen.yaml - Auto-runs during build process
Notes
- Codegen is also triggered automatically during
pnpm build - Generated files should not be manually edited
- Commit generated changes with schema updates