parallel-awaits

parallel-awaits is a skill for Claude Code from vvedantb/eva. It costs 65 tokens per session (1,113 once invoked), scanned A, original, MIT.

A code-scanning and repair guide for finding independent asynchronous operations that run one after another. Asynchronous operations can wait for network or other delayed work without blocking the whole program.

In plain words
What is it for?
Use it to inspect a repository or changed files, identify safe cases for running calls together, and replace them with parallel calls where appropriate.
Why use it?
It helps find avoidable waiting time while leaving operations in order when they depend on each other.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to inspect a repository or changed files, identify safe cases for running calls together, and replace them with parallel calls where appropriate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vvedantb/eva/parallel-awaits
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 vvedantb/eva --skill parallel-awaits
Clone the repo
git clone --depth 1 https://github.com/vvedantb/eva

Made for: Claude Code.

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 parallel-awaits

README.md
[![agentmods](https://agentmods.dev/badge/skills/vvedantb/eva/parallel-awaits/github.svg)](https://agentmods.dev/skills/vvedantb/eva/parallel-awaits)
Your own site
<a href="https://agentmods.dev/skills/vvedantb/eva/parallel-awaits"><img src="https://agentmods.dev/badge/skills/vvedantb/eva/parallel-awaits/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 parallel-awaits

Your own site · 80×15
<a href="https://agentmods.dev/skills/vvedantb/eva/parallel-awaits"><img src="https://agentmods.dev/badge/skills/vvedantb/eva/parallel-awaits.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 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.00065 $0.01113
Opus 5.5 $0.00026 $0.00445
Sonnet 5.5 $0.00013 $0.00223
Haiku 4.5 $0.00006 $0.00111

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

Security

Grade A, and why

parallel-awaits 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 22d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scan-awaits.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/parallel-awaits/SKILL.md · 81 lines

How it starts

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

Parallel awaits

Find awaits that run one after another but do not depend on each other. Fix the safe ones with Promise.all. Leave the rest, and say why.

1. Scan

Run from the repo root:

node .claude/skills/parallel-awaits/scan-awaits.cjs                     # whole repo
node .claude/skills/parallel-awaits/scan-awaits.cjs packages/backend/convex/mcp
node .claude/skills/parallel-awaits/scan-awaits.cjs --diff origin/main  # changed files only
  • PAIR: const a = await A then const b = await B, and B uses nothing declared since A.
  • LOOP: a loop that awaits reads one at a time.
  • --all also reports bare await x(); pairs. These are mostly ordered writes, so they are noisy.

The scanner sees only straight-line code. Read the real code for every hit before you change it.

2. Rank by hotness

Fix in this order:

  1. Action round trips: ctx.runQuery, runMutation, runAction, runAsUser, sandbox exec, Vercel, GitHub, fetch. Each one costs a network round trip.
  2. Shared helpers that many callers use, for example gatherAccessibleRepos, getSandboxHandle and resolveSandboxCredentials.
  3. Reactive queries: lists, chat status, team members, users, usage limits.
  4. Chat-turn prompt builds and MCP tool handlers, because agents call them all the time.
  5. Crons that fan out per sandbox.

Do not fix migrations, one-off scripts, demo animations or rare admin paths.

3. Rules: when you must not parallelise

  • Writes and order. Never parallelise insert, patch, delete, allocateNumId, createNotification, scheduler calls, or workflow step.* calls.
  • Mutation read sets. An extra early read in a mutation adds to its read set. If that range changes often, OCC conflicts increase. Keep the read lazy.
  • Lazy fallbacks. Do not turn "try A, then B if A is empty" into two reads when A usually hits. Example: an owner lookup by sandbox.
  • Guards and errors. If A throws a user-visible error, B must not throw a different error first. Do not run side effects that the guard should block.
  • Secrets. The authorisation check stays first when B reads or decrypts secrets.
  • Loops. Skip loops that break or return, carry state, paginate, or poll. Also skip unbounded fan-out to external APIs, because of rate limits. Skip large-payload loops, because of memory.
  • Cheap calls. ctx.auth.getUserIdentity() is local. A pair that starts with it is not worth a change.

Read the full file on GitHub · 81 lines

Files

What ships with it

1 file 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. 22d ago Changed c9440d26b94a
  2. 27d ago First seen · 81 lines · 65 tokens per session scan A 4cda002299d4

Subscribe to this mod's changes

parallel-awaits is a skill published in the GitHub repository vvedantb/eva (100 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,113 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-11-05.

Related

parallel-awaits compared with skills from other repositories

parallel-awaits next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
parallel-awaitsvvedantb/evaSkill100todayMITA65Claude Code
data-manager-api-troubleshootinggoogle/skillsSkill25kyesterdayApache-2.0A179Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill51kyesterdayMITA33Claude Code
openai-api-troubleshootingasgeirtj/system_prompts_leaksSkill74k3d agoCC0-1.0A91Claude Code, Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1kyesterdayMITA222Claude Code
mirrord-replaymetalbear-co/mirrordSkill5.4ktodayMITA98Claude Code
ssl-proxy-troubleshootHKUDS/OpenSpaceSkill8.1k20d agoMITA20Claude Code, Codex