/dxd-skills:hot-path-auditfrom dxd-skills
Scan a codebase's hot paths for cheap, reviewable performance wins: sequential awaits that could run concurrently, whole-row database reads, redundant URL parsing, regexes rebuilt per call, and single-key reads from large JSON columns. Use when asked for a hot-path audit, a perf sweep, or to find these patterns across one or more repositories.
Ships in dxd-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Five patterns that produce small, easy-to-review diffs and real latency or load wins. Credit: Dylan Garcia (1, 2).
Hot paths are request handlers, API routes, Workers, queue consumers, render paths,
loops over data, and utilities those call often. Skip one-off scripts, tests, seeds,
migrations, generated or vendored code, and build output. A repository that reports
thousands of source files is usually vendored or generated; find the app code with
git ls-files first.
Data-layout redesigns such as flat arrays, struct-of-arrays, and bitsets are out of scope; use data-oriented-design.
Promise.all, async let, or a task group.
Parallelize only calls with no data, ordering, or side-effect dependency (a write
followed by a read of the same record is dependent). It gains nothing inside a
single-connection transaction. Respect rate-limited APIs. On D1, use db.batch().SELECT *, bare .select(), ORM finds without columns/select, Supabase
.select('*')). First confirm nothing downstream needs the rest: responses sent
to clients, spreads, caches, or functions that read more fields.new URL() → drop re-parses of the same string, parses used only
to concatenate or compare, and parses inside loops. Keep parses that validate
untrusted input at a trust boundary.new RegExp(...) in loops, regexes in hot handlers, and Swift
NSRegularExpression/Regex construction. Never share a /g or /y regex used
with .test() or .exec() without resetting lastIndex. Hoisting a literal in a
cold function is noise; Python's re already caches patterns.json_extract or parsing a JSON text column to read one field. Report only: the
change needs a migration and a backfill.git fetch)—do not pull or edit checkouts that
have uncommitted work or a feature branch checked out. Create a worktree from the
default branch, for example
git worktree add ../.perf-worktrees/<repo> -b perf/hot-path-audit origin/HEAD.file:line, the check number, why the code is hot, the
proposed diff, and its risk.For each repository, list what was fixed, what was recommended but not applied and why, what was skipped and why, plus the branch or worktree (if used) and verification result.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub designxdevelop/agent-skills --plugin dxd-skillsOther plugins' skills for the same job
19 skills in this plugin
/adversarial-reviewSend a diff to Opus 5.5, GPT-6.1 Sol, and Gemini 4 Carbon (all at medium effort) for an adversarial bug review, then triage every finding. Use when the user asks for an adversarial review, a second model, or a cross-lab bug hunt./ci-verify-setupSet up one reliable project verification command and run it in CI. Use when local checks are scattered or missing, CI is absent or broken, or agents cannot consistently verify their changes./company-profileResearch and write a reusable company profile with accurate descriptions, bios, and page copy. Use when a user needs to explain what a company does across an About page, website sections, social profiles, directories, press materials, or partner listings.