create-gsd-extension

Automates creation of feature-ready GSD extension scaffolds with tools, commands, hooks, UI stubs, and hot reload support.

7.8k|770|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/gsd-build/gsd-2 --skill create-gsd-extension
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-gsd-extension
Source: https://github.com/gsd-build/gsd-2/tree/main/src/resources/skills/create-gsd-extension
Command: npx skills add https://github.com/gsd-build/gsd-2 --skill create-gsd-extension

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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 behavior. Triggers on "create extension", "build extension", "add a tool", "register command", "hook into gsd", "custom tool", "gsd plugin", "gsd extension".

Core Features & Use Cases

  • Scaffold a complete extension skeleton with tools, commands, event hooks, and UI stubs.
  • Provide best-practice patterns for state, rendering, and safety checks, plus a guided test workflow.
  • Use cases include building a new extension, adding capabilities to an existing extension, debugging issues, and preparing packaging.

Quick Start

Ask the AI to scaffold a new GSD extension and then run /reload to validate the generated skeleton.

Frequently Asked Questions about create-gsd-extension

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a GSD extension with TypeScript?

You can scaffold a GSD extension by automating the creation of a feature-ready TypeScript skeleton that wires up tools, commands, hooks, and UI stubs. This generates a structured extension with best-practice patterns for state and testability.

What is the best way to add a custom tool or slash command to GSD?

Building a GSD extension is the best way to add a custom tool or slash command. It provides a structured skeleton that registers commands and tools the LLM can call, complete with safety checks and rendering patterns.

How do I hook into GSD events to modify behavior?

To hook into GSD events, you create an extension module that registers event hooks. The scaffold wires up these hooks, allowing you to modify GSD behavior and implement custom workflows across project-local or global spaces.

Can I use GSD extensions to create custom TUI components?

Yes, GSD extensions support creating custom TUI components. The scaffolding process includes UI stubs and best-practice rendering patterns to help you build and integrate custom interfaces directly into GSD.

How do I validate and hot reload a GSD extension during development?

To validate and hot reload a GSD extension during development, run the /reload command after asking the AI to scaffold or iterate on your extension. This enables an end-to-end workflow from creation to testing.

Do I need to manually set up state management for a new GSD extension?

No manual state setup is needed. The scaffolded GSD extension implements a structured skeleton with best-practice patterns for state management, safety checks, and testability out of the box.