No slash command · from pythonica
Profile and optimize Python code using cProfile, memory profilers, and performance best practices.
Ships in pythonica. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.
import time
def measure_time():
"""Simple timing measurement."""
start = time.time()
# Your code here
result = sum(range(1000000))
elapsed = time.time() - start
print(f"Execution time: {elapsed:.4f} seconds")
return result
# Better: use timeit for accurate measurements
import timeit
execution_time = timeit.timeit(
"sum(range(1000000))",
number=100
)
print(f"Average time: {execution_time/100:.6f} seconds")
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient. For advanced patterns, see references/advanced-patterns.md.
What SKILL.md sets; muted values are Claude Code's defaults
Debugging slow Python code, optimizing bottlenecks, or improving application performance.
npx claudepluginhub jartan-llc/grimoire --plugin pythonica17 skills in this plugin
/async-python-patternsPython asyncio, concurrent programming, and async/await patterns for high-performance applications./pydanticPython data validation using type hints and runtime type checking with Pydantic v2's Rust-powered core./python-anti-patternsCommon Python anti-patterns and a pre-merge review checklist./python-api-docsRender Python docstrings into a browsable, published API reference with Sphinx, autodoc, napoleon, and MyST.