project-feature
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.
When & Why to Use This Skill
The Project Feature Claude skill is a comprehensive developer tool designed to automate the end-to-end process of extending the 'Project' entity within a full-stack application. By providing a structured workflow, it ensures that new fields or properties are consistently implemented across TypeScript interfaces, Firestore database schemas, API routes (CRUD operations), and frontend UI components like forms and display cards. This skill minimizes manual errors and ensures architectural consistency during feature expansion.
Use Cases
- Scenario 1: Adding a 'Priority Level' field to projects, requiring updates to the database schema, backend validation logic, and the project creation form.
- Scenario 2: Extending the Project entity to include 'Client Metadata', involving modifications to API response types and the project detail view components.
- Scenario 3: Implementing a 'Project Deadline' feature that necessitates new date validation in security utilities and corresponding updates to the project list display card.
- Scenario 4: Synchronizing frontend and backend types after a database migration to ensure type safety across the entire project management module.
| 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.