alolo777/pos/firebase-data-connect
Claude Code and agent skill by alolo777/pos
- community
Checking that the SKILL.md file is still in the repository.
Use when setting up Data Connect, writing GraphQL queries/mutations, configuring generated SDKs, handling offline, or applying security rules.
Install
npx vskill@latest install alolo777/pos/firebase-data-connectSKILL.md
The same SKILL.md was published earlier as alolo777/pos/firebase-data-connect.
Firebase Data Connect Skill
This skill defines how to correctly use Firebase Data Connect in Flutter applications.
When to Use
Use this skill when:
- Setting up and configuring Firebase Data Connect in a Flutter project.
- Designing schemas, queries, and mutations for Data Connect.
- Implementing generated SDK calls for typed queries and mutations.
- Handling network failures, data inconsistencies, and offline scenarios.
- Applying security and performance best practices.
1. Setup and Configuration
Step 1: Install the package
Step 2: Import and initialize
Step 3: Define a schema in dataconnect/schema/schema.gql
Step 4: Define queries and mutations in dataconnect/connector/queries.gql
Step 5: Generate the typed Flutter SDK
This produces typed Dart classes for each query and mutation.
Platform support:
| Platform | Support | |
|---|---|---|
| iOS | Full | |
| Android | Full | |
| Web | Full | |
| Other platforms | Not supported |
2. Executing Queries and Mutations
Use the generated SDK to execute typed queries and mutations:
Real-Time Listeners
Subscribe to query changes for live updates:
3. Performance and Caching
- Design efficient queries requesting only the fields needed to minimize data transfer.
- Implement pagination for large datasets:
``graphql query ListMoviesPaginated($limit: Int!, $offset: Int!) @auth(level: PUBLIC) { movies(limit: $limit, offset: $offset) { id title releaseYear } } ``
- Use real-time listeners judiciously to avoid unnecessary network usage.
- Consider offline capabilities for critical app functionality by caching query results locally.
4. Error Handling
Wrap Data Connect calls in try/catch to handle network and validation errors:
- Implement retry logic with exponential backoff for transient connection errors.
- Provide meaningful error messages for data validation failures.
- Monitor error rates and investigate recurring issues.
5. Security
- Use
@authdirectives in schema to control access levels (PUBLIC,USER,NO_ACCESS). - Integrate Firebase Authentication for user-based access control.
- Validate data on both client and server sides.
- Follow data privacy best practices when handling user information.
References
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
- SKILL.md in the repositoryCheckingpos_flutter_firebase/.opencode/skills/firebase-data-connect/SKILL.md
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
[](https://verified-skill.com/skills/alolo777/pos/firebase-data-connect)