@firstpick/pi-skill-repo-explorer
Agents should invoke this skill before modifying unfamiliar codebases, answering where/how something is implemented, tracing dependencies, mapping repo structure, or planning changes. Explores a repository and returns a strict JSON handoff with key files,
Package details
Install @firstpick/pi-skill-repo-explorer from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@firstpick/pi-skill-repo-explorer- Package
@firstpick/pi-skill-repo-explorer- Version
0.2.0- Published
- Jun 21, 2026
- Downloads
- 364/mo · 32/wk
- Author
- firstpick
- License
- MIT
- Types
- extension, skill
- Size
- 148 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@firstpick/pi-skill-repo-explorer
A Pi skill for use before modifying unfamiliar codebases, answering where/how something is implemented, tracing dependencies, mapping repo structure, or planning changes. Explores a repository and returns a strict JSON handoff with key files, symbols, risks, and evidence.
What it does
- Adds the
repo-explorerskill to Pi's skill library. - Adds the
repo_explorer_exploretool for cached, validated, compact repository exploration. - Guides agents to invoke the skill/tool before modifying unfamiliar codebases, answering where/how something is implemented, tracing dependencies, mapping repo structure, or planning changes.
- Bundles
skills/repo-explorer/SKILL.md,extensions/repo-explorer.ts, and supporting scripts/tests.
Install
pi install npm:@firstpick/pi-skill-repo-explorer
Configuration
No required configuration.
Expected usage structure
The skill is a workflow plus bundled helper scripts. It expects the agent to resolve paths relative to the installed skill directory before running helpers.
Bundled layout:
skills/repo-explorer/
SKILL.md
scripts/
build_repo_index.py
extract_explorer_handoff.py
refresh_repo_index.py
validate_handoff.py
When following the skill manually, run helper scripts from skills/repo-explorer/ or pass absolute paths, for example:
cd /path/to/installed/package/skills/repo-explorer
python3 ./scripts/refresh_repo_index.py --repo /path/to/repo --data-dir data/
python3 ./scripts/build_repo_index.py --repo /path/to/repo --output data/repo-index.json
python3 ./scripts/extract_explorer_handoff.py --index data/repo-index.json --goal "find auth flow" --depth standard --budget compact --include-evidence false > /tmp/repo-explorer-handoff.json
python3 ./scripts/validate_handoff.py --input /tmp/repo-explorer-handoff.json
python3 ./scripts/summarize_effectiveness_reports.py --reports-dir . --output repo-explorer-effectiveness-summary.md
The target repository can be any readable local directory. The generated data/ index directory is local scratch state and does not need to exist before first use.
Commands
None.
Tools
repo_explorer_explore: build/refresh a local repo index, extract a budget-aware goal-focused handoff, validate it, write an effectiveness report with omitted counts, improvement signals, downstream feedback placeholders, and limitations, then return compact model-visible results. Defaults tobudget: "compact"and no evidence snippets.
Effectiveness tracking
Each native tool invocation writes skills/repo-explorer/repo-explorer-effectiveness-<timestamp>-<repo-key>.md. Reports include tracking metadata, improvement signals, candidates, omitted counts, and manual downstream-feedback placeholders. To create a rollup improvement file from all reports:
python3 skills/repo-explorer/scripts/summarize_effectiveness_reports.py \
--reports-dir skills/repo-explorer \
--output skills/repo-explorer/repo-explorer-effectiveness-summary.md
Example view
User: Review this change for the concerns covered by `repo-explorer`.
Agent: Invokes the `repo-explorer` skill, follows its workflow, and reports the result.