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.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 3, 2026

When & Why to Use This Skill

This Claude skill automates the end-to-end process of extending the 'Project' entity within a full-stack web application. It provides a structured workflow for developers to add new fields or features, ensuring consistency across TypeScript interfaces, Firestore database schemas, API routes, and frontend UI components while maintaining strict data validation.

Use Cases

  • Schema Extension: Adding new properties such as 'priority', 'status', or 'tags' to the Project entity across the entire codebase.
  • Full-Stack API Updates: Synchronizing backend API routes (POST, GET, PATCH) and database types with frontend interface changes.
  • Form & UI Synchronization: Automatically updating project registration forms, edit pages, and display components like ProjectCard to support new data fields.
  • Data Validation & Security: Implementing content limits and validation logic in security utilities for newly added project properties.
nameproject-feature
descriptionAdds 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:

  1. Update Types

    • src/lib/types.ts - Frontend interface
    • src/lib/db-types.ts - Firestore doc & API response
  2. Add Validation (if needed)

    • src/lib/security-utils.ts - CONTENT_LIMITS & validators
  3. Update API Routes

    • POST /api/projects - Create
    • GET /api/projects/[id] - Read
    • PATCH /api/projects/[id] - Update
  4. Update Form Components

    • src/app/menu/register/page.tsx
    • src/app/menu/edit/[id]/page.tsx
  5. Update Display Components

    • src/components/ProjectCard.tsx
    • src/app/menu/[id]/page.tsx

For complete checklist with code examples, see reference.md.