Create a full-stack task management application called TaskFlow.Backend:- Express.js server with TypeScript- SQLite database with better-sqlite3- RESTful API: CRUD for tasks and projects- Input validation with zodFrontend:- React 18 with TypeScript- Vite for bundling- Tailwind CSS for styling- React Query for data fetchingSet up the monorepo structure with packages/api and packages/web.Use a root package.json with workspaces.
Claude Code 将在此任务上工作 3-5 分钟。你会看到它创建目录、编写配置文件和安装依赖。这时候可以放下手机——Tactic Remote 会在任务完成或需要审批时通知你。
注意事项: Claude Code 很可能会请求批准运行 npm install。从通知中批准即可——它是在为你的项目安装依赖。
Create the database schema and models:Tables:- projects: id, name, description, color (hex), created_at, updated_at- tasks: id, project_id (FK), title, description, status (todo/in_progress/done), priority (low/medium/high/urgent), due_date, created_at, updated_atInclude:- Migration system that runs on server start- Type-safe model layer with full TypeScript types- Seed data: 2 sample projects with 5 tasks each
这个提示词展示了 AI 辅助开发的一个关键优势:你描述做什么,Claude 处理怎么做。结果将包含正确类型化的模型、SQL 迁移和种子数据——这些工作人工开发者需要 30-60 分钟才能完成。
Implement the full REST API:Projects:- GET /api/projects (list all, with task counts)- POST /api/projects (create, validate with zod)- PUT /api/projects/:id (update)- DELETE /api/projects/:id (cascade delete tasks)Tasks:- GET /api/projects/:id/tasks (list by project, support ?status= filter)- POST /api/projects/:id/tasks (create with validation)- PUT /api/tasks/:id (update, including status transitions)- DELETE /api/tasks/:idInclude proper error handling with consistent error response format.Add request logging middleware.
审批提示: Claude Code 可能会请求批准修改多个文件。查看审批卡片中的文件列表——它应该仅限于项目 packages/api/ 目录内的文件。如果你看到超出此范围的文件,请拒绝并澄清提示词。
Write integration tests for all API endpoints using vitest and supertest.Test both success cases and error cases (invalid input, not found, etc.).Run the tests and report results.
Build the frontend UI:1. Layout with sidebar (project list) and main area (task board)2. ProjectList component: shows projects with task counts and color indicators3. TaskBoard component: kanban-style columns for todo/in_progress/done4. TaskCard component: shows title, priority badge, due date5. Drag-and-drop between columns to change task statusUse React Query for all data fetching. Show loading skeletons.Style with Tailwind - clean, modern look with the project color as accent.
Add interactive features:1. Create Project modal: name, description, color picker2. Create Task modal: title, description, priority selector, due date picker3. Inline task editing: click to edit title, click priority to cycle through levels4. Delete confirmation dialogs for projects and tasks5. Toast notifications for successful operationsAll forms should validate input and show helpful error messages.
Polish the UI:1. Make everything fully responsive (mobile-friendly at 375px+)2. Add empty states for projects and tasks (with calls-to-action)3. Add a search/filter bar: filter tasks by title or status4. Add keyboard shortcuts: N for new task, / for search5. Add subtle animations for card transitions and modal open/closeFix any visual issues you notice.
Verify the complete application:1. Start the API server and frontend2. Create a new project through the UI3. Add several tasks with different priorities4. Move tasks between columns5. Edit and delete tasks6. Test responsive layout at mobile sizes7. Report any issues found and fix themProvide the final URLs to access the application.
Create a README.md in the project root with:1. Project description and screenshot placeholder2. Tech stack overview3. Getting started instructions (install, run, test)4. API endpoint documentation with example requests/responses5. Project structure explanation