← 返回列表
全部 Skill›DevOps›add-community-extension

add-community-extension

作者 @github · 语言 en
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 and docs/community/extensions.md, creating PRs. DO NOT USE FOR: creating new extensions from scratch, or first-party extension work.
DevOpsGit 工作流通用执行命令读写文件待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
151,296
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

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 and docs/community/extensions.md

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 fields that changed (typically version, download_url, description, provides, requires, tags, updated_at). Preserve created_at and downloads/stars from the existing entry.

Use the existing entries as the format template. Entry format:

{
  "<id>": {
    "name": "<name>",
    "id": "<id>",
    "description": "<description>",
    "author": "<author>",
    "version": "<version>",
    "download_url": "<download_url>",
    "repository": "<repository>",
    "homepage": "<homepage>",
    "documentation": "<documentation>",
    "changelog": "<changelog>",
    "license": "<license>",
    "category": "<category>",
    "effect": "<effect>",
    "requires": {
      "speckit_version": "<speckit_version>"
    },
    "provides": {
      "commands": <N>,
      "hooks": <N>
    },
    "tags": ["<tag1>", "<tag2>"],
    "verified": false,
    "downloads": 0,
    "stars": 0,
    "created_at": "<today>T00:00:00Z",
    "updated_at": "<today>T00:00:00Z"
  }
}

Category — free-form string; common values: docs, code, process, integration, visibility

Effect — one of: read-only, read-write

If the extension has optional tool dependencies, add a "tools" array inside "requires":

"tools": [{ "name": "<tool>", "required": false }]

Also update the top-level "updated_at" timestamp in the catalog.

After editing, validate the JSON by running:

python3 -c "import json; json.load(open('extensions/catalog.community.json')); print('Valid JSON')"

5. Add or update docs/community/extensions.md community extensions table

New extension: Insert a new row into the # Community Extensions table in alphabetical order by extension name.

Update: Find the existing row and update the description or other changed fields in-place.

Determine the category and effect from the extension's behavior:

| <Name> | <Description> | `<category>` | <Effect> | [<repo-name>](<repository-url>) |

Category — free-form; common values: docs, code, process, integration, visibility

Effect — write canonical values read-only or read-write in extension.yml and catalog.community.json; use Read-only/Read+Write only for the docs table display

6. Commit, push, and open PR

Use add- for new extensions, update- for updates:

# New extension
git checkout -b add-<extension-id>-extension

# Update
git checkout -b update-<extension-id>-extension
git add extensions/catalog.community.json docs/community/extensions.md

# New extension
git commit -m "Add <Name> extension to community catalog

Add <id> extension submitted by @<issue-author> to:
- extensions/catalog.community.json (alphabetical order)
- docs/community/extensions.md community extensions table

Closes #<issue-number>"

# Update
git commit -m "Update <Name> extension to v<version>

Update <id> extension submitted by @<issue-author>:
- extensions/catalog.community.json (version, download_url, etc.)
- docs/commun
评论
Ggithub
github
github/spec-kit
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@github
所属大类DevOps / Git 工作流
国内可用性通用
最近源活动—
风险提示执行命令、读写文件
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。