|
| 1 | +# Extensions |
| 2 | + |
| 3 | +Extensions add new capabilities to Spec Kit — domain-specific commands, external tool integrations, quality gates, and more. They introduce new commands and templates that go beyond the built-in Spec-Driven Development workflow. |
| 4 | + |
| 5 | +## Search Available Extensions |
| 6 | + |
| 7 | +```bash |
| 8 | +specify extension search [query] |
| 9 | +``` |
| 10 | + |
| 11 | +| Option | Description | |
| 12 | +| ------------ | ------------------------------------ | |
| 13 | +| `--tag` | Filter by tag | |
| 14 | +| `--author` | Filter by author | |
| 15 | +| `--verified` | Show only verified extensions | |
| 16 | + |
| 17 | +Searches all active catalogs for extensions matching the query. Without a query, lists all available extensions. |
| 18 | + |
| 19 | +## Install an Extension |
| 20 | + |
| 21 | +```bash |
| 22 | +specify extension add <name> |
| 23 | +``` |
| 24 | + |
| 25 | +| Option | Description | |
| 26 | +| --------------- | -------------------------------------------------------- | |
| 27 | +| `--dev` | Install from a local directory (for development) | |
| 28 | +| `--from <url>` | Install from a custom URL instead of the catalog | |
| 29 | +| `--priority <N>`| Resolution priority (default: 10; lower = higher precedence) | |
| 30 | + |
| 31 | +Installs an extension from the catalog, a URL, or a local directory. Extension commands are automatically registered with the currently installed AI coding agent integration. |
| 32 | + |
| 33 | +> **Note:** All extension commands require a project already initialized with `specify init`. |
| 34 | +
|
| 35 | +## Remove an Extension |
| 36 | + |
| 37 | +```bash |
| 38 | +specify extension remove <name> |
| 39 | +``` |
| 40 | + |
| 41 | +| Option | Description | |
| 42 | +| --------------- | ---------------------------------------------- | |
| 43 | +| `--keep-config` | Preserve configuration files during removal | |
| 44 | +| `--force` | Skip confirmation prompt | |
| 45 | + |
| 46 | +Removes an installed extension. Configuration files are backed up by default; use `--keep-config` to leave them in place or `--force` to skip the confirmation. |
| 47 | + |
| 48 | +## List Installed Extensions |
| 49 | + |
| 50 | +```bash |
| 51 | +specify extension list |
| 52 | +``` |
| 53 | + |
| 54 | +| Option | Description | |
| 55 | +| ------------- | -------------------------------------------------- | |
| 56 | +| `--available` | Show available (uninstalled) extensions | |
| 57 | +| `--all` | Show both installed and available extensions | |
| 58 | + |
| 59 | +Lists installed extensions with their status, version, and command counts. |
| 60 | + |
| 61 | +## Extension Info |
| 62 | + |
| 63 | +```bash |
| 64 | +specify extension info <name> |
| 65 | +``` |
| 66 | + |
| 67 | +Shows detailed information about an installed or available extension, including its description, version, commands, and configuration. |
| 68 | + |
| 69 | +## Update Extensions |
| 70 | + |
| 71 | +```bash |
| 72 | +specify extension update [<name>] |
| 73 | +``` |
| 74 | + |
| 75 | +Updates a specific extension, or all installed extensions if no name is given. |
| 76 | + |
| 77 | +## Enable / Disable an Extension |
| 78 | + |
| 79 | +```bash |
| 80 | +specify extension enable <name> |
| 81 | +specify extension disable <name> |
| 82 | +``` |
| 83 | + |
| 84 | +Disable an extension without removing it. Disabled extensions are not loaded and their commands are not available. Re-enable with `enable`. |
| 85 | + |
| 86 | +## Set Extension Priority |
| 87 | + |
| 88 | +```bash |
| 89 | +specify extension set-priority <name> <priority> |
| 90 | +``` |
| 91 | + |
| 92 | +Changes the resolution priority of an extension. When multiple extensions provide a command with the same name, the extension with the lowest priority number takes precedence. |
| 93 | + |
| 94 | +## Catalog Management |
| 95 | + |
| 96 | +Extension catalogs control where `search` and `add` look for extensions. Catalogs are checked in priority order (lower number = higher precedence). |
| 97 | + |
| 98 | +### List Catalogs |
| 99 | + |
| 100 | +```bash |
| 101 | +specify extension catalog list |
| 102 | +``` |
| 103 | + |
| 104 | +Shows all active catalogs in the stack with their priorities and install permissions. |
| 105 | + |
| 106 | +### Add a Catalog |
| 107 | + |
| 108 | +```bash |
| 109 | +specify extension catalog add <url> |
| 110 | +``` |
| 111 | + |
| 112 | +| Option | Description | |
| 113 | +| ------------------------------------ | -------------------------------------------------- | |
| 114 | +| `--name <name>` | Required. Unique name for the catalog | |
| 115 | +| `--priority <N>` | Priority (default: 10; lower = higher precedence) | |
| 116 | +| `--install-allowed / --no-install-allowed` | Whether extensions can be installed from this catalog | |
| 117 | +| `--description <text>` | Optional description | |
| 118 | + |
| 119 | +Adds a catalog to the project's `.specify/extension-catalogs.yml`. |
| 120 | + |
| 121 | +### Remove a Catalog |
| 122 | + |
| 123 | +```bash |
| 124 | +specify extension catalog remove <name> |
| 125 | +``` |
| 126 | + |
| 127 | +Removes a catalog from the project configuration. |
| 128 | + |
| 129 | +### Catalog Resolution Order |
| 130 | + |
| 131 | +Catalogs are resolved in this order (first match wins): |
| 132 | + |
| 133 | +1. **Environment variable** — `SPECKIT_CATALOG_URL` overrides all catalogs |
| 134 | +2. **Project config** — `.specify/extension-catalogs.yml` |
| 135 | +3. **User config** — `~/.specify/extension-catalogs.yml` |
| 136 | +4. **Built-in defaults** — official catalog + community catalog |
| 137 | + |
| 138 | +Example `.specify/extension-catalogs.yml`: |
| 139 | + |
| 140 | +```yaml |
| 141 | +catalogs: |
| 142 | + - name: "my-org-catalog" |
| 143 | + url: "https://example.com/catalog.json" |
| 144 | + priority: 5 |
| 145 | + install_allowed: true |
| 146 | + description: "Our approved extensions" |
| 147 | +``` |
| 148 | +
|
| 149 | +## Extension Configuration |
| 150 | +
|
| 151 | +Most extensions include configuration files in their install directory: |
| 152 | +
|
| 153 | +```text |
| 154 | +.specify/extensions/<ext>/ |
| 155 | +├── <ext>-config.yml # Project config (version controlled) |
| 156 | +├── <ext>-config.local.yml # Local overrides (gitignored) |
| 157 | +└── <ext>-config.template.yml # Template reference |
| 158 | +``` |
| 159 | + |
| 160 | +Configuration is merged in this order (highest priority last): |
| 161 | + |
| 162 | +1. **Extension defaults** (from `extension.yml`) |
| 163 | +2. **Project config** (`<ext>-config.yml`) |
| 164 | +3. **Local overrides** (`<ext>-config.local.yml`) |
| 165 | +4. **Environment variables** (`SPECKIT_<EXT>_*`) |
| 166 | + |
| 167 | +To set up configuration for a newly installed extension, copy the template: |
| 168 | + |
| 169 | +```bash |
| 170 | +cp .specify/extensions/<ext>/<ext>-config.template.yml \ |
| 171 | + .specify/extensions/<ext>/<ext>-config.yml |
| 172 | +``` |
| 173 | + |
| 174 | +## FAQ |
| 175 | + |
| 176 | +### Why can't I find an extension with `search`? |
| 177 | + |
| 178 | +Check the spelling of the extension name. The extension may not be published yet, or it may be in a catalog you haven't added. Use `specify extension catalog list` to see which catalogs are active. |
| 179 | + |
| 180 | +### Why doesn't the extension command appear in my AI coding agent? |
| 181 | + |
| 182 | +Verify the extension is installed and enabled with `specify extension list`. If it shows as installed, restart your AI coding agent — it may need to reload for it to take effect. |
| 183 | + |
| 184 | +### How do I set up extension configuration? |
| 185 | + |
| 186 | +Copy the config template that ships with the extension: |
| 187 | + |
| 188 | +```bash |
| 189 | +cp .specify/extensions/<ext>/<ext>-config.template.yml \ |
| 190 | + .specify/extensions/<ext>/<ext>-config.yml |
| 191 | +``` |
| 192 | + |
| 193 | +See [Extension Configuration](#extension-configuration) for details on config layers and overrides. |
| 194 | + |
| 195 | +### How do I resolve an incompatible version error? |
| 196 | + |
| 197 | +Update Spec Kit to the version required by the extension. |
| 198 | + |
| 199 | +### Who maintains extensions? |
| 200 | + |
| 201 | +Most extensions are independently created and maintained by their respective authors. The Spec Kit maintainers do not review, audit, endorse, or support extension code. Review an extension's source code before installing and use at your own discretion. For issues with a specific extension, contact its author or file an issue on the extension's repository. |
0 commit comments