SKILL.md--- name: add-community-extension description: 'Add a community extension to the Spec Kit catalog from a GitHub issue submission. USE FOR: processing extension submission issues, validating catalog entries, updating catalog.community.json, creating PRs. DO NOT USE FOR: creating new extensions from scratch, or first-party extension work.' argument-hint: 'GitHub issue URL or number for the extension submission' --- # Add Community Extension Process an extension submission issue and add or update it in the community catalog. ## When to Use - A new `[Extension]` submission issue is filed - An existing extension submits an update issue (new version, changed metadata) - You need to add or update a community extension in `extensions/catalog.community.json` ## Procedure ### 1. Fetch the submission issue Read the GitHub issue to extract all metadata: - Extension ID, name, version, description, author - Repository URL, download URL, homepage, documentation, changelog - License, required spec-kit version, optional tool dependencies - Number of commands and hooks - Tags ### 2. Validate against publishing rules Check **all** of the following (per `docs/extensions/publishing.md`): | Check | How | |-------|-----| | Repository exists and is public | Fetch the repository URL | | `extension.yml` manifest present | Confirm in repo file listing | | README.md present | Confirm in repo file listing | | LICENSE file present | Confirm in repo file listing | | GitHub release exists matching version | Check releases on the repo page | | Download URL is accessible | Validate the submitted URL first: scheme must be `https`, host must be exactly `github.com`, it must not include username/password, query string, or fragment, and its path must match `archive/refs/tags/<tag>.zip` or `releases/download/<tag>/<asset>.zip`; also verify the release exists. Only then fetch the archive with redirects enabled. Validate each redirect and the final URL against an explicit safe-host policy (`github.com`, `codeload.github.com`, or `release-assets.githubusercontent.com`) and require HTTPS; allow the signed query string used by `release-assets.githubusercontent.com`. Require the final response to be HTTP 200. | | Extension ID is lowercase alphanumeric with hyphens only | Regex: `^[a-z][a-z0-9-]*$` | | Version follows semver | Format: `X.Y.Z` | | Submission checklists are all checked | Confirm in issue body | ### 3. Determine if this is an add or update Search `extensions/catalog.community.json` for the extension ID. - **Not found** → this is a **new addition**. Proceed to step 4. - **Found** → this is an **update**. Proceed to step 4 but replace the existing entry in-place instead of inserting. ### 4. Add or update `extensions/catalog.community.json` **New extension:** Insert the entry in **alphabetical order** by extension ID. **Update:** Replace the existing entry in-place. Update only the