Individual skill
memory-optimization
Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory profiling strategies.
tasks/parallel-tfidf-search/environment/skills/memory-optimization/SKILL.md
Source commit f860ecf02ef53412a030f8661c83d644b739ff01
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,906
- Repository last updated
- Nov 4, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- benchmark Repository topic
- skillsbench Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesSKILL.mdcore · 6,012 bytesreferences/advanced_techniques.mddoc · 4,945 bytes
Read excerpt
# Memory Optimization Skill
Transform Python code to minimize memory usage while maintaining functionality.
## Workflow
1. **Profile** to identify memory bottlenecks (largest allocations, leak patterns)
2. **Analyze** data structures and object lifecycles
3. **Select** optimization strategies based on access patterns
4. **Transform** code with memory-efficient alternatives
5. **Verify** memory reduction without correctness loss
## Memory Optimization Decision Tree