跳到正文
TakoAPI
返回技能列表

feature-forge

由 guifav 提供

Transportation
—暂无评分
你的评分

简介

Generates complete features from natural language — components, API routes, migrations, types, and tests.

描述

该技能的功能

Implements complete Next.js App Router features from a natural language description. Generates the full vertical slice: database migration, data access layer, API routes, UI components, server actions, and tests. Targets projects using Supabase, Firebase Auth, and Tailwind CSS.

It reads the existing codebase before generating anything, so output matches current file structure and patterns rather than producing boilerplate that needs manual integration.

何时使用

  • Adding a user profile page to an existing Next.js app
  • Scaffolding a CRUD resource with RLS policies and typed Supabase functions
  • Building a comment system with auth checks and server actions
  • Generating a paginated list view with URL-based filter state
  • Adding a settings form that writes to a new database table

示例工作流

输入

User asks: Add a task management feature where users can create, list, and delete their own tasks

智能体
  1. 1

    Restates the feature and decomposes it into UI, schema, business rules, and auth requirements

  2. 2

    Surveys src/, existing components, supabase/migrations/, and package.json to understand current patterns

  3. 3

    Creates a Supabase migration with a tasks table, RLS policies, and indexes, then regenerates types

  4. 4

    Generates typed CRUD functions, an API route with Zod validation and auth checks, and a Server Component page paired with a Client Component list

  5. 5

    Writes tests for schema validation, data access layer, and the API route, then stages a commit

输出

Task management feature across 6 new or modified files, with migration ready to apply and commit message 'feat: add task-management'

前置要求

  • NEXT_PUBLIC_SUPABASE_URL environment variable
  • NEXT_PUBLIC_SUPABASE_ANON_KEY environment variable
  • Supabase project
  • Firebase project with Authentication enabled

安装

clawhub install guifav/feature-forge

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接