flutter-api-bridge

Generate append-only Dart API functions from Swagger and backend code.

1|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/DriveConnect-alpha/DriveConnect --skill flutter-api-bridge-driveconnect-alpha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-api-bridge
Source: https://github.com/DriveConnect-alpha/DriveConnect/tree/main/.agent/skills/flutter-api-bridge
Command: npx skills add https://github.com/DriveConnect-alpha/DriveConnect --skill flutter-api-bridge-driveconnect-alpha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the maintenance of a single source of truth for Flutter API calls by appending new Dart functions to Frontend/lib/utils/API_functions.dart instead of rewriting existing content. It helps frontend developers quickly wire Flutter screens to backend endpoints and keeps API calls consistent across the codebase.

Core Features & Use Cases

  • Reads the Swagger and backend route definitions to determine required API calls.
  • Writes new Dart functions into Frontend/lib/utils/API_functions.dart, always appending rather than overwriting.
  • Supports scenarios like adding a new endpoint, wiring a screen to a route, or requesting API data, while explaining any backend limitations and what would need to change.

Quick Start

Describe the API task you want (e.g., fetch hotels, login user, create a reservation) and this skill will read Swagger and append the corresponding Dart function to Frontend/lib/utils/API_functions.dart.

Frequently Asked Questions about flutter-api-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Flutter API calls from Swagger without overwriting existing code?

To generate Flutter API calls from Swagger, the skill reads backend definitions and appends new Dart functions to API_functions.dart without overwriting existing content. It maintains a single source of truth for all API utilities using Dio.

What is the best way to wire a Flutter screen to a backend route using Dio?

The best way to wire a Flutter screen to a backend route is to describe the API task, allowing the skill to read Swagger and append the corresponding Dio function to your codebase, keeping integration consistent.

Does generating Dart API functions require backend changes?

Generating Dart API functions does not automatically alter the backend. The skill reads Swagger and backend code, and if the requested API task requires backend modifications, it provides clear guidance on what needs to change.

How does append-only code generation work for Flutter API clients?

Append-only code generation works by reading Swagger and backend route definitions to write new Dart functions into API_functions.dart. It appends new code rather than rewriting existing files to prevent losing previous API utilities.

Can I use Swagger to update an existing Flutter API client automatically?

You can update an existing Flutter API client by requesting an API task. The skill reads Swagger definitions and appends the new Dart functions to API_functions.dart, ensuring the client reflects backend changes without overwriting current implementations.