dart-concurrency
Skill2 starsChanged 30 days agoApache-2.0View on GitHub
Prevents, diagnoses, and fixes asynchronous problems in Dart and Flutter: UI freezes and jank, event loop starvation, race conditions, shared-state corruption, isolate deadlocks, and test timeouts, using the Dart MCP analysis, test, and runtime tools. Use when the UI hangs or stutters, when a test times out around Futures, Streams, FakeAsync, or pumpAndSettle, or when the analyzer reports unawaited_futures, discarded_futures, or use_build_context_synchronously. Don't use for moving CPU-bound work such as JSON parsing into an isolate in an otherwise healthy app (use flutter-concurrency).
2 other projects use a version of this.
Adopted by
Most recently taken up by
- thienqo/flutter-skillstheir own version, first seen Nov 1, 2026
- thiennc-tesoglobal/flutter-skillstheir own version, first seen Aug 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- thiennc-tesoglobal/flutter-skills★ 16same name
- thienqo/flutter-skills★ 16same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- agy-debuggerSkill
- analyze-github-prSkill
- api-reviewSkill
- branch-cleanupSkill
- code-documentationSkill
- code-reviewSkill
- cognitive-complexitySkill
- commit-changesSkill
- context-indexerSkill
- cost-optimizationSkill
- dart-cli-app-best-practicesSkill
- dart-modern-featuresSkill
- designSkill
- duckdbSkill
- flutter-architectureSkill
- flutter-concurrencySkill
- flutter-testingSkill
- gh-cliSkill
- git-stackSkill
- grill-meSkill
- matcher-to-checksSkill
- merge-codeSkill
- mermaid-diagramsSkill
- monitorSkill
- nochangeSkill
- packratSkill
- planSkill
- pr-feedback-handlerSkill
- proposal-writerSkill
- pr-reviewer-recommendationSkill
- pr-reviewSkill
- sem-semantic-infoSkill
- ship-itSkill
- skill-creatorSkill
- unix-cli-best-practicesSkill
- write-pr-descriptionSkill
- write-proseSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Before debugging runtime issues, enforce structural correctness.
- Very specific: line 35
Scan: Use analyze_files to check analysis_options.yaml.
- Very specific: line 36
Enforce: Ensure unawaited_futures, discarded_futures, and use_build_context_synchronously are enabled.
- Distinctive: line 37
Remediate: If violations are found, apply the strategies defined in references/static-analysis.md.
- Distinctive: line 41
If a defect is reported via CI/CD or local testing:
- Very specific: line 43
Execute: Run run_tests with the --log-file argument.
- Distinctive: line 49
If the application is unresponsive but compiles:
- Very specific: line 52
Check Errors: Use get_runtime_errors to identify unhandled exceptions.
- Distinctive: line 53
Profile: Use VM Service lookups to differentiate between Event Loop Starvation and Deadlocks.
- Distinctive: line 54
If CPU is high and stack traces show recursion: See references/event-loops.md.
- Distinctive: line 55
If CPU is low and execution halts: See references/race-conditions.md or references/isolate-management.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dart Concurrency Anomalies Workflow
MCP Toolchain Dependencies
This skill requires access to the dart and dart_analysis_server MCP toolsets:
- analyze_files: For static analysis and AST parsing.
- run_tests: To reproduce hangs and capture timeout logs (
--log-file). - dtd: To bridge into the runtime environment (Dart Tooling Daemon).
- get_runtime_errors: To fetch current runtime errors and stack traces.
- widget_inspector: To detect infinite rendering loops.
- hot_reload: To inject fixes without losing state.
- pub_dev_search: To find pub packages (e.g.,
synchronized).
Operational Workflows
Phase 1: Proactive Static Analysis
Before debugging runtime issues, enforce structural correctness.
- Scan: Use
analyze_filesto checkanalysis_options.yaml. - Enforce: Ensure
unawaited_futures,discarded_futures, anduse_build_context_synchronouslyare enabled. - Remediate: If violations are found, apply the strategies defined in references/static-analysis.md.
Phase 2: Test Suite Reproduction
If a defect is reported via CI/CD or local testing:
- Execute: Run
run_testswith the--log-fileargument. - Parse: Scan logs for
pumpAndSettletimed out orFakeAsyncdiscrepancies. - Resolve: Apply heuristics from references/test-suite-anomalies.md.
Phase 3: Runtime Introspection (The "Hang" Protocol)
If the application is unresponsive but compiles:
- Connect: Invoke
dtd. - Check Errors: Use
get_runtime_errorsto identify unhandled exceptions. - Profile: Use VM Service lookups to differentiate between Event Loop Starvation and Deadlocks.
- If CPU is high and stack traces show recursion: See references/event-loops.md.
- If CPU is low and execution halts: See references/race-conditions.md or references/isolate-management.md.
Decision Trees
Is the UI Frozen?
- Yes -> Check Event Loop Starvation (High CPU) or Deadlock (Low CPU).
- No (stale data) -> Check Race Conditions.
Is it a Test Timeout?
pumpAndSettle-> Infinite Animation.- Silent Hang ->
FakeAsyncvs. Real I/O conflict.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

