Skip to content
CommandImported

supabase-type-generator

Generate TypeScript types from Supabase schema with automatic synchronization and validation

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.3 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/supabase-type-generator.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/supabase-type-generator.zip -d ~/.claude/commands

Instructions

Supabase Type Generator

Generate comprehensive TypeScript types from Supabase schema with automatic synchronization: $ARGUMENTS

Current Type Context

  • Supabase schema: Database schema accessible via MCP integration
  • Type definitions: !find . -name "types" -type d -o -name "*.d.ts" | head -5 existing TypeScript definitions
  • Application usage: !find . -name "*.ts" -o -name "*.tsx" | xargs grep -l "Database\|Table\|Row" 2>/dev/null | head -3 type usage patterns
  • Build configuration: !find . -name "tsconfig.json" -o -name "*.config.ts" | head -3 TypeScript setup

Task

Execute comprehensive type generation with schema synchronization and application integration:

Generation Scope: Use $ARGUMENTS to generate all table types, specific table types, function signatures, enum definitions, or view types

Type Generation Framework:

  1. Schema Analysis - Extract database schema via MCP, analyze table structures, identify relationships, map data types to TypeScript
  2. Type Generation - Generate table interfaces, create utility types, implement type guards, optimize type definitions
  3. Integration Setup - Configure import paths, setup type exports, implement auto-completion, integrate with build process
  4. Validation Process - Validate generated types, test type compatibility, verify application integration, check build success
  5. Synchronization - Monitor schema changes, auto-regenerate types, validate breaking changes, notify development team
  6. Developer Experience - Implement IDE integration, provide type hints, create usage examples, optimize development workflow

Advanced Features: Automatic type updates, breaking change detection, custom type transformations, documentation generation, IDE plugin integration.

Quality Assurance: Type accuracy validation, application compatibility testing, performance impact assessment, developer feedback integration.

Output: Complete TypeScript type definitions with schema synchronization, application integration, validation procedures, and developer documentation.

Files

  • LICENSE1 KB
  • supabase-type-generator.md2.3 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/database/supabase-type-generator.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    code-migrate

    Generate comprehensive migration plans and scripts for transitioning codebases between frameworks, languages, versions, or platforms with minimal disruption.

    MITFiles: 1

  • CommandImported

    create-database-migrations

    Create and manage database migrations with proper versioning and rollback support

    MITFiles: 1

  • CommandImported

    deps-upgrade

    Plan and execute safe, incremental dependency upgrades with minimal risk — including breaking-change migration paths and proper test verification.

    MITFiles: 1

  • CommandImported

    design-database-schema

    Design optimized database schemas with proper relationships, constraints, and performance considerations

    MITFiles: 1

  • CommandImported

    full-stack-feature

    Orchestrate end-to-end full-stack feature development across backend, frontend, database, and infrastructure layers

    MITFiles: 1

  • CommandImported

    legacy-modernize

    Orchestrate legacy system modernization using the strangler fig pattern with gradual component replacement

    MITFiles: 1