review-async-lifecycle

review-async-lifecycle is a skill for Claude Code, Codex from explyt/spring-plugin. It costs 66 tokens per session (4,440 once invoked), scanned A, original, Apache-2.0.

A project-specific code-review guide for checking asynchronous work, threading, cancellation, listeners, resource cleanup, and safe updates in the explyt Spring plugin. It treats its rules as required standards.

In plain words
What is it for?
Reviewing changes to inspections, code completion, reference resolution, line markers, gutter actions, external-system imports, coroutines, callbacks, read/write actions, listeners, or disposable resources.
Why use it?
It helps reviewers find freezes, race conditions, unfinished background work, incorrect UI updates, and resources that are not cleaned up. It also provides checklist IDs for recording relevant findings.

Skill for Claude CodeCodex

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

Good fit Reviewing changes to inspections, code completion, reference resolution, line markers, gutter actions, external-system imports, coroutines, callbacks, read/write actions, listeners, or disposable resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/explyt/spring-plugin/review-async-lifecycle
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 explyt/spring-plugin --skill review-async-lifecycle
Clone the repo
git clone --depth 1 https://github.com/explyt/spring-plugin

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 review-async-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/explyt/spring-plugin/review-async-lifecycle/github.svg)](https://agentmods.dev/skills/explyt/spring-plugin/review-async-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/explyt/spring-plugin/review-async-lifecycle"><img src="https://agentmods.dev/badge/skills/explyt/spring-plugin/review-async-lifecycle/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 review-async-lifecycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/explyt/spring-plugin/review-async-lifecycle"><img src="https://agentmods.dev/badge/skills/explyt/spring-plugin/review-async-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,440 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
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 102
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
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.00066 $0.04440
Opus 5.5 $0.00026 $0.01776
Sonnet 5.5 $0.00013 $0.00888
Haiku 4.5 $0.00007 $0.00444

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

Security

Grade A, and why

review-async-lifecycle 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 9d 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.

.explyt/skills/review-async-lifecycle/SKILL.md · 242 lines

How it starts

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

Async and lifecycle reviewer

You are a specialized reviewer for threading, coroutines, lifecycle and freeze-safety. This is a normative skill, not a short checklist brief. If a rule below applies, treat it as a project-specific standard, not an optional recommendation.

Owned checklist IDs

Use and reference these checklist IDs when applicable:

  • H1, H10, H11, H16, H23, H24, H25, H26, H27, H28, H29, H30, H31, H32, H33
  • H34, H34a, H34b, H47, H54, H55, H56, H57, H58, H59, H60, H61, H62, H63
  • H64, H65, H66, H68
  • also reference H36 (owned by review-ui-platform) when a UI update path violates threading rules
  • also reference G1, G5, G12 when async/lifecycle bugs break correctness or resilience

Non-negotiable review method

  1. Read REVIEW_SCOPE.md and REVIEW_PACKET.md first.
  2. Identify async entry points, coroutine scopes, callbacks, listeners, disposables, read/write actions and UI update paths. In this plugin the hottest entry points are inspections, line marker providers, completion contributors, reference resolution, gutter handlers and external-system import.
  3. Trace the flow on:
    • success;
    • exception;
    • cancellation;
    • disposal;
    • repeated invocation;
    • project close / plugin reload.
  4. If you find one async/lifecycle bug, apply the Neighborhood Scan Rule: scan the whole method, then the whole class, then sibling files. Bug patterns cluster.
  5. Do not flag coroutine usage by itself. Report only real defect patterns.

Hard rules

1. Core threading rules

Rule: Never perform file I/O, network calls, PSI access, or runBlocking on EDT.

  • No runBlocking outside tests. Period. Check callers — a method may be invoked from EDT indirectly (e.g. from AnAction.actionPerformed, a gutter click handler, or a LineMarkerProvider). Even on background threads, runBlocking inside IntelliJ lock-holding contexts deadlocks.
  • File I/O / network inside invokeLater {}, dispose(), event handlers = EDT freeze.
  • PSI access without runReadAction {} / readAction {} = race condition.
  • Kotlin Analysis API used from EDT = freeze.
  • Synchronous file reads in UI renderers or gutter/line-marker handlers = freeze.
  • Prefer Dispatchers.IO for all background tasks. Accidental I/O on Default is far worse than accidental compute on IO. Use Default only for pure CPU-bound work with absolutely zero I/O. Mixing dispatchers is the most common dispatcher mistake.
  • For ReadAction.nonBlocking(...).onSuccess {}, do not assume the success callback is a UI callback. Keep file creation/I/O on a pooled or I/O executor, then use Application.invokeLater(..., ModalityState, project.disposed) only for UI/write work.
  • Dispatchers.EDT is required not only for UI updates, but also when calling some IntelliJ platform services that require it (for example CompilerManager). When uncertain, trace usages in intellij-community source code.
  • Avoid runWriteAction {} in coroutine code — prefer suspending writeAction {} / edtWriteAction {}. It is often non-trivial to prove the caller is not under a background read lock, and runWriteAction there causes deadlocks. For write commands with undo support, use WriteCommandAction.runWriteCommandAction() (blocking contexts) or the suspending writeCommandAction() API.
  • WriteAction.run from a background thread is forbidden — write actions must execute on EDT; prefer suspending writeAction {}.
  • SwingUtilities.invokeLater() forbidden for write actions — no ModalityState support. Use Application.invokeLater().
  • SwingUtilities.invokeLater with PSI/VFS/model access is unsafe since 2025.1 — there is no implicit write-intent lock. Use Application.invokeLater() or explicit ReadAction / WriteAction.
  • AWT event handlers accessing PSI/VFS are unsafe since 2026.1 — there is no implicit write lock. For potentially slow, index-dependent or unknown-cost work use ReadAction.nonBlocking {} / smartReadAction on a background executor and return only the UI result. Use WriteIntentReadAction.run {} only for a separately proven short synchronous access; it does not move work off the EDT.
  • AnAction.getActionUpdateThread() = BGT changes only the update() thread. It does not make actionPerformed() background-safe; move PSI/index/UAST/project-model work from actionPerformed() explicitly.
  • runReadActionBlocking supplies a read lock but does not move execution off the EDT and therefore does not make an index/resolve operation fast or freeze-safe.
  • A read lock is not a slow-operation sanitizer: ReadAction.nonBlocking fixes missing read access, but a non-cancellable read or index lookup still needs a background/cancellable boundary to avoid EDT blocking.
  • ReadAction.compute / ReadAction.run are deprecated since 2026.1. Use runReadAction in blocking code or cancellable readAction {} in coroutines.
  • ModalityState.any() + write action = forbidden. Use defaultModalityState() or nonModal().
  • No write actions in UI renderers (paint(), TableCellRenderer, ListCellRenderer).
  • Minimize write action scope — move all preparation (PSI reads, computations) outside.
  • Do not use DumbService.smartInvokeLater() as a way to make index work background-safe: its callback still runs on the UI thread. Compute index-dependent data in ReadAction.nonBlocking { }.inSmartMode(project) / smartReadAction(project), then use smartInvokeLater() only for a short UI handoff.
  • Do not pass a result object containing raw PSI across an async boundary merely because the callback is short. Precompute all PSI-dependent values, or carry SmartPsiElementPointers and revalidate them immediately before use.
  • DumbService.isDumb() is a point-in-time check (TOCTOU race). Prefer smartReadAction(project) which handles it automatically. Raw isDumb() only as fail-fast optimization, never as correctness guard.
  • No suspend calls inside readAction {} lambda — compile error or deadlock.
  • No manual throw ProcessCanceledException() — use ProgressManager.checkCanceled().
  • Usage-statistics recording (StatisticService) must be fire-and-forget and cheap — never block the calling thread, never perform I/O on EDT.
  • while (true) { delay() } loops → prefer Alarm-based repetition (com.intellij.util.Alarm) to avoid a false Plugin slowing things down banner.
  • Non-suspend functions requiring write lock → annotate @RequiresWriteLock; requiring EDT → @RequiresEdt. Exception: functions in packages/classes with view or ui in the name.
  • runBlockingCancellable — background-thread-only replacement for runBlocking in platform extension points (CompletionProvider, LocalInspectionTool). Annotated @RequiresBackgroundThread. NOT a general replacement in arbitrary contexts.

Read the full file on GitHub · 242 lines

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. 9d ago Changed · +6 lines 5ec45eb4c3cd
  2. 1mo ago First seen · 236 lines · 66 tokens per session scan A 1267d406d5a4

Subscribe to this mod's changes

review-async-lifecycle is a skill published in the GitHub repository explyt/spring-plugin (165 stars, last pushed today), licensed Apache-2.0. It adds 66 tokens to every session and 4,440 once invoked, about $0.0003 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.