Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 10 additions & 19 deletions .github/skills/add-community-extension/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
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 and docs/community/extensions.md, creating PRs. DO NOT USE FOR: creating new extensions from scratch, or first-party extension work.'
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'
---

Expand All @@ -12,7 +12,7 @@ Process an extension submission issue and add or update it in the community cata

- 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`
- You need to add or update a community extension in `extensions/catalog.community.json`

## Procedure

Expand Down Expand Up @@ -106,20 +106,13 @@ 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
### 5. Catalog-generated community documentation

**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
The documentation build generates the community extension directory and detail
pages directly from the catalog. Do not edit `docs/community/extensions.md` or
generated documentation. Preserve author-declared category and effect in the
catalog; omit these optional fields when absent rather than inferring them.
Category is free-form; effect must be `read-only` or `read-write`.

### 6. Commit, push, and open PR

Expand All @@ -134,14 +127,13 @@ git checkout -b update-<extension-id>-extension
```

```bash
git add extensions/catalog.community.json docs/community/extensions.md
git add extensions/catalog.community.json

# 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>"

Expand All @@ -150,7 +142,6 @@ 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/community/extensions.md community extensions table

Closes #<issue-number>"

Expand All @@ -165,7 +156,7 @@ Then create a PR to `upstream` (`github/spec-kit`) with:

## Common Pitfalls

- **Alphabetical order matters** — entries must be sorted by ID in the JSON and by name in the docs table.
- **Alphabetical order matters** — entries must be sorted by ID in the JSON; documentation is sorted automatically during generation.
- **Don't forget the catalog `updated_at`** — the top-level timestamp in `catalog.community.json` must be refreshed.
- **Validate JSON after editing** — a trailing comma or missing brace will break the catalog.
- **Use `Closes` not `Fixes`** — `Closes #N` is the correct keyword for submission issues.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/add-community-extension.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 11 additions & 33 deletions .github/workflows/add-community-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ safe-outputs:
max: 1
allowed-files:
- extensions/catalog.community.json
- docs/community/extensions.md
protected-files:
policy: blocked
exclude:
Expand Down Expand Up @@ -302,6 +301,8 @@ Insert the entry in **alphabetical order by extension ID** within the
"documentation": "<documentation or repository README>",
"changelog": "<changelog or empty string>",
"license": "<license>",
"category": "<category, if declared>",
"effect": "<read-only or read-write, if declared>",
"requires": {
"speckit_version": "<speckit_version>"
},
Expand Down Expand Up @@ -345,41 +346,21 @@ python3 -c "import json; json.load(open('extensions/catalog.community.json')); p

If validation fails, fix the JSON and re-validate before continuing.

## Step 5 — Update `docs/community/extensions.md`
## Step 5 — Catalog-Generated Community Documentation

Edit `docs/community/extensions.md` to add or update a row in the Community
Extensions table.

### For a new extension

Insert a new row in **alphabetical order by extension name**:

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

Determine the category from the extension's behavior:
- `docs` — reads, validates, or generates spec artifacts
- `code` — reviews, validates, or modifies source code
- `process` — orchestrates workflow across phases
- `integration` — syncs with external platforms
- `visibility` — reports on project health or progress

Determine the effect:
- `Read-only` — produces reports only
- `Read+Write` — modifies project files

### For an update

Find the existing row and update any changed fields in-place.
The documentation build generates the community extension directory and detail
pages directly from the catalog. Do not edit `docs/community/extensions.md` or
generated documentation. Preserve author-declared `category` and `effect` in the
catalog; omit these optional fields when absent rather than inferring them.
Category is free-form; effect must be `read-only` or `read-write`.

## Step 6 — Create Pull Request

Create a pull request with the changes. Use this branch naming convention:

This repository-owned gh-aw maintenance workflow does not perform the contributor
open-PR count check or request confirmation. After successful validation and
allowed catalog/docs file updates, emit the configured draft `create_pull_request`
allowed catalog updates, emit the configured draft `create_pull_request`
safe output regardless of the submitter's or filing account's open PR count.

- **New extension:** `add-<extension-id>-extension`
Expand All @@ -393,7 +374,6 @@ 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>
```
Expand All @@ -404,7 +384,6 @@ Update <Name> extension to v<version>

Update <id> extension submitted by @<issue-author>:
- extensions/catalog.community.json (version, download_url, etc.)
- docs/community/extensions.md community extensions table

Closes #<issue-number>
```
Expand All @@ -419,8 +398,8 @@ Include:

## Important Rules

- **Alphabetical order matters** — entries must be sorted by ID in the JSON and
by name in the docs table
- **Alphabetical order matters** — entries must be sorted by ID in the JSON;
documentation is sorted automatically during generation
- **Always validate JSON** after editing — a trailing comma or missing brace
will break the catalog
- **Use `Closes` not `Fixes`** — `Closes #N` is the correct keyword for
Expand All @@ -433,4 +412,3 @@ Include:
- **Preserve `downloads` and `stars` on updates** — these reflect usage metrics
and must not be reset
- **Do not modify any other files** — only `extensions/catalog.community.json`
and `docs/community/extensions.md`
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: ["main"]
paths:
- 'docs/**'
- 'extensions/catalog.community.json'
- 'presets/catalog.community.json'
- 'bundles/catalog.community.json'
- 'workflows/catalog.community.json'
Expand Down Expand Up @@ -50,6 +51,11 @@ jobs:
- name: Setup DocFX
run: dotnet tool install -g docfx

- name: Generate community extension documentation
run: python3 docs/generate_extensions.py --fetch-stars
env:
GH_TOKEN: ${{ github.token }}

- name: Generate community preset documentation
run: python3 docs/generate_presets.py --fetch-stars
env:
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ obj/
.docfx/
_generated/
community/presets/
community/extensions/
community/bundles/
community/workflows/
community/workflow-steps/
Expand Down
Loading
Loading