new-page
Create a new frontend page with routing, store, and API service following Kensan conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new frontend page with routing, store, and API service following Kensan conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run both frontend and backend builds to verify everything compiles
Add a new API endpoint to an existing service with full-stack integration (backend handler + frontend API service + store)
Review uncommitted changes for security issues, code quality, and best practices
Run Go backend tests, analyze failures, and auto-fix
Scaffold a new Go microservice with the standard Kensan layered architecture
| name | new-page |
| description | Create a new frontend page with routing, store, and API service following Kensan conventions |
Create a new page $ARGUMENTS[0] with domain prefix $ARGUMENTS[1].
Read frontend/src/ARCHITECTURE.md and an existing page for reference.
Page prefix determines the domain:
Example: /new-page GoalDashboard A → creates A03_GoalDashboard
Determine page number: Check existing pages in frontend/src/pages/ for the next available number in the prefix.
Create page component in frontend/src/pages/{Prefix}{NN}_{PageName}.tsx:
@/components/ui/ and @/stores/Add route in frontend/src/App.tsx:
Add sidebar navigation in frontend/src/components/layout/Sidebar.tsx:
Create/update Zustand store if new state is needed:
frontend/src/stores/createCrudStore factory for standard CRUDCreate API service if new endpoints:
frontend/src/api/services/createApiService factoryAdd MSW handler in frontend/src/mocks/handlers/ for development
cd frontend && npm run build to verify TypeScript compilationfrontend/src/ARCHITECTURE.md routing section and page naming table