From 5196f7bac6f51e0af5726c354c20eb897cfcc283 Mon Sep 17 00:00:00 2001 From: Manfred Riem <15701806+mnriem@users.noreply.github.com> Date: Tue, 24 Nov 2026 15:04:06 -0600 Subject: [PATCH] Document the published Copilot Extension Hooks preset Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- README.md | 2 +- spec-kit-presets/README.md | 9 +++--- .../copilot-extension-hooks/README.md | 29 ++++++++++++++----- .../tests/test_extension_hooks.py | 4 ++- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 70bf722b..c86e9546 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ confused with Copilot plugin/marketplace plumbing. | [`copilot-full-sdd`](spec-kit-presets/copilot-full-sdd) | Spec Kit `== 1.2.3`, Copilot skills mode | Alternative full SDD baseline retaining traditional artifacts and quality gates; nine command replacements without extension lifecycle-hook dispatch. Initial release pending; use the documented local-development install. | | [`copilot-sub-agents`](spec-kit-presets/copilot-sub-agents) | Spec Kit `>= 0.8.0` | Uses Copilot delegation — VS Code `runSubagent`, Copilot CLI sub-agents, `.github/agents/` | | [`copilot-assess-ask-questions`](spec-kit-presets/copilot-assess-ask-questions) | Spec Kit `>= 0.9.0`, `assess` extension | Drives the assess pipeline through Copilot's interactive `ask_user` tool (no plain-text fallback) | -| [`copilot-extension-hooks`](spec-kit-presets/copilot-extension-hooks) | Specify `==1.2.3`, one Copilot Lean/Full SDD baseline | Opt-in Specify extension lifecycle dispatch through Copilot skills; not native Copilot hooks | +| [`copilot-extension-hooks`](spec-kit-presets/copilot-extension-hooks) | Specify `==1.2.3`, one Copilot Lean/Full SDD baseline | Opt-in Specify extension lifecycle dispatch through Copilot skills; not native Copilot hooks. [1.0.0 release](https://github.com/github/spec-kit-copilot/releases/tag/copilot-extension-hooks-v1.0.0). | See [`spec-kit-presets/README.md`](spec-kit-presets/README.md) for the plumbing boundary, install commands, and versioning. Maintainers judge whether a package diff --git a/spec-kit-presets/README.md b/spec-kit-presets/README.md index 399f3af6..aff1ef90 100644 --- a/spec-kit-presets/README.md +++ b/spec-kit-presets/README.md @@ -23,7 +23,7 @@ for maintainer guidance on which packages belong here. | Preset | Requires | Copilot purpose | | --- | --- | --- | -| [`copilot-extension-hooks`](copilot-extension-hooks) | Specify `==1.2.3`, one Copilot Lean/Full SDD baseline | Opt-in lifecycle dispatch through installed Copilot command skills; preserves the selected baseline and does not control native hooks. See its explicit activation/regeneration flow. | +| [`copilot-extension-hooks`](copilot-extension-hooks) | Specify `==1.2.3`, one Copilot Lean/Full SDD baseline | Opt-in lifecycle dispatch through installed Copilot command skills; preserves the selected baseline and does not control native hooks. [1.0.0 release](https://github.com/github/spec-kit-copilot/releases/tag/copilot-extension-hooks-v1.0.0). | | [`copilot-full-sdd`](copilot-full-sdd) | Spec Kit `== 1.2.3`, Copilot skills mode | Full core workflow registered as Copilot skills, without extension lifecycle hooks and with safeguards for creating and updating specs. [1.0.0 release](https://github.com/github/spec-kit-copilot/releases/tag/copilot-full-sdd-v1.0.0). | | [`copilot-lean-sdd`](copilot-lean-sdd) | Spec Kit `>= 1.0.8`, Copilot skills mode | Upstream Lean's minimal artifacts with Copilot skill invocation and `ask_user`; replaces all nine core SDD commands without extension lifecycle-hook dispatch. [1.0.0 release](https://github.com/github/spec-kit-copilot/releases/tag/copilot-lean-sdd-v1.0.0). | | [`copilot-sub-agents`](copilot-sub-agents) | Spec Kit `>= 0.8.0` | Built around Copilot delegation mechanisms — VS Code's `runSubagent` tool, Copilot CLI sub-agent processes, and custom agents in `.github/agents/` / `~/.copilot/agents/`. | @@ -49,10 +49,9 @@ Choose one SDD baseline and follow its installation prerequisites: or [Lean SDD](copilot-lean-sdd#installation-and-prerequisites) (`specify preset add copilot-lean-sdd`). Do not install both in the same project. -`copilot-extension-hooks` **1.0.0 is pending release**; use its -[local-development install](copilot-extension-hooks#install-and-configure). -It is an opt-in layer over one selected baseline, not another baseline. -After publication, install it with `specify preset add copilot-extension-hooks --priority 5`. +To opt in to Extension Hooks, install it over the selected baseline with +`specify preset add copilot-extension-hooks --priority 5`. Follow the +[setup and verification instructions](copilot-extension-hooks#install-and-configure). The two methods below are escape hatches, not the primary path: diff --git a/spec-kit-presets/copilot-extension-hooks/README.md b/spec-kit-presets/copilot-extension-hooks/README.md index 75bf9918..5e6e1937 100644 --- a/spec-kit-presets/copilot-extension-hooks/README.md +++ b/spec-kit-presets/copilot-extension-hooks/README.md @@ -16,22 +16,35 @@ available to the Copilot host. ## Install and configure -**Initial release pending.** The catalog reserves a release URL; source addition -does not publish an asset. For local development in a disposable project: +[Copilot Extension Hooks 1.0.0](https://github.com/github/spec-kit-copilot/releases/tag/copilot-extension-hooks-v1.0.0) +is available from the preset catalog. In a fresh Copilot skills-mode project, +register the catalog, install one baseline, then add the opt-in hooks layer: ```bash specify --version # must report 1.2.3 specify init /path/to/project --integration copilot --integration-options="--skills" --non-interactive --script sh cd /path/to/project +specify preset catalog add https://raw.githubusercontent.com/github/spec-kit-copilot/main/spec-kit-presets/catalog.json \ + --name spec-kit-copilot --install-allowed +# Choose one baseline; substitute copilot-full-sdd for Lean if preferred. +specify preset add copilot-lean-sdd --priority 10 +specify preset add copilot-extension-hooks --priority 5 +specify preset resolve speckit.plan +``` + +Use `--script ps` or `--script py` as appropriate. The resolution check should +identify `copilot-extension-hooks` as the source for `speckit.plan`. + +For local development, initialize a disposable project as above, then install +from a working clone instead of registering the catalog. Substitute the +`copilot-full-sdd` directory if using Full: + +```bash specify preset add --dev /path/to/spec-kit-copilot/spec-kit-presets/copilot-lean-sdd --priority 10 -# OR install copilot-full-sdd at priority 10, not both baselines. specify preset add --dev /path/to/spec-kit-copilot/spec-kit-presets/copilot-extension-hooks --priority 5 specify preset resolve speckit.plan ``` -Use `--script ps` or `--script py` as appropriate. After publication, -[register the preset catalog](https://github.com/github/spec-kit-copilot/blob/main/spec-kit-presets/README.md#installing-a-preset), then install -the selected baseline and `specify preset add copilot-extension-hooks --priority 5`. See the shared [release guide](https://github.com/github/spec-kit-copilot/blob/main/spec-kit-presets/README.md#versioning--distribution). **Lower preset numbers have higher precedence.** The hooks layer must precede @@ -103,10 +116,10 @@ The validated explicit flow, with a surviving enabled baseline, is: specify preset remove copilot-extension-hooks # Turn hooks back on, or apply a different wrapper priority: -specify preset add --dev /path/to/spec-kit-copilot/spec-kit-presets/copilot-extension-hooks --priority 5 -# After publication, use: specify preset add copilot-extension-hooks --priority 5 +specify preset add copilot-extension-hooks --priority 5 ``` +For a local development install, re-add the preset using the `--dev` command above. Inspect generated skills after each change, then run `/skills reload` in the current Copilot session (or start a new session). Removal/reinstallation is an explicit configuration operation, not an automatic migration; authored workflow diff --git a/spec-kit-presets/tests/test_extension_hooks.py b/spec-kit-presets/tests/test_extension_hooks.py index 4c579e4e..30d78729 100644 --- a/spec-kit-presets/tests/test_extension_hooks.py +++ b/spec-kit-presets/tests/test_extension_hooks.py @@ -449,7 +449,9 @@ def test_instruction_contract_not_a_runtime_compliance_test(self): manifest = yaml.safe_load((PACKAGE / "preset.yml").read_text(encoding="utf-8")) for phrase in ( f"**{manifest['preset']['version']}**", "27d14e20c187c1f2916540ea201ecbdc9f8ed588", - "**Initial release pending.**", "do not regenerate existing skills", + f"{manifest['preset']['repository']}/releases/tag/{PACKAGE.name}-v{manifest['preset']['version']}", + "specify preset add copilot-extension-hooks --priority 5", + "do not regenerate existing skills", "specify preset remove copilot-extension-hooks", "not a runtime executor", "Copilot App behavior is not established", ):