Agent skill
pi-tools
View and manage Pi-built extensions synced to Dex. Shows available tools, commands, and sync status.
Install this agent skill to your Project
npx add-skill https://github.com/davekilleen/Dex/tree/main/.claude/reference/beta-templates/pi/skills/pi-tools
SKILL.md
Pi Tools
View and manage Pi-built extensions that have been synced to Dex.
Arguments
$ACTION: What to do (optional, defaults tolist)list- Show all synced Pi extensions and their toolssync- Force re-sync of Pi extensionsstatus- Show sync status and registry infoshow [extension]- Show details for a specific extension
Workflow
Step 1: Check Registry
Read the Pi extensions registry at .claude/pi-extensions-registry.json.
if [ -f ".claude/pi-extensions-registry.json" ]; then
echo "Registry found"
else
echo "No Pi extensions synced yet"
fi
Step 2: Execute Action
If $ACTION == list or no action specified:
Display all synced extensions:
## Pi Extensions
| Extension | Tools | Commands | Last Modified |
|-----------|-------|----------|---------------|
| [name] | [count] | [count] | [date] |
### Tools Available
**[extension-name]:**
- `tool_name` - Description
- `tool_name_2` - Description
**[extension-name-2]:**
- ...
If $ACTION == sync:
-
Run the sync hook manually:
bashnode .claude/hooks/pi-extensions-sync.cjs -
Report what changed:
- New extensions added
- Extensions updated
- Extensions removed
If $ACTION == status:
Display sync metadata:
- Last sync timestamp
- Number of extensions
- Registry file location
- Generated skills location
If $ACTION == show [extension]:
Read the generated skill file:
cat ".claude/skills/pi-generated/pi-[extension]/SKILL.md"
Display full details:
- Description
- All tools with parameters
- All commands
- Source file location
Output Format
List View
## Pi Extensions Synced to Dex
**Last sync:** 2026-02-03T12:00:00Z
### dex-mcp-bridge
*Bridges Pi to Dex's MCP servers for task and calendar management*
**Tools:**
- `dex_task` - Manage tasks (create, complete, list, suggest)
- `dex_calendar` - Access calendar events (today, upcoming, list)
**Commands:**
- `/dex-tasks` - List current tasks
- `/dex-today` - Show today's events
---
Run `/pi-tools sync` to refresh from .pi/extensions/
Status View
## Pi Extensions Status
**Registry:** .claude/pi-extensions-registry.json
**Skills:** .claude/skills/pi-generated/
**Source:** .pi/extensions/
**Stats:**
- Extensions: 1
- Total tools: 2
- Total commands: 2
**Last sync:** 2026-02-03T12:00:00Z
**Sync triggers:**
- SessionStart hook (automatic)
- `/pi-tools sync` (manual)
Integration Notes
How Sync Works
- SessionStart hook runs
pi-extensions-sync.cjs - Scans
.pi/extensions/*.tsfor TypeScript files - Parses each file to extract:
- JSDoc descriptions
pi.registerTool()callspi.registerCommand()calls
- Generates skill stubs in
.claude/skills/pi-generated/ - Updates registry with metadata
- Outputs summary to session context
Skill Naming
Pi extension skills are prefixed with pi: to distinguish from native Dex skills:
pi:dex-mcp-bridge- MCP bridge extensionpi:custom-tool- Custom extension
Generated skill folders use pi- prefix:
.claude/skills/pi-generated/pi-dex-mcp-bridge/SKILL.md
When to Use Pi vs Dex
Use Pi tools when:
- Working in the Pi environment
- Need direct tool execution
- Building new extensions
Use Dex context when:
- Planning work that involves Pi capabilities
- Documenting what tools are available
- Cross-referencing with Dex knowledge
Edge Cases
- No .pi/extensions/ directory: Silent - Pi not configured
- Empty extensions directory: Report "No Pi extensions found"
- Parse errors: Skip malformed files, report warnings
- Deleted extensions: Clean up orphaned skill stubs
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
getting-started
Interactive post-onboarding tour with adaptive pathways based on available data
industry-truths
Define time-horizoned assumptions about your industry/domain that ground strategic thinking and prevent building on quicksand
process-meetings
Process synced Granola meetings to update person pages, extract tasks, and organize meeting notes
pi
Route tasks to Pi for comparison testing. Toggle Pi mode or run specific commands through Pi.
commitment-extractor
Extract and track commitments from meeting notes - who promised what to whom, with deadlines and status tracking.
anthropic-canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Didn't find tool you were looking for?