python-repl — Claude Code skill: what it does, how to install
Automates Python REPL sessions with prebuilt helpers for profiling and data inspection. Useful for fast debugging inside interactive shells.
MIT 1 installs ★ 4,491 updated 2026-10-29
npx skills add gptme/gptme --skill python-repl -a claude-codeWhat python-repl does
The skill provides python_helpers.py for interactive IPython workflows. It includes inspect_df and describe_object to inspect variables, quick_plot for fast visualization, and the time_function decorator for benchmarking execution speed.
Your environment must have ipython, numpy, and pandas installed. Without these dependencies, helper functions fail with import errors. The skill also adjusts display settings such as pandas display.max_rows.
What it helps with
- inspect pandas DataFrames using
inspect_df - measure execution time with the
time_functiondecorator - introspect Python objects via
describe_object - configure interactive pandas display settings automatically
Example prompts for the agent
- Inspect the loaded DataFrame using
inspect_df. - Benchmark this function with the
time_functiondecorator. - Generate a quick chart using
quick_plot.
How to install python-repl
1Skills CLI (Vercel)
npx skills add gptme/gptme --skill python-repl -a claude-code2Manually: put the files in place
~/.claude/skills/python-repl/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/python-repl/
1Skills CLI (Vercel)
npx skills add gptme/gptme --skill python-repl -a codex2Manually: put the files in place
.agents/skills/python-repl/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add gptme/gptme --skill python-repl -a cursor2Manually: put the files in place
.cursor/skills/python-repl/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install gptme/gptme gptme/lessons/skills/python-repl2Manually: put the files in place
.github/skills/python-repl/SKILL.md1Skills CLI (Vercel)
npx skills add gptme/gptme --skill python-repl -a gemini-cli2Platform CLI
gemini skills install https://github.com/gptme/gptme --path gptme/lessons/skills/python-replManually: put the files in place
.devin/skills/python-repl/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add gptme/gptme --skill python-repl -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about python-repl
How to install python-repl in Claude Code?
Run npx skills add gptme/gptme --skill python-repl -a claude-code.
What does python-repl do?
It provides helper functions from python_helpers.py for profiling and data exploration inside an interactive Python shell.
What packages are required for python-repl?
It requires ipython, numpy, and pandas installed in the current Python environment.
Source text
SKILL.md · MIT
---
name: python-repl
description: Interactive Python REPL automation with common helpers and best practices
---
# Python REPL Skill
Enhances Python REPL workflows with bundled utility functions for data analysis, debugging, and performance profiling.
## Overview
This skill bundles Python REPL helpers, common imports, and execution patterns for efficient Python development in gptme.
## Bundled Scripts
### Helper Functions (python_helpers.py)
This skill includes bundled utility functions for common Python tasks:
- Data inspection (inspect_df, describe_object)
- Quick plotting (quick_plot)
- Performance profiling (time_function)
- Common imports setup (setup_common_imports)
## Usage Patterns
### Data Analysis
When working with data, automatically import common libraries and set up display options:
```python
import numpy as np
import pandas as pd
pd.set_option("display.max_rows", 100)
```
### Debugging
Use bundled helpers for debugging:
```python
from python_helpers import inspect_df, describe_object
inspect_df(df) # Quick dataframe overview
describe_object(obj) # Object introspection
```
## Dependencies
Required packages are listed in `requirements.txt`:
- ipython: Interactive Python shell
- numpy: Numerical computing
- pandas: Data manipulation
## Best Practices
1. **Use helpers**: Leverage bundled helper functions instead of reimplementing
2. **Import once**: Common imports are handled by pre-execute hook
3. **Profile performance**: Use time_function for performance-sensitive code
## Examples
### Quick Data Analysis
```python
# Helpers auto-import pandas, numpy
df = pd.read_csv("data.csv")
inspect_df(df) # Show overview
```
### Performance Profiling
```python
from python_helpers import time_function
@time_function
def slow_operation():
# Your code here
pass
```
## Related
- Tool: ipython
© gptme · MIT · gptme/gptme