Create gsd extension

From mkurman/zorai · View interactive version

Create gsd extension is an AI agent skill from the GitHub repository mkurman/zorai. Create, debug, and iterate on GSD extensions (TypeScript modules that add tools, commands, event hooks, custom UI, and providers to GSD). Use when asked to build an extension, add a tool the LLM can call, register a slash command, hook into GSD events, create custom TUI components, or modify GSD beh

How to use this skill

Skill file

------|

| @mariozechner/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 |

| @mariozechner/pi-ai | StringEnum (required for string enums), Type re-export |

| @mariozechner/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. |

</essential_principles>

<routing>

Based on user intent, route to the appropriate workflow:

Building a new extension:

Adding capabilities to an existing extension:

Debugging an extension:

If user intent is clear from context, skip the question and go directly to the workflow.

</routing>

<reference_index>

All domain knowledge in references/:

Core architecture: extension-lifecycle.md, events-reference.md

API surface: extensionapi-reference.md, extensioncontext-reference.md

Capabilities: custom-tools.md, custom-commands.md, custom-ui.md, custom-rendering.md

Patterns: state-management.md, system-prompt-modification.md, compaction-session-control.md

Infrastructure: model-provider-management.md, remote-execution-overrides.md, packaging-distribution.md, mode-behavior.md

Gotchas: key-rules-gotchas.md

</reference_index>

<workflows_index>

| Workflow | Purpose |

|----------|---------|

| create-extension.md | Build a new extension from scratch |

| add-capability.md | Add tools, commands, hooks, UI to an existing extension |

| debug-extension.md | Diagnose and fix extension issues |

</workflows_index>

<success_criteria>

Extension is complete when:

</success_criteria>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.