Agent skill

Audit UI Thread Safety

by flutter in flutter/flutter-intellij

Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

BSD-3-ClauseAuto-check passedMobile

Install Audit UI Thread Safety

skills CLI
$ npx skills add flutter/flutter-intellij --skill audit-ui-thread-safety -a claude-code

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

GitHub CLI
$ gh skill install flutter/flutter-intellij audit-ui-thread-safety --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/flutter/flutter-intellij.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/audit-ui-thread-safety .claude/skills/audit-ui-thread-safety && 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
audit-ui-thread-safety
GitHub stars
2k
Token cost
~518 tokens
SKILL.md length
266 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

  • Works in 7 steps: Baseline → Audit EDT Usage → Identify Blocking Calls → …
  • Tasks that involve UX design
  • SKILL.md covers Objective and Workflow Instructions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Audit UI Thread Safety is an agent skill from flutter/flutter-intellij. Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

Its SKILL.md is about 520 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 UX design and Cross-platform mobile apps. It works with Flutter. The repository describes itself as: Flutter Plugin for IntelliJ. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve UX design
  • Tasks that involve Cross-platform mobile apps

Example prompts

  • “/audit-ui-thread-safety”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Baseline
  2. Audit EDT Usage
  3. Identify Blocking Calls
  4. Migrate to Background
  5. Check Modality
  6. Verify
  7. Report & Review

What it can do on your machine

Read from SKILL.md and the folder at commit 6d5ab33. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Audit UI Thread Safety loads about 518 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 266 words of instructions outside code blocks.

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

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 flutter/flutter-intellij at commit 6d5ab33, republished under its BSD-3-Clause licence (© flutter). 266 words, ~518 tokens.

Download SKILL.mdSave it as .claude/skills/audit-ui-thread-safety/SKILL.md (or your agent's skills folder).
name
audit-ui-thread-safety
description
Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

Skill: UI Thread Safety & Responsiveness

You are tasked with preventing UI freezes and ensuring a responsive user experience by validating threading rules.

Objective

Prevent UI freezes and ensure a responsive user experience by validating threading rules.

Workflow Instructions

1. Baseline
  • Run ./gradlew test and ./gradlew verifyPlugin to ensure the project is in a good state before refactoring.
2. Audit EDT Usage
  • Search for usages of runInEdt, invokeLater, and invokeAndWait.
3. Identify Blocking Calls
  • Ensure no I/O operations (file access, network calls) or heavy computations occur within these UI blocks.
4. Migrate to Background
  • Refactor heavy tasks to run on background threads using Task.Backgroundable or ReadAction.nonBlocking.
5. Check Modality
  • Verify that modal dialogs do not block the UI thread unnecessarily.
6. Verify
  • Run ./gradlew testClasses to ensure safe refactoring.
  • Run ./gradlew test and ./gradlew verifyPlugin to ensure no regressions.
  • Run the plugin in a sandbox (./gradlew runIde) and perform key actions while monitoring for UI freezes.
  • Suggest manual test steps: Check the code changes made and write test steps for a user to execute that will trigger the code paths that have changed. If needed, add logging statements to verify that the code paths have successfully run.
7. Report & Review
  • Summarize the threading fixes.
  • Test Location: Explicitly state where in the IDE the user should go to test the changed functionality (e.g., "Go to Preferences > Languages & Frameworks > Flutter").
  • Action: Ask the user to review the changes closely to ensure no deadlocks or UI freezes are introduced.
  • Do not commit or push.
  • Provide a suggested Git commit message (e.g., "Fix UI freeze: Move heavy computation to background task").

© flutter, 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/audit-ui-thread-safety of flutter/flutter-intellij.

Open the folder on GitHubat commit 6d5ab33

Compare with similar skills

Audit UI Thread Safety 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.

Audit UI Thread Safety compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audit UI Thread Safety this skillflutter/flutter-intellij2k—~518Automated safety check: PassBSD-3-Clause
Flutter Animationsaiskillstore/marketplace430—~3.7kAutomated safety check: PassNone
Native Desktop UI TestingFNOSP/FlyNarwhal495—~2.4kAutomated safety check: PassAGPL-3.0
Flutter Dart Code Reviewaffaan-m/ECC274k2 repos~5.8kAutomated safety check: NotesMIT
Mobile App UI Designceorkm/mobile-app-ui-design400—~2kAutomated safety check: PassNone
Cue AnimationsMilad-Akarie/cue1191 repos~6.6kAutomated safety check: PassMIT

Similar skills

  • Flutter Animations

    aiskillstore/marketplace

    Comprehensive guide for implementing animations in Flutter. An agent skill from aiskillstore/marketplace.

    430 GitHub stars~3.7k tokensUpdated today
    MobileAuto-check passed
  • Run and verify Flutter desktop behavior on Windows/macOS/Linux native clients.

    495 GitHub stars~2.4k tokensUpdated yesterday
    MobileAuto-check passed
  • Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance…

    274k GitHub starsUsed in 2 repos~5.8k tokens
    MobileAuto-check: notes
  • Mobile App UI Design

    ceorkm/mobile-app-ui-design

    Design high-quality mobile app UI/UX screens, flows, and components.

    400 GitHub stars~2k tokensUpdated 3 mo ago
    MobileAuto-check passed
  • Cue Animations

    Milad-Akarie/cue

    Flutter animation using the Cue package. An agent skill from Milad-Akarie/cue.

    119 GitHub starsUsed in 1 repo~6.6k tokens
    MobileAuto-check passed
  • Marionette Flutter Drive App

    leancodepl/marionette_mcp

    Set up and drive a running Flutter app (debug or profile) with Marionette — an AI agent's hands and eyes for the app.

    473 GitHub stars~11k tokensUpdated 2 days ago
    MobileAuto-check passed

More from flutter/flutter-intellij

All 14 skills in this repo
  • Release Plugin

    flutter/flutter-intellij

    Prepare and execute a new release for the flutter-intellij plugin, including updating dependencies, compatibility bounds, changelogs, and verification.

    2k GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Add Missing Unit Test

    flutter/flutter-intellij

    Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

    2k GitHub stars~591 tokensUpdated 3 days ago
    Auto-check passed
  • Audit Accessibility

    flutter/flutter-intellij

    Ensure the plugin's custom UI components are accessible to users with screen readers and other assistive technologies.

    2k GitHub stars~520 tokensUpdated 3 days ago
    Auto-check passed
  • Audit Dependencies

    flutter/flutter-intellij

    Optimize plugin size and security by removing unused dependencies and updating outdated libraries.

    2k GitHub stars~475 tokensUpdated 3 days ago
    Auto-check passed
  • Cleanup Code Inspections

    flutter/flutter-intellij

    Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

    2k GitHub stars~429 tokensUpdated 3 days ago
    Auto-check passed
  • Code Review

    flutter/flutter-intellij

    Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices.

    2k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Audit UI Thread Safety

What does Audit UI Thread Safety do?

Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT). Audit UI Thread Safety is an agent skill from flutter/flutter-intellij. Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

When should I use Audit UI Thread Safety?

Audit UI Thread Safety fits situations like: tasks that involve UX design; tasks that involve Cross-platform mobile apps.

How do I install Audit UI Thread Safety in Claude Code?

Run `npx skills add flutter/flutter-intellij --skill audit-ui-thread-safety -a claude-code`. Or copy the skill folder (.agents/skills/audit-ui-thread-safety in flutter/flutter-intellij) into .claude/skills/audit-ui-thread-safety in your project. Claude Code loads it when a task matches its description.

How do I install Audit UI Thread Safety in Codex?

Run `npx skills add flutter/flutter-intellij --skill audit-ui-thread-safety -a codex`. Or copy the skill folder (.agents/skills/audit-ui-thread-safety in flutter/flutter-intellij) into .agents/skills/audit-ui-thread-safety in your project. Codex loads it when a task matches its description.

Can I use Audit UI Thread Safety 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 flutter/flutter-intellij --skill audit-ui-thread-safety -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audit-ui-thread-safety, .gemini/skills/audit-ui-thread-safety, .github/skills/audit-ui-thread-safety and .opencode/skills/audit-ui-thread-safety in your project.

What does Audit UI Thread Safety need to run?

SKILL.md names no scripts, command-line tools or credentials: Audit UI Thread Safety is instructions for the agent only.

Does Audit UI Thread Safety 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 Audit UI Thread Safety 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 Audit UI Thread Safety use?

Audit UI Thread Safety 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 Audit UI Thread Safety use?

About 518 tokens (SKILL.md is roughly 2.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 Audit UI Thread Safety?

Skills that share tags, products or a category with Audit UI Thread Safety: Flutter Animations (aiskillstore/marketplace, 430 stars), Native Desktop UI Testing (FNOSP/FlyNarwhal, 495 stars), Flutter Dart Code Review (affaan-m/ECC, 274k stars) and Mobile App UI Design (ceorkm/mobile-app-ui-design, 400 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audit UI Thread Safety?

flutter (a GitHub organization) maintains it in flutter/flutter-intellij, which has 2,016 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 5, 2026.

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