api_integration

Automate API request implementation across models, clients, data sources, and DI in Flutter/Dart projects.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/DanhDue/bloc_digital_wallet --skill api-integration-danhdue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api_integration
Source: https://github.com/DanhDue/bloc_digital_wallet/tree/main/.agent/skills/api_integration
Command: npx skills add https://github.com/DanhDue/bloc_digital_wallet --skill api-integration-danhdue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the end-to-end implementation of a new API request across models, clients, data sources, and DI, ensuring consistency with project standards.

Core Features & Use Cases

  • End-to-end API integration: from endpoint analysis to model generation, client creation, and data source wiring.
  • Automatic codegen support: generates freezed models with JsonKey mappings and proper snake_case to camelCase translation.
  • DI and testing readiness: registers Retrofit clients in the dependency injection module and supports final verification steps.

Quick Start

Provide the API endpoint details (method, path, and response schema) to automatically generate the full integration.

Frequently Asked Questions about api_integration

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

FAQPage Schema
How do I automate API integration in a Flutter Clean Architecture project?

Automating API integration in Flutter involves generating models, clients, and data sources while wiring dependency injection. This Skill handles the end-to-end process by applying Retrofit annotations, freezed codegen, and SafeCall patterns to ensure project consistency.

What's the best way to generate Retrofit clients and freezed models for a new API endpoint?

Generating Retrofit clients and freezed models is automated by providing the endpoint method, path, and response schema. The tool produces JsonKey mappings with snake_case to camelCase translation and registers clients directly in the dependency injection module.

Does this API integration automation support Dart dependency injection and BaseResponse patterns?

Yes, this API integration automation supports Dart dependency injection and BaseResponse patterns. It automatically wires Retrofit clients into the DI module and integrates SafeCall handling to ensure consistent network response processing across your project.

How do I handle baseUrl and Retrofit annotations when onboarding a new API request in Dart?

Handling baseUrl and Retrofit annotations during API onboarding is managed automatically. The automation ensures proper Retrofit annotation placement and configures baseUrl handling to maintain consistency with your project's established Clean Architecture standards.

Can I use this to generate end-to-end API requests from just an endpoint schema?

Yes, you can generate end-to-end API requests from just an endpoint schema. By providing the method, path, and response details, the tool performs endpoint analysis to output the required models, clients, and data source wiring automatically.

Why does my API codegen break when mapping snake_case JSON to camelCase in Flutter?

API codegen breaking during snake_case to camelCase mapping is often due to missing JsonKey annotations. This automation prevents such errors by automatically generating freezed models with correct JsonKey mappings, ensuring seamless serialization across data sources.