From scorecard
Audit a repository for performance issues and produce a scored assessment. Use when evaluating N+1 queries, caching, algorithmic complexity, or performance bottlenecks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scorecard:audit-performanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluates performance characteristics of the codebase. Checks for N+1 query patterns, caching, hot path efficiency, bundle size, algorithmic complexity, database index usage, and memory leak patterns. A high score means the code is performance-conscious; a low score means likely performance bottlenecks exist.
Evaluates performance characteristics of the codebase. Checks for N+1 query patterns, caching, hot path efficiency, bundle size, algorithmic complexity, database index usage, and memory leak patterns. A high score means the code is performance-conscious; a low score means likely performance bottlenecks exist.
Uses the global finding-count thresholds as defaults:
Domain-specific adjustment: Any confirmed N+1 query pattern in a hot path is automatically escalated to CRITICAL, regardless of frequency.
Scoped audit: If a scoped file list is provided in the subagent prompt, restrict ALL sampling and analysis to only those files. Skip criteria that cannot be evaluated from the scoped files and note them as "not assessed (out of scope)."
forEach, for, map inside similar constructs)import _ from 'lodash')This skill supports future tech-specific criteria via the references/ directory. At v2, matching references/<stack>.md files will be loaded automatically to add language-specific performance checks.
Return results as structured JSON:
{
"category": "performance",
"score": 6,
"confidence": "High",
"findings": [
{
"severity": "CRITICAL",
"description": "ORM findById called inside a forEach loop when fetching related records for each order",
"location": "src/services/order-service.ts:112",
"recommendation": "Replace per-iteration findById with a batch query using findAllByIds and map results by ID"
}
],
"top_recommendations": [
"Eliminate N+1 query in order-service.ts by batching the related-record lookup",
"Add indexes on foreign key columns in the orders and line_items migration files",
"Introduce cache with TTL for the product catalog endpoint which is queried on every request"
],
"summary": "Moderate performance risk -- one confirmed N+1 in the order hot path, missing indexes on high-traffic tables, and no caching on expensive catalog queries"
}
npx claudepluginhub kevnord/claude-plugins --plugin scorecardPerforms static code analysis for performance bottlenecks, optimization opportunities, scalability issues, including N+1 queries, memory leaks, caching, and Core Web Vitals. Generates prioritized report with code fixes.
Diagnoses frontend and backend performance bottlenecks including bundle size, N+1 queries, memory leaks, and Core Web Vitals. Prioritizes fixes by impact.