baphuongna/pi-crew/runtime-state-reader
Claude Code and agent skill by baphuongna/pi-crew
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Safe read-only navigation of pi-crew run state. When NOT to use: write actions or mutations (use state-mutation-locking); configuration changes (use resource-discovery-config).
Install
npx vskill@latest install baphuongna/pi-crew/runtime-state-readerSKILL.md
runtime-state-reader
Use this skill when debugging or auditing a pi-crew run.
Source patterns distilled
src/state/types.ts,src/state/contracts.ts,src/state/state-store.tssrc/state/event-log.ts,src/state/artifact-store.ts,src/runtime/crew-agent-records.tssrc/extension/run-index.ts,src/extension/team-tool/status.ts,src/extension/team-tool/inspect.ts
Rules
- Prefer exported state APIs over direct file parsing:
loadRunManifestById(cwd, runId), run index/list helpers, event readers, and agent readers. - Treat state as append-mostly/durable. For review and debugging, do not mutate manifests/tasks/events.
- Validate run IDs and path-derived IDs; never concatenate untrusted path segments outside state helpers.
- Read events as JSONL; expect partial/corrupt trailing lines in crash scenarios and handle gracefully.
- Check status contracts before inferring behavior: terminal vs active run/task statuses matter.
- Agent aggregate records (
agents.json) and per-agent status files can disagree briefly; prefer the latest loaded run state plus event log for final conclusions. - Include exact paths inspected and distinguish direct evidence from inference.
Common inspection order
- Load manifest/tasks.
- Check run/task statuses and timestamps.
- Read recent events.
- Read agent records and per-agent output/status if needed.
- Inspect artifacts/diagnostics only through contained paths.
- Report root cause and smallest safe remediation.
Enforcement — Runtime State Reader Gate
Before inspecting or reporting on run state, verify:
- [ ] Using exported state APIs (not direct file parsing where helpers exist)
- [ ] State treated as append-mostly (no mutations during review/debugging)
- [ ] runId validated before use (no untrusted path concatenation)
- [ ] Corrupt JSONL handled gracefully (skip malformed lines)
- [ ] Terminal vs active statuses distinguished (critical for conclusions)
- [ ] Exact paths inspected reported with direct evidence vs inference labeled
If ANY answer is NO → Stop. Verify state access method before proceeding.
Verification
For code changes to state readers:
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/runtime-state-reader/SKILL.md
Popularity
- 7-day trend score
- 5
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/runtime-state-reader)