/repomap:repomapfrom repomap
Check what a code change affects and run only the tests it reaches, using repomap's traced map of the test suite. Use in a Python repo with pytest before editing a function, after making changes, and when hardening or reviewing code for untested inputs.
Ships in repomap. 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.
None: SKILL.md is the whole skill.
repomap remembers, from one traced run of the test suite, which lines each test ran, who calls whom, and what values every function was called with. Lookups read only that memory and take under a second, so use them freely.
repomap MCP server is connected you have tools named impact, tests_for, callers, values, gaps, status, refresh and record (your client may prefix them, e.g. mcp__repomap__impact). They return JSON.repomap command (pip install "repomap[mcp]"), or python devtools/cli/repomap.py inside the devex-lab repo. Add --json to any command for the same JSON the tools return.| Step | MCP tool | CLI |
|---|---|---|
| Is there a memory? | status | repomap status --json |
| Record once | record(package?) | repomap record [--package src/pkg] |
| Before an edit | impact(targets=["Name"]) | repomap impact Name --json |
| After an edit | impact() | repomap impact --json |
| Update memory | refresh | repomap refresh |
| Tests for a line | tests_for("path.py:LINE") | repomap query tests path.py:LINE |
| Callers | callers("Name") | repomap query callers Name |
| Values seen | values("Name") | repomap query fn Name |
| Untested inputs | gaps("module") | repomap query gaps module |
Call status. If there is no memory, record once from the repo root. Recording runs the whole suite (about the time of a normal test run plus tracing overhead), so tell the user before you start it on a large repo. Pass the package directory if repomap can't guess it (src/<pkg> or <pkg>). By default it uses the repo's .venv interpreter if there is one.
If status lists many changed files, refresh before relying on lookups.
Call impact with the function's name (or path/to/file.py:LINE). Read:
Call impact with no targets. That diffs your uncommitted changes against the exact tree the memory was recorded on.
pytest_command in the tool result, or pass the node ids). Don't run the full suite for every small edit.untested, or the result selects 0 tests for a real change, say so plainly: nothing verifies that change. Write a test for it.refresh so the next lookup is current. It re-traces only the affected tests and takes seconds.For each function you touched (or are reviewing), call gaps on its module and values on the function. gaps lists arguments the suite never fed an edge value: empty, zero or negative, and for strings things like non-ASCII text, quotes, a sign or 0x prefix, or an empty field between separators. In this project's experiments those are exactly the inputs agents failed to anticipate. For a whole-package sweep, pass public=True, limit=20 (CLI: --public --limit 20) to see the most-called public functions first. For each gap, either add a test for the missing case or explain why the input can't happen.
refresh after edits, and re-record after large refactors.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (andrewtaowen/devex-lab) — no native marketplace selected
npx claudepluginhub p/andrewtaowen-repomap-devtools-ai-skill