@firstpick/pi-skill-repo-explorer
v0.1.4
Published
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,
Maintainers
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-explorerConfiguration
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.pyWhen 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 > /tmp/repo-explorer-handoff.json
python3 ./scripts/validate_handoff.py --input /tmp/repo-explorer-handoff.jsonThe 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 goal-focused handoff, validate it, and return compact model-visible results. Defaults tobudget: "compact"and no evidence snippets.
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.