diff --git a/.github/skills/add-community-extension/SKILL.md b/.github/skills/add-community-extension/SKILL.md index 149fb8094b..1557c971f4 100644 --- a/.github/skills/add-community-extension/SKILL.md +++ b/.github/skills/add-community-extension/SKILL.md @@ -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' --- @@ -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 @@ -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: - -``` -| | | `` | | []() | -``` - -**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 @@ -134,14 +127,13 @@ git checkout -b update--extension ``` ```bash -git add extensions/catalog.community.json docs/community/extensions.md +git add extensions/catalog.community.json # New extension git commit -m "Add extension to community catalog Add extension submitted by @ to: - extensions/catalog.community.json (alphabetical order) -- docs/community/extensions.md community extensions table Closes #" @@ -150,7 +142,6 @@ git commit -m "Update extension to v Update extension submitted by @: - extensions/catalog.community.json (version, download_url, etc.) -- docs/community/extensions.md community extensions table Closes #" @@ -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. diff --git a/.github/workflows/add-community-extension.lock.yml b/.github/workflows/add-community-extension.lock.yml index 5f70063db6..d6f90abc1d 100644 --- a/.github/workflows/add-community-extension.lock.yml +++ b/.github/workflows/add-community-extension.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"09fd527390aa8e7828202739810588856a8edfbca24ee945e387134bf1f9fcb2","body_hash":"22e8943faebdec7bec7ba762ff0be3683cfd8ce27b9045bb52febb84cd337255","compiler_version":"v0.88.7","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.80"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"6d92d06ee9070ae3dd2f98405c141ae23dce1000f07fdb5f2b2bd8e56c96725f","body_hash":"73b07c54a01dca0b9b49db53c50c0e6c6b8d23c46c039fa2b023adcc68079160","compiler_version":"v0.88.7","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.80"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"5e508589e03a7757a7e05b26e834292f5445bfb6","version":"v0.88.7"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14","digest":"sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14","digest":"sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14","digest":"sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.18","digest":"sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.18@sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23"},{"image":"ghcr.io/github/github-mcp-server:v1.11.0","digest":"sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699","pinned_image":"ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","get_latest_release","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_releases","list_starred_repositories","list_tags","search_code","search_issues","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","add_labels","create_pull_request","missing_data","missing_tool","noop","remove_labels"]}]} # This file was automatically generated by gh-aw (v0.88.7). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -573,7 +573,7 @@ jobs: env: GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw" GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}" - GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"extension-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"issue_intent\":false,\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"extensions/catalog.community.json\",\"docs/community/extensions.md\"],\"draft\":true,\"labels\":[\"extension-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[extension] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\"]},\"report_incomplete\":{}}" + GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"extension-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"issue_intent\":false,\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"extensions/catalog.community.json\"],\"draft\":true,\"labels\":[\"extension-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[extension] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\"]},\"report_incomplete\":{}}" with: script: | const path = require('path'); @@ -1994,7 +1994,7 @@ jobs: GH_AW_ALLOWED_DOMAINS: "api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,release-assets.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" GITHUB_SERVER_URL: ${{ github.server_url }} GITHUB_API_URL: ${{ github.api_url }} - GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"extension-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"issue_intent\":false,\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"extensions/catalog.community.json\",\"docs/community/extensions.md\"],\"draft\":true,\"labels\":[\"extension-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[extension] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\"]},\"report_incomplete\":{}}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"extension-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"issue_intent\":false,\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"extensions/catalog.community.json\"],\"draft\":true,\"labels\":[\"extension-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[extension] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\"]},\"report_incomplete\":{}}" GH_AW_CI_TRIGGER_TOKEN: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }} with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/add-community-extension.md b/.github/workflows/add-community-extension.md index 6cbba01f6e..49e2db0905 100644 --- a/.github/workflows/add-community-extension.md +++ b/.github/workflows/add-community-extension.md @@ -51,7 +51,6 @@ safe-outputs: max: 1 allowed-files: - extensions/catalog.community.json - - docs/community/extensions.md protected-files: policy: blocked exclude: @@ -302,6 +301,8 @@ Insert the entry in **alphabetical order by extension ID** within the "documentation": "", "changelog": "", "license": "", + "category": "", + "effect": "", "requires": { "speckit_version": "" }, @@ -345,33 +346,13 @@ 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**: - -``` -| | | `` | | []() | -``` - -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 @@ -379,7 +360,7 @@ 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` @@ -393,7 +374,6 @@ Add extension to community catalog Add extension submitted by @ to: - extensions/catalog.community.json (alphabetical order) -- docs/community/extensions.md community extensions table Closes # ``` @@ -404,7 +384,6 @@ Update extension to v Update extension submitted by @: - extensions/catalog.community.json (version, download_url, etc.) -- docs/community/extensions.md community extensions table Closes # ``` @@ -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 @@ -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` diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ba75782911..25e2e2ff39 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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' @@ -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: diff --git a/docs/.gitignore b/docs/.gitignore index b9d6f0252c..44aa499e96 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -4,6 +4,7 @@ obj/ .docfx/ _generated/ community/presets/ +community/extensions/ community/bundles/ community/workflows/ community/workflow-steps/ diff --git a/docs/README.md b/docs/README.md index cb0ea42c73..7e127b6a65 100644 --- a/docs/README.md +++ b/docs/README.md @@ -12,9 +12,10 @@ To build the documentation locally: dotnet tool install -g docfx ``` -2. Generate the community preset, bundle, workflow, and workflow step directories from the local catalogs: +2. Generate the community extension, preset, bundle, workflow, and workflow step directories from the local catalogs: ```bash + python3 docs/generate_extensions.py --fetch-stars python3 docs/generate_presets.py --fetch-stars python3 docs/generate_bundles.py --fetch-stars python3 docs/generate_workflows.py --fetch-stars @@ -30,17 +31,17 @@ To build the documentation locally: 4. Open your browser to `http://localhost:8080` to view the documentation. -Run the corresponding generator again after editing `presets/catalog.community.json`, +Run the corresponding generator again after editing `extensions/catalog.community.json`, `presets/catalog.community.json`, `bundles/catalog.community.json`, `workflows/catalog.community.json`, or `workflows/step-catalog.community.json`. They create -the ignored `_generated/preset-directory.md`, `_generated/bundle-directory.md`, +the ignored `_generated/extension-directory.md`, `_generated/preset-directory.md`, `_generated/bundle-directory.md`, `_generated/workflow-directory.md`, and `_generated/workflow-step-directory.md` -includes and `community/presets/*.md`, `community/bundles/*.md`, +includes and `community/extensions/*.md`, `community/presets/*.md`, `community/bundles/*.md`, `community/workflows/*.md`, and `community/workflow-steps/*.md` detail pages, removing pages for deleted entries. Do not edit these generated files. The directory uses only catalog metadata: -building it does not fetch or execute third-party preset, bundle, workflow, or -executable step-package content. Step pages reuse the workflow directory's +building it does not fetch or execute third-party extension, preset, bundle, workflow, or +executable step-package content. Extension and step pages reuse the workflow directory's stylesheet and build-time star lookup; only workflows have integration filters. With `--fetch-stars`, it reads star counts from the GitHub API once per repository. Set `GH_TOKEN` or `GITHUB_TOKEN` for authenticated API limits; the deployment @@ -48,7 +49,7 @@ workflow uses its repository token. Counts reflect the last build, and shared repositories have the same count. Failed lookups produce warnings and show "Stars unavailable", never an invented zero. Omit `--fetch-stars` for an offline build with unavailable counts. Search, tag, role/team (bundles), -declared integration (workflows), and sort controls enhance complete static listings, which remain readable +category/effect (extensions), declared integration (workflows), and sort controls enhance complete static listings, which remain readable without JavaScript. ## Structure @@ -121,7 +122,7 @@ the site homepage. Process command references and authentication remain under - `bundles/api.md` - Manifest, reference expansion, and installed-record contracts - `bundles/catalogs.md` - Bundle catalogs, policies, and release history - `bundles/publishing.md` - Bundle publishing and catalog submission guide -- `community/extensions.md` - Community extension listing +- `community/extensions.md` - Catalog-generated community extension directory - `community/integrations.md` - Community integration discovery and contribution - `community/workflows.md` - Community workflow listing and contribution - `community/workflow-steps.md` - Catalog-generated community step directory diff --git a/docs/assets/extension-catalog.css b/docs/assets/extension-catalog.css new file mode 100644 index 0000000000..ccbd53dce9 --- /dev/null +++ b/docs/assets/extension-catalog.css @@ -0,0 +1,20 @@ +.extension-controls { + grid-template-columns: repeat(4, minmax(0, 1fr)); +} + +.extension-controls .workflow-reset { + width: auto; + justify-self: start; +} + +@media (max-width: 900px) { + .extension-controls { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 480px) { + .extension-controls { + grid-template-columns: minmax(0, 1fr); + } +} diff --git a/docs/assets/extension-catalog.js b/docs/assets/extension-catalog.js new file mode 100644 index 0000000000..856e7bae69 --- /dev/null +++ b/docs/assets/extension-catalog.js @@ -0,0 +1,65 @@ +(() => { + const catalog = document.querySelector("[data-extension-catalog]"); + if (!catalog) return; + + const form = catalog.querySelector("[data-extension-controls]"); + const fields = Object.fromEntries( + ["q", "category", "effect", "tag", "sort"].map((name) => [name, form.elements.namedItem(name)]) + ); + const list = catalog.querySelector(".workflow-results"); + const entries = Array.from(list.children); + const status = catalog.querySelector("[data-extension-status]"); + const empty = catalog.querySelector("[data-extension-empty]"); + const searchable = entries.map((entry) => ({ + entry, + text: entry.dataset.extensionSearch.toLocaleLowerCase(), + category: entry.dataset.extensionCategory, + effect: entry.dataset.extensionEffect, + tags: JSON.parse(entry.dataset.extensionTags), + })); + const params = new URLSearchParams(window.location.search); + for (const name of ["q", "category", "effect", "tag"]) { + fields[name].value = params.get(name) || ""; + if (!fields[name].value) fields[name].value = ""; + } + fields.sort.value = params.get("sort") === "za" ? "za" : "az"; + + function update() { + const words = fields.q.value.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean); + let visible = 0; + for (const item of searchable) { + const matches = words.every((word) => item.text.includes(word)) + && (!fields.category.value || item.category === fields.category.value) + && (!fields.effect.value || item.effect === fields.effect.value) + && (!fields.tag.value || item.tags.includes(fields.tag.value)); + item.entry.hidden = !matches; + if (matches) visible += 1; + } + const ordered = fields.sort.value === "za" ? [...entries].reverse() : entries; + for (const entry of ordered) list.append(entry); + status.textContent = `${visible} of ${entries.length} extensions`; + empty.hidden = visible !== 0; + + const next = new URL(window.location.href); + for (const [name, field] of Object.entries(fields)) { + const value = name === "sort" && field.value === "az" ? "" : field.value; + if (value) next.searchParams.set(name, value); + else next.searchParams.delete(name); + } + window.history.replaceState(null, "", next); + } + + form.addEventListener("input", update); + form.addEventListener("change", update); + form.addEventListener("submit", (event) => { + event.preventDefault(); + update(); + }); + form.addEventListener("reset", () => { + for (const field of Object.values(fields)) field.value = ""; + fields.sort.value = "az"; + update(); + }); + update(); + form.hidden = false; +})(); diff --git a/docs/community/extensions.md b/docs/community/extensions.md index 4d949fb200..b9122a37e7 100644 --- a/docs/community/extensions.md +++ b/docs/community/extensions.md @@ -1,237 +1,31 @@ # Community Extensions > [!NOTE] -> Community extensions are independently created and maintained by their respective authors. Maintainers only verify that catalog entries are complete and correctly formatted — they do **not review, audit, endorse, or support the extension code itself**. The Community Extensions website is also a third-party resource. Review extension source code before installation and use at your own discretion. +> Community extensions are independently created and maintained by their respective authors. Maintainers only verify that catalog entries are complete and correctly formatted — they do **not review, audit, endorse, or support the extension code itself**. You must vet the exact release, scripts, hooks, and dependencies before installation and use. -🔍 **Browse and search community extensions on the [Community Extensions website](https://speckit-community.github.io/extensions/).** +Browse the native directory below, generated from +[`catalog.community.json`](https://github.com/github/spec-kit/blob/main/extensions/catalog.community.json). +Search by name, purpose, author, or dependency, and filter by category, effect, or tag. +Repository stars reflect the last documentation build, not a safety assessment. +The complete alphabetical listing remains available without JavaScript. -The following community-contributed extensions are available in [`catalog.community.json`](https://github.com/github/spec-kit/blob/main/extensions/catalog.community.json): +The built-in community catalog is discovery-only, not an installation source. +Review the [catalog trust model](../extensions/catalogs.md) and +[installation options](../extensions/cli.md#install-an-extension) before installing. -**Categories** (common values, but any string is allowed): +Category is free-form; common values are `docs` (spec artifacts), `code` (source +code), `process` (workflow), `integration` (external platforms), and `visibility` +(project reporting). Effect values are `read-only` (displayed as Read-only) and +`read-write` (displayed as Read+Write). These are author-declared labels, +not enforced permissions or execution restrictions. -- `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 +[!INCLUDE [Community extension directory](../_generated/extension-directory.md)] -**Effect** (canonical `extension.yml`/catalog values): - -- `read-only` — produces reports without modifying files (displayed as `Read-only` in the table) -- `read-write` — modifies files, creates artifacts, or updates specs (displayed as `Read+Write` in the table) - -> [!TIP] -> Extension authors can declare `category` and `effect` in their `extension.yml` under the `extension:` block. These fields are also available in `catalog.community.json` for tooling and the CLI (`specify extension info`). +To submit your own extension, see the [Extension Publishing Guide](../extensions/publishing.md). -| Extension | Purpose | Category | Effect | URL | -|-----------|---------|----------|--------|-----| -| adrkit — decision memory for spec-driven development | Pulls the decisions governing this work into agent context, checks produced plans against them, and drafts an ADR from a plan artifact | `process` | Read+Write | [adrkit](https://github.com/mbeacom/adrkit) | -| Agent Assign | Assign specialized Claude Code agents to spec-kit tasks for targeted execution | `process` | Read+Write | [spec-kit-agent-assign](https://github.com/xymelon/spec-kit-agent-assign) | -| Agent Governance | Generate agent-platform repository governance files from Spec Kit metadata | `process` | Read+Write | [spec-kit-agent-governance](https://github.com/bigsmartben/spec-kit-agent-governance) | -| AgentDocx | Full-stack multi-agent specification pipeline with VS Code extension control, automated Kanban/Jira sync, and React monitoring dashboard | `integration` | Read+Write | [extension-github-spec-kit](https://github.com/abir-ommezzine/extension-github-spec-kit) | -| AgentDocx SpecKit V2 | AgentDocx evolved: same pipeline + far more autonomous Ticket Manager (5 CLI, per-project Kanban, bulk sync, auto-switch, Auditor) | `integration` | Read+Write | [Extension_GithubSpecKit](https://github.com/ahmed200346/Extension_GithubSpecKit) | -| AgentPay Pre-Pay Audit — Grade an endpoint before your agent pays it | Audit a paid API before money moves: grade the endpoint's 402 terms, see what the live market actually charges, and confirm the wallet can complete the payment right now. | `visibility` | Read-only | [spec-kit-prepay-audit](https://github.com/shawnhvac/spec-kit-prepay-audit) | -| AgentPay x402 — Spend Controls for Spec Kit Agents | Set USDC spending caps, check a counterparty's credit before paying it, and pay x402-enabled APIs during spec implementation. Settles on Base or Solana. | `integration` | Read+Write | [spec-kit-pay-x402](https://github.com/shawnhvac/spec-kit-pay-x402) | -| Agentstandards Architecture Council | Run a bounded, multi-vendor architecture council between Spec Kit planning and task generation. | `process` | Read+Write | [agentstandards](https://github.com/bbjwz/agentstandards) | -| A·I·DID·IT — Agile Expansion Pack | Runs every work item through Assemble, Ideate, Draft, Iterate, Deliver, Investigate and Tidy, with a simulated agile team and a web-cited practitioner panel in place of human gates. | `process` | Read+Write | [ai-did-it](https://github.com/RubberDuckEngineering/ai-did-it) | -| AI-Driven Engineering (AIDE) | A structured 7-step workflow for building new projects from scratch with AI assistants — from vision through implementation | `process` | Read+Write | [aide](https://github.com/mnriem/spec-kit-extensions/tree/main/aide) | -| Analytics | Measure what your AI builds, and how much time it saves you | `visibility` | Read+Write | [spec-kit-analytics](https://github.com/Fyloss/spec-kit-analytics) | -| API Evolve | Managed API contract evolution — breaking-change detection, semver enforcement, deprecation orchestration, and lifecycle gates across REST, GraphQL, and gRPC | `process` | Read+Write | [spec-kit-api-evolve](https://github.com/Quratulain-bilal/spec-kit-api-evolve) | -| Applied Epistemic Engineering | Checks the claims in a spec-driven project against their evidence at every stage, and shows plainly what is verified, what is not, and what remains not understood. | `process` | Read+Write | [spec-kit-aee](https://github.com/electrohire/spec-kit-aee) | -| Architect Impact Previewer | Predicts architectural impact, complexity, and risks of proposed changes before implementation. | `visibility` | Read-only | [spec-kit-architect-preview](https://github.com/UmmeHabiba1312/spec-kit-architect-preview) | -| Architecture Governance | Keep specs, code & ADRs in sync: citation slots + a read-only, fail-closed validator | `docs` | Read+Write | [spec-kit-arch-governance](https://github.com/ashbrener/spec-kit-arch-governance) | -| Architecture Guard | Framework-agnostic architecture governance for Spec Kit workflows, detecting drift, enforcing architectural rules, and generating actionable refactor tasks | `process` | Read+Write | [architecture-guard](https://github.com/DyanGalih/architecture-guard) | -| Architecture Workflow | Generate or reverse project-level 4+1 architecture views with per-view and full-workflow commands | `docs` | Read+Write | [spec-kit-arch](https://github.com/bigsmartben/spec-kit-arch) | -| Archive Extension | Archive merged features into main project memory, resolving gaps and conflicts. | `docs` | Read+Write | [spec-kit-archive](https://github.com/stn1slv/spec-kit-archive) | -| ASCII Diagram Renderer | Renders hand-drawn ASCII/Unicode diagrams (state machine, architecture, flow, coverage map) of what spec/plan/tasks/analyze already say — plain text, no Mermaid renderer needed | `docs` | Read+Write | [spec-kit-ascii-diagram](https://github.com/MRZHUH/spec-kit-ascii-diagram) | -| Assure | Make QA part of the Spec Kit lifecycle: initialize project policy, require feature test-readiness analysis before implementation, and generate a current QA test manual before pull-request creation. | `process` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| Atlas | Synthesize spec-kit specs into faithful, interactive architecture storybooks & doc portals. | `docs` | Read-only | [spec-kit-atlas](https://github.com/ashbrener/spec-kit-atlas) | -| AttackTree — Attack Tree Modeling & Control Simulation | Attack trees with attacker profiles, AND/OR path simulation, control roadmaps, and control-to-test traceability | `process` | Read+Write | [spec-kit-attacktree](https://github.com/hupe1980/spec-kit-attacktree) | -| Axi Extension | A Spec Kit extension that renders a feature's markdown in a local browser review surface for human annotation, then returns the queued notes to the agent to apply. | `docs` | Read+Write | [spec-kit-axi](https://github.com/d0whc3r/spec-kit-axi) | -| Azure Cosmos DB | Best-practice Azure Cosmos DB code generation and review for any AI coding agent | `code` | Read+Write | [spec-kit-cosmosdb](https://github.com/AzureCosmosDB/spec-kit-cosmosdb) | -| Azure DevOps Integration | Sync user stories and tasks to Azure DevOps work items using OAuth authentication | `integration` | Read+Write | [spec-kit-azure-devops](https://github.com/pragya247/spec-kit-azure-devops) | -| BDD | Convert specs to Gherkin scenarios, scaffold step definitions, and verify acceptance test coverage | `process` | Read+Write | [spec-kit-bdd](https://github.com/RSginer/spec-kit-bdd) | -| Blueprint | Stay code-literate in AI-driven development: review a complete code blueprint for every task from spec artifacts before /speckit.implement runs | `docs` | Read+Write | [spec-kit-blueprint](https://github.com/chordpli/spec-kit-blueprint) | -| Blueprint Index — Living Architecture Map | A living architecture map for spec-driven projects, kept honest by a deterministic, low-friction, machine-first CI gate (JSON, self-healable) that blocks only when the map contradicts the specs or code. Brownfield or greenfield. | `process` | Read+Write | [spec-kit-blueprint](https://github.com/ogil109/spec-kit-blueprint) | -| Branch Convention | Configurable branch and folder naming conventions for /specify with presets and custom patterns | `process` | Read+Write | [spec-kit-branch-convention](https://github.com/Quratulain-bilal/spec-kit-branch-convention) | -| Brownfield Bootstrap | Bootstrap spec-kit for existing codebases — auto-discover architecture and adopt SDD incrementally | `process` | Read+Write | [spec-kit-brownfield](https://github.com/Quratulain-bilal/spec-kit-brownfield) | -| BrownKit — Brownfield Discovery for Spec-Kit | Evidence-driven capability discovery, security and QA risk assessment for existing codebases. | `process` | Read+Write | [BrownKit](https://github.com/MaksimShevtsov/BrownKit) | -| Bugfix Workflow | Structured bugfix workflow — capture bugs, trace to spec artifacts, and patch specs surgically | `process` | Read+Write | [spec-kit-bugfix](https://github.com/Quratulain-bilal/spec-kit-bugfix) | -| Canon | Adds canon-driven (baseline-driven) workflows: spec-first, code-first, spec-drift. Requires Canon Core preset installation. | `process` | Read+Write | [spec-kit-canon](https://github.com/maximiliamus/spec-kit-canon/tree/master/extension) | -| Catalog CI | Automated validation for spec-kit community catalog entries — structure, URLs, diffs, and linting | `process` | Read-only | [spec-kit-catalog-ci](https://github.com/Quratulain-bilal/spec-kit-catalog-ci) | -| Charter | Compose project constitutions from shared fragment registries | `process` | Read+Write | [spec-kit-charter](https://github.com/Fyloss/spec-kit-charter) | -| CI Guard | Spec compliance gates for CI/CD — verify specs exist, check drift, and block merges on gaps | `process` | Read-only | [spec-kit-ci-guard](https://github.com/Quratulain-bilal/spec-kit-ci-guard) | -| Checkpoint Extension | Commit the changes made during the middle of the implementation, so you don't end up with just one very large commit at the end | `code` | Read+Write | [spec-kit-checkpoint](https://github.com/aaronrsun/spec-kit-checkpoint) | -| Cleanup Extension | Post-implementation quality gate that reviews changes, fixes small issues (scout rule), creates tasks for medium issues, and generates analysis for large issues | `code` | Read+Write | [spec-kit-cleanup](https://github.com/dsrednicki/spec-kit-cleanup) | -| Coding Standards Drift Control | Generate coding-standards drift reports and remediation tasks for active Spec Kit features | `code` | Read+Write | [spec-kit-coding-standards-drift-control](https://github.com/benizzio/spec-kit-coding-standards-drift-control) | -| Conduct Extension | Orchestrates spec-kit phases via sub-agent delegation to reduce context pollution. | `process` | Read+Write | [spec-kit-conduct-ext](https://github.com/twbrandon7/spec-kit-conduct-ext) | -| Confluence Extension | Create a doc in Confluence summarizing the specifications and planning files | `integration` | Read+Write | [spec-kit-confluence](https://github.com/aaronrsun/spec-kit-confluence) | -| Conformidad Software Humano | Checks that project artifacts contain what the Software Humano manifesto requires and that every absence is declared as an approved exception. | `docs` | Read-only | [software-humano-speckit](https://github.com/dacunao/software-humano-speckit) | -| ContextForge MCP | Integrates codebase-memory-mcp + headroom into Spec Kit — graph-based code intelligence and context compression for the implement phase | `code` | Read+Write | [contextforge-mcp](https://github.com/capatinore/contextforge-mcp) | -| Cost Tracker | Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports | `visibility` | Read+Write | [spec-kit-cost](https://github.com/Quratulain-bilal/spec-kit-cost) | -| CSDD — Controlled Spec-Driven Development | 把治理规范、门禁、模板安装到已有仓库;第三方扩展按清单可选安装,默认不装。 | `process` | Read+Write | [csdd](https://github.com/yuansanche/csdd) | -| Data Model Diagram | Generates Mermaid ER diagrams from Spec Kit data models after planning | `docs` | Read+Write | [spec-kit-data-model-diagram](https://github.com/benizzio/spec-kit-data-model-diagram) | -| deja-vu session recall | Searches your past coding-agent sessions for a feature: what was tried, decided or failed. | `process` | Read-only | [deja-vu](https://github.com/vshulcz/deja-vu) | -| Deliberate | Exploration, decision records, status, triage, and a gated autopilot pipeline for Spec Kit. | `process` | Read+Write | [spec-kit-deliberate](https://github.com/luismoriguerra/spec-kit-deliberate) | -| DocGuard — CDD Enforcement | Documentation integrity for AI-assisted repositories: lifecycle registry, drift validation, traceability, safe archival, SARIF/JUnit, MCP, GitHub Actions, and Spec Kit hooks. | `docs` | Read+Write | [docguard](https://github.com/raccioly/docguard) | -| Domain Spec Maintenance | Keeps canonical per-domain specs: read before specify/plan, updated after implement | `docs` | Read+Write | [spec-kit-domain-spec](https://github.com/jinaparkdev/spec-kit-domain-spec) | -| Dotdog | Import GitHub Spec Kit artifacts into local knowledge graphs for validation, analysis, search, and MCP queries. | `docs` | Read+Write | [dotdog](https://github.com/specdog/dotdog) | -| DUBSAR Memory | Local project memory for Spec Kit with explicit checkpoints, cross-session resume, and SHA-256 freshness for recorded specification, plan, and task references. | `visibility` | Read+Write | [dubsar-memory](https://github.com/kotnisofiane-bit/dubsar-memory) | -| EARS Requirements Syntax | Author, lint, and convert requirements using EARS - the five industry-standard sentence patterns for unambiguous, testable requirements | `docs` | Read+Write | [spec-kit-ears](https://github.com/dhruv-15-03/spec-kit-ears) | -| Elephant-Goldfish Model | Design with an elephant. Review with a goldfish. | `process` | Read+Write | [spec-kit-extensions](https://github.com/ksachdeva/spec-kit-extensions) | -| Epic | Break work too big for one feature into many, delivered in order, with decisions that hold across them. | `process` | Read+Write | [spec-kit-epic](https://github.com/pmckeown/spec-kit-epic) | -| Evaluator Contract | Provider-neutral evaluator contract for evidence, provenance, uncertainty, and recovery across Spec-Driven Development phases. | `process` | Read+Write | [spec-kit-evaluator](https://github.com/electrohire/spec-kit-evaluator) | -| Extensify | Create and validate extensions and extension catalogs | `process` | Read+Write | [extensify](https://github.com/mnriem/spec-kit-extensions/tree/main/extensify) | -| Figma Starter | Turns a Figma section's screens into Figma-derived specs, and an OpenAPI/Swagger document into an entity model plus per-page UI-to-API bindings, then hands off to /speckit.specify | `docs` | Read+Write | [spec-kit-figma-starter](https://github.com/OmneWave/spec-kit-figma-starter) | -| Fix Findings | Automated analyze-fix-reanalyze loop that resolves spec findings until clean | `code` | Read+Write | [spec-kit-fix-findings](https://github.com/Quratulain-bilal/spec-kit-fix-findings) | -| FixIt Extension | Spec-aware bug fixing — maps bugs to spec artifacts, proposes a plan, applies minimal changes | `code` | Read+Write | [spec-kit-fixit](https://github.com/speckit-community/spec-kit-fixit) | -| Fleet Orchestrator | Orchestrate a full feature lifecycle with human-in-the-loop gates across all SpecKit phases | `process` | Read+Write | [spec-kit-fleet](https://github.com/sharathsatish/spec-kit-fleet) | -| gh-address-cr | Auditable PR review-resolution & trust-gated address engine for Spec Kit workflows. | `process` | Read+Write | [spec-kit-extensions](https://github.com/RbBtSn0w/spec-kit-extensions) | -| GitHub Issue Triage | Fetch open GitHub issues, classify each as bug, feature, or chore, then delegate to the correct workflow without saving bugs or chores as specs. | `integration` | Read+Write | [speckit-extensions](https://github.com/arrrrny/speckit-extensions) | -| GitHub Issues Integration 1 | Generate spec artifacts from GitHub Issues - import issues, sync updates, and maintain bidirectional traceability | `integration` | Read+Write | [spec-kit-github-issues](https://github.com/Fatima367/spec-kit-github-issues) | -| GitHub Issues Integration 2 | Creates and syncs local specs from an existing GitHub issue | `integration` | Read+Write | [spec-kit-issue](https://github.com/aaronrsun/spec-kit-issue) | -| GitHub Project Lifecycle Sync | Mirror each Spec Kit feature onto a GitHub Project (v2): create a parent feature issue, advance its Status column through the Spec Kit lifecycle, and create/close native sub-issues for standalone task tracking. | `integration` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| GitLab Integration | Turns spec-kit features, user stories and tasks into GitLab issues via the glab CLI, keeps their status in sync, and closes completed tasks after implementation. Works with gitlab.com and self-hosted GitLab instances. | `integration` | Read+Write | [spec-kit-gitlab](https://github.com/ohartwig/spec-kit-gitlab) | -| Golden Demo | Deterministic behavioral drift oracle. Extracts acceptance criteria, generates fuzz test vectors (seed=42), compares golden Python implementations against real code in any language. CI/CD gatekeeper with warn/strict modes. | `docs` | Read+Write | [spec-kit-golden-demo](https://github.com/jasstt/spec-kit-golden-demo) | -| Guildwork: request, verdict, register | No code is written until a named human approves a written request, and every verdict is kept. | `process` | Read+Write | [Guildwork](https://github.com/Simon-Pacifae-Dupont/Guildwork) | -| Illustrate | Generate, import, and export forty-four technical, product, architecture, process, and quantitative illustration types with tracked project-level light/dark color and font themes. | `docs` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| Improve Extension | Audits any codebase as a senior advisor and writes prioritized, self-contained spec prompts under specs/ that the spec-kit lifecycle can process | `process` | Read+Write | [spec-kit-improve](https://github.com/d0whc3r/spec-kit-improve) | -| Intake | Normalize PRD, design, HTML SSOT, and test-case evidence into SDD-ready intake artifacts. | `docs` | Read+Write | [spec-kit-intake](https://github.com/bigsmartben/spec-kit-intake) | -| Intelligent Agent Orchestrator | Cross-catalog agent discovery and intelligent prompt-to-command routing | `process` | Read+Write | [spec-kit-orchestrator](https://github.com/pragya247/spec-kit-orchestrator) | -| Intent Reconciliation | Reconcile implementation-discovered decisions against approved feature intent | `process` | Read+Write | [spec-kit-reconcile](https://github.com/SuhaibAslam/spec-kit-reconcile) | -| Iterate | Iterate on spec documents with a two-phase define-and-apply workflow — refine specs mid-implementation and go straight back to building | `docs` | Read+Write | [spec-kit-iterate](https://github.com/imviancagrace/spec-kit-iterate) | -| Jira Integration | Create Jira Epics, Stories, and Issues from spec-kit specifications and task breakdowns with configurable hierarchy and custom field support | `integration` | Read+Write | [spec-kit-jira](https://github.com/mbachorik/spec-kit-jira) | -| Jira Integration (Sync Engine) | Idempotent, drift-aware, fail-closed reconcile engine mirroring spec-kit specs into Jira (Epic per repo, Story per spec, Subtask per phase) | `integration` | Read+Write | [spec-kit-jira-sync](https://github.com/ashbrener/spec-kit-jira-sync) | -| Jira Mirror | Spec Kit ↔ Jira bridge for team-managed and company-managed projects: configurable workflows & hierarchies (Scrum/SAFe), multi-project, idempotent and fail-closed. macOS/Linux/Windows. | `integration` | Read+Write | [spec-kit-jira-mirror](https://github.com/Fyloss/spec-kit-jira-mirror) | -| Keel Connect | Connect the local Keel runtime to Keel Cloud without leaving your agent. | `integration` | Read-only | [spec-kit-keel](https://github.com/keeldiscovery/spec-kit-keel) | -| Learning Extension | Generate educational guides from implementations and enhance clarifications with mentoring context | `docs` | Read+Write | [spec-kit-learn](https://github.com/imviancagrace/spec-kit-learn) | -| Linear Integration | Automatically mirror your spec-kit specs into Linear — one issue per spec, a sub-issue per task phase, kept in sync as you work. | `integration` | Read+Write | [spec-kit-linear-sync](https://github.com/ashbrener/spec-kit-linear-sync) | -| Linear Weave | Weave Spec Kit into Linear: pull requirements, mirror tasks.md into sub-issues, sync statuses | `integration` | Read+Write | [spec-kit-linear-weave](https://github.com/tonydwoodhouse/spec-kit-linear-weave) | -| LLM Wiki | LLM-maintained compounding project wiki: source ingestion, cited answers, and consistency linting | `docs` | Read+Write | [spec-kit-wiki](https://github.com/formin/spec-kit-wiki) | -| Log Intake (logreduce) | Reduce large logs attached to bug reports into saved evidence before assessment | `process` | Read+Write | [log_tfidf_reducer](https://github.com/alexcpn/log_tfidf_reducer) | -| Loop Engineering | Engineer safe autonomous agent loops for spec-driven development: a maker/checker split, externalized loop state, and stay-the-engineer guardrails against comprehension debt and cognitive surrender | `process` | Read+Write | [spec-kit-loop](https://github.com/formin/spec-kit-loop) | -| MAQA — Multi-Agent & Quality Assurance | Idempotent, agent-neutral coordinator → feature → QA workflow with GitHub Issues as the source of truth. Uses Spec Kit taskstoissues for missing issues and supports parallel or sequential dispatch. | `process` | Read+Write | [spec-kit-maqa-ext](https://github.com/GenieRobot/spec-kit-maqa-ext) | -| MAQA Azure DevOps Integration | Azure DevOps Boards integration for MAQA — syncs User Stories and Task children as features progress | `integration` | Read+Write | [spec-kit-maqa-azure-devops](https://github.com/GenieRobot/spec-kit-maqa-azure-devops) | -| MAQA CI/CD Gate | Auto-detects GitHub Actions, CircleCI, GitLab CI, and Bitbucket Pipelines. Blocks QA handoff until pipeline is green. | `process` | Read+Write | [spec-kit-maqa-ci](https://github.com/GenieRobot/spec-kit-maqa-ci) | -| MAQA GitHub Projects Integration | GitHub Projects v2 integration for MAQA — syncs draft issues and Status columns as features progress | `integration` | Read+Write | [spec-kit-maqa-github-projects](https://github.com/GenieRobot/spec-kit-maqa-github-projects) | -| MAQA Jira Integration | Jira integration for MAQA — syncs Stories and Subtasks as features progress through the board | `integration` | Read+Write | [spec-kit-maqa-jira](https://github.com/GenieRobot/spec-kit-maqa-jira) | -| MAQA Linear Integration | Linear integration for MAQA — syncs issues and sub-issues across workflow states as features progress | `integration` | Read+Write | [spec-kit-maqa-linear](https://github.com/GenieRobot/spec-kit-maqa-linear) | -| MAQA Trello Integration | Trello board integration for MAQA — populates board from specs, moves cards, real-time checklist ticking | `integration` | Read+Write | [spec-kit-maqa-trello](https://github.com/GenieRobot/spec-kit-maqa-trello) | -| MarkItDown Document Converter | Convert documents (PDF, Word, PowerPoint, Excel, and more) to Markdown for use as spec reference material | `docs` | Read+Write | [spec-kit-markitdown](https://github.com/BenBtg/spec-kit-markitdown) | -| MDE | Minimal model-driven engineering workflow with setup, next, and status commands | `process` | Read+Write | [spec-kit-mde](https://github.com/AI-MDE/spec-kit-mde) | -| Memory Loader | Loads .specify/memory/ files before lifecycle commands so LLM agents have project governance context | `docs` | Read-only | [spec-kit-memory-loader](https://github.com/KevinBrown5280/spec-kit-memory-loader) | -| Memory MD | Spec Kit extension for repository-native Markdown memory that captures durable decisions, bugs, and project context | `docs` | Read+Write | [spec-kit-memory-hub](https://github.com/DyanGalih/spec-kit-memory-hub) | -| MemoryLint | Evidence-driven instruction drift checker: audits agent memory files for boundary, reality, conflict, and redundancy drift. | `process` | Read+Write | [memorylint](https://github.com/RbBtSn0w/spec-kit-extensions/tree/main/memorylint) | -| Microsoft 365 Integration | Fetch Teams messages, meeting transcripts, and SharePoint/OneDrive files as local Markdown for spec generation | `integration` | Read+Write | [spec-kit-m365](https://github.com/BenBtg/spec-kit-m365) | -| Multi-Model Review | Cross-model Spec Kit handoffs for spec authoring, implementation routing, and review. | `process` | Read+Write | [multi-model-review](https://github.com/formin/multi-model-review) | -| Multi-Repo Branch Sync | Creates the feature branch in affected sub-repositories and git submodules via plan/tasks hooks | `process` | Read+Write | [multi-repo-sync](https://github.com/fyloss/spec-kit-multi-repo-sync) | -| Multi-Repo Workspace Orchestration | Orchestrate spec-driven implementation across a workspace: a central specs repository dispatches implementation to member repositories | `process` | Read+Write | [speckit-multirepo](https://github.com/joaopaschuino/speckit-multirepo) | -| Multi-Sites Spec Kit | Multi-site aware specify command with per-site spec folders, auto-increment, and Drupal support | `process` | Read+Write | [spec-kit-multi-sites](https://github.com/teeyo/spec-kit-multi-sites) | -| .NET Framework to Modern .NET Migration | Orchestrate end-to-end .NET Framework to modern .NET migration across 7 phases, with SDD lifecycle integration | `process` | Read+Write | [spec-kit-fx-to-net](https://github.com/RogerBestMsft/spec-kit-FxToNet) | -| OKF Knowledge Bundle Generator | Generates and maintains an Open Knowledge Format (OKF v0.1) knowledge bundle from a source-code repository. Mines git history for the rationale behind the code, parks what it cannot establish as open questions rather than guessing, and verifies that the bundle's claims are actually supported by the repository. | `docs` | Read+Write | [catalogify](https://github.com/alexcpn/catalogify) | -| OKR Bets | Treat each spec as a Key Result bet: define a hypothesis and verification contract before /speckit.specify, plan measurement, assess results after launch before scaling. Company OKRs stay read-only. | `process` | Read+Write | [spec-kit-okr](https://github.com/juanl/spec-kit-okr) | -| Onboard | Contextual onboarding and progressive growth for developers new to spec-kit projects. Explains specs, maps dependencies, validates understanding, and guides the next step | `process` | Read+Write | [spec-kit-onboard](https://github.com/dmux/spec-kit-onboard) | -| OpenProject Integration | Sync fields, status, docs, versions and time between spec-kit and OpenProject via MCP | `integration` | Read+Write | [speckit-openproject](https://github.com/Nachklang-io/speckit-openproject) | -| OpenSpec | Adds a spec-driven change-management workflow (propose → implement → verify → archive) to Spec Kit projects, keeping specs, designs, and code in sync | `process` | Read+Write | [spec-kit-openspec](https://github.com/aaronrsun/spec-kit-openspec) | -| OpenUP Governed Lifecycle | Adds the OpenUP lifecycle to Spec Kit: phases, iterations, a seven-level WBS, an executable risk register, bi-directional traceability, and machine-checkable milestone gates. | `process` | Read+Write | [specup](https://github.com/anvigo12/specup) | -| Optimize | Audit and optimize AI governance for context efficiency — token budgets, rule health, interpretability, compression, coherence, and echo detection | `process` | Read+Write | [spec-kit-optimize](https://github.com/sakitA/spec-kit-optimize) | -| Orchestration Task Context Management | Adds subagent work-unit orchestration to generated Spec Kit task files | `process` | Read+Write | [spec-kit-orchestration-task-context-management](https://github.com/benizzio/spec-kit-orchestration-task-context-management) | -| OWASP LLM Threat Model | OWASP Top 10 for LLM Applications 2026 threat analysis on agent artifacts | `code` | Read-only | [spec-kit-threatmodel](https://github.com/NaviaSamal/spec-kit-threatmodel) | -| PatchWarden Evidence Pack | Map Spec Kit tasks into a guarded PatchWarden Goal and export bounded, traceable evidence for an accepted lineage. | `process` | Read+Write | [spec-kit-patchwarden](https://github.com/jiezeng2004-design/spec-kit-patchwarden) | -| Plan Review Gate | Require spec.md and plan.md to be merged via MR/PR before allowing task generation | `process` | Read-only | [spec-kit-plan-review-gate](https://github.com/luno/spec-kit-plan-review-gate) | -| PR Bridge | Auto-generate pull request descriptions, checklists, and summaries from spec artifacts | `process` | Read-only | [spec-kit-pr-bridge-](https://github.com/Quratulain-bilal/spec-kit-pr-bridge-) | -| Pre-Spec Cards | Card-based pre-spec thinking: paste an idea, get your card plus the paths you'd miss, then play each through — story, snags, trade-offs, difficulty vs payoff — before /speckit.specify | `process` | Read+Write | [pre-spec](https://github.com/bendlikeabamboo/pre-spec) | -| Presetify | Create and validate presets and preset catalogs | `process` | Read+Write | [presetify](https://github.com/mnriem/spec-kit-extensions/tree/main/presetify) | -| Product Definition as Code (PDaC) | Ground Spec Kit features in an accepted product definition, then verify citations across the delivery artifacts | `process` | Read+Write | [productshape](https://github.com/juangcarmona/productshape) | -| Product Forge | Full product-lifecycle orchestrator for Spec Kit: research → product-spec → plan → tasks → implement → verify → test → release-readiness, across express/lite/standard/v-model modes with human-in-the-loop gates. | `process` | Read+Write | [speckit-product-forge](https://github.com/VaiYav/speckit-product-forge) | -| Product Spec Extension | Generates PRFAQ, Lean PRD, stakeholder summaries, and technical designs from engineering specs. | `docs` | Read+Write | [spec-kit-product](https://github.com/d0whc3r/spec-kit-product) | -| ProductShape PRODUCT workflows | Author, refine, validate, apply, archive and recover ProductShape product meaning in a separate Spec Kit lane. | `process` | Read+Write | [productshape](https://github.com/juangcarmona/productshape) | -| Project Health Check | Diagnose a Spec Kit project and report health issues across structure, agents, features, scripts, extensions, and git | `visibility` | Read-only | [spec-kit-doctor](https://github.com/KhawarHabibKhan/spec-kit-doctor) | -| Project Status | Show current SDD workflow progress — active feature, artifact status, task completion, workflow phase, and extensions summary | `visibility` | Read-only | [spec-kit-status](https://github.com/KhawarHabibKhan/spec-kit-status) | -| Pull Request Workflow | Generate or update pull requests from Spec Kit artifacts, enforce installed QA and User Manual freshness policies, then process review feedback through an approval-gated fix and reply workflow. | `process` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| QA Testing Extension | Systematic QA testing with browser-driven or CLI-based validation of acceptance criteria from spec | `code` | Read-only | [spec-kit-qa](https://github.com/arunt14/spec-kit-qa) | -| Quality Gates (Enforcement Layer) | Deterministic quality enforcement for Spec Kit projects at three boundaries: the agent boundary (Claude Code PreToolUse/PostToolUse/Stop hooks), the git boundary (pre-commit / pre-merge-commit / commit-msg), and the CI boundary (projected GitHub Actions / GitLab CI / Jenkins pipelines). One policy file, one verify entrypoint; CI runs the whole policy, and an earlier boundary skips only what the policy declares, by name. | `process` | Read+Write | [spec-gates](https://github.com/schwichtgit/spec-gates) | -| RAG Azure Builder | Spec Kit extension for onboarding and operating an Azure RAG stack with guided workflows. | `process` | Read+Write | [spec-kit-extension-rag-azure-builder](https://github.com/Sertxito/spec-kit-extension-rag-azure-builder) | -| Ralph Loop | Autonomous implementation loop using AI agent CLI | `code` | Read+Write | [spec-kit-ralph](https://github.com/Rubiss-Projects/spec-kit-ralph) | -| Reconcile Extension | Reconcile implementation drift by surgically updating the feature's own spec, plan, and tasks. | `docs` | Read+Write | [spec-kit-reconcile](https://github.com/stn1slv/spec-kit-reconcile) | -| Red Team | Adversarial review of specs before /speckit.plan — parallel lens agents surface risks that clarify/analyze structurally can't (prompt injection, integrity gaps, cross-spec drift, silent failures). Produces a structured findings report; no auto-edits to specs. | `docs` | Read+Write | [spec-kit-red-team](https://github.com/ashbrener/spec-kit-red-team) | -| Research Harness | State-externalizing research harness: budgeted exploration, evidence curation, and claim verification for spec-driven development | `process` | Read+Write | [spec-kit-harness](https://github.com/formin/spec-kit-harness) | -| Repository Governance | Generate project-governance projections from Spec Kit metadata | `process` | Read+Write | [spec-kit-agent-governance](https://github.com/bigsmartben/spec-kit-agent-governance) | -| Repository Index | Generate index for existing repo for overview, architecture and module level. | `docs` | Read-only | [spec-kit-repoindex](https://github.com/liuyiyu/spec-kit-repoindex) | -| Reqnroll BDD | Adds Reqnroll BDD planning, Gherkin generation, traceability, safe task injection, handoff, and verification to Spec Kit | `process` | Read+Write | [spec-kit-reqnroll-bdd](https://github.com/LoogacyStudio/spec-kit-reqnroll-bdd) | -| Retro Extension | Sprint retrospective analysis with metrics, spec accuracy assessment, and improvement suggestions | `process` | Read+Write | [spec-kit-retro](https://github.com/arunt14/spec-kit-retro) | -| Retrospective Extension | Post-implementation retrospective with spec adherence scoring, drift analysis, and human-gated spec updates | `docs` | Read+Write | [spec-kit-retrospective](https://github.com/emi-dm/spec-kit-retrospective) | -| Review Extension | Post-implementation comprehensive code review with specialized agents for code quality, comments, tests, error handling, type design, and simplification | `code` | Read-only | [spec-kit-review](https://github.com/ismaelJimenez/spec-kit-review) | -| Ripple | Detect side effects that tests can't catch after implementation — surface hidden ripple effects across 9 analysis categories | `code` | Read+Write | [spec-kit-ripple](https://github.com/chordpli/spec-kit-ripple) | -| Sanduq Progress Report | A live, deterministic progress report for a Spec Kit feature: stages over time, workstreams, runs, blockers and decisions, collected from the host's native hooks and the feature files with no agent spent on upkeep. | `process` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| Sanduq Workflow | GitHub issue decisions and resumable Scope-to-PR orchestration with optional model-aware delegation, QA, User Manual, and workflow evidence CI. | `process` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| SDD Utilities | Resume interrupted workflows, validate project health, and verify spec-to-task traceability | `process` | Read+Write | [speckit-utils](https://github.com/mvanhorn/speckit-utils) | -| Security Review | Full-project secure-by-design security audits plus staged, branch/PR, plan, task, follow-up, and apply reviews | `code` | Read+Write | [security-review](https://github.com/DyanGalih/security-review) | -| SFSpeckit | Enterprise-Grade Spec-Driven Development (SDD) Framework for Salesforce. | `process` | Read+Write | [spec-kit-sf](https://github.com/Evernorth/spec-kit-sf) | -| Shared Knowledge | Inject cross-repo decisions, contracts, and conventions into your spec-kit workflow. | `integration` | Read+Write | [spec-kit-shared-knowledge](https://github.com/rnoap/spec-kit-shared-knowledge) | -| Ship Release Extension | Automates release pipeline: pre-flight checks, branch sync, changelog generation, CI verification, and PR creation | `process` | Read+Write | [spec-kit-ship](https://github.com/arunt14/spec-kit-ship) | -| Spec Changelog | Auto-generate changelogs and release notes from spec git history and requirement diffs | `docs` | Read-only | [spec-kit-changelog](https://github.com/Quratulain-bilal/spec-kit-changelog) | -| Spec Critique Extension | Dual-lens critical review of spec and plan from product strategy and engineering risk perspectives | `docs` | Read-only | [spec-kit-critique](https://github.com/arunt14/spec-kit-critique) | -| Spec Diagram | Auto-generate Mermaid diagrams of SDD workflow state, feature progress, and task dependencies | `visibility` | Read-only | [spec-kit-diagram-](https://github.com/Quratulain-bilal/spec-kit-diagram-) | -| Spec Inventory | Read-only inventory of live requirement and task IDs, with focused per-task context packs instead of whole-file dumps | `visibility` | Read-only | [spec-kit-inventory-alignment](https://github.com/Yash-Chindam/spec-kit-inventory-alignment) | -| Spec Kit Design System | Give it an RFC. It runs the Spec Kit workflow and implements the change using your design system. | `integration` | Read+Write | [spec-kit-design-system](https://github.com/artursopelnik/spec-kit-design-system) | -| Spec Kit Discovery Extension | Run technical discovery commands for feasibility, technology selection, scenario-specific technical decisions, legacy codebase assessment, implementation understanding, and proof-of-concept validation | `process` | Read+Write | [spec-kit-discovery](https://github.com/bigsmartben/spec-kit-discovery) | -| Spec Kit Figma | Grounds SpecKit spec/plan/tasks in Figma design context via REST or MCP, on macOS/Linux/Windows. | `integration` | Read+Write | [spec-kit-figma](https://github.com/Fyloss/spec-kit-figma) | -| Spec Kit for Azure DevOps — human-gated lifecycle | Azure DevOps story to Done through Spec Kit, with a human sign-off before every board change. | `integration` | Read+Write | [spec-kit-ado](https://github.com/praveenlavu/spec-kit-ado) | -| Spec Kit for GitHub Projects - human-gated lifecycle | GitHub issue to Done through Spec Kit, with a human sign-off before every write. | `integration` | Read+Write | [spec-kit-ghp](https://github.com/praveenlavu/spec-kit-ghp) | -| Spec Kit lifecycle for Jira | A Jira story to Done through Spec Kit, with a human sign-off before every Jira or PR write. | `integration` | Read+Write | [spec-kit-jira](https://github.com/praveenlavu/spec-kit-jira) | -| Spec Kit Memory | Recalls prior specs and decisions from configurable memory tools (e.g. memsearch) before SDLC stages, so planning and specification start from what the project already knows | `docs` | Read+Write | [spec-kit-memory](https://github.com/zaytsevand/spec-kit-memory) | -| Spec Kit Preview | Generate evidence-backed low, mid, or high fidelity previews from Spec Kit artifacts as Markdown or self-contained HTML | `docs` | Read+Write | [spec-kit-preview](https://github.com/bigsmartben/spec-kit-preview) | -| Spec Kit Schedule — parallel subagent rounds | Zero-config planner that turns tasks.md into optimal parallel rounds for subagents (CP-SAT, critical-path aware, file-conflict safe) and an implement command that runs them round by round with tasks.md checkboxes as the single source of progress. | `process` | Read+Write | [spec-kit-schedule](https://github.com/jfranc38/spec-kit-schedule) | -| Spec Kit TLDR | Render a feature's spec.md / plan.md into a review-oriented TLDR (self-contained HTML dashboard + PR-native Markdown) that surfaces risks for faster PR review. | `visibility` | Read+Write | [speckit-tldr](https://github.com/qurore/speckit-tldr) | -| Spec Orchestrator | Cross-feature orchestration — track state, select tasks, and detect conflicts across parallel specs | `process` | Read-only | [spec-kit-orchestrator](https://github.com/Quratulain-bilal/spec-kit-orchestrator) | -| Spec Reference Loader | Reads the ## References section from the feature spec and loads only the listed docs into context | `docs` | Read-only | [spec-kit-spec-reference-loader](https://github.com/KevinBrown5280/spec-kit-spec-reference-loader) | -| Spec Refine | Update specs in-place, propagate changes to plan and tasks, and diff impact across artifacts | `process` | Read+Write | [spec-kit-refine](https://github.com/Quratulain-bilal/spec-kit-refine) | -| Spec Roadmap | Capture a durable spec roadmap after the constitution, then review specs against it before and after implementation so spec-specific decisions, outcomes, and constraints are never lost. | `process` | Read+Write | [speckit-roadmap](https://github.com/srobroek/speckit-roadmap) | -| Spec Scope | Effort estimation and scope tracking — estimate work, detect creep, and budget time per phase | `process` | Read-only | [spec-kit-scope-](https://github.com/Quratulain-bilal/spec-kit-scope-) | -| Spec Sync | Detect and resolve drift between specs and implementation. AI-assisted resolution with human approval | `docs` | Read+Write | [spec-kit-sync](https://github.com/bgervin/spec-kit-sync) | -| Spec Trace | Build a requirement → test traceability matrix from spec.md and the test suite — surface untested requirements and orphan tests | `code` | Read+Write | [spec-kit-trace](https://github.com/Quratulain-bilal/spec-kit-trace) | -| Spec Validate | Comprehension validation, review gating, and approval state for spec-kit artifacts — staged quizzes, peer review SLA, and a hard gate before /speckit.implement | `process` | Read+Write | [spec-kit-spec-validate](https://github.com/aeltayeb/spec-kit-spec-validate) | -| Spec2Cloud | Spec-driven workflow tuned for shipping to Azure | `process` | Read+Write | [spec2cloud](https://github.com/Azure-Samples/Spec2Cloud) | -| SpecAssay Check | Gate 2 refuses silent gaps and emits a trace-manifest (`trace-manifest.json`). | `visibility` | Read+Write | [specassay](https://github.com/rdryfoos/specassay) | -| SpecJudge — right-size the model before you implement | Recommends the model that fits your tasks, citing the spec fragment behind every level. | `process` | Read-only | [SpecJudge](https://github.com/JoaquinRuiz/SpecJudge) | -| SpecKit Companion | Records your spec-kit runs live: status, resume, and a health check for what actually happened. | `process` | Read+Write | [speckit-companion](https://github.com/alfredoperez/speckit-companion) | -| SpecKit Grill Me | Exhaustively clarify specifications and optionally sync canonical domain knowledge | `process` | Read+Write | [speckit-grill-me](https://github.com/yoshi1220/speckit-grill-me) | -| Spec Status | Agent skills that read `spec status` output and turn it into next actions, including role-specific review views, diagnostics explanation, dependency unblocking, and readiness checks before marking work verified. | `visibility` | Read+Write | [spec-status](https://github.com/tosin2013/spec-status) | -| SpecTest | Auto-generate test scaffolds from spec criteria, map coverage, and find untested requirements | `code` | Read+Write | [spec-kit-spectest](https://github.com/Quratulain-bilal/spec-kit-spectest) | -| specview — browser review for Spec Kit features | Review Spec Kit features in the browser: linked spec, plan and tasks, inline comments, agent findings to decide on — notes go back to your agent. | `visibility` | Read+Write | [speckit-specview](https://github.com/artemsky/speckit-specview) | -| Spekkr Codec | Move work between a Spekkr spec folder and a Spec Kit feature folder with no loss, in both directions. One standard-library Python script. | `integration` | Read+Write | [spec-kit-codec](https://github.com/dwrtz/spec-kit-codec) | -| Squad Bridge | Bootstrap and synchronize a Squad agent team from your Speckit spec and tasks. | `process` | Read+Write | [spec-kit-squad](https://github.com/jwill824/spec-kit-squad) | -| Staff Review Extension | Staff-engineer-level code review that validates implementation against spec, checks security, performance, and test coverage | `code` | Read-only | [spec-kit-staff-review](https://github.com/arunt14/spec-kit-staff-review) | -| Status Report | Project status, feature progress, and next-action recommendations for spec-driven workflows | `visibility` | Read+Write | [Open-Agent-Tools/spec-kit-status](https://github.com/Open-Agent-Tools/spec-kit-status) | -| Superpowers Bridge | Bridges selected Superpowers disciplines into Spec Kit as evidence-first trust gates for agent workflows. | `process` | Read+Write | [superpowers-bridge](https://github.com/RbBtSn0w/spec-kit-extensions/tree/main/superpowers-bridge) | -| Superpowers Implementation Bridge | Thin orchestrator between Spec Kit design artifacts and Superpowers implementation discipline. Cross-agent; verified for Codex and Claude Code. | `process` | Read+Write | [speckit-superpowers-bridge](https://github.com/lihan3238/speckit-superpowers-bridge) | -| Superspec | Bridges spec-kit with obra/superpowers (brainstorming, TDD, subagent, code-review) into a unified, resumable workflow with graceful degradation and session progress tracking | `process` | Read+Write | [superspec](https://github.com/WangX0111/superspec) | -| T-Shirt Sizing Gate | Preliminary XS–XL estimates from change descriptions, plus planned-feature sizing and explicit approval within the Spec Kit workflow, with SHA-256 checks for planning changes. | `process` | Read+Write | [spec-kit-sizing](https://github.com/mauriziopinotti/spec-kit-sizing) | -| Taco Review | Packages Spec Kit features for human review and syncs edits and comments back. | `integration` | Read+Write | [taco](https://github.com/Arcadia822/taco) | -| Task Consolidation | Merges related Spec Kit tasks to reduce duplicate work and handoffs during implementation while preserving requirements, tests, and progress. | `process` | Read+Write | [spec-kit-extension-task-consolidation](https://github.com/grafvonb/spec-kit-extension-task-consolidation) | -| Tasks to GitHub Project | Publish and synchronize Spec Kit tasks as cards on a GitHub Project (v2) kanban board, with priority and status sync between spec.md/tasks.md and the board. | `integration` | Read+Write | [spec-kit-tasks-to-project](https://github.com/mancioshell/spec-kit-tasks-to-project) | -| TDD Extension | Drives spec-kit implementation with tests: a language-agnostic red-green-refactor loop with a per-feature test list, recorded red and green evidence, and mutation-checked test strength. | `process` | Read+Write | [spec-kit-tdd](https://github.com/d0whc3r/spec-kit-tdd) | -| Team Assign | Assign tasks.md items to human engineers, split into subtasks, and generate a per-engineer workboard | `process` | Read+Write | [spec-kit-team-assign](https://github.com/tarunkumarbhati/spec-kit-team-assign) | -| Test Coverage Drift Control | Generate incremental coverage drift reports and planned remediation tasks after implementation | `code` | Read+Write | [spec-kit-test-coverage-drift-control](https://github.com/benizzio/spec-kit-test-coverage-drift-control) | -| Test Validation | Validate acceptance scenarios and run CSV-driven E2E tests against a live app via Playwright | `process` | Read+Write | [speckit-test-validate](https://github.com/andstepanuk/speckit-test-validate) | -| ThreatSpec | STRIDE and AI/ML threat modeling with threat-to-test traceability and security convergence | `process` | Read+Write | [spec-kit-threatspec](https://github.com/hupe1980/spec-kit-threatspec) | -| Time Machine | Retroactively apply the full SDD workflow to existing codebases — analyse, spec, and ship feature-by-feature | `process` | Read+Write | [spec-kit-time-machine](https://github.com/teeyo/spec-kit-time-machine) | -| TinySpec | Lightweight single-file workflow for small tasks — skip the heavy multi-step SDD process | `process` | Read+Write | [spec-kit-tinyspec](https://github.com/Quratulain-bilal/spec-kit-tinyspec) | -| Token Budget | Reduces LLM token consumption in Spec Kit workflows: compact artifacts in-place, scope per-phase reading, suppress prose padding, and report token usage | `process` | Read+Write | [spec-kit-token-budget](https://github.com/tinesoft/spec-kit-token-budget) | -| Token Consumption Analyzer | Captures, analyzes, and compares token consumption across SDD workflows | `visibility` | Read-only | [spec-kit-token-analyzer](https://github.com/coderandhiker/spec-kit-token-analyzer) | -| Token Economy | Token routing, measured savings, and context audit workflows | `process` | Read+Write | [spec-kit-token-economy](https://github.com/formin/spec-kit-token-economy) | -| User Manual | Create and incrementally maintain bilingual-ready, audience-aware application manuals in Markdown that reads correctly on GitHub, rendered as Markdown, through your own templates and tools, or as... | `docs` | Read+Write | [sanduq](https://github.com/samykabu/sanduq) | -| V-Model Extension Pack | Enforces V-Model paired generation of development specs and test specs with full traceability | `docs` | Read+Write | [spec-kit-v-model](https://github.com/leocamello/spec-kit-v-model) | -| Verify Extension | Post-implementation quality gate that validates implemented code against specification artifacts | `code` | Read-only | [spec-kit-verify](https://github.com/ismaelJimenez/spec-kit-verify) | -| Verify Review Ship | Post-convergence operational verification, technical review, learning governance, and transactional delivery. | `process` | Read+Write | [spec-kit-verify-review-ship](https://github.com/cadugevaerd/spec-kit-verify-review-ship) | -| Verify Tasks Extension | Detect phantom completions: tasks marked [X] in tasks.md with no real implementation. | `code` | Read+Write | [spec-kit-verify-tasks](https://github.com/datastone-inc/spec-kit-verify-tasks) | -| Version Guard | Verify tech stack versions against live npm registries before planning and implementation | `process` | Read-only | [spec-kit-version-guard](https://github.com/KevinBrown5280/spec-kit-version-guard) | -| Vurnix Honest Gate | Deterministic three-state honest gate for AI-written code: compile + phantom-import + honest test count in one verdict, executed as code — not as agent self-review. PASS/BLOCK/UNPROVEN by exit code. | `process` | Read-only | [vurnix-spec-kit](https://github.com/shiersa/vurnix-spec-kit) | -| What-if Analysis | Preview the downstream impact (complexity, effort, tasks, risks) of requirement changes before committing to them | `visibility` | Read-only | [spec-kit-whatif](https://github.com/DevAbdullah90/spec-kit-whatif) | -| Wireframe Visual Feedback Loop | SVG wireframe generation, review, and sign-off for spec-driven development. Approved wireframes become spec constraints honored by /speckit.plan, /speckit.tasks, and /speckit.implement | `visibility` | Read+Write | [spec-kit-extension-wireframe](https://github.com/TortoiseWolfe/spec-kit-extension-wireframe) | -| Work IQ | Integrate Microsoft 365 organizational knowledge into spec-driven development workflows | `integration` | Read-only | [spec-kit-workiq](https://github.com/sakitA/spec-kit-workiq) | -| Worktree Isolation | Spawn isolated git worktrees for parallel feature development without checkout switching | `process` | Read+Write | [spec-kit-worktree](https://github.com/Quratulain-bilal/spec-kit-worktree) | -| Worktrees | Default-on worktree isolation for parallel agents — sibling or nested layout | `process` | Read+Write | [spec-kit-worktree-parallel](https://github.com/dango85/spec-kit-worktree-parallel) | +## Alternative community browser -To submit your own extension, see the [Extension Publishing Guide](../extensions/publishing.md). +As an alternative to this directory, browse the +[Community Extensions website](https://speckit-community.github.io/extensions/). +This independently maintained, third-party resource is not an endorsement or +security review by Spec Kit maintainers; vet extensions before installation and use. diff --git a/docs/docfx.json b/docs/docfx.json index f9889c3b8b..f72b07a638 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -7,6 +7,7 @@ "toc.yml", "community/*.md", "community/presets/*.md", + "community/extensions/*.md", "community/bundles/*.md", "community/workflows/*.md", "community/workflow-steps/*.md", diff --git a/docs/extensions/publishing.md b/docs/extensions/publishing.md index a2a2ca41cd..1739ab40c1 100644 --- a/docs/extensions/publishing.md +++ b/docs/extensions/publishing.md @@ -181,10 +181,18 @@ control, but are not accepted through this community submission process. 1. GitHub applies the `triage-must-have` verdict when the issue is opened through the Extension Submission form. This intake automation is specific to extension submissions and does not change the manual triage rubric for other issues. 2. A maintainer reviews the issue during issue triage and applies the separate `extension-submission` label, which starts the automated catalog validation. On this public repository, contributors cannot apply that label themselves, so there is nothing to label or re-request — the issue simply waits in triage. -3. The automated workflow validates the submission and, when validation passes, updates `extensions/catalog.community.json` and `docs/community/extensions.md` in a draft pull request +3. The automated workflow validates the submission and, when validation passes, updates `extensions/catalog.community.json` in a draft pull request 4. A maintainer reviews the generated pull request and merges it when approved 5. Your extension becomes discoverable via `specify extension search` +The documentation build generates the [community extension directory](../community/extensions.md) +and a detail page for each entry directly from the catalog. Do not maintain a +separate Markdown listing or edit generated pages. Category and effect are +author-declared catalog metadata, not inferred permissions. The normal Pages +deployment rebuilds after community catalog changes, and the shared Monday +04:17 UTC rebuild refreshes repository stars at build time without writing +counts back to the catalog. + ### What Maintainers Check - The catalog entry fields are complete and correctly formatted diff --git a/docs/generate_extensions.py b/docs/generate_extensions.py new file mode 100644 index 0000000000..86ef7edc10 --- /dev/null +++ b/docs/generate_extensions.py @@ -0,0 +1,273 @@ +"""Generate the community extension directory and DocFX detail pages from its catalog.""" + +import argparse +import json +import re +from pathlib import Path + +if __package__: + from . import generate_workflows as shared + from .generate_presets import dependencies +else: + import generate_workflows as shared + from generate_presets import dependencies + + +ROOT = Path(__file__).resolve().parent.parent +escape = shared.escape_metadata +EFFECTS = {"read-only": "Read-only", "read-write": "Read+Write"} + + +def tools(entry: dict) -> list[str]: + values = entry.get("requires", {}).get("tools", []) + if not isinstance(values, list): + raise ValueError(f"{entry['id']}.requires.tools must be a list") + result = [] + for tool in values: + if not isinstance(tool, dict): + raise ValueError(f"{entry['id']}: tool dependency must be an object") + name = shared.text(tool.get("name"), "tool name") + if "version" in tool: + name += " " + shared.text(tool["version"], "tool version") + if "required" in tool and not isinstance(tool["required"], bool): + raise ValueError("tool required must be a boolean") + if tool.get("required", False) is False: + name += " (optional)" + result.append(name) + return result + + +def contributions(entry: dict) -> str: + return ", ".join( + f"{count} {kind[:-1] if count == 1 else kind}" + for kind, count in entry.get("provides", {}).items() + ) or "None listed" + + +def load_extensions(catalog_path: Path) -> list[dict]: + catalog = json.loads(catalog_path.read_text(encoding="utf-8"), object_pairs_hook=shared.unique_keys) + if not isinstance(catalog, dict) or catalog.get("schema_version") != "1.0": + raise ValueError("extension catalog must be an object with schema_version 1.0") + entries = catalog.get("extensions") + if not isinstance(entries, dict): + raise ValueError("extension catalog must contain an extensions object") + for extension_id, entry in entries.items(): + if not re.fullmatch(r"[a-z][a-z0-9-]*", extension_id): + raise ValueError(f"invalid extension ID: {extension_id}") + if not isinstance(entry, dict) or entry.get("id") != extension_id: + raise ValueError(f"{extension_id}: entry ID must match its catalog key") + for field in ("name", "description", "author", "version"): + shared.text(entry.get(field), f"{extension_id}.{field}") + for field in ("repository", "homepage", "documentation", "changelog", "download_url"): + if field in entry and entry[field] != "": + shared.url(entry[field], f"{extension_id}.{field}") + requires = entry.get("requires", {}) + if not isinstance(requires, dict): + raise ValueError(f"{extension_id}.requires must be an object") + if "speckit_version" in requires: + shared.text(requires["speckit_version"], f"{extension_id}.requires.speckit_version") + tools(entry) + dependencies(requires.get("extensions", [])) + provided = entry.get("provides", {}) + if not isinstance(provided, dict): + raise ValueError(f"{extension_id}.provides must be an object") + for kind, count in provided.items(): + shared.text(kind, f"{extension_id}.provides key") + if not isinstance(count, int) or isinstance(count, bool) or count < 0: + raise ValueError(f"{extension_id}.provides.{kind} must be a non-negative integer") + tags = entry.get("tags", []) + if not isinstance(tags, list): + raise ValueError(f"{extension_id}.tags must be a list") + for tag in tags: + shared.text(tag, f"{extension_id}.tags") + for field in ("category", "license", "created_at", "updated_at"): + if field in entry: + shared.text(entry[field], f"{extension_id}.{field}") + if "effect" in entry and ( + not isinstance(entry["effect"], str) or entry["effect"] not in EFFECTS + ): + raise ValueError(f"{extension_id}.effect must be read-only or read-write") + if "sha256" in entry and ( + not isinstance(entry["sha256"], str) + or not re.fullmatch(r"[a-fA-F0-9]{64}", entry["sha256"]) + ): + raise ValueError(f"{extension_id}.sha256 must contain 64 hexadecimal digits") + return sorted(entries.values(), key=lambda entry: (entry["name"].casefold(), entry["name"], entry["id"])) + + +def directory(extensions: list[dict], stars: dict[str, int | None]) -> str: + def options(field: str) -> str: + values = {value for entry in extensions + for value in (entry.get("tags", []) if field == "tags" else [entry.get(field)]) + if value is not None} + return "".join( + f'' + for value in sorted(values, key=lambda value: (value.casefold(), value)) + ) + + rows = [] + for entry in extensions: + category = entry.get("category", "Not specified") + effect = EFFECTS.get(entry.get("effect"), "Not specified") + search = " ".join( + [entry[field] for field in ("id", "name", "description", "author")] + + [category, entry.get("effect", ""), effect] + entry.get("tags", []) + + tools(entry) + dependencies(entry.get("requires", {}).get("extensions", [])) + ) + badges = "".join(f'{escape(tag)}' for tag in entry.get("tags", [])) + rows.append( + f'
  • ' + f'

    ' + f'{escape(entry["name"])}

    ' + f'{escape(entry["version"])}' + f'{shared.star_badge(entry, stars.get(entry.get("repository")))}
    ' + f'

    {escape(entry["description"])}

    ' + f'' + f'
    {badges}
  • ' + ) + return f""" + + + +
    + +

    {len(extensions)} extensions

    + +
      {"".join(rows)}
    +
    +""" + + +def detail(entry: dict, stars: int | None) -> str: + requires = entry.get("requires", {}) + metadata = { + "Extension ID": entry["id"], + "Catalog version": entry["version"], + "Author": entry["author"], + "Repository stars": f"{stars:,}" if stars is not None else "Unavailable", + "Category": entry.get("category", "Not specified"), + "Effect": EFFECTS.get(entry.get("effect"), "Not specified"), + "License": entry.get("license", "Not provided"), + "Requires Spec Kit": requires.get("speckit_version", "Not specified"), + "Tool dependencies": ", ".join(tools(entry)) or "None listed", + "Extension dependencies": ", ".join(dependencies(requires.get("extensions", []))) or "None listed", + "Provides": contributions(entry), + "Tags": ", ".join(entry.get("tags", [])) or "None listed", + "Created": entry.get("created_at", "Not provided"), + "Updated": entry.get("updated_at", "Not provided"), + } + definitions = "".join(f"
    {escape(label)}
    {escape(value)}
    " + for label, value in metadata.items()) + links = " ".join( + f'{label}' + if entry.get(field) else f"{label}: Not provided" + for field, label in (("repository", "Source repository"), ("homepage", "Homepage"), + ("documentation", "Author documentation"), ("changelog", "Changelog")) + ) + archive = ( + f'

    After vetting, download and inspect the ' + f'catalog-listed archive for version {escape(entry["version"])}.

    ' + if entry.get("download_url") else + "

    No release archive URL is listed. Consult the author for an exact release; " + "the repository link is not an installable archive.

    " + ) + checksum = ( + "

    Before installation, compute the downloaded archive's SHA-256 and compare " + "it with the catalog SHA-256 below. If they differ, stop and do not install.

    " + f'

    Catalog SHA-256: {escape(entry["sha256"])}

    ' + if entry.get("sha256") else + "

    No SHA-256 digest is listed. Obtain and verify an integrity digest from " + "a source you trust before installation.

    " + ) + return f""" + + +
    +

    Back to community extensions

    +

    {escape(entry["name"])}

    +

    {escape(entry["description"])}

    + +

    Extension details

    + +

    Category, effect, requirements, and contribution counts are author-declared metadata, +not enforced permissions or a sandbox. Missing metadata does not imply compatibility +or absence of side effects. Repository stars reflect the last documentation build, +not a safety assessment.

    +

    Review before installing or using

    +

    This extension is independently maintained. Maintainers check catalog metadata only; +they do not review, audit, endorse, or support extension code, scripts, or dependencies. +You must vet the exact release, commands, templates, scripts, hooks, tool and extension +dependencies, credentials, network access, and side effects before installation and use.

    +

    The built-in community catalog is discovery-only. A listing does not make +specify extension add {escape(entry["id"])} installable through that source. +Inspect specify extension catalog list and project configuration; active +sources may have been selected by someone else. Use only separately vetted, +install-allowed catalogs or an explicitly reviewed release source.

    +{archive} +{checksum} +

    A digest checks archive integrity, not code safety. Direct --from +installation does not verify the catalog digest and downloads the archive again. +To install the exact bytes you checked, inspect and unpack the verified archive, +then use specify extension add --dev <local-extension-directory> +on its complete extension directory. See the installation options.

    +

    Installation registers extension artifacts with your active integration. +Commands and hooks can execute scripts or tools with your privileges when invoked +or triggered. Review integration-specific hook behavior and test unfamiliar extensions +in a disposable project; a read-only label is not an execution restriction.

    +

    See also

    + +
    +""" + + +def generate(catalog_path: Path, docs_path: Path, *, fetch_stars: bool = False) -> int: + extensions = load_extensions(catalog_path) + stars = shared.repository_stars(extensions) if fetch_stars else {} + pages = {f"{entry['id']}.md": detail(entry, stars.get(entry.get("repository"))) for entry in extensions} + listing = directory(extensions, stars) + details_path = docs_path / "community" / "extensions" + details_path.mkdir(parents=True, exist_ok=True) + for stale in details_path.glob("*.md"): + if stale.name not in pages: + stale.unlink() + for name, content in pages.items(): + (details_path / name).write_text(content, encoding="utf-8") + include_path = docs_path / "_generated" + include_path.mkdir(parents=True, exist_ok=True) + (include_path / "extension-directory.md").write_text(listing, encoding="utf-8") + return len(extensions) + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--catalog", type=Path, default=ROOT / "extensions/catalog.community.json") + parser.add_argument("--docs", type=Path, default=ROOT / "docs") + parser.add_argument("--fetch-stars", action="store_true", help="Fetch GitHub repository stars at build time") + args = parser.parse_args() + try: + count = generate(args.catalog, args.docs, fetch_stars=args.fetch_stars) + except (ValueError, OSError) as exc: + parser.exit(1, f"Extension documentation generation failed: {exc}\n") + print(f"Generated directory and detail pages for {count} community extensions.") + + +if __name__ == "__main__": + main() diff --git a/tests/test_extension_documentation.py b/tests/test_extension_documentation.py new file mode 100644 index 0000000000..b618661331 --- /dev/null +++ b/tests/test_extension_documentation.py @@ -0,0 +1,394 @@ +"""Extension directory completeness, metadata safety, controls, and build contracts.""" + +import copy +import io +import json +import os +import shutil +import subprocess +import sys +from html.parser import HTMLParser +from pathlib import Path + +import pytest +import yaml + +from docs import generate_extensions as generator + + +ROOT = Path(__file__).resolve().parent.parent + + +class DirectoryParser(HTMLParser): + def __init__(self): + super().__init__() + self.entries = [] + self.links = [] + self.scripts = [] + + def handle_starttag(self, tag, attrs): + attrs = dict(attrs) + if tag == "li" and attrs.get("class") == "workflow-entry": + self.entries.append(attrs) + if tag == "a": + self.links.append(attrs["href"]) + if tag == "script": + self.scripts.append(attrs.get("src")) + + +@pytest.fixture +def catalog(tmp_path): + entry = { + "id": "sample", "name": "Sample Extension", "description": "Review a specification", + "author": "Contributor", "version": "1.2.3", "license": "MIT", + "repository": "https://github.com/example/extensions", + "documentation": "https://example.com/README", "homepage": "https://example.com", + "changelog": "", "download_url": "https://example.com/v1.2.3/extension.zip", + "requires": {"speckit_version": ">=1.0.0", + "tools": [{"name": "git", "version": ">=2", "required": False}], + "extensions": [{"id": "helper", "version": ">=1", "required": True}]}, + "provides": {"commands": 2, "hooks": 1}, + "category": "docs", "effect": "read-only", "tags": ["review", "planning"], + "stars": 987654, + } + data = {"schema_version": "1.0", "extensions": {"sample": entry}} + path = tmp_path / "catalog.json" + path.write_text(json.dumps(data), encoding="utf-8") + return data, path, tmp_path / "docs" + + +def test_current_catalog_has_complete_static_directory_and_details(tmp_path): + path = ROOT / "extensions/catalog.community.json" + original = path.read_bytes() + entries = json.loads(original)["extensions"] + assert generator.generate(path, tmp_path) == len(entries) + parsed = DirectoryParser() + parsed.feed((tmp_path / "_generated/extension-directory.md").read_text(encoding="utf-8")) + assert len(parsed.entries) == len(entries) + assert set(parsed.links) == {f"extensions/{key}.md" for key in entries} + assert all("hidden" not in entry for entry in parsed.entries) + assert {page.stem for page in (tmp_path / "community/extensions").glob("*.md")} == set(entries) + for key, entry in entries.items(): + detail = (tmp_path / f"community/extensions/{key}.md").read_text(encoding="utf-8") + assert generator.escape(entry["name"]) in detail + assert "discovery-only" in detail + assert "do not review, audit, endorse, or support" in detail + assert "not enforced permissions" in detail + assert "with your privileges" in detail + assert "does not verify the catalog digest" in detail + assert "--install-allowed" not in detail + assert path.read_bytes() == original + + +def test_deterministic_sorting_filters_and_deleted_pages(catalog): + data, path, docs = catalog + data["extensions"]["sample"].update(name="same", tags=["Review"]) + other = copy.deepcopy(data["extensions"]["sample"]) + other.update(id="other", name="Same", category="Docs", tags=["review"]) + data["extensions"]["other"] = other + path.write_text(json.dumps(data), encoding="utf-8") + listings = [] + for seed in ("1", "2", "3"): + output = docs / seed + result = subprocess.run( + [sys.executable, str(ROOT / "docs/generate_extensions.py"), + "--catalog", str(path), "--docs", str(output)], + env={**os.environ, "PYTHONHASHSEED": seed}, + capture_output=True, text=True, timeout=30, check=False, + ) + assert result.returncode == 0, result.stderr + listings.append((output / "_generated/extension-directory.md").read_bytes()) + assert len(set(listings)) == 1 + assert listings[0].index(b"extensions/other.md") < listings[0].index(b"extensions/sample.md") + assert listings[0].index(b'value="Docs"') < listings[0].index(b'value="docs"') + generator.generate(path, docs) + del data["extensions"]["other"] + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + assert not (docs / "community/extensions/other.md").exists() + data["extensions"] = {} + path.write_text(json.dumps(data), encoding="utf-8") + assert generator.generate(path, docs) == 0 + assert not list((docs / "community/extensions").glob("*.md")) + + +@pytest.mark.parametrize("has_digest", [True, False]) +def test_dependencies_missing_metadata_and_integrity_guidance(catalog, has_digest): + data, path, docs = catalog + entry = data["extensions"]["sample"] + if has_digest: + entry["sha256"] = "a" * 64 + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + detail = (docs / "community/extensions/sample.md").read_text(encoding="utf-8") + assert "
    git >=2 (optional)
    " in detail + assert "
    helper >=1
    " in detail + assert "
    2 commands, 1 hook
    " in detail + assert ("compute the downloaded archive's SHA-256" in detail) is has_digest + assert ("No SHA-256 digest is listed" in detail) is not has_digest + for field in ("category", "effect", "download_url", "requires", "provides", "tags", "repository"): + del entry[field] + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + detail = (docs / "community/extensions/sample.md").read_text(encoding="utf-8") + assert "
    Effect
    Not specified
    " in detail + assert "No release archive URL is listed" in detail + assert "Source repository: Not provided" in detail + + +@pytest.mark.parametrize(("requirement", "label"), [ + ({}, "git >=2 (optional)"), + ({"required": False}, "git >=2 (optional)"), + ({"required": True}, "git >=2"), +]) +def test_tool_requirement_defaults_to_optional_in_generated_details(catalog, requirement, label): + data, path, docs = catalog + data["extensions"]["sample"]["requires"]["tools"] = [ + {"name": "git", "version": ">=2", **requirement}, + ] + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + detail = (docs / "community/extensions/sample.md").read_text(encoding="utf-8") + assert f"
    Tool dependencies
    {label}
    " in detail + + +@pytest.mark.parametrize(("field", "value"), [ + ("id", "../escape"), ("name", None), ("author", ""), ("version", 1), + ("download_url", "javascript:alert(1)"), ("repository", "https://u:p@example.com/repo"), + ("homepage", "http://example.com"), ("documentation", "https://example.com/\nreadme"), + ("changelog", None), ("tags", "review"), ("tags", [None]), ("category", []), + ("effect", "safe"), ("effect", []), ("requires", []), + ("requires", {"speckit_version": None}), ("requires", {"tools": "git"}), + ("requires", {"tools": [None]}), ("requires", {"tools": [{"name": "git", "required": "yes"}]}), + ("requires", {"tools": [{"name": "git", "version": None}]}), + ("requires", {"extensions": [{"id": "helper", "required": "yes"}]}), + ("provides", []), ("provides", {"commands": True}), ("provides", {"hooks": -1}), + ("sha256", "{line_break}{line_break}[injected](javascript:alert%281%29) & |' + entry = data["extensions"]["sample"] + entry.update(name=payload, description=payload, author=payload, version=payload, + license=payload, category=payload, tags=[payload], created_at=payload) + entry["requires"] = {"tools": [{"name": payload}], "extensions": [payload]} + entry["provides"] = {payload: 1} + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + for generated in (docs / "_generated/extension-directory.md", docs / "community/extensions/sample.md"): + source = generated.read_text(encoding="utf-8") + assert payload not in source + assert generator.escape(payload) in source + parsed = DirectoryParser() + parsed.feed((docs / "_generated/extension-directory.md").read_text(encoding="utf-8")) + assert json.loads(parsed.entries[0]["data-extension-tags"]) == [payload] + assert parsed.entries[0]["data-extension-category"] == payload + if shutil.which("docfx") is None: + pytest.skip("DocFX is required for rendered Markdown verification") + (docs / "community/extensions.md").write_text( + "# Community Extensions\n\n[!INCLUDE [Directory](../_generated/extension-directory.md)]\n", + encoding="utf-8", + ) + (docs / "docfx.json").write_text(json.dumps({"build": { + "content": [{"files": ["community/**.md"]}], "dest": "_site", "template": ["default", "modern"], + }}), encoding="utf-8") + result = subprocess.run( + [shutil.which("docfx"), "docfx.json", "--logLevel", "Error"], + cwd=docs, capture_output=True, text=True, timeout=120, check=False, + ) + assert result.returncode == 0, result.stdout + result.stderr + for page in ("community/extensions.html", "community/extensions/sample.html"): + rendered = (docs / "_site" / page).read_text(encoding="utf-8") + parsed = DirectoryParser() + parsed.feed(rendered) + assert not any(link.startswith("javascript:") for link in parsed.links) + assert "[injected](javascript:alert%281%29)" in rendered + assert '' not in rendered + + +@pytest.mark.parametrize("response", [b'{"stargazers_count":0}', TimeoutError("GitHub timed out")]) +def test_build_only_stars_use_shared_safe_lookup_not_catalog_counts(catalog, monkeypatch, capsys, response): + data, path, docs = catalog + other = copy.deepcopy(data["extensions"]["sample"]) + other.update(id="other", repository="https://github.com/EXAMPLE/extensions.git") + data["extensions"]["other"] = other + path.write_text(json.dumps(data), encoding="utf-8") + original = path.read_bytes() + calls = [] + + def fetch(request, timeout): + calls.append(request) + assert timeout == 10 + if isinstance(response, Exception): + raise response + return io.BytesIO(response) + + monkeypatch.setattr(generator.shared, "urlopen", fetch) + monkeypatch.setenv("GH_TOKEN", "test-token") + generator.generate(path, docs) + assert not calls + generator.generate(path, docs, fetch_stars=True) + assert len(calls) == 1 + assert calls[0].full_url == "https://api.github.com/repos/example/extensions" + assert calls[0].get_header("Authorization") == "Bearer test-token" + listing = (docs / "_generated/extension-directory.md").read_text(encoding="utf-8") + assert "987,654" not in listing + if isinstance(response, Exception): + assert "Warning: stars unavailable" in capsys.readouterr().err + assert listing.count("Stars unavailable") == 2 + else: + assert listing.count('aria-label="0 GitHub repository stars"') == 2 + assert ".git/stargazers" not in listing + assert path.read_bytes() == original + + +@pytest.mark.skipif(shutil.which("node") is None, reason="Node.js is required for directory controls") +def test_search_category_effect_tag_sort_url_empty_and_reset(catalog): + data, path, docs = catalog + other = copy.deepcopy(data["extensions"]["sample"]) + other.update(id="other", name="Another Extension", category="code", effect="read-write", tags=["design"]) + data["extensions"]["other"] = other + path.write_text(json.dumps(data), encoding="utf-8") + generator.generate(path, docs) + parsed = DirectoryParser() + parsed.feed((docs / "_generated/extension-directory.md").read_text(encoding="utf-8")) + result = subprocess.run( + [shutil.which("node"), "-e", r""" +const assert = require("node:assert/strict"); +const fs = require("node:fs"); +const vm = require("node:vm"); +const input = JSON.parse(fs.readFileSync(0, "utf8")); +const entries = input.entries.map((attrs) => ({ + hidden: false, + dataset: { + extensionSearch: attrs["data-extension-search"], + extensionCategory: attrs["data-extension-category"], + extensionEffect: attrs["data-extension-effect"], + extensionTags: attrs["data-extension-tags"], + }, +})); +const fields = Object.fromEntries(["q", "tag", "category", "effect", "sort"].map((key) => [key, {value: ""}])); +const handlers = {}; +const form = { + hidden: true, elements: {namedItem: (name) => fields[name]}, + addEventListener: (event, handler) => { handlers[event] = handler; }, +}; +const list = { + children: [...entries], + append: (entry) => { + list.children.splice(list.children.indexOf(entry), 1); + list.children.push(entry); + }, +}; +const status = {}; +const empty = {}; +const elements = { + "[data-extension-controls]": form, ".workflow-results": list, + "[data-extension-status]": status, "[data-extension-empty]": empty, +}; +let current = new URL("https://example.com/spec-kit/community/extensions.html?q=REVIEW&category=docs&effect=read-only&tag=planning&sort=za&keep=1"); +vm.runInNewContext(input.script, { + document: {querySelector: () => ({querySelector: (key) => elements[key]})}, + window: { + location: current, history: {replaceState: (_state, _title, url) => { current = url; }}, + }, + URL, URLSearchParams, +}); +const visible = () => list.children.filter((entry) => !entry.hidden); +assert.equal(form.hidden, false); +assert.equal(visible().length, 1); +assert.equal(status.textContent, "1 of 2 extensions"); +fields.q.value = "missing"; +handlers.input(); +assert.equal(visible().length, 0); +assert.equal(empty.hidden, false); +handlers.reset(); +assert.equal(visible().length, 2); +assert.equal(empty.hidden, true); +assert.equal(list.children[0].dataset.extensionCategory, "code"); +assert.equal(current.search, "?keep=1"); +fields.sort.value = "za"; +handlers.change(); +assert.equal(list.children[0].dataset.extensionCategory, "docs"); +fields.category.value = "code"; +handlers.change(); +assert.equal(visible().length, 1); +fields.effect.value = "read-only"; +handlers.change(); +assert.equal(visible().length, 0); +handlers.reset(); +fields.tag.value = "planning"; +handlers.change(); +assert.equal(visible().length, 1); +handlers.reset(); +fields.q.value = "helper Contributor"; +let prevented = false; +handlers.submit({preventDefault: () => { prevented = true; }}); +assert.equal(prevented, true); +assert.equal(visible().length, 2); +"""], + input=json.dumps({"entries": parsed.entries, + "script": (ROOT / "docs/assets/extension-catalog.js").read_text(encoding="utf-8")}), + capture_output=True, text=True, timeout=30, check=False, + ) + assert result.returncode == 0, result.stdout + result.stderr + + +def test_extension_build_submission_contract_and_alternative_link_position(): + workflow = yaml.safe_load((ROOT / ".github/workflows/docs.yml").read_text(encoding="utf-8")) + assert "extensions/catalog.community.json" in workflow[True]["push"]["paths"] + assert workflow[True]["schedule"] == [{"cron": "17 4 * * 1"}] + steps = workflow["jobs"]["build"]["steps"] + generation = next(i for i, step in enumerate(steps) + if step.get("run") == "python3 docs/generate_extensions.py --fetch-stars") + assert steps[generation]["env"] == {"GH_TOKEN": "${{ github.token }}"} + assert generation < next(i for i, step in enumerate(steps) if "docfx docfx.json" in step.get("run", "")) + config = json.loads((ROOT / "docs/docfx.json").read_text(encoding="utf-8")) + assert "community/extensions/*.md" in config["build"]["content"][0]["files"] + page = (ROOT / "docs/community/extensions.md").read_text(encoding="utf-8") + include = "[!INCLUDE [Community extension directory](../_generated/extension-directory.md)]" + alternative = "https://speckit-community.github.io/extensions/" + assert page.count(alternative) == 1 + assert page.index(include) < page.index("Extension Publishing Guide") < page.index(alternative) + assert page.split("## ")[-1].startswith("Alternative community browser") + assert "third-party" in page.split("## ")[-1] + assert "| Extension |" not in page + for file in (".github/workflows/add-community-extension.md", + ".github/skills/add-community-extension/SKILL.md"): + source = (ROOT / file).read_text(encoding="utf-8") + assert "Do not edit `docs/community/extensions.md`" in source + assert "community extensions table" not in source + publishing = (ROOT / "docs/extensions/publishing.md").read_text(encoding="utf-8") + assert "separate Markdown listing" in publishing + assert "04:17 UTC" in publishing diff --git a/tests/test_github_workflows.py b/tests/test_github_workflows.py index d0aa227ad2..071a772642 100644 --- a/tests/test_github_workflows.py +++ b/tests/test_github_workflows.py @@ -54,7 +54,7 @@ "extension", "extension-submission", "extensions/catalog.community.json", - "docs/community/extensions.md", + None, "Do not modify any other files", ), (