rajivmehtaflex/power-utility/pi-extension-explorer
Claude Code and agent skill by rajivmehtaflex/power-utility
- community
Checking that the SKILL.md file is still in the repository.
Explore Pi ecosystem repos with CodeGraph and Mermaid.
Install
npx vskill@latest install rajivmehtaflex/power-utility/pi-extension-explorerSKILL.md
The same SKILL.md was published earlier as rajivmehtaflex/power-utility/pi-extension-explorer.
Pi Ecosystem Explorer
Explores any repository in the Pi coding-agent ecosystem (extension, core/runtime, CLI, library, or skill), explains its role and integration from verified source, and writes a Mermaid flow diagram plus rendered SVG into the repository root. It never executes the repo's own code.
When to Use
- User runs
/pi-extension-explorerwith a Pi repository URL or local path. - "Explore this Pi repo: <url>" (including the Hermes
@url:form) or "Use this local Pi folder: <path>". - "Explain this repo's role in Pi and create the flow diagram."
Don't use for: non-Pi repositories (report the closest detected role instead of inventing a Pi integration), or requests that require running the repo's install/build/test scripts.
Prerequisites
gitandcodegraphon PATH (installcodegraphviabrew install codegraphon macOS).- Node/npm/npx for Mermaid CLI (
@mermaid-js/mermaid-cli), fetched vianpx -yon first run. - CodeGraph MCP server available (
mcp__codegraph__codegraph_explore).
How to Run
Accept a plain task description from the user (a URL, a local path, or "explore <repo>"). Never ask the user for internal flags. Internally:
- Normalize the input into
repository_path(andrepository_urlif a URL was given). - Clone (if URL and destination absent) or verify the local path.
- Anchor the desktop workspace via
project_createwhen the Project plugin is available.
Quick Reference
Procedure
- Acquire + anchor (see How to Run). Verify
pwdequals the repo path and reportgit status --short --branch. Never delete/reset an existing checkout. - CodeGraph: run
codegraph --version;codegraph init -vif.codegraph/is absent, elsecodegraph synconly on reported changes; finish withcodegraph status -jand capture initialized/projectPath/fileCount/nodeCount/edgeCount/pendingChanges/state. - Detect role:
read_fileonpackage.jsonand README;search_files(target=files) for the entry point,bin, askills/dir, and anypiblock. Assign one role from the table below and record the evidence. - Explore with CodeGraph MCP (
mcp__codegraph__codegraph_explore, absoluteprojectPath) using the role-keyed query. - Explain role + behavior: identity, purpose, entry/load path, execution flow, CLI/helper surface (if any).
- Author the
.mmdfrom the evidence table using the role template, with an authoring-time CodeGraph lane as a comment/note (not a runtime node). - Render the SVG with Mermaid CLI and verify it is non-empty.
Role templates
| Role | Detection signal | Diagram flow | |
|---|---|---|---|
| Extension / plugin | pi block, pi.extensions, pi.skills, or peer-dep on @earendil-works/pi-* with an entry that registers into Pi | user prompt → Pi agent loop → loads extension / registers surface → LLM selects surface → handler → result → response | |
| Core / runtime | pi-ai, pi-tui, pi-coding-agent, or pi-mono core | user prompt → agent loop → model → action/tool → response | |
| CLI tool | bin entry whose main is a standalone command | user invokes command → parse args → config/discovery → action → output | |
| Library / SDK | exports/main only; no pi block, no bin | consumer imports → public API → result | |
| Skill collection | ships a skills/ dir or pi.skills | agent loads skill → follows instructions → artifact |
Artifact names: <repo-name>-pi-flow.mmd and <repo-name>-pi-flow.svg at the repository root. Preserve unrelated existing files (write a timestamped sibling) unless the skill's generated marker is present.
Pitfalls
- Stale index: run
codegraph synconly whenpendingChanges/worktreeMismatchis non-zero; do not rebuild a healthy index. - Role misclassification: confirm by reading the entry point and
package.json, not the package name alone. - Never run the repo's install/build/test scripts or launch servers.
- Mermaid CLI may fail with a missing
chrome-headless-shell; run the matchingpuppeteer browsers install chrome-headless-shell@<ver>command, retry, and verify the output file exists — not just the "Generating" log. - Do not put
%%comment lines before theflowchart TD/sequenceDiagramdeclaration — some Mermaid versions raise a parse error on the leading comment block. Start the.mmdwith the diagram directive and place%%metadata comments indented immediately inside the body. - CodeGraph is authoring-time only; never draw it as a runtime node in the diagram.
project_createmay be unavailable in some profiles — fall back toterminal(workdir=<repo path>).
Verification
pwdequals the target repository path.codegraph status -j→initialized=true,index.state=complete,pendingChanges=0..mmdcontainsflowchart/sequenceDiagram, the role-appropriate entry point, the processing path, and a result/response node..svgexists and is non-empty.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprofile/software-development/pi-extension-explorer/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rajivmehtaflex/power-utility/pi-extension-explorer)