Profimp
Testing & QualityprofimpProfimp is an Agent Skill for testing & quality published in the scverse/spatialdata repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Profile Python import time using profimp and open a waterfall HTML report. Use when investigating slow startup or wanting to identify which imports are most expensive.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/scverse/spatialdata/blob/HEAD/.claude/skills/profimp/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/profimp, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Steps
-
Ask what to profile. Suggest common patterns for this repo:
import spatialdatafrom spatialdata import SpatialDatafrom spatialdata_io import xenium
-
Run:
profimp --html "<import_stmt>" > /tmp/profimp.html
- Open the report:
- macOS:
open /tmp/profimp.html - Linux:
xdg-open /tmp/profimp.html - Either:
python -m webbrowser /tmp/profimp.html
- macOS:
Notes
- The report is a waterfall chart showing every sub-import and its timing.
- To compare before/after:
cp /tmp/profimp.html /tmp/profimp-before.htmlbefore re-running. pixi run python -m profimpalso works ifprofimpis not on PATH.