原始内容
pi-explorer
A Pi package that adds:
explorerskill: deeply explores the current repo and generates an HTML architecture/pattern report/explorercommand: indexes report directories, lets you browse them in a TUI, and opens the selected HTML in your browser
Install
From npm:
pi install npm:pi-explorer
From GitHub:
pi install git:github.com/AlvaroRausell/pi-explorer
Then reload Pi:
/reload
Contents
skills/explorer/— skill instructions, references, and report publishing scriptextensions/explorer.js—/explorercommand
Report location
By default, reports are written into the repo you are currently in:
<repo>/.pi/explorer-reports
Example:
/home/a/repos/my-app/.pi/explorer-reports
Usage
Generate a report for the repo you are currently inside:
/skill:explorer
Index the current repo's report directory so /explorer can browse it later:
/explorer index
Browse reports from the current repo only:
/explorer here
/explorer latest here
Browse reports across indexed report directories:
/explorer
/explorer latest
Unindex the current repo's report directory:
/explorer unindex
How it works
- The skill always explores the current working directory.
- Reports are stored per-repo instead of in one global report store.
/exploreruses~/.pi/agent/explorer-index.jsonto remember which report directories you indexed.- Published reports include an
index.jsonmanifest in each repo's.pi/explorer-reportsdirectory.