gerardorodval/agentwaitress/firebase-data-connect

Claude Code and agent skill by gerardorodval/agentwaitress

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Build and deploy Firebase SQL Connect (aka Firebase Data Connect) backends with PostgreSQL. Use for schema design, GraphQL queries/mutations, authorization, and SDK generation for web, Android, iOS, and Flutter apps.

Install

npx vskill@latest install gerardorodval/agentwaitress/firebase-data-connect

SKILL.md

The same SKILL.md was published earlier as visk4/gdsc---impactbridge/firebase-data-connect.

Firebase Data Connect

Firebase Data 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
├── schema/
│ └── schema.gql # Data model (types with @table)
└── connector/
├── connector.yaml # Connector config + SDK generation
├── queries.gql # Queries
└── mutations.gql # Mutations

Operation Strategies: GraphQL vs. Native SQL

Always default to Native GraphQL. Native SQL lacks type safety and bypasses schema-enforced structures. Only use Native SQL when the user explicitly requests it or when the task requires advanced database features.

StrategyWhen to useImplementation
Native GraphQL (Default)Almost all use cases. Standard CRUD, basic filtering/sorting, simple relational joins. Requires full type safety.Auto-generated fields (movie_insert, movies). Strong typing and schema enforcement.
Native SQL (Advanced)PostgreSQL extensions (e.g., PostGIS), window functions (RANK()), complex aggregations, or highly tuned sub-queries.Raw SQL string literals via _select, _execute, etc. Requires strict positional parameters ($1). No type safety.

Development Workflow

Follow this strict workflow to build your application. You must read the linked reference files for each step to understand the syntax and available features.

1. Define Data Model (schema/schema.gql)

Define your GraphQL types, tables, and relationships.

Read [reference/schema.md](reference/schema.md) for:
* @table, @col, @default
* Relationships (@ref, one-to-many, many-to-many)
* Data types (UUID, Vector, JSON, etc.)
2. Define Operations (connector/queries.gql, connector/mutations.gql)

Write the queries and mutations your client will use. Data Connect generates the underlying SQL.

Read [reference/operations.md](reference/operations.md) for:
* Queries: Filtering (where), Ordering (orderBy), Pagination (limit/offset).
* Mutations: Create (_insert), Update (_update), Delete (_delete).
* Upserts: Use _upsert to "insert or update" records (CRITICAL for user profiles).
* Transactions: use @transaction for multi-step atomic operations.
Read [reference/native_sql.md](reference/native_sql.md) for Native SQL operations:
* Embedding raw SQL with _select, _selectFirst, _execute
* Strict rules for positional parameters ($1, $2), quoting, and CTEs
* Advanced PostgreSQL features (PostGIS, Window Functions)
3. Secure Your App (connector/ files)

Add authorization logic closely with your operations.

Read [reference/security.md](reference/security.md) for:
* @auth(level: ...) for PUBLIC, USER, or NO_ACCESS.
* @check and @redact for row-level security and validation.
4. Generate & Use SDKs

Generate type-safe code for your client platform.

Read [reference/sdks.md](reference/sdks.md) for:
* Android (Kotlin), iOS (Swift), Web (TypeScript), Flutter (Dart).
* How to initialize and call your queries/mutations.
* Nested Data: See how to access related fields (e.g., movie.reviews).

Feature Capability Map

If you need to implement a specific feature, consult the mapped reference file:

FeatureReference FileKey Concepts
Data Modelingreference/schema.md@table, @unique, @index, Relations
Vector Searchreference/advanced.mdVector, @col(dataType: "vector")
Full-Text Searchreference/advanced.md@searchable
Upserting Datareference/operations.md_upsert mutations
Complex Filtersreference/operations.md_or, _and, _not, eq, contains
Transactionsreference/operations.md@transaction, response binding
Environment Configreference/config.mddataconnect.yaml, connector.yaml

Deployment & CLI

Read [reference/config.md](reference/config.md) for deep dive on configuration.

Common commands (run from project root):

bash
# Initialize Data Connect
npx -y firebase-tools@latest init dataconnect
# Start local emulator
npx -y firebase-tools@latest emulators:start --only dataconnect
# Generate SDK code
npx -y firebase-tools@latest dataconnect:sdk:generate
# Deploy to production
npx -y firebase-tools@latest deploy --only dataconnect

Examples

For complete, working code examples of schemas and operations, see [examples.md](examples.md).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gerardorodval/agentwaitress/firebase-data-connect/badge)](https://verified-skill.com/skills/gerardorodval/agentwaitress/firebase-data-connect)

Something wrong with this skill or its page? Tell us.