flutter-squadron-concurrency-engineering

flutter-squadron-concurrency-engineering is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 128 tokens per session (3,962 once invoked), scanned A, original, MIT.

A coding guide for running suitable Dart work away from Flutter's main isolate using Squadron. An isolate is a separate Dart execution context; on the web, the comparable mechanism is a Web Worker.

In plain words
What is it for?
Use it for CPU-intensive processing, worker and worker-pool APIs, generated worker code, data transfer objects, cancellation, backpressure, stale-result protection, lifecycle handling, and separate native and web testing.
Why use it?
It helps determine whether work is CPU-heavy enough to justify a worker and accounts for startup, message transfer, queues, cancellation, and worker shutdown. This avoids moving ordinary network or storage waits off the main isolate without benefit.

Skill for Claude CodeCodex

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

Good fit Use it for CPU-intensive processing, worker and worker-pool APIs, generated worker code, data transfer objects, cancellation, backpressure, stale-result protection, lifecycle handling, and separate native and web testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering
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 ariaramin/flutter-skills --skill flutter-squadron-concurrency-engineering
Clone the repo
git clone --depth 1 https://github.com/ariaramin/flutter-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-squadron-concurrency-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering/github.svg)](https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering)
Your own site
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering/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-squadron-concurrency-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-squadron-concurrency-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,962 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.00128 $0.03962
Opus 5.5 $0.00051 $0.01585
Sonnet 5.5 $0.00026 $0.00792
Haiku 4.5 $0.00013 $0.00396

Measured 5d ago against content hash 8114ff38cea1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-squadron-concurrency-engineering 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 5d 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-squadron-concurrency-engineering/SKILL.md · 493 lines

How it starts

The opening of the file, as written. The whole thing — 493 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter Squadron Concurrency Engineering

Mission

Move only the right computation off Flutter's main isolate, using the smallest justified worker boundary, message volume, concurrency, and lifecycle cost. Use this decision loop:

measure the slow stage
→ classify CPU vs I/O
→ estimate transfer/startup cost
→ choose main/Future/compute/Worker/Pool/server
→ define coarse worker API + wire types
→ bound concurrency/backpressure
→ add cancellation + stale-result protection
→ own worker lifecycle
→ test native and web separately
→ profile end-to-end + UI frames + memory/thermals

Squadron is structured worker/RPC infrastructure, not a generic wrapper around every Future.

Non-negotiable rules

  1. Measure before offloading.
  2. Use workers mainly for meaningful CPU-bound or long-running isolated work.
  3. Do not offload ordinary HTTP, socket, storage, or timer waits merely because they are asynchronous.
  4. Measure total worker cost, including startup, marshaling, transfer, queue wait, compute, and result handling.
  5. Treat every worker method as a serialization boundary API.
  6. Keep messages compact and task APIs coarse-grained.
  7. Batch tiny operations rather than issuing thousands of RPC calls.
  8. Reuse persistent workers when recurring work justifies startup amortization.
  9. Use a pool only when true parallel throughput is needed.
  10. Bound maxWorkers; do not unintentionally leave CPU burst workloads unbounded.
  11. For CPU-heavy pool tasks, default to maxParallel: 1 unless measurement and semantics prove otherwise.
  12. Do not set pool size mechanically to processor count.
  13. Preserve CPU headroom for Flutter UI/raster work and the operating system.
  14. Keep worker computation pure and platform-independent where practical.
  15. Never pass BuildContext, Widgets, RenderObjects, controllers, or other UI/runtime objects across workers.
  16. Verify any Flutter plugin used from workers explicitly supports the required background-isolate/platform behavior.
  17. Use supported wire types or explicit SquadronMarshalers for custom DTOs.
  18. Do not claim zero-copy unless the exact platform/type path truly provides transfer semantics.
  19. Use cooperative cancellation when expensive running CPU work must actually stop.
  20. Reject stale results even when cancellation exists.
  21. Treat one worker's async methods as potentially interleaving across await points.
  22. Do not assume pool calls hit the same worker; use a dedicated worker or pool.execute() for state affinity.
  23. Own worker/pool lifecycle explicitly and call stop().
  24. Build and deploy web worker artifacts explicitly; native success does not prove web correctness.
  25. Optimize user responsiveness, memory, battery, and thermals—not just raw throughput.

Read the full file on GitHub · 493 lines

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. 5d ago First seen · 493 lines · 128 tokens per session scan A 8114ff38cea1

Subscribe to this mod's changes

flutter-squadron-concurrency-engineering is a skill published in the GitHub repository ariaramin/flutter-skills (6 stars, last pushed 6d ago), licensed MIT. It adds 128 tokens to every session and 3,962 once invoked, about $0.0005 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-10-11.