baphuongna/pi-crew/resource-discovery-config
Claude Code and agent skill by baphuongna/pi-crew
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
pi-crew resource and configuration discovery workflow. When NOT to use: runtime state questions (use runtime-state-reader); model-specific config (use model-routing-context).
Install
npx vskill@latest install baphuongna/pi-crew/resource-discovery-configSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
resource-discovery-config
Use this skill for pi-crew resource/config work.
Source patterns distilled
- Pi resource loader:
source/pi/packages/coding-agent/src/core/resource-loader.ts, extensionresources_discoverhook - pi-crew discovery:
src/agents/discover-agents.ts,src/teams/discover-teams.ts,src/workflows/discover-workflows.ts - Config:
src/config/config.ts,src/schema/config-schema.ts,schema.json,docs/resource-formats.md
Rules
- Respect discovery precedence: project resources should override user/builtin where supported.
- Keep built-in resource formats stable and documented.
- Project config (
.pi/pi-crew.json) must be sanitized: do not allow dangerous user-only settings such as agent override injection if project trust is lower. - Resource paths exposed through Pi hooks must point to package-root resources after build; verify
__dirnameresolution carefully. - Avoid dynamic inline imports; keep discovery synchronous or async according to call-site expectations.
- Validate config with schema and provide actionable errors.
- When adding new config fields, update defaults, schema, docs, tests, and examples together.
Enforcement — Resource Discovery Config Gate
Before adding config or changing resource discovery, verify:
- [ ] Discovery precedence respected (project > user > builtin)
- [ ] Config schema validated with actionable errors on invalid input
- [ ] Dangerous user-only settings blocked in lower-trust contexts
- [ ] Resource paths resolved correctly (package-root not src/skills after build)
- [ ] New config fields have defaults, schema, docs, tests, and examples
If ANY answer is NO → Stop. Fix config/discovery issues before proceeding.
Anti-patterns
- Resolving package skills to
src/skillsinstead of package-rootskillsafter publishing. - Letting project-local config inject arbitrary global agent overrides.
- Introducing precedence ambiguity between project/user/builtin resources.
- Changing resource file syntax without migration notes.
Verification
Self-restraint
"Creating nothing is a valid result." If the evidence does not support a meaningful change, say so explicitly rather than inventing one. The next attempt may find stronger evidence; an invented change now damages trust in every future report.
"Creating nothing" here means the current discovery already finds what consumers need. Registering resources nobody uses pollutes the discovery surface and slows every lookup.
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/resource-discovery-config/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
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/resource-discovery-config)