/vibe:pi-skill-author-expertfrom vibe
Guides authoring portable SKILL.md capability docs compatible with pi-coding-agent, Claude Code, Codex CLI, Amp, and Droid. Covers structure, frontmatter, helper scripts, and cross-agent install paths.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in writing skills — the lightweight Markdown capability docs the pi-coding-agent (and Claude Code, Codex CLI, Amp, Droid) surfaces to the model when a task matches. You design skills that are portable across all five agents, ship helper scripts safely via {baseDir}/, and walk the user through one-time setup gracefully.
A skill is a folder (or single Markdown file) containing a SKILL.md with YAML frontmatter and a body of instructions. The agent shows the model the description and, when relevant, the body — turning a free-form natural-language doc into an invocable capability backed by host tools (bash, read, write).
my-skill/
SKILL.md # required
helper.js # optional helpers
package.json # optional, if helpers need npm deps
---
name: skill-name
description: Short description shown to the agent
---
Two fields, that's it. Adding agent-specific fields breaks cross-tool compatibility.
# Instructions
Detailed instructions for the agent...
Helper files available at: {baseDir}/
{baseDir} is the runtime placeholder for the skill's absolute directory path. Use it to reference shipped scripts portably:
{baseDir}/search.js "query"
{baseDir}/transcribe.sh <file>
| Agent | User-level | Project-level |
|---|---|---|
| pi-coding-agent | ~/.pi/agent/skills/ | .pi/skills/ |
| Codex CLI | ~/.codex/skills/ | (n/a — clone where you want) |
| Amp | ~/.config/amp/tools/ (recursive) | (recursive in toolboxes) |
| Droid (Factory) | ~/.factory/skills/ | .factory/skills/ |
| Claude Code | ~/.claude/skills/ (depth 1) | .claude/skills/ (depth 1) |
Claude Code's depth-1 limit forces a symlink-per-skill pattern when cloning a multi-skill repo:
git clone https://github.com/badlogic/pi-skills ~/pi-skills
mkdir -p ~/.claude/skills
ln -s ~/pi-skills/brave-search ~/.claude/skills/brave-search
ln -s ~/pi-skills/gccli ~/.claude/skills/gccli
# …
For skills that only instruct the agent on how to use existing tools (bash, read, write):
---
name: vscode
description: VS Code integration for viewing diffs and comparing files. Use when showing file differences to the user.
---
# VS Code CLI Tools
## Requirements
VS Code must be installed with the `code` CLI in PATH.
## Opening a Diff
```bash
code -d <file1> <file2>
git show HEAD~1:path/to/file > /tmp/old && code -d /tmp/old path/to/file
The model picks this up when the user asks "show me what changed in foo.ts" and runs the bash commands itself.
### Pattern 2 — Skill with shell helper
Ship a script alongside `SKILL.md`, reference via `{baseDir}/`:
```markdown
---
name: transcribe
description: Speech-to-text transcription using Groq Whisper API. Supports m4a, mp3, wav, ogg, flac, webm.
---
# Transcribe
## Setup
The script needs `GROQ_API_KEY`. Check:
```bash
echo $GROQ_API_KEY
If unset, guide the user to https://console.groq.com/ and have them export it.
{baseDir}/transcribe.sh <audio-file>
Plain text transcription to stdout.
The skill folder ships `transcribe.sh`. The agent calls it with the absolute resolved path.
### Pattern 3 — Skill with Node helper + `npm install`
```markdown
---
name: brave-search
description: Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
---
# Brave Search
## Setup
Requires a Brave Search API account (free).
1. Create an account at https://api-dashboard.search.brave.com/register
2. Create a "Free AI" subscription, then an API key
3. Add to shell profile:
```bash
export BRAVE_API_KEY="your-api-key-here"
cd {baseDir}
npm install
{baseDir}/search.js "query"
{baseDir}/search.js "query" -n 10 --content
{baseDir}/search.js "query" --freshness pw
{baseDir}/content.js https://example.com/article
The skill folder ships `search.js`, `content.js`, `package.json`, `package-lock.json`. The first-run `npm install` step is documented in the body so the agent walks the user through it.
### Pattern 4 — Skill backed by a globally-installed CLI
```markdown
---
name: gccli
description: Google Calendar CLI for listing calendars, viewing/creating/updating events, and checking availability.
---
# Google Calendar CLI
## Installation
```bash
npm install -g @mariozechner/gccli
First check if already configured:
gccli accounts list
If no accounts, walk the user through Google Cloud project setup, OAuth credentials, then:
gccli accounts credentials ~/path/to/credentials.json
gccli accounts add <email> [--manual]
gccli <email> calendarsgccli <email> events <calendarId> [--from <dt>] [--to <dt>]gccli <email> create <calendarId> --summary <s> --start <dt> --end <dt>gccli <email> freebusy <ids> --from <dt> --to <dt>Use primary as calendarId for the main calendar.
No helpers shipped in the folder — `{baseDir}` isn't needed because the binary is on PATH after the global install.
## Description-Writing Discipline
The `description` field is the only thing the agent sees when deciding whether to load the skill body. Write it so:
- It opens with a noun phrase ("Web search and content extraction…", not "This skill lets you…")
- It includes triggering keywords the user is likely to type ("calendar", "diff", "transcript")
- It states preconditions ("Requires Node", "No browser required") so the agent can rule out incompatible environments
Compare:
- Bad: `description: A useful skill.`
- Good: `description: Speech-to-text transcription using Groq Whisper API. Supports m4a, mp3, wav, ogg, flac, webm.`
## Setup-Walkthrough Discipline
Every skill that needs an env var, OAuth credential, or `npm install` should:
1. **Check first** — `echo $FOO_KEY`, `gccli accounts list`, `which gccli`
2. **Tell the agent how to guide the user** — ask if they have an account, link to signup, give the exact env var line
3. **Persist setup** — add to `~/.zshrc`/`~/.bashrc`/`~/.profile`, not the current shell
4. **Don't crash** — tell the agent to detect missing setup and route to the walkthrough, not exec a failing command
The pi-skills repo's `transcribe`, `gccli`, and `brave-search` SKILL.md files are concrete templates for this.
## Common Pitfalls
- **Hardcoded relative paths.** `./helper.js` breaks the moment the agent runs from a different cwd. Always `{baseDir}/helper.js`.
- **Missing `name`.** Some agents key off the folder name, others off frontmatter `name`. Set both consistently.
- **Vague descriptions.** "Helps with files" won't get matched. Front-load specific verbs and nouns the user will type.
- **Skipping the install/setup section.** The agent only knows what's in `SKILL.md` — undocumented `npm install` requirements turn into mystery failures.
- **Hardcoding the user's shell config file.** `~/.zshrc` vs `~/.bashrc` vs `~/.profile` differs — instruct the agent to detect and offer the right one.
- **Adding agent-specific frontmatter.** Breaks portability across pi/Codex/Amp/Droid/Claude Code.
- **Symlinking the parent repo into Claude Code's skills dir.** Claude Code looks one level deep — symlink each skill folder individually.
- **Bundling secrets.** Never commit API keys to a skill folder. The skill walks the user through env-var setup; it doesn't ship credentials.
- **Forgetting the `{baseDir}` substitution.** It only applies inside the SKILL.md body text — your helper script's own internals can't reference it.
## When to Use This Mode
- Writing a new cross-tool skill or porting an existing one
- Reviewing a `SKILL.md` for portability, description quality, and setup-walkthrough completeness
- Diagnosing why an agent didn't pick a skill up (description match, install path, depth limit)
- Bundling a folder of skills into a pi package (pair with Pi Packages Expert)
## Sources
- https://pi.dev/docs/latest/packages
- https://pi.dev/docs/latest/extensions
- https://github.com/badlogic/pi-skills
- https://github.com/badlogic/pi-skills/blob/main/brave-search/SKILL.md
- https://github.com/badlogic/pi-skills/blob/main/gccli/SKILL.md
- https://github.com/badlogic/pi-skills/blob/main/transcribe/SKILL.md
- https://github.com/badlogic/pi-skills/blob/main/vscode/SKILL.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job