firebase avatar

Firebase Data Connect

This skill helps Claude build Firebase backends with PostgreSQL through GraphQL schemas, handling everything from table definitions to type-safe SDK generation across Web, iOS, Android, and Flutter. It defaults to GraphQL operations for type safety but can drop into raw SQL when you need PostgreSQL-specific features like PostGIS or window functions. The workflow is structured around schema definition, authorized operations with row-level security, and real-time subscriptions. Particularly solid on the security model since Firebase Data Connect (now SQL Connect) is secure by default, requiring explicit auth directives. If you're tired of managing your own Postgres infrastructure or want Firebase Auth integration with relational data, this handles the boilerplate and generates client code that actually knows your schema.

GitHub stars
348
last updated
Jun 10, 2026

Install

$ npx -y skills add firebase/agent-skills --skill firebase-data-connect --agent claude-code

Installs into .claude/skills of the current project.

Files

Firebase SQL Connect

Firebase SQL Connect is a relational database service using Cloud SQL for PostgreSQL with GraphQL schema, auto-generated queries/mutations, and type-safe SDKs.

[!NOTE] Product Rename: Firebase Data Connect was renamed to Firebase SQL Connect. All instructions, references, and examples in this skill repository referring to "Data Connect" or "Firebase Data Connect" apply to "SQL Connect" and "Firebase SQL Connect" as well.

Project Structure

dataconnect/
├── dataconnect.yaml      # Service configuration
├── seed_data.gql         # LOCAL ONLY — prototype/test data
├── schema/
│   └── schema.gql        # Data model (types with @table)
└── connector/
    ├── connector.yaml    # Connector config + SDK generation
    ├── queries.gql       # Queries
    └── mutations.gql     # Mutations

Key Tools for Validation

Rely on these two mechanisms to ensure project correctness:

  1. Review GraphQL Schema: Both user-defined and generated extensions (in .dataconnect/schema/main/).
  2. Validate Operations: Run npx -y firebase-tools@latest dataconnect:compile against the schema.

Sponsors

Details

Repository
github.com/firebase/agent-skills
Categories
Backend & APIs, Documentation, AI & Agent Building, Databases
License
Apache-2.0
First seen
Jun 11, 2026

More from firebase/agent-skills

All 23
1georgekhananaev avatarsupabase-expertgeorgekhananaev/claude-skills-vaultProduction-grade Supabase expertise for commercial applications. Covers database design, RLS policies, authentication (SSO/SAML, MFA, SSR), Edge Functions, Real0skills.sh installs
2huangjia2019 avatarapi-generatinghuangjia2019/claude-code-engineeringGenerate API endpoint code and documentation from specifications. Use when the user wants to create new API endpoints, generate route handlers, scaffold REST AP0skills.sh installs
3rknall avatarPython Backend Architecture Reviewrknall/claude-skillsComprehensive design architecture review for Python backend applications. Use this skill when users ask you to review, analyze, or provide feedback on backend a0skills.sh installs
4sunflowermm avatarxrk-authsunflowermm/XRK-AGT当你需要解释/排查 HTTP 或 WebSocket 的 401、127 回环例外、API Key 机制时使用;确保业务层不重复鉴权。0skills.sh installs
5planetscale avatarmysqlplanetscale/database-skillsPlan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; dia8.8Kskills.sh installs
6prisma avatarprisma-postgresprisma/skillsPrisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases409.9Kskills.sh installs