claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Profiles Python code for performance bottlenecks and memory issues. Use when Python code is slow or when profiling for optimization before a release.
Claude Code
$ npx -y skills add athola/claude-night-market --skill python-performance --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill python-performance -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill python-performance -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill python-performance -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill python-performance -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill python-performance -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill python-performance -a windsurf -y
name: python-performance description: Profiles Python code for performance bottlenecks and memory issues. Use when Python code is slow or when profiling for optimization before a release. globs: "**/*.py" alwaysApply: false category: performance tags: - python - performance - profiling - optimization - cProfile - memory tools: [] usage_patterns: - performance-analysis - bottleneck-identification - memory-optimization - algorithm-optimization complexity: intermediate estimated_tokens: 1200 progressive_loading: true modules: - modules/profiling-tools.md - modules/optimization-patterns.md - modules/memory-management.md - modules/benchmarking-tools.md - modules/best-practices.md
Profiling and optimization patterns for Python code.
# Basic timing
import timeit
time = timeit.timeit("sum(range(1000000))", number=100)
print(f"Average: {time / 100:.6f}s")**Verification:** Run the command with `--help` flag to verify availability.
instead
instead
This skill is organized into focused modules for progressive loading:
CPU profiling with cProfile, line profiling, memory profiling, and production profiling with py-spy. Essential for identifying where your code spends time and memory.
Eleven proven optimization patterns including list comprehensions, generators, caching, string concatenation, data structures, NumPy, multiprocessing, database operations, and loop transformations (what works in Python vs the compiler).
Memory optimization techniques including leak tracking with tracemalloc and weak references for caches. Depends on profiling-tools.
Benchmarking tools including custom decorators and pytest-benchmark for verifying performance improvements.
Best practices, common pitfalls, and exit criteria for performance optimization work. Synthesizes guidance from profiling-tools and optimization-patterns.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.