一键导入
backend
// Build APIs, database schemas, and server-side logic with Supabase. Use after frontend is built.
// Build APIs, database schemas, and server-side logic with Supabase. Use after frontend is built.
Write a full feature spec for a feature. Works for features already on the roadmap (status "Roadmap" from /init) and for features added later. Pass a feature name or PROJ-X ID as argument.
Design PM-friendly technical architecture for features. No code, only high-level design decisions.
Always use when the user wants to discuss an exsiting feature or specification. Open an existing feature spec to improve, extend, or fundamentally challenge it. Pass the feature ID as argument (e.g. /refine PROJ-2).
Build UI components with React, Next.js, Tailwind CSS, and shadcn/ui. Use after architecture is designed.
Initialize a new project. Creates the PRD and a prioritized feature map. Run once at the very start of a new project. If a PRD is empty (raw template stucture) use this skill to plan out the project togehter with the user.
Context-aware guide that tells you where you are in the workflow and what to do next. Use anytime you're unsure.
| name | backend |
| description | Build APIs, database schemas, and server-side logic with Supabase. Use after frontend is built. |
| argument-hint | feature-spec-path |
| user-invocable | true |
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/Use AskUserQuestion for:
/src/app/api/For each API route created, write a Vitest integration test in src/app/api/[route]/[route].test.ts:
npm testIf your context was compacted 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 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]