query-collections
Prerequisite: This skill requires a schema0 template project. Before using, ensure
CLAUDE.mdexists in the project root and read it for project rules and conventions.
Query Collections Generator
Web only. This skill generates files into
apps/web/. Do NOT use ifapps/web/does not exist.
Create frontend query collections with form schema imported from @template/db/schema, Dialog, Form components, and toast error handling.
Files to Create
| File | Location |
|---|---|
| Collection | apps/web/src/query-collections/custom/{entity}.ts |
| Dialog | apps/web/src/components/ui/data-table/custom/{entity}/{Entity}Dialog.tsx |
| Form | apps/web/src/components/ui/data-table/custom/{entity}/{Entity}Form.tsx |
| Index | apps/web/src/components/ui/data-table/custom/{entity}/index.ts |
Dependencies
More from schema0/ai-agent-plugins
manage-secrets
Add and manage application secrets and environment variables. Use when adding API keys, credentials, or updating env.ts.
2schema-gen
Generates database table schema with Drizzle ORM (project)
2rls-setup
Set up database tables with Row-Level Security policies, configure authenticated connections, and implement secure user-scoped data access patterns (Do not apply this skill unless specifically asked by user) (project)
2api-router
Generates ORPC routers with drizzle-zod schemas from db package, bulk operations, and protected procedures (project)
2workflow-builder
>-
2handle-views
Generates route components - List Route and Detail Route (project)
2