Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates, debugs, and iterates on TypeScript extensions for GSD that add tools, slash commands, event hooks, and custom UI.
36% 91%+55 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 8 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
<essential_principles>
Extensions are TypeScript modules that hook into GSD's runtime (built on pi). They export a default function receiving ExtensionAPI and use it to subscribe to events, register tools/commands/shortcuts, and interact with the session.
GSD extension paths (community/user-installed extensions):
~/.pi/agent/extensions/*.ts or ~/.pi/agent/extensions/*/index.ts.gsd/extensions/*.ts or .gsd/extensions/*/index.tsNote: ~/.gsd/agent/extensions/ is reserved for bundled extensions synced from the gsd-pi package. Community extensions placed there are silently ignored by the loader.
The three primitives:
pi.on("event", handler)). Can block tool calls, modify messages, inject context.pi.registerTool()). LLM calls them autonomously.pi.registerCommand()). Users type /mycommand.Non-negotiable rules:
StringEnum from @gsd/pi-ai for string enum params (NOT Type.Union/Type.Literal — breaks Google's API)truncateHead/truncateTail from @gsd/pi-coding-agent)details for branching supportsignal?.aborted in long-running tool executionspi.exec() not child_process for shell commandsctx.hasUI before dialog methods (non-interactive modes exist)waitForIdle, newSession, fork, navigateTree, reload) are ONLY available in command handlers — they deadlock in event handlersrender() must not exceed width — use truncateToWidth()@ from path params in custom tools (some models add it)Available imports:
| Package | Purpose |
|---|---|
@gsd/pi-coding-agent | ExtensionAPI, ExtensionContext, Theme, event types, tool utilities, DynamicBorder, BorderedLoader, CustomEditor, highlightCode |
@sinclair/typebox | Type.Object, Type.String, Type.Number, Type.Optional, Type.Boolean, Type.Array |
@gsd/pi-ai | StringEnum (required for string enums), Type re-export |
@gsd/pi-tui | Text, Box, Container, Spacer, Markdown, SelectList, Input, matchesKey, Key, truncateToWidth, visibleWidth |
| Node.js built-ins | node:fs, node:path, node:child_process, etc. |
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.