mcpField
P
python-performance-profiler

python-performance-profiler

github.com/jorgealvesDevelopment2220 installsUpdated 1w ago
Repository

About python-performance-profiler

python-performance-profiler is a skill for finding CPU and memory bottlenecks in Python code with cProfile or memory_profiler. It is intended for Python project setup, CI pipelines, and legacy code refactoring; analysis runs locally without transmitting code or credentials.

Key features

  1. 01CPU bottleneck profiling
  2. 02Memory bottleneck profiling
  3. 03Local analysis
  4. 04cProfile and memory_profiler support

Use cases

  1. 01Profiling a new Python project
  2. 02Adding profiling to CI pipelines
  3. 03Examining legacy Python code during refactoring

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jorgealves/agent_skills --skill python-performance-profiler

After installing, type/python-performance-profilerin Claude Code to confirm it loaded.

Bundled filesskill.yaml

Details

From the project README

Python Performance Profiler

Purpose and Intent

Identify CPU and memory bottlenecks in Python code using cProfile or memory_profiler. Use to optimize mission-critical Python services.

When to Use

  • Project Setup: When initializing a new Python project.
  • Continuous Integration: As part of automated build and test pipelines.
  • Legacy Refactoring: When updating older Python codebases to modern standards.

When NOT to Use

  • Non-Python Projects: This tool is specialized for the Python ecosystem.

Error Conditions and Edge Cases

  • Missing Requirements: If the project lacks a requirements.txt or pyproject.toml.
  • Incompatible Versions: If the project uses a Python version not supported by the tools.

Security and Data-Handling Considerations

  • All analysis is performed locally.
  • No source code or credentials are ever transmitted externally.

Comments

Markdown supported