一键导入
create-feature
End-to-end guide for adding a new feature across all architectural layers (schema → repo → schema → DTO → route → hook → component → tests)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
End-to-end guide for adding a new feature across all architectural layers (schema → repo → schema → DTO → route → hook → component → tests)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guide for writing Playwright E2E tests with the project's auth, helpers, and isolation patterns
MANDATORY for any git commit, push, save, subir, or enviar request. Executes npm run git:sync as a single atomic command — zero exploration, zero loops. Enforces Conventional Commits format.
Comprehensive code review framework for pull requests and ad-hoc quality checks. Covers correctness, architecture compliance, security, performance, financial logic, testing, and style. Use when reviewing PRs, auditing changes, or checking code quality before merge.
Creates new Antigravity skills following the correct folder structure, frontmatter conventions, and best practices. Use when the user asks to create a new skill, document a repeating pattern, or extend the agent's capabilities for a specific task.
Diagnostic flowchart for debugging Ready to Assign (RTA) calculation discrepancies
Create distinctive, production-grade frontend interfaces with intentional aesthetics, high craft, and non-generic visual identity. Use when building or styling web UIs, components, pages, dashboards, or frontend applications.
| name | create-feature |
| description | End-to-end guide for adding a new feature across all architectural layers (schema → repo → schema → DTO → route → hook → component → tests) |
Use this skill when adding a new domain entity or CRUD feature that spans the full stack. Each feature follows a predictable 8-layer pipeline. See examples/ for annotated reference implementations of every layer.
DB Schema → Repo → Zod Schema → DTO → API Route → Hook → Component → Tests
lib/db/schema.tsAdd a new pgTable definition. See examples/schema.ts for the pattern.
Then generate and apply the migration:
npm run db:generate
npm run db:migrate
lib/repos/<domain>.tsCreate a factory function: createXFunctions(database: DrizzleDB). See examples/repo.ts.
Wire it in:
lib/repos/client.ts → add to createDbFunctions() returnlib/repos/index.ts barrellib/schemas/<domain>.tsCreate validation schemas for API input. See examples/schema.zod.ts.
Export from lib/schemas/index.ts barrel.
lib/dtos/<domain>.dto.tsCreate Row interface, DTO interface, and mapper function. See examples/dto.ts.
Export from lib/dtos/index.ts barrel.
app/api/budgets/[budgetId]/<domain>/route.tsCreate route handlers following the auth → validate → repo → DTO → respond pattern. See examples/route.ts.
hooks/use<Domain>.tsCreate useQuery + useMutation hooks with optimistic updates. See examples/hook.ts.
lib/__tests__/<domain>.test.tsCreate tests using PGlite in-process DB. See examples/unit-test.ts.
npm run typecheck
npm run test
npm run lint
lib/db/schema.ts — table defineddrizzle/ — migration generated and appliedlib/repos/<domain>.ts — factory functionlib/repos/client.ts — wired into createDbFunctionslib/repos/index.ts — barrel exportlib/schemas/<domain>.ts — Zod schemaslib/schemas/index.ts — barrel exportlib/dtos/<domain>.dto.ts — DTO + mapperlib/dtos/index.ts — barrel exportapp/api/budgets/[budgetId]/<domain>/route.ts — API routehooks/use<Domain>.ts — query + mutation hookslib/__tests__/<domain>.test.ts — unit testtypecheck, test, lintMilliunit branded type (rule 05)withBudgetAccess() wrapper (rule 11, 12)06)meta on mutations, not direct toast() calls| File | Layer |
|---|---|
| schema.ts | DB table definition |
| repo.ts | Repository factory pattern |
| schema.zod.ts | Zod validation schemas |
| dto.ts | Row → DTO mapper |
| route.ts | API route (GET/POST) |
| hook.ts | useQuery + useMutation |
| unit-test.ts | PGlite unit test |