From coalmine
Performance complexity and resource allocation canary — checks for O(N^2) loops, database N+1 query patterns, memory leaks (unbounded collections), and blocking calls in main event loop. Triggers on keywords: "/scale-canary", "scale-canary", "performance audit", "scale audit". Use when writing loops over growing data, DB queries, caches, or async/event-loop code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coalmine:scale-canaryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- SHARED:LANGUAGE_HEADER -->
Audit code for scalability issues, performance bottlenecks, and resource leaks.
finally close.Per-ORM N+1 shapes, per-stack blocking patterns, and what NOT to flag: read references/checks.md before scanning.
In Agent Context, after the report, present via ask_question:
finally blocks for stream closing. Each fix: checkpoint (git stash/commit in a git repo; else copy the file aside — never assume git) → apply → build + tests → auto-revert if newly red.| file:line | bottleneck | severity | finding | optimization plan |
Severity: CRITICAL (O(N^2) on user-facing API / unclosed file handles) · HIGH (N+1 query pattern / blocking main loop) · MEDIUM (unbounded cache growth) · LOW (minor efficiency suggestions)
npx claudepluginhub hetcreep/coalminePerformance complexity and resource allocation canary — checks for O(N^2) loops, database N+1 query patterns, memory leaks (unbounded collections), and blocking calls in main event loop. Triggers on keywords: "/scale-canary", "scale-canary", "performance audit", "scale audit". Use when writing loops over growing data, DB queries, caches, or async/event-loop code.
Analyzes code for performance bottlenecks including hot paths, N+1 queries, memory usage, loops, I/O, caching strategies, concurrency, and resource efficiency.