一键导入
new-module
Scaffold a complete CRUD module (service, hook, schema, types, pages). Use when the user runs /new-module <entity-name>.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a complete CRUD module (service, hook, schema, types, pages). Use when the user runs /new-module <entity-name>.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reference for adding AI generation features using the Gemini pipeline. Covers field generation, article generation, and how to create new AI actions. Use when the user wants to add AI-powered functionality.
Reference for auth tokens, cookies, JWE decoding, max-age strategy, and the cookie-deletion pitfalls specific to this project. Apply whenever editing src/proxy.ts, src/proxy/*, src/utils/services/fetcher.ts, src/stores/{permission,user}-store.ts, login or logout flows.
Trigger automatically when adding or removing a page under src/app/(baseLayout)/*. Forces Sidebar.tsx update in the same change so the menu and route stay in lockstep.
Tamamlanan bir geliştirmeyi veya değişikliği otomatik olarak dokümante eder. docs/CHANGELOG.md [Unreleased] bölümünü günceller, gerekirse yeni bir docs/{FEATURE}.md rehber dosyası oluşturur. Commit öncesi veya sonrası, her geliştirmede /doc-changes komutu ile çalıştır.
Systematic debugging and fix workflow. Use when the user runs /debug-fix <description-of-issue>.
Scaffold an admin page (list, create, edit) under (baseLayout). Use when the user runs /new-page <entity-name>.
| name | new-module |
| description | Scaffold a complete CRUD module (service, hook, schema, types, pages). Use when the user runs /new-module <entity-name>. |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Glob, Grep |
Scaffold a full CRUD admin module for entity: $ARGUMENTS
Parse $ARGUMENTS to get:
entityName — kebab-case (e.g. blog-categories)EntityName — PascalCase (e.g. BlogCategories)entitySingular — tekil form (e.g. blog-category)Read existing modules for pattern reference:
src/app/_services/mail-accounts.services.ts — service patternsrc/app/_hooks/useMailAccounts.ts — TanStack Query hook patternsrc/schemas/mail-account.ts — Zod schema patternsrc/types/mail-account.ts — type patternsrc/app/(baseLayout)/mail-accounts/page.tsx — list pagesrc/app/(baseLayout)/mail-accounts/new/page.tsx — create pageCreate these files (replace placeholders):
src/app/_services/{entity-name}.services.ts — CRUD API calls via fetcher
src/app/_hooks/use{EntityName}.ts — TanStack Query hooks (list, get, create, update, delete)
src/schemas/{entity-name}.ts — Zod create + update schemas
src/types/{entity-name}.ts — TypeScript interfaces (Entity, CreateDTO, UpdateDTO)
src/app/(baseLayout)/{entity-name}/page.tsx — List page with DataTable
src/app/(baseLayout)/{entity-name}/new/page.tsx — Create form page
src/app/(baseLayout)/{entity-name}/[id]/edit/page.tsx — Edit form page
Service pattern must use:
fetcher from @/utils/services/fetcher/api/v1/{entity-name}Hook pattern must use:
useQuery for list/getuseMutation with queryClient.invalidateQueries for CUD['{entity-name}'], ['{entity-name}', id]Page patterns must include:
'use client' directiveReport created files and next manual steps (sidebar menu entry, backend API)
blog-categories.services.ts)BlogCategory, UseBlogCategories)use{PascalCase} (useBlogCategories)/api/v1/{kebab-case}['{kebab-case}']