flutter-data-layer

flutter-data-layer is a skill for Claude Code, Codex from pedromneto97/custom-skills. It costs 28 tokens per session (295 once invoked), scanned A, original, MIT.

A short set of conventions and examples for the data-access part of a Flutter app using Clean Architecture. It covers network requests with Dio, generated JSON conversion, repositories, and error mapping.

In plain words
What is it for?
Use it to build Flutter repositories, HTTP data sources, JSON models, mapped authentication errors, and tests that check converting data to and from JSON and domain objects.
Why use it?
It gives the data layer consistent names and handling rules, so remote responses and failures do not leak unclear details into the rest of the app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build Flutter repositories, HTTP data sources, JSON models, mapped authentication errors, and tests that check converting data to and from JSON and domain objects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedromneto97/custom-skills/flutter-data-layer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pedromneto97/custom-skills --skill flutter-data-layer
Clone the repo
git clone --depth 1 https://github.com/pedromneto97/custom-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-data-layer

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-data-layer/github.svg)](https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-data-layer)
Your own site
<a href="https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-data-layer"><img src="https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-data-layer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-data-layer

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-data-layer"><img src="https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-data-layer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 295 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00295
Opus 5.5 $0.00011 $0.00118
Sonnet 5.5 $0.00006 $0.00059
Haiku 4.5 $0.00003 $0.00030

Measured 1mo ago against content hash a8adc4f62caa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-data-layer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-data-layer/SKILL.md · 28 lines

What it actually says

Flutter Data Layer (summary)

Purpose: Short, opinionated defaults and pointers for implementing the data layer in a Flutter Clean Architecture app.

Defaults

  • HTTP client: dio
  • Serialization: json_serializable (codegen)
  • Error handling: Only throw mapped/domain errors (example: 401 -> InvalidCredentialsException); rethrow unknown errors so callers can decide.

Details and examples are moved to the references/ docs and templates/ examples in this skill:

Rename guidance

  • If an application only uses a remote source, prefer naming the component and folder repository (and use Repository suffix) instead of datasource. Templates use repository for that case.

Quick prompts

  • "Scaffold a User model using json_serializable and a UserRepositoryImpl using dio that maps 401 -> invalid credentials."
  • "Generate DTO tests: fromJson, toJson, and toEntity() round-trip for UserResponse."
Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 28 lines · 28 tokens per session scan A a8adc4f62caa

Subscribe to this mod's changes

flutter-data-layer is a skill published in the GitHub repository pedromneto97/custom-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 295 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

android-networking

Integrate Retrofit, OkHttp, and Kotlinx Serialization for type-safe API communication in Android. Use when building API clients, adding interceptors, or configuring network security—not standalone MockWebServer or API-test setup.

HoangNguyen0403/agent-skills-standard · 47 tokens

integrate-whatsapp-calling

Connect voice agents to WhatsApp Calling through Kapso. Use for Calling setup, signed call webhooks, inbound answering, outbound permission and dialing, native recordings and transcripts, or debugging signaling and media with Pipecat, Pipecat Cloud, ElevenLabs Agents, or another provider.

gokapso/agent-skills · 64 tokens

flutter-networking

Implement, fix, debug, review, or refactor Flutter networking code for HTTP/REST APIs, WebSocket realtime flows, authentication and token refresh, request headers, timeouts, retries, JSON parsing, caching, background isolates, repositories, services, and adaptation to existing http, Dio, Retrofit, Chopper, or custom…

MADTeacher/mad-agents-skills · 98 tokens

flutter-use-http-package

A Flutter networking guide for using the Dart http package to send GET, POST, PUT, and DELETE requests. It covers permissions, request headers, response handling, and converting responses into typed Dart objects.

sutchan/Agent-Skills-Hub · 18 tokens

flutter-implement-json-serialization

A guide to manually converting JSON data into typed Dart model objects and back again. JSON is a common text format used by APIs to exchange structured data.

sutchan/Agent-Skills-Hub · 21 tokens

push-notification-best-practices

Comprehensive mobile push notification guide for iOS (APNS) and Android (FCM). Use when setting up push notifications, debugging delivery issues, implementing background/foreground handlers, managing push tokens, integrating deep linking, or troubleshooting platform-specific issues.

clix-so/skills · 58 tokens