Async Correctness 非同期処理の正しさ検証

Async Correctness 非同期処理の正しさ検証 is a skill for Claude Code from s977043/river-review. It costs 95 tokens per session (2,115 once invoked), scanned A, original, MIT.

A code review check for asynchronous code, meaning work that finishes later through async/await, promises, or chained callbacks. It looks for missing waits, ignored errors, and operations that can run in the wrong order or interfere with each other.

In plain words
What is it for?
Use it when reviewing code that calls APIs, reads files, processes background work, or otherwise uses promises and async functions.
Why use it?
It helps find bugs that appear only sometimes because timing changes between runs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit Use it when reviewing code that calls APIs, reads files, processes background work, or otherwise uses promises and async functions.

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

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

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 Async Correctness 非同期処理の正しさ検証

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/async-correctness.svg)](https://agentmods.dev/skills/s977043/river-review/async-correctness)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/async-correctness"><img src="https://agentmods.dev/badge/skills/s977043/river-review/async-correctness.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,115 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.
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.00095 $0.02115
Opus 5 $0.00048 $0.01058
Sonnet 5 $0.00019 $0.00423
Haiku 4.5 $0.00010 $0.00212

Measured 4d ago against content hash 3c83cd795cfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Async Correctness 非同期処理の正しさ検証 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 4d 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.

skills/midstream/async-correctness/SKILL.md · 122 lines

How it starts

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

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: 非同期 correctness はチェックリスト型評価が主だが、async/await/Promise を含まない差分では実行を止めるゲートが必要

Goal / 目的

  • 差分に含まれる非同期処理の correctness バグ(await 漏れ・floating promise・並行競合)が本番で「たまにしか再現しない不具合」になるのを防ぐ。
  • 「動いているように見えるが順序・エラー伝播が壊れている」実装を、差分の段階で検出する。

Non-goals / 扱わないこと

  • 宣言した処理の経路が末端まで配線されているかの確認(e2e-wiring の役割。本スキルは配線済みの非同期コードの実行の正しさを見る)。
  • 逐次 await の並列化提案(SIMPLIFY 観点 Efficiency の役割。本スキルは「速くできる」ではなく「壊れている」だけを指摘する)。
  • テストコード内の un-awaited assertion(vitest-mock-isolation の役割)。
  • null / undefined の伝播(typescript-nullcheck / nullability-contract の役割)。
  • 設計判断そのものの論理検証(logic-torturing の役割)。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 差分の追加・変更行に async / await / .then / .catch / .finally / Promise のいずれかが出現する
  • inputContext に diff が含まれている

ゲート不成立時の出力: NO_REVIEW: async-correctness — 非同期処理を含む変更が検出されない

False-positive guards / 抑制条件

  • 意図的な fire-and-forget(void asyncFn() 明示、またはコメント・命名で意図が明確なもの)は指摘しない。ただしエラーハンドリングが皆無なら questions として確認する。
  • @typescript-eslint/no-floating-promises が有効なリポジトリでは、当該ルールが決定論で検出する単純な floating promise の severity を minor に落とす。順序・競合の問題はこの限りでない。
  • フレームワークが await を要求しない規約(イベントハンドラ・ライフサイクルフック等)に従う呼び出しは指摘しない。
  • 共有状態への並行アクセスは、差分内のコードだけで競合が確定する場合のみ findings とする。差分外の呼び出し文脈に依存する場合は questions に落とす。

抑制時の出力: 該当する指摘を出力しない(黙る)。

Rule / ルール

  • await 漏れ: Promise を返す呼び出しの結果を await / then せずに値として使用していないか(if (asyncCheck()) は常に truthy、const x = asyncGet() の x は Promise)。
  • floating promise: 結果もエラーも処理されない Promise が放置されていないか(unhandled rejection でプロセス・リクエストが不安定になる)。
  • エラー伝播の断絶: try ブロック内で await せずに Promise を return し、catch が効かない構造になっていないか。
  • 並行競合: 同一リソースへの check-then-act(TOCTOU)、Promise.all 内での同一状態への書き込み、ループ内の共有変数への非同期書き込みがないか。
  • 待たれないコレクション反復: forEach に async コールバックを渡して完了を待たずに後続処理へ進んでいないか(for...of + await または Promise.all(map(...)) が必要な文脈か確認)。
  • 非同期コールバックの誤用: filter に async コールバックを渡していないか(Promise は常に truthy のため全件が残り、フィルタリングが機能しない)。reduce で Promise のハンドリングが壊れていないか。
  • 指摘は最大 5 件。データ破壊・順序依存バグに直結するものを優先する。

Read the full file on GitHub · 122 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 122 lines · 95 tokens per session scan A 3c83cd795cfa

Subscribe to this mod's changes

Async Correctness 非同期処理の正しさ検証 is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 2,115 once invoked, about $0.0005 per session on Opus 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-09-03.

Related

Other skills, from other repositories

review-all

Multi-agent code review for diffs (project-agnostic). Covers standards, bugs, security, DRY, smells, perf, tests, API contracts, a11y/i18n. Verifies each finding to eliminate false positives. Use for /review-all, pre-PR/pre-commit review, or auditing uncommitted/staged changes.

ncoevoet/claude-review-all · 74 tokens

logic-health

Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…

hyhmrright/logic-lens · 180 tokens

rust-intel

Hard rules for writing Rust in code that already compiles and passes tests but is silently broken, slow, or semver-fragile. Load this BEFORE writing any Rust code. Targets bugs that survive rustc, clippy, and cargo test but fail in production or rot the codebase. Covers async, unsafe, FFI, concurrency, crypto…

PHPCraftdream/rust-intel · 123 tokens

rust-intel

Hard rules for writing Rust in code that already compiles and passes tests but is silently broken, slow, or semver-fragile. Load this BEFORE writing any Rust code. Targets bugs that survive rustc, clippy, and cargo test but fail in production or rot the codebase. Covers async, unsafe, FFI, concurrency, crypto…

PHPCraftdream/rust-intel · 123 tokens

perf

Analyze Elixir/Phoenix performance — N+1 queries, assign bloat, ecto optimization, genserver bottlenecks. Use when slowness, timeouts, or high memory reported.

oliver-kriska/claude-elixir-phoenix · 43 tokens

skeptic

Adversarial code reviewer for Bug Hunter. Rigorously challenges each reported bug to determine if it's real or a false positive. Uses doc-lookup (Context Hub + Context7) to verify framework claims before disproval. The immune system that kills false positives.

codexstar69/bug-hunter · 56 tokens