📋 Generator Cheat Sheet

Quick reference for generator commands.


Nx Generators

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# List all generators
pnpm exec nx g --list
pnpm exec nx list @nx/js

# Get help
pnpm exec nx g @nx/js:library --help

# Dry run (preview)
pnpm exec nx g @nx/js:library my-lib --dry-run

# Generate library
pnpm exec nx g @nx/js:library my-lib --directory=libs/shared

# Generate component
pnpm exec nx g @nx/react:component Button --project=ui

# Generate hook
pnpm exec nx g @nx/react:hook useAuth --project=auth

Just Recipes

1
2
3
4
5
6
7
8
9
10
11
# Setup
just setup

# Scaffold with AI assistance
just ai-scaffold name=@nx/js:library

# List generators
just generator-list

# Create new generator
just generator-new my-gen --type=custom

Type Sync

1
2
3
4
5
6
7
8
9
# Full pipeline
just gen-types

# Individual steps
just gen-types-ts    # Supabase → TypeScript
just gen-types-py    # TypeScript → Python

# Validation
just check-types

Pattern Oracle

1
2
3
4
5
6
7
8
9
10
11
# Initialize
just temporal-ai-init

# Query patterns
just temporal-ai-query "payment service" 5

# View stats
just temporal-ai-stats

# Refresh from telemetry
just temporal-ai-refresh-metrics

Copier

1
2
3
4
5
6
7
8
# Create from template
copier copy gh:GodSpeedAI/SEA-template ./my-project

# Update existing
copier update ./my-project

# With answers file
copier copy --answers-file answers.yml ./templates ./output

Validation

1
2
3
4
5
6
7
# Full SEAâ„¢ validation
just ai-validate

# Individual checks
sea validate models/
calm validate
node scripts/spec-cross-check.js

Generator Types

Type Command
Domain just generator-new order --type=domain
Service just generator-new billing --type=service
Component just generator-new button --type=component
Adapter just generator-new postgres --type=adapter
Utility just generator-new logger --type=utility

template Variables

Variable Input Output
name my-service my-service
className my-service MyService
propertyName my-service myService
constantName my-service MY_SERVICE
fileName my-service my-service

Common Options

Option Description
--dry-run Preview without changes
--directory Output directory
--bundler Build tool (tsc, swc, vite)
--unitTestRunner Test runner (jest, vitest)
--style CSS solution