dykyi-roman/awesome-claude-code/detect-memory-issues
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Detects memory issues in PHP code. Finds large arrays in memory, missing generators, memory leaks, unbounded data loading, inefficient data structures.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/detect-memory-issuesSKILL.md
Memory Issue Detection
Analyze PHP code for memory usage problems.
Detection Patterns
1. Large Arrays in Memory
2. Missing Generators
3. Unbounded Data Loading
4. Object Graph Loading
5. Accumulating the Whole Output in Memory
Rule: the defect here is retaining the whole payload, not the .= operator. Report it only when the accumulated value is never streamed or flushed, and its size scales with untrusted or unbounded input.
6. Image/Binary Processing
7. Cache/Buffer Growth
8. Doctrine Batch Processing
9. Session/Global Storage
Grep Patterns
Memory Estimation
| Operation | Memory Usage | |
|---|---|---|
| 1M integers in array | ~32 MB | |
| 1M strings (avg 50 chars) | ~250 MB | |
| 1M Doctrine entities | ~500 MB - 2 GB | |
| 1 GB file via file() | ~1 GB + overhead |
Severity Classification
| Pattern | Severity | |
|---|---|---|
| Unbounded data loading | 🔴 Critical | |
| Full table in memory | 🔴 Critical | |
| Missing imagedestroy | 🟠 Major | |
| Static cache without limit | 🟠 Major | |
| String concat in loop | 🟡 Minor |
Output Format
// Memory-intensive code
// Memory-efficient alternative
When This Is Acceptable
- CLI commands/workers — Console commands may legitimately use more memory for batch processing
- Known bounded datasets — Loading all items when the table is guaranteed small (e.g., countries, currencies)
- Cached data — Large arrays that are built once and cached for reuse
False Positive Indicators
- Code is in a console command or queue worker with explicit memory management
- Collection is loaded from a known-small dataset (< 1000 records by business rule)
- Large array is built for cache warming with explicit garbage collection
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/detect-memory-issues/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 25
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dykyi-roman/awesome-claude-code/detect-memory-issues)