Fjson Dart Bean Generator
K3vinb5/unyo-app
Generate Dart bean classes from JSON and regenerate serialization helpers using the fjson CLI.
A skill your agent uses when handling custom classes, object serialization, deserialization, and custom marshalers (SquadronMarshaler, GenericMarshaler, MarshalingContext) for cross-platform worker…
$ npx skills add d-markey/squadron --skill squadron-marshaling -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install d-markey/squadron squadron-marshaling --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/squadron-marshaling .claude/skills/squadron-marshaling && rm -rf skills-srcUse ~/.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/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .claude/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/d-markey/squadron/tree/main/skills/squadron-marshalingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add d-markey/squadron --skill squadron-marshaling -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install d-markey/squadron squadron-marshaling --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/squadron-marshaling .agents/skills/squadron-marshaling && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .agents/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add d-markey/squadron --skill squadron-marshaling -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install d-markey/squadron squadron-marshaling --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/squadron-marshaling .cursor/skills/squadron-marshaling && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .cursor/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/d-markey/squadron.git --path skills/squadron-marshaling--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add d-markey/squadron --skill squadron-marshaling -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install d-markey/squadron squadron-marshaling --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/squadron-marshaling .gemini/skills/squadron-marshaling && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .gemini/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install d-markey/squadron squadron-marshalingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add d-markey/squadron --skill squadron-marshaling -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/squadron-marshaling .github/skills/squadron-marshaling && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .github/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add d-markey/squadron --skill squadron-marshaling -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install d-markey/squadron squadron-marshaling --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/d-markey/squadron.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/squadron-marshaling .opencode/skills/squadron-marshaling && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "squadron-marshaling" agent skill from https://github.com/d-markey/squadron/tree/main/skills/squadron-marshaling into .opencode/skills/squadron-marshaling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "squadron-marshaling", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
squadron-marshalingA skill your agent uses when handling custom classes, object serialization, deserialization, and custom marshalers (SquadronMarshaler, GenericMarshaler, MarshalingContext) for cross-platform worker…
Squadron Marshaling is an agent skill from d-markey/squadron. Use when handling custom classes, object serialization, deserialization, and custom marshalers (SquadronMarshaler, GenericMarshaler, MarshalingContext) for cross-platform worker communication in Squadron.
Its SKILL.md is about 2.6k 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. It works with Dart. The repository describes itself as: Multithreading and worker thread pool for Dart / Flutter, to offload CPU-bound and heavy I/O tasks to Isolate or Web Worker threads (JS+WASM). The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4ab7f15. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are dart).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Squadron Marshaling loads about 2.6k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 833 words of instructions outside code blocks.
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.
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.
The full file from d-markey/squadron at commit 4ab7f15, republished under its MIT licence (© d-markey). 833 words, ~2,648 tokens.
.claude/skills/squadron-marshaling/SKILL.md (or your agent's skills folder).In Squadron, passing base types (int, double, String, bool, null, nullable variants, List, Map) between the main thread and worker threads is handled automatically. However, passing custom classes requires serialization/deserialization because thread boundaries (isolates on Native, Web Workers on Web) do not share memory.
Note on Spelling: While British English uses marshalling (two 'l's), American English uses marshaling (one 'l'). Squadron follows the American spelling and uses SquadronMarshaler (one 'l') in its class names.
List, Map, or JSArrayBuffer).When passing custom classes across thread boundaries, Squadron provides two primary ways to handle serialization:
marshal() / unmarshal() or standard toJson() / fromJson()).SquadronMarshaler interface. Note that marshaler classes are used as annotations (for service method arguments/return types or on the custom class itself), and as a result must provide const constructors and be instantiable as const instances.You can implement serialization directly within your custom class without writing a separate marshaler class:
SomeTransferable marshal({MarshalingContext? context}) and a factory constructor or static method static MyCustomType unmarshal(SomeTransferable transferable, {MarshalingContext? context}).squadron_builder can also automatically detect and use standard toJson() and fromJson() methods when present. (Note: The JSON approach is simple and straightforward, but does not support a MarshalingContext, meaning it cannot handle circular references or object identity preservation across complex object graphs).marshal() & unmarshal()import 'package:squadron/squadron.dart';
class TaskItem {
final String id;
final String description;
TaskItem(this.id, this.description);
// Serialize to a transferable List or Map
List marshal({MarshalingContext? context}) {
return [id, description];
}
// Deserialize back from the transferable representation
static TaskItem unmarshal(dynamic transferable, {MarshalingContext? context}) {
final list = transferable as List;
return TaskItem(list[0] as String, list[1] as String);
}
}toJson() & fromJson()class TaskItemJson {
final String id;
final String description;
TaskItemJson(this.id, this.description);
Map<String, dynamic> toJson() => {
'id': id,
'description': description,
};
factory TaskItemJson.fromJson(Map<String, dynamic> json) =>
TaskItemJson(json['id'] as String, json['description'] as String);
}SquadronMarshaler InterfaceFor cleaner separation of concerns, you can implement a separate marshaler class using the SquadronMarshaler interface (GenericMarshaler & MarshalingContext). Because these dedicated marshaler classes are used as annotations (e.g., @PersonMarshaler()), they must have a const constructor and be usable as const instances.
To send custom classes across threads via a separate marshaler, implement SquadronMarshaler<T, S>:
T: The original custom class type.S: The transferable / serializable representation type (typically List or Map).abstract class SquadronMarshaler<T, S> {
const SquadronMarshaler();
S marshal(T data, [MarshalingContext? context]);
T unmarshal(S data, [MarshalingContext? context]);
}Rule: unmarshal(marshal(data)) must produce an instance of T equivalent to the original data.
identical(original, unmarshaled) will always return false, and the equality operator (==) will return false unless explicitly overloaded in your class T.GenericMarshaler & MarshalingContextFor complex object graphs, deep structures, or circular references, Squadron provides GenericMarshaler and MarshalingContext.
MarshalingContext: Tracks object references during serialization and deserialization to prevent infinite loops (e.g., circular graphs or shared references) and preserve object identity within the same payload transfer.part of 'person.dart';
class PersonMarshaler extends GenericMarshaler<Person> {
const PersonMarshaler();
@override
dynamic marshal(Person data, [MarshalingContext? context]) {
var res = context?.getReference<List>(data);
if (res != null) return res;
res = [
data.lastName,
data.firstName,
data.dateOfBirth,
];
// Register reference before recursing to handle circular references
context?.setReference(data, res);
return res;
}
@override
Person unmarshal(dynamic data, [MarshalingContext? context]) {
data as List;
var res = context?.getReference<Person>(data);
if (res != null) return res;
res = Person._(data[0], data[1], data[2]);
context?.setReference(data, res);
return res;
}
}List or MapTo completely avoid the cost and complexity of writing custom marshalers for custom data structures, you can implement business objects as Dart extension types wrapping a List or Map.
Because extension types are statically erased at runtime back to their underlying representation (List or Map), they are passed across thread boundaries natively without needing any serialization or custom marshaler.
person_ex.dart):extension type PersonEx(Map<String, dynamic> _data) {
PersonEx({required String lastName, required String firstName, int? age})
: this({'lastName': lastName, 'firstName': firstName, 'age': age});
String get lastName => _data['lastName'] as String;
String get firstName => _data['firstName'] as String;
int? get age => _data['age'] as int?;
}Note: Do not implement or implement-forward the underlying Map (e.g., omit implements Map<String, dynamic>), as doing so would expose raw map mutation methods that could violate object immutability (e.g., allowing unintended writes to keys).
Map.Map).== or hashCode in extension types (value equality must be handled via helper functions or property comparisons).Because Native (VM) isolates can natively pass and copy many object types while Web Workers require strict serialization, you can optimize performance by implementing platform-specific marshalers:
GenericMarshaler<T> (or a custom serializer) on Web.IdentityMarshaler<T> on the VM/Native platform (which passes objects directly with zero overhead).You can export or alias the correct marshaler conditionally using Dart's export ... if (dart.library.js_interop) ...:
person_marshaler.dart):export 'person_marshaler_stub.dart'
if (dart.library.io) 'person_marshaler_vm.dart'
if (dart.library.js_interop) 'person_marshaler_web.dart';person_marshaler_stub.dart (fallback / analyzer stub):
import 'package:squadron/squadron.dart';
import 'person.dart';
abstract class PersonMarshaler implements SquadronMarshaler<Person, dynamic> {
const PersonMarshaler();
}person_marshaler_vm.dart (Native / VM platform):
import 'package:squadron/squadron.dart';
import 'person.dart';
// Zero-overhead identity marshaler on VM
typedef PersonMarshaler = IdentityMarshaler<Person>;person_marshaler_web.dart (Web platform):
import 'package:squadron/squadron.dart';
import 'person.dart';
// Full serialization marshaler on Web
class PersonMarshaler extends GenericMarshaler<Person> {
const PersonMarshaler();
// ... marshal / unmarshal implementations for Web ...
}@SquadronMethod & @MyCustomTypeMarshaler)To instruct squadron_builder to marshal custom parameters or return types, MyCustomType parameters must be decorated with a marshaler (ensuring marshalers provide a const constructor and can be instantiated as const instances):
@SquadronMethod()
@PersonMarshaler()
Future<Person> processPerson(@PersonMarshaler() Person person) async {
// ...
}Alternative (Global Registration):
Instead of decorating parameters individually on every method, you can decorate the custom class itself with its marshaler. When decorated this way, squadron_builder automatically uses the registered marshaler everywhere the custom type is required across service methods:
@PersonMarshaler()
class Person {
// ...
}
@SquadronService()
class MyService {
@SquadronMethod()
Future<Person> processPerson(Person person) async {
// Automatically uses PersonMarshaler
return person;
}
}© d-markey, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/squadron-marshaling of d-markey/squadron.
Open the folder on GitHubat commit 4ab7f15
Squadron Marshaling 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Squadron Marshaling this skilld-markey/squadron | 138 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Fjson Dart Bean GeneratorK3vinb5/unyo-app | 662 | — | ~2.2k | Automated safety check: Pass | BSD-3-Clause | |
| Flutter Riverpod State Managementandrewyng/context-hub | 14k | — | ~1.1k | Automated safety check: Pass | MIT | |
| BlocVeryGoodOpenSource/vgv-ai-flutter-plugin | 170 | — | ~2k | Automated safety check: Pass | MIT | |
| Dart Best Practiceskevmoo/dash_skills | 147 | — | ~709 | Automated safety check: Pass | Apache-2.0 | |
| Build Runnerbrim-borium/spotify_sdk | 166 | — | ~195 | Automated safety check: Pass | Apache-2.0 |
K3vinb5/unyo-app
Generate Dart bean classes from JSON and regenerate serialization helpers using the fjson CLI.
andrewyng/context-hub
Guides Flutter state management with Riverpod: choosing provider types, wiring ConsumerWidgets, handling async state and lifecycle, and overriding providers in tests.
VeryGoodOpenSource/vgv-ai-flutter-plugin
Best practices for Bloc state management in Flutter/Dart, covering Cubit versus Bloc, event and state naming, sealed classes with Equatable, the Page/View split with BlocProvider, BlocBuilder…
kevmoo/dash_skills
General best practices for Dart development. An agent skill from kevmoo/dash_skills.
brim-borium/spotify_sdk
Generate Dart JSON models and .g.dart files using buildrunner.
kevmoo/dash_skills
Best practices for validating Dart documentation comments. An agent skill from kevmoo/dash_skills.
d-markey/squadron
A skill your agent uses when implementing task cancelation, handling CancelationToken, propagating cancelation signals across thread/worker boundaries, and dealing with synchronous vs.
d-markey/squadron
A skill your agent uses when building, writing, or refactoring Squadron workers, worker pools, worker services, or using squadronbuilder annotations (@SquadronService, @SquadronMethod) for…
Works with
Categories
A skill your agent uses when handling custom classes, object serialization, deserialization, and custom marshalers (SquadronMarshaler, GenericMarshaler, MarshalingContext) for cross-platform worker…. Squadron Marshaling is an agent skill from d-markey/squadron. Use when handling custom classes, object serialization, deserialization, and custom marshalers (SquadronMarshaler, GenericMarshaler, MarshalingContext) for cross-platform worker communication in Squadron.
Squadron Marshaling fits situations like: handling custom classes; object serialization; deserialization; custom marshalers (SquadronMarshaler.
Run `npx skills add d-markey/squadron --skill squadron-marshaling -a claude-code`. Or copy the skill folder (skills/squadron-marshaling in d-markey/squadron) into .claude/skills/squadron-marshaling in your project. Claude Code loads it when a task matches its description.
Run `npx skills add d-markey/squadron --skill squadron-marshaling -a codex`. Or copy the skill folder (skills/squadron-marshaling in d-markey/squadron) into .agents/skills/squadron-marshaling in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add d-markey/squadron --skill squadron-marshaling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/squadron-marshaling, .gemini/skills/squadron-marshaling, .github/skills/squadron-marshaling and .opencode/skills/squadron-marshaling in your project.
SKILL.md names no scripts, command-line tools or credentials: Squadron Marshaling is instructions for the agent only.
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.
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.
Squadron Marshaling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Squadron Marshaling: Fjson Dart Bean Generator (K3vinb5/unyo-app, 662 stars), Flutter Riverpod State Management (andrewyng/context-hub, 14k stars), Bloc (VeryGoodOpenSource/vgv-ai-flutter-plugin, 170 stars) and Dart Best Practices (kevmoo/dash_skills, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
d-markey (a GitHub user) maintains it in d-markey/squadron, which has 138 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 22, 2026.
Source: d-markey/squadron on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.