baphuongna/pi-crew/read-only-explorer
Claude Code and agent skill by baphuongna/pi-crew
- community
Checking that the SKILL.md file is still in the repository.
Read-only exploration and audit workflow. When NOT to use: any task that needs write actions; deep adversarial analysis (use council); quick one-line lookups (use bash directly).
Install
npx vskill@latest install baphuongna/pi-crew/read-only-explorerSKILL.md
read-only-explorer
Use this skill for explorer, analyst, reviewer, and source-audit roles. These roles must inspect code without modifying it.
Tool availability (enforced — R27-D6).explorer(andlibrarian) shipwithout a `bash` tool:src/config/role-tools.ts:25-29setstools: ["read", "grep", "find", "ls", "glob", "ask"]+excludeTools: ["edit", "write", "bash", "web"]. The shell syntax below(rg …,find …,git status) is therefore **reference syntax for theintent**, not runnable in an explorer session. Map each example to the tool youactually have:rg→grep,find/shell globbing →find/glob,ls→ls,cat/sed -n→read(with offset/limit).analyst/reviewerroles keepbash(role-tools.ts:33-35,:64-68) — the restriction is per-role.
Core Contract
- Do not edit files — no write, no edit, no delete
- Do not write generated artifacts outside the run artifact directory
- Prefer read-only tools:
read,grep,find,ls,glob(explorer has no shell — see the note above) - Record exact files inspected — include path and relevant line numbers
- Distinguish direct evidence from inference — don't guess
- If implementation is needed, recommend — don't modify code
Tool Selection Guide
Choosing the right tool for the task reduces noise and speeds up discovery.
rg (ripgrep) — Code pattern search
Best for: Finding function definitions, imports, patterns, usages
find — File and directory search
Best for: Finding files by name, type, or path pattern
read — File content inspection
Best for: Reading specific files or file sections
ls — Directory structure
Best for: Listing directories, understanding layout
git — Version control inspection
Best for: Understanding history, changes, and authorship
Scope Containment
Limit searches to relevant areas to avoid noise.
By directory
By file type
By depth
Findings Format
Every finding should be documented with:
Example:
Risk Assessment Criteria
| Severity | Criteria | |
|---|---|---|
| critical | Data loss, secret leak, arbitrary command/path escape, broken install | |
| high | Broken core workflow, ownership bypass, persistent incorrect state | |
| medium | Important regression, flaky test, confusing behavior | |
| low | Polish, maintainability, missing docs |
Next Steps Format
When recommending implementation, structure it as:
Reading Large Codebases Efficiently
Chunk strategy
- Start with entry point (main file, index, README)
- Find key function calls → follow the chain
- Read function signatures before bodies
- Skip test files unless investigating specific test behavior
Trace data flow
For each step, identify:
- What data enters
- What transforms it
- What exits
- Where it could fail
Distinguish evidence from inference
| Type | Description | Example | |
|---|---|---|---|
| Direct evidence | Exact content read from file | "type": "worker.spawned" found at line 42 | |
| Inference | Interpretation based on evidence | "Worker likely crashed because exit code was 1" | |
| Unknown | Not confirmed | "This might be a race condition" |
Always label uncertainty clearly. Use "may", "might", "could" for inference; "is", "shows", "contains" for evidence.
Enforcement — Read-Only Explorer Gate
Before reporting findings, verify:
- [ ] No files edited, written, or deleted (read-only contract maintained)
- [ ] Findings include: path, line, evidence, severity, impact, recommendation
- [ ] Exact files inspected recorded with paths and line numbers
- [ ] Direct evidence distinguished from inference (cite vs guess)
- [ ] If implementation needed, recommend (do not modify code)
If ANY answer is NO → Stop. Adhere to read-only contract.
Anti-patterns
- Editing during exploration: If you need to add logging or print statements, use a separate test script instead of modifying source files.
- Broad searches without context:
rg "error"returns thousands of results. Narrow by file, directory, or surrounding context. - Trusting comments over code: Comments can be outdated. Read the actual code.
- Skipping test files: Tests often reveal the intended behavior and edge cases. Read them.
- Not recording files inspected: Without exact paths, findings can't be verified.
- Inference as fact: If unsure, mark it as inference.
Source patterns
src/runtime/task-runner.ts+src/runtime/task-runner/— task execution pipelinesrc/runtime/child-pi/— worker spawningsrc/runtime/live-session/live-agent-manager.ts— live agent lifecyclesrc/state/event-log/— event logging systemsrc/extension/team-tool/— API and tool handlingsrc/ui/— widget and TUI rendering
Verification
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 repositoryCheckingskills/read-only-explorer/SKILL.md
Popularity
- 7-day trend score
- 0
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/baphuongna/pi-crew/read-only-explorer)