# generate

> Regenerates a specific code layer (schemas, services, routes, hooks, ui) or all layers, then runs the corresponding validation checks.

- Skill: `joshuashepherd/generate` (Agent Skill)
- Install (CLI): `npx skillmds add joshuashepherd/generate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/joshuashepherd/generate/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools, Dev Tooling
- Tags: Code Generation, Hooks, Pnpm, Routes, Schemas, Services, Ui
- Author: JoshuaShepherd (https://skillmd.com/u/joshuashepherd)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/joshuashepherd/generate

---


Regenerate code for the specified layer: $0

Valid arguments: schemas, services, routes, hooks, ui, all

Map to commands:
- schemas -> `pnpm generate:schemas`
- services -> `pnpm generate:services`
- routes -> `pnpm generate:routes`
- hooks -> `pnpm generate:hooks`
- ui -> `pnpm generate:ui`
- all -> run all five in order: schemas, services, routes, hooks, ui

After generation, run the corresponding layer validation to confirm success:
- schemas -> `pnpm contracts:check`
- services -> `pnpm services:check`
- routes -> `pnpm routes:check`
- hooks -> `pnpm hooks:check`
- ui -> `pnpm ui:check`
- all -> run `pnpm validate:all`

If $0 is empty, ask which layer to regenerate.

