audit-ui-thread-safety

audit-ui-thread-safety is a skill for Claude Code, Codex from flutter/flutter-intellij. It costs 32 tokens per session (458 once invoked), scanned A, original, BSD-3-Clause.

A guided review of code that runs on the Event Dispatch Thread, the part of an IntelliJ-based application's UI responsible for responding to user actions and drawing the interface.

In plain words
What is it for?
Use it to move slow work to background threads, check modal dialogs, run project checks, and test the plugin for UI freezes.
Why use it?
It finds file access, network calls, and heavy calculations that can freeze the interface while they run.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to move slow work to background threads, check modal dialogs, run project checks, and test the plugin for UI freezes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flutter/flutter-intellij/audit-ui-thread-safety
About the project

Flutter Plugin for IntelliJ is an IntelliJ plugin that adds support for developing Flutter applications, which can run on iOS, Android, and the web. It is used by Flutter developers working in IntelliJ IDEA or Android Studio.

flutter/flutter-intellij · 2,019 stars · on GitHub · docs.flutter.dev

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 flutter/flutter-intellij --skill audit-ui-thread-safety
Clone the repo
git clone --depth 1 https://github.com/flutter/flutter-intellij

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 audit-ui-thread-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/flutter-intellij/audit-ui-thread-safety/github.svg)](https://agentmods.dev/skills/flutter/flutter-intellij/audit-ui-thread-safety)
Your own site
<a href="https://agentmods.dev/skills/flutter/flutter-intellij/audit-ui-thread-safety"><img src="https://agentmods.dev/badge/skills/flutter/flutter-intellij/audit-ui-thread-safety/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 audit-ui-thread-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/flutter-intellij/audit-ui-thread-safety"><img src="https://agentmods.dev/badge/skills/flutter/flutter-intellij/audit-ui-thread-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 458 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00032 $0.00458
Opus 5.5 $0.00013 $0.00183
Sonnet 5.5 $0.00006 $0.00092
Haiku 4.5 $0.00003 $0.00046

Measured 1mo ago against content hash 08aa0af8cf80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-ui-thread-safety 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 1mo 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.

.agents/skills/audit-ui-thread-safety/SKILL.md · 42 lines

What it actually says

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").
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. 1mo ago First seen · 42 lines · 32 tokens per session scan A 08aa0af8cf80

Subscribe to this mod's changes

audit-ui-thread-safety is a skill published in the GitHub repository flutter/flutter-intellij (2,019 stars, last pushed today), licensed BSD-3-Clause. It adds 32 tokens to every session and 458 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories