new-component
星标1
分支0
更新时间2026年3月8日 14:03
Scaffold a new feature component set (Form, List, Detail + tests) following project conventions
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Scaffold a new feature component set (Form, List, Detail + tests) following project conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | new-component |
| description | Scaffold a new feature component set (Form, List, Detail + tests) following project conventions |
| disable-model-invocation | true |
Generate a complete feature component set for SubLink following established patterns.
/new-component <FeatureName>
Given a feature name (e.g., Equipment), scaffold:
src/components/<Name>Form.tsx — Create/edit form with validationsrc/components/<Name>List.tsx — Filterable list viewsrc/components/<Name>Detail.tsx — Detail/view pagesrc/components/<Name>Form.test.tsx — Form testssrc/components/<Name>List.test.tsx — List testssrc/components/<Name>Detail.test.tsx — Detail testssrc/components/ to match patterns (e.g., ProjectForm.tsx, TaskList.tsx)idb library — data store defined in src/db.tssrc/db.ts if neededreact-router-dom for navigation (match existing route patterns in App.tsx)@testing-library/react, vitest, and fake-indexeddbApp.tsx