Agent skill

Flutter Handling HTTP And JSON

by btwld in btwld/superdeck

Executes HTTP requests and handles JSON serialization in a Flutter app.

BSD-3-ClauseAuto-check passedMobile

Install Flutter Handling HTTP And JSON

skills CLI
$ npx skills add btwld/superdeck --skill flutter-handling-http-and-json -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install btwld/superdeck flutter-handling-http-and-json --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flutter-handling-http-and-json .claude/skills/flutter-handling-http-and-json && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
flutter-handling-http-and-json
GitHub stars
130
Token cost
~1.8k tokens
SKILL.md length
512 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Executes HTTP requests and handles JSON serialization in a Flutter app.

  • Works in 5 steps: Run the HTTP request. → Check response.statusCode. → If 200 or 201, call… → …
  • Integrating with REST APIs
  • SKILL.md covers Contents, Core Guidelines, Workflow: Executing HTTP… and Workflow: Implementing JSON…, plus 2 more sections
  • Calls flutter and dart

What it does

Flutter Handling HTTP And JSON is an agent skill from btwld/superdeck. Executes HTTP requests and handles JSON serialization in a Flutter app. Use when integrating with REST APIs or parsing structured data from external sources.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Cross-platform mobile apps, REST APIs and Schema markup. It works with Flutter. The repository describes itself as: Presentation slides for Flutter with Flutter. The licence is BSD-3-Clause.

When your agent uses it

  • Integrating with REST APIs
  • Parsing structured data from external sources

Example prompts

  • “Use the flutter-handling-http-and-json skill to execute HTTP requests and handles JSON serialization in a Flutter app”
  • “/flutter-handling-http-and-json”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Run the HTTP request.
  2. Check response.statusCode.
  3. If 200 or 201, call jsonDecode(response.body) and map to a Dart object.
  4. If any other code, throw an Exception('Failed to load/update/delete resource').
  5. Review errors -> fix endpoint, headers, or payload structure.

What it can do on your machine

Read from SKILL.md and the folder at commit 815a746. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • flutter
    • dart

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Flutter Handling HTTP And JSON loads about 1.8k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 512 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from btwld/superdeck at commit 815a746, republished under its BSD-3-Clause licence (© btwld). 512 words, ~1,782 tokens.

Download SKILL.mdSave it as .claude/skills/flutter-handling-http-and-json/SKILL.md (or your agent's skills folder).
name
flutter-handling-http-and-json
description
Executes HTTP requests and handles JSON serialization in a Flutter app. Use when integrating with REST APIs or parsing structured data from external sources.
metadata.model
models/gemini-3.1-pro-preview
metadata.last_modified
Thu, 12 Mar 2026 22:18:44 GMT

Handling HTTP and JSON

Contents

Core Guidelines

  • Enforce HTTPS: iOS and Android disable cleartext (HTTP) connections by default. Always use HTTPS endpoints. If HTTP is strictly required for debugging, configure network_security_config.xml (Android) and NSAppTransportSecurity (iOS).
  • Construct URIs Safely: Always use Uri.https(authority, unencodedPath, [queryParameters]) to safely build URLs. This handles encoding and formatting reliably, preventing string concatenation errors.
  • Handle Status Codes: Always validate the http.Response.statusCode. Treat 200 (OK) and 201 (Created) as success. Throw explicit exceptions for other codes (do not return null).
  • Prevent UI Jank: Move expensive JSON parsing operations (taking >16ms) to a background isolate using the compute() function.
  • Structured AI Output: When integrating LLMs, enforce reliable JSON output by specifying a strict JSON schema in the system prompt and setting the response MIME type to application/json.

Workflow: Executing HTTP Operations

Use this workflow to implement network requests using the http package.

Task Progress:

  • Add the http package to pubspec.yaml.
  • Configure platform permissions (Internet permission in AndroidManifest.xml and macOS .entitlements).
  • Construct the target Uri.
  • Execute the HTTP method.
  • Validate the response and parse the JSON payload.

Conditional Implementation:

  • If fetching data (GET): Use http.get(uri).
  • If sending new data (POST): Use http.post(uri, headers: {...}, body: jsonEncode(data)). Ensure Content-Type is application/json; charset=UTF-8.
  • If updating data (PUT): Use http.put(uri, headers: {...}, body: jsonEncode(data)).
  • If deleting data (DELETE): Use http.delete(uri, headers: {...}).

Feedback Loop: Validation & Error Handling

  1. Run the HTTP request.
  2. Check response.statusCode.
  3. If 200 or 201, call jsonDecode(response.body) and map to a Dart object.
  4. If any other code, throw an Exception('Failed to load/update/delete resource').
  5. Review errors -> fix endpoint, headers, or payload structure.

Workflow: Implementing JSON Serialization

Choose the serialization strategy based on project complexity.

Conditional Implementation:

  • If building a small prototype or simple models: Use manual serialization with dart:convert.
  • If building a production app with complex/nested models: Use code generation with json_serializable.
Show full SKILL.md (192 more words)Show less
Manual Serialization Setup

Task Progress:

  • Import dart:convert.
  • Define the Model class with final properties.
  • Implement a factory Model.fromJson(Map<String, dynamic> json) constructor.
  • Implement a Map<String, dynamic> toJson() method.
Code Generation Setup (json_serializable)

Task Progress:

  • Add dependencies: flutter pub add json_annotation and flutter pub add -d build_runner json_serializable.
  • Import json_annotation.dart in the model file.
  • Add the part 'model_name.g.dart'; directive.
  • Annotate the class with @JsonSerializable(). Use explicitToJson: true if the class contains nested models.
  • Define the fromJson factory and toJson method delegating to the generated functions.
  • Run the generator: dart run build_runner build --delete-conflicting-outputs.

Workflow: Parsing Large JSON in the Background

Use this workflow to prevent frame drops when parsing large JSON payloads (e.g., lists of 1000+ items).

Task Progress:

  • Create a top-level or static function that takes a String (the response body) and returns the parsed Dart object (e.g., List<Model>).
  • Inside the function, call jsonDecode and map the results to the Model class.
  • In the HTTP fetch method, pass the top-level parsing function and the response.body to Flutter's compute() function.

Examples

Example 1: HTTP GET with Manual Serialization
dart
import 'dart:convert';
import 'package:http/http.dart' as http;

class Album {
  final int id;
  final String title;

  const Album({required this.id, required this.title});

  factory Album.fromJson(Map<String, dynamic> json) {
    return Album(
      id: json['id'] as int,
      title: json['title'] as String,
    );
  }
}

Future<Album> fetchAlbum() async {
  final uri = Uri.https('jsonplaceholder.typicode.com', '/albums/1');
  final response = await http.get(uri);

  if (response.statusCode == 200) {
    return Album.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
  } else {
    throw Exception('Failed to load album');
  }
}
Example 2: HTTP POST Request
dart
Future<Album> createAlbum(String title) async {
  final uri = Uri.https('jsonplaceholder.typicode.com', '/albums');
  final response = await http.post(
    uri,
    headers: <String, String>{
      'Content-Type': 'application/json; charset=UTF-8',
    },
    body: jsonEncode(<String, String>{'title': title}),
  );

  if (response.statusCode == 201) {
    return Album.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
  } else {
    throw Exception('Failed to create album.');
  }
}
Example 3: Background Parsing with compute
dart
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http;

// 1. Top-level function for parsing
List<Photo> parsePhotos(String responseBody) {
  final parsed = (jsonDecode(responseBody) as List<Object?>)
      .cast<Map<String, Object?>>();
  return parsed.map<Photo>(Photo.fromJson).toList();
}

// 2. Fetch function using compute
Future<List<Photo>> fetchPhotos(http.Client client) async {
  final uri = Uri.https('jsonplaceholder.typicode.com', '/photos');
  final response = await client.get(uri);

  if (response.statusCode == 200) {
    // Run parsePhotos in a separate isolate
    return compute(parsePhotos, response.body);
  } else {
    throw Exception('Failed to load photos');
  }
}
Example 4: Code Generation (json_serializable)
dart
import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable(explicitToJson: true)
class User {
  final String name;
  
  @JsonKey(name: 'registration_date_millis')
  final int registrationDateMillis;

  User(this.name, this.registrationDateMillis);

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);
}

© btwld, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/flutter-handling-http-and-json of btwld/superdeck.

Open the folder on GitHubat commit 815a746

Compare with similar skills

Flutter Handling HTTP And JSON next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Flutter Handling HTTP And JSON compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Flutter Handling HTTP And JSON this skillbtwld/superdeck130—~1.8kAutomated safety check: PassBSD-3-Clause
Layered ArchitectureVeryGoodOpenSource/vgv-ai-flutter-plugin169—~4.6kAutomated safety check: PassMIT
NpgsqlrestNpgsqlRest/NpgsqlRest132—~7kAutomated safety check: NotesMIT
Remote API DevelopmentFNOSP/FlyNarwhal495—~1.3kAutomated safety check: PassMIT
Flutter Use HTTP Packageabdulmominsakib/localmind2611 repos~1.6kAutomated safety check: PassMIT
Retrieving Developer Knowledgegoogle/skills21k—~2kAutomated safety check: PassApache-2.0

Similar skills

  • Layered Architecture

    VeryGoodOpenSource/vgv-ai-flutter-plugin

    VGV layered monorepo architecture in Flutter: four layers Data, Repository, Business Logic, and Presentation, unidirectional dependency rules, and model transformation across layers.

    169 GitHub stars~4.6k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Npgsqlrest

    NpgsqlRest/NpgsqlRest

    Build and modify REST APIs with NpgsqlRest — exposing PostgreSQL as HTTP endpoints from two sources (database functions/procedures/tables/views, and plain .sql files), driven by SQL comment…

    132 GitHub stars~7k tokensUpdated 5 days ago
    DatabasesAuto-check: notes
  • Remote API Development

    FNOSP/FlyNarwhal

    A skill your agent uses when adding, modifying, or refactoring any remote/HTTP API call in this Flutter project.

    495 GitHub stars~1.3k tokensUpdated yesterday
    MobileAuto-check passed
  • Flutter Use HTTP Package

    abdulmominsakib/localmind

    Use the http package to execute GET, POST, PUT, or DELETE requests.

    261 GitHub starsUsed in 1 repo~1.6k tokens
    MobileAuto-check passed
  • Official

    Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and other Google developer platforms.

    21k GitHub stars~2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Flutter Retrofit Networking

    HoangNguyen0403/agent-skills-standard

    Build type-safe HTTP networking with Dio and Retrofit including auth interceptors in Flutter.

    571 GitHub stars~561 tokensUpdated yesterday
    MobileAuto-check passed

More from btwld/superdeck

All 23 skills in this repo
  • Create, review, or edit SuperDeck Markdown presentations and Flutter presentation apps.

    130 GitHub stars~649 tokensUpdated 10 days ago
    Auto-check passed
  • Adds home screen widgets to a Flutter app for Android and iOS.

    130 GitHub stars~2.2k tokensUpdated 10 days ago
    Auto-check passed
  • Flutter Animating Apps

    btwld/superdeck

    Implements animated effects, transitions, and motion in a Flutter app.

    130 GitHub stars~1.9k tokensUpdated 10 days ago
    Auto-check passed
  • Architects a Flutter application using the recommended layered approach (UI, Logic, Data).

    130 GitHub stars~1.8k tokensUpdated 10 days ago
    Auto-check passed
  • Flutter Building Forms

    btwld/superdeck

    Builds Flutter forms with validation and user input handling.

    130 GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed
  • Builds Flutter layouts using the constraint system and layout widgets.

    130 GitHub stars~1.5k tokensUpdated 10 days ago
    Auto-check passed

Works with

Questions about Flutter Handling HTTP And JSON

What does Flutter Handling HTTP And JSON do?

Executes HTTP requests and handles JSON serialization in a Flutter app. Flutter Handling HTTP And JSON is an agent skill from btwld/superdeck. Executes HTTP requests and handles JSON serialization in a Flutter app.

When should I use Flutter Handling HTTP And JSON?

Flutter Handling HTTP And JSON fits situations like: integrating with REST APIs; parsing structured data from external sources.

How do I install Flutter Handling HTTP And JSON in Claude Code?

Run `npx skills add btwld/superdeck --skill flutter-handling-http-and-json -a claude-code`. Or copy the skill folder (.agents/skills/flutter-handling-http-and-json in btwld/superdeck) into .claude/skills/flutter-handling-http-and-json in your project. Claude Code loads it when a task matches its description.

How do I install Flutter Handling HTTP And JSON in Codex?

Run `npx skills add btwld/superdeck --skill flutter-handling-http-and-json -a codex`. Or copy the skill folder (.agents/skills/flutter-handling-http-and-json in btwld/superdeck) into .agents/skills/flutter-handling-http-and-json in your project. Codex loads it when a task matches its description.

Can I use Flutter Handling HTTP And JSON in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add btwld/superdeck --skill flutter-handling-http-and-json -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-handling-http-and-json, .gemini/skills/flutter-handling-http-and-json, .github/skills/flutter-handling-http-and-json and .opencode/skills/flutter-handling-http-and-json in your project.

What does Flutter Handling HTTP And JSON need to run?

Going by SKILL.md and its folder, Flutter Handling HTTP And JSON needs the command-line tools its instructions call (flutter and dart).

Does Flutter Handling HTTP And JSON access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Flutter Handling HTTP And JSON safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Flutter Handling HTTP And JSON use?

Flutter Handling HTTP And JSON is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Flutter Handling HTTP And JSON use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Flutter Handling HTTP And JSON?

Skills that share tags, products or a category with Flutter Handling HTTP And JSON: Layered Architecture (VeryGoodOpenSource/vgv-ai-flutter-plugin, 169 stars), Npgsqlrest (NpgsqlRest/NpgsqlRest, 132 stars), Remote API Development (FNOSP/FlyNarwhal, 495 stars) and Flutter Use HTTP Package (abdulmominsakib/localmind, 261 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Flutter Handling HTTP And JSON?

btwld (a GitHub organization) maintains it in btwld/superdeck, which has 130 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 28, 2026.

Source: btwld/superdeck on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.