Pi Skill Interpolation — Development skill for Claude Code
⚡ pi extension for dynamic shell interpolation in skills — !\ syntax, gated on allowed-tools.
How to install Pi Skill Interpolation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open joelhooks/pi-skill-interpolation and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pi Skill Interpolation does
⚡ pi extension for dynamic shell interpolation in skills — !\ syntax, gated on allowed-tools.
Alternatives in Development
- n8n Expression Syntax — n8n expression syntax with {{}} and $json/$node variables 3.6k ★
- Rev Requirements — 既存のコードベースから要件定義書を逆生成します 974 ★
- Agent Skill — A Claude Code plugin marketplace containing the ast-grep skill for powerful structural code search using Abstr 851 ★
README
⚡ pi-skill-interpolation
Dynamic shell interpolation for [pi](https://github.com/badlogic/pi-mono) skills. Embed `!`command`` in your SKILL.md and the output replaces the placeholder before the model sees it.
Compatible with [Claude Code's skill interpolation syntax](https://x.com/lydiahallie/status/2034337963820327017).
What it does
---
name: pr-summary
description: Summarize changes in a pull request
allowed-tools: Bash(git:*) Bash(gh:*)
---
- PR diff: !`gh pr diff`
- Changed files: !`gh pr diff --name-only`
- Current branch: !`git branch --show-current`
When you invoke `/skill:pr-summary`, the extension executes each `!`command`` and the model sees:
- PR diff:
- Changed files: src/index.ts\nsrc/utils.ts
- Current branch: feat/my-feature
Security
Interpolation only runs when the skill declares `allowed-tools` with a Bash permission in its frontmatter. Without it, `!`command`` patterns pass through as literal text.
# These enable interpolation:
allowed-tools: Bash
allowed-tools: Bash(git:*) Bash(gh:*)
allowed-tools: Read Bash(echo:*)
# These do NOT enable interpolation:
allowed-tools: Read Write
# (or no allowed-tools at all)
This follows the [Agent Skills spec](https://agentskills.io/specification) `allowed-tools` field. Same trust model as npm postinstall scripts: you opt in per-skill.
Install
pi install git:github.com/joelhooks/pi-skill-interpolation
Or clone and symlink:
git clone git@github.com:joelhooks/pi-skill-interpolation.git ~/Code/joelhooks/pi-skill-interpolation
ln -sfn ~/Code/joelhooks/pi-skill-interpolation ~/.pi/agent/extensions/skill-interpolation
How it works
Two extension hooks, no core changes:
**`input` hook** - Intercepts `/skill:name` before pi's built-in expansion. Finds the skill file, checks `allowed-tools` for Bash, interpolates `!`command`` patterns, and returns the expanded `` block. Falls through to pi's normal expan
Related Skills
Dynamic Island Omarchy
Dynamic Island packaged as an Omarchy shell plugin
Claude Workspace Tools
Claude Code extension framework with SuperClaude (18 commands), session management (6 commands), custom workfl
0x002132 Skills Bugbounty Hunt File Upload
Hunt file upload bugs — RCE via webshell, XSS via SVG/HTML, SSRF via XXE in DOCX, path traversal via filename.
Gnome Computer Use
Claude Code skill for GNOME Wayland: mouse/keyboard without root (Mutter RemoteDesktop EIS), windows and sharp
Generate First Touch
Write one short first touch grounded in company {{company_evidence}}, person {{person_evidence}} and scoring r
Claude Permission Hook
Claude Code hook as workaround for a bug in Claud Code allowed tools permission matching
Related Agents
Optimizer Commands
Specialized agent for optimizing Claude Code slash commands. Expert in command frontmatter, argument-hint synt
File Upload
File Upload vulnerability specialist (H1 #39). Use for testing upload restrictions, content-type bypass, exten
Mobile Attacker
Mobile application security specialist for Android and iOS. Handles APK decompilation, static/dynamic analysis