/dart-flutter:flutter-use-http-packagefrom Dart and Flutter
Use package:http for Flutter REST requests. Use for request construction, response validation, JSON decoding, client injection, and network tests.
Ships in Dart and Flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add http if needed and use Uri to build URLs and query parameters. Inject an http.Client for reusable services so tests can supply a mock client. Close a client that the service owns.
Set headers and encode JSON bodies for the API contract. Check the documented success status for each operation; successful responses can include 200, 201, or 204. Do not decode an empty response body. Include status and safe response context in failures without exposing credentials. Avoid unconditional dart:io imports in code that must compile for Flutter web.
Decode into typed models with checked casts or patterns. Move expensive parsing off the UI isolate when measurements or payload size justify it; keep small payloads simple. Use the app's existing state-management approach. FutureBuilder is an option for a suitable one-shot request, not a required wrapper for every request.
Test request method, URI, headers, success and error responses, and JSON shape with a controlled client. Verify platform permissions only for platforms the app targets. Do not add a live token or real API call to an example test.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mordechai30/flutter-dart-skills --plugin dart-flutter26 skills in this plugin
/dart-add-unit-testAdd focused unit tests for Dart code with package:test, or flutter_test in Flutter projects. Use for new logic and regressions that can be checked without a running app./dart-build-cli-appBuild Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior. Use for console apps and installed Dart executables./dart-collect-coverageCollect and inspect LCOV test coverage for Dart or Flutter projects. Use when the user requests a coverage report or needs to find untested behavior./dart-fix-runtime-errorsDiagnose and fix observed Dart or Flutter runtime failures from a stack trace, failing test, or running app. Use for exceptions, failed casts, late initialization errors, and similar failures./dart-generate-test-mocksGenerate Mockito test doubles for Dart or Flutter dependencies when hand-written fakes are impractical. Use for controlled service responses and interaction verification./dart-migrate-to-checks-packageReplace the usage of `expect` and similar functions from `package:matcher`
to `package:checks` equivalents.