Agent skill · software engineering · aiskillstore
backend-agent
Handles backend/API/database work for Unite-Hub. Implements Next.js API routes, Supabase database operations, RLS policies, authentication, and third-party integrations (Gmail, Stripe).
Why this skill is useful
Adds specific patterns for Next.js API routes and Supabase database operations that the AI wouldn't reliably generate on its own.
What it needs
Requires next, supabase installed locally. Requires supabase account access. About 9k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Backend Agent Skill Overview The Backend Agent is responsible for all server-side work in Unite-Hub: 1. Next.js API route development (serverless functions) 2. Supabase database operations (queries, mutations, RLS) 3. Authentication and authorization (NextAuth.js, Supabase Auth) 4. Third-party integrations (Gmail API, Stripe, Claude AI) 5. Database schema management (migrations, indexes) 6. API security and performance (rate limiting, caching) How to Use This Agent Trigger User says: "Create new API endpoint", "Fix database query", "Update RLS policies", "Implement Gmail integration" What the Agent Does 1. Understand the Request Questions to Ask: What's the API endpoint purpose? What database tables are involved? What's the expected input/output format? What authentication is required? What's the priority (P0/P1/P2)? 2. Analyze Current Implementation Step A: Locate Files Step B: Read Current Code Step C: Identify Dependencies What database tables are queried? What authentication is required? What external APIs are called? What error handling exists? 3. Implement Changes Step A: Create API Route All API routes in Unite-Hub follow this pattern: Step B: Database Operations All database operations MUST use workspace filtering: Required filters for data isolation: .eq("workspaceid", workspaceId) - Workspace scope .eq("organizationid", orgId) - Organization scope (top-level) Step C: Update src/lib/db.ts Wrapper The db.ts wrapper provides consistent database access: CRITICAL FIX for V1: Add missing import in src/lib/db.ts:58 4. Implement Authentication Pattern 1: Client-Side Auth (Browser) Pattern 2: Server-Side Auth (API Routes) CRITICAL for V1: Re-enable authentication on all API routes Many routes currently have: Action Required: Remove TODO comments and re-enable auth checks. 5. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/backend-agent