Skip to main content
QAOfficialCertifiedReviewed Dec 1, 2026

Scale Audit

We earn commissions when you shop through the links below.

v1.0.1New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install scale-audit

What this does: Scalability audit — identifies performance bottlenecks, unbounded queries, N+1 patterns, missing indexes, synchronous blocking operations on hot paths, and memory pressure points. Outputs a prioritized fix list. Use when the user asks if the app will handle more traffic, reports slow queries or timeouts under load, or wants an N+1 and missing-index review.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/scale-audit/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a scalability auditor. Analyze the codebase for bottlenecks that will break under load.

Do NOT ask the user questions. Audit autonomously and produce a prioritized report.
Do NOT make any changes — read-only analysis only.


SCOPE DETECTION


If an argument is provided, treat it as a path and analyze that directory.
If no argument, analyze the current working directory.


PHASE 1: DATABASE LAYER


  1. Find all ORM queries and raw SQL:

    • Prisma: prisma.$queryRaw, .findMany() without take, joins without select
    • Sequelize/Drizzle/TypeORM: similar patterns
    • Raw SQL: SELECT *, missing LIMIT, subqueries in loops
  2. Flag N+1 patterns:

    • Any query inside a loop or .map() / .forEach()
    • ORM calls without eager loading (missing include/with)
  3. Missing indexes:

    • Fields used in WHERE, ORDER BY, JOIN ON that lack an index
    • Foreign keys without indexes
    • Check schema files (schema.prisma, migrations/.sql, models/.py)
  4. Unbounded result sets:

    • findMany() without take/limit
    • Pagination missing on list endpoints
    • Count queries on large tables without conditions

PHASE 2: API / COMPUTE LAYER


  1. Synchronous blocking on hot paths:

    • fs.readFileSync, execSync in request handlers
    • CPU-intensive operations in the main thread (no worker)
    • JSON.parse on large payloads without size checks
  2. Unbounded loops:

    • Loops over user-controlled input without limits
    • Nested loops (O(n²)) on large data sets
    • Recursive functions without depth limits
  3. Missing caching:

    • Expensive computations (aggregations, heavy queries) called repeatedly
    • External API calls on every request without memoization
    • Cache-Control headers missing on static/slow-changing endpoints
  4. Rate limiting gaps:

    • Endpoints without rate limits that could be flood-attacked
    • Bulk operations (batch inserts, mass updates) without throttling

PHASE 3: MEMORY & RESOURCE


  1. Memory leaks:

    • Event listeners added in loops without cleanup
    • Unclosed streams or DB connections
    • Large objects held in module-level variables
  2. File system pressure:

    • Synchronous file reads in request handlers
    • Large file uploads buffered in memory (should stream)
    • Temp files created but never cleaned up
  3. External dependencies:

    • Third-party API calls without timeouts
    • Missing circuit breakers on downstream services
    • No retry budget (infinite retries on failure)

OUTPUT FORMAT


## Scale Audit — {path}

### Critical (fix before any load increase)
- [C1] {issue} — {file:line} — {fix}

### High (fix this sprint)
- [H1] {issue} — {file:line} — {fix}

### Medium (schedule for next sprint)
- [M1] {issue} — {file:line} — {fix}

### Low (nice to have)
- [L1] {issue} — {file:line} — {fix}

### Summary
- Critical: N | High: N | Medium: N | Low: N
- Biggest risk: {one sentence}
- Quick win: {one sentence}

NEXT STEPS:
- "Run /perf to measure current baseline before applying fixes."
- "Run /security-review to catch auth gaps alongside these performance fixes."

SELF-HEALING VALIDATION


After producing output:

  1. Verify every finding has a specific file + line reference (not vague)
  2. Verify every fix is actionable (not generic advice)
  3. If a section has no findings, write "None found" — do not omit the section
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More QA skills

Browse category →
debugRoot-cause debugging: reproduces the bug, traces it to where the bad state starts, applies the smallest fix, and adds a regression test that fails without it.47 installspreflightRead-only pre-deploy gate: git state, build, tests, migrations, lock files, secrets and commit conventions, ending in READY or NOT READY. Triggers: preflight, pre-deploy check, ready to deploy, deployment checklist.45 installsautomated-code-quality-analysisA comprehensive, automated code quality analysis tool that performs static analysis across multiple programming languages, identifies issues, security vulnerabilities, code smells, and duplications, and generates detailed, actionable reports to improve code \38 installsbroken-linksScan a codebase for broken links — dead URLs in Markdown/HTML, broken file references, invalid import paths, stale anchor links, and broken cross-doc references — then auto-fix what it can: replace dead URLs with Wayback Machine archives, update moved file paths via git history. Use when the user asks to check for broken links, dead URLs, stale anchors, or bad import paths in docs or code, or before publishing documentation.14 installsdead-codeFind and safely remove dead code: unreachable paths, unused exports, unused functions, unused variables, unused CSS selectors, unused npm/pip/cargo dependencies, unused env vars, and commented-out code blocks. Use when the user asks to remove unused code or dependencies, trim bloat before a refactor, or mentions unused exports, dead CSS, or orphaned env vars.6 installsgame-qaRun a full game QA audit on Unity, Unreal, Godot, or web game projects. Triggers: you need to QA test a game, audit game code quality, find game bugs, check game certification compliance.6 installs

Frequently asked questions about scale-audit

What does the scale-audit skill do?

Scalability audit — identifies performance bottlenecks, unbounded queries, N+1 patterns, missing indexes, synchronous blocking operations on hot paths, and memory pressure points. Outputs a prioritized fix list. Use when the user asks if the app will handle more traffic, reports slow queries or timeouts under load, or wants an N+1 and missing-index review. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the scale-audit skill?

Run `npx @skills-hub-ai/cli install scale-audit` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/scale-audit/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does scale-audit work with?

scale-audit runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the scale-audit skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use scale-audit after installing it?

In Claude Code, type `/scale-audit` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the scale-audit skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.