project-feature
向项目实体添加新字段或功能。在扩展项目模式、添加新属性、更新表单或修改项目显示时使用。包括类型更新、API更改和验证。
📖 中文导读:向项目实体添加新字段或功能。在扩展项目模式、添加新属性、更新表单或修改项目显示时使用。包括类型更新、API更改和验证。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: project-feature description: Adds new fields or features to Project entity. Use when extending project schema, adding new properties, updating forms, or modifying project display. Includes type updates, API changes, and validation.
Add Project Feature Skill
Instructions
When adding a new field to Project:
Update Types
src/lib/types.ts- Frontend interfacesrc/lib/db-types.ts- Firestore doc & API response
Add Validation (if needed)
src/lib/security-utils.ts- CONTENT_LIMITS & validators
Update API Routes
POST /api/projects- CreateGET /api/projects/[id]- ReadPATCH /api/projects/[id]- Update
Update Form Components
src/app/menu/register/page.tsxsrc/app/menu/edit/[id]/page.tsx
Update Display Components
src/components/ProjectCard.tsxsrc/app/menu/[id]/page.tsx
For complete checklist with code examples, see reference.md.