1. Install
  2. Claude Code

Install

Claude Code

Setting up Claude Code in Cursor IDE with Supabase Agent Skills

Claude Code is Anthropic's official CLI tool that helps with software engineering tasks. Combined with Supabase Agent Skills, it provides intelligent assistance for building and optimizing your SvelteShip application.

  1. Install Claude Code

    Install Claude Code globally using npm:

            npm install -g @anthropic-ai/claude-code
    
          
  2. Configure Cursor IDE

    • Open Cursor IDE and go to Settings (Cmd/Ctrl + ,)
    • Navigate to Features > Claude Code
    • Enable Claude Code integration
    • Enter your Anthropic API key when prompted
    NOTE

    You can get an API key from the Anthropic Console.

  3. Install Supabase Agent Skills

    Supabase Agent Skills enhance Claude Code with Postgres optimization guidelines and Supabase best practices. Install using the skills CLI:

            npx skills add supabase/agent-skills
    
          

    Or install directly in Claude Code:

            /plugin marketplace add supabase/agent-skills
    /plugin install postgres-best-practices@supabase-agent-skills
    
          
  4. Verify Installation

    The Supabase skills activate automatically when Claude Code detects relevant tasks. Test by asking Claude Code to help with:

    • Optimizing database queries
    • Reviewing your Supabase schema
    • Adding proper indexes to tables
    • Implementing Row Level Security (RLS) policies

Available Skills

The supabase-postgres-best-practices skill provides optimization guidelines across 8 categories:

Category Priority
Query Performance Critical
Connection Management Critical
Schema Design High
Concurrency & Locking Medium-High
Security & RLS Medium-High
Data Access Patterns Medium
Monitoring & Diagnostics Low-Medium
Advanced Features Low
TIP

When working with your SvelteShip database, Claude Code will automatically apply these best practices to help you write efficient queries and maintain a well-structured schema.

Example Usage

Once installed, you can ask Claude Code questions like:

  • "Optimize this Supabase query for better performance"
  • "Review my database schema for potential issues"
  • "Help me add proper indexes to my users table"
  • "Set up RLS policies for my profiles table"

For more information, visit the Supabase Agent Skills repository.