app-unwaterfall-fix

Installation
SKILL.md

App Unwaterfall Fix

Target: $ARGUMENTS, or the current project root minus vendored and generated code when empty.

A waterfall is two or more async calls awaited in sequence when neither needs the other, so each adds a full round-trip of latency for nothing.

Steps

  1. Map the hot paths. A hot path is code a user waits on: request handlers, API routes, page or server-component loaders, RPC handlers, jobs whose result a user awaits, CLI startup. Find entry points from the router or framework config and the server bootstrap, and list each by file and handler name in HOTPATHS.md in the scratchpad. Done when every entry point in scope is listed.

  2. Trace. Follow each entry point through every awaited call, into helpers, down to the I/O (DB, HTTP, cache, filesystem, queue). Record each sequence of two or more awaits with a verdict and a one-line reason:

    • dependent: B reads A's result, or A's side effect must land first (write then read, auth check before data access, ordered events, a transaction on one connection).
    • independent: everything else.
    • unsure: you can't tell from the code.

    Done when every entry point is ticked and every sequence has a verdict.

Installs
5
Repository
lancetw/skills
GitHub Stars
6
First Seen
11 days ago