Toolverse
All skills

memory-optimization

by benchflow-ai

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,

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Data Science
Views
1

About this skill

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.

How to use

  1. Zainstaluj umiejętność w swoim środowisku Claude/Copilot, dodając ją do dostępnych narzędzi agenta.

  2. Opisz problem pamięciowy: podaj fragment kodu Python, który chcesz zoptymalizować, lub wskaż konkretny problem (np. "moja lista rośnie zbyt szybko", "funkcja zużywa zbyt dużo RAM").

  3. Umiejętność przeprowadzi profilowanie — zidentyfikuje największe alokacje pamięci i wzorce wycieków, analizując struktury danych i cykle życia obiektów.

  4. Na podstawie wyników otrzymasz konkretne strategie transformacji: zastąpienie list generatorami, dodanie slots do klas, użycie NumPy zamiast list, chunked reading dla plików, lub optymalizację cache'u z limitem rozmiaru.

  5. Kod zostanie przepisany z zastosowaniem wybranego wzorca — na przykład konwersja zwykłej klasy na wersję ze slots (zmniejszenie pamięci o 40–60%) lub zmiana pętli na generator.

  6. Zweryfikuj, że zoptymalizowany kod działa poprawnie i rzeczywiście zmniejszył zużycie pamięci — umiejętność porówna wyniki przed i po transformacji.

Related skills

skill-creator

by anthropics

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

Data Science
59147

notebooklm

by leegonzales

Query Google NotebookLM for source-grounded, citation-backed answers from uploaded documents. Reduces hallucinations through Gemini's document-only responses. Browser automation with library management and persistent authentication.

Data Science
142112

stock-analyzer

by FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

Data Science
23128

web-artifacts-builder

by anthropics

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX

Data Science
37124

arxiv-search

by langchain-ai

Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields

Data Science
76172

last30days

by sickn33

Research a topic from the last 30 days on Reddit + X + Web, become an expert, and write copy-paste-ready prompts for the user's target tool.

Data Science
2148