@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,

Packages

Package details

extensionskill

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.1.9
Published
Jun 10, 2026
Downloads
833/mo · 449/wk
Author
firstpick
License
MIT
Types
extension, skill
Size
110 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-explorer skill to Pi's skill library.
  • Adds the repo_explorer_explore tool 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 > /tmp/repo-explorer-handoff.json
python3 ./scripts/validate_handoff.py --input /tmp/repo-explorer-handoff.json

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 goal-focused handoff, validate it, and return compact model-visible results. Defaults to budget: "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.