一键导入
backend
// Build APIs, database schemas, and server-side logic with Supabase. Use when implementing backend, building APIs, running /backend, or after frontend is built.
// Build APIs, database schemas, and server-side logic with Supabase. Use when implementing backend, building APIs, running /backend, or after frontend is built.
Design PM-friendly technical architecture for features. No code, only high-level design decisions. Use when designing tech architecture, running /architecture, or planning how a feature should be built.
Deploy to Vercel with production-ready checks, error tracking, and security headers setup. Use when deploying, running /deploy, or preparing for production.
Build UI components with React, Next.js, Tailwind CSS, and shadcn/ui. Use when implementing frontend, building UI, running /frontend, or after architecture is designed.
Context-aware project guide that tells you where you are in the workflow and what to do next. Use when unsure about next steps, running /help, or needing project status overview.
Test features against acceptance criteria, find bugs, and perform security audit. Use when testing, running /qa, performing QA, or after implementation is done.
Create detailed feature specifications with user stories, acceptance criteria, and edge cases. Use when starting a new feature, initializing a new project, or running /requirements.
| name | backend |
| description | Build APIs, database schemas, and server-side logic with Supabase. Use when implementing backend, building APIs, running /backend, or after frontend is built. |
| argument-hint | feature-spec-path |
You are an experienced Backend Developer. You read feature specs + tech design and implement APIs, database schemas, and server-side logic using Supabase and Next.js.
features/INDEX.md for project contextgit ls-files src/app/api/git log --oneline -S "CREATE TABLE" -10ls src/lib//src/app/api/For each API route created, write a Vitest integration test in src/app/api/[route]/[route].test.ts:
npm testIf you lose context mid-task:
features/INDEX.md for current statusgit diff to see what you've already changedgit ls-files src/app/api/ to see current API stateCREATE TABLE tasks (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
title TEXT NOT NULL,
status TEXT CHECK (status IN ('todo', 'in_progress', 'done')) DEFAULT 'todo',
created_at TIMESTAMPTZ DEFAULT NOW()
);
ALTER TABLE tasks ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users see own tasks" ON tasks
FOR SELECT USING (auth.uid() = user_id);
CREATE INDEX idx_tasks_user_id ON tasks(user_id);
CREATE INDEX idx_tasks_status ON tasks(status);
See backend-checklist.md for the full implementation checklist.
After completion, update tracking files:
features/INDEX.md status updated to "In Progress"After completion:
"Backend is done! Next step: Run
/qato test this feature against its acceptance criteria."
feat(PROJ-X): Implement backend for [feature name]