بنقرة واحدة
memory-leak
Finds potential memory leaks - uncleaned listeners, unclosed connections, growing caches
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Finds potential memory leaks - uncleaned listeners, unclosed connections, growing caches
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | memory-leak |
| description | Finds potential memory leaks - uncleaned listeners, unclosed connections, growing caches |
| argument-hint | ["file-path"] |
| user-invocable | true |
| allowed-tools | Read Grep Glob |
| effort | medium |
Target: $1 (or src/ if not specified)
// ❌ Listener added but never removed
useEffect(() => {
window.addEventListener('resize', handler)
}, []) // Missing: return () => window.removeEventListener('resize', handler)
// ❌ Interval runs forever
setInterval(syncData, 5000)
// ✅ Store ref and clear on unmount
const id = setInterval(syncData, 5000)
return () => clearInterval(id)
// ❌ Cache grows indefinitely
const cache = new Map()
cache.set(key, value) // never evicted
Look for db.connect() without corresponding db.close() in error paths.
For each finding:
Rate by severity: Critical (crashes in production under load) / Warning (gradual degradation) / Minor (theoretical).
Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Finds unused functions, variables, exports, and dependencies across the codebase