You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copilot extends `IntegrationBase` directly because it creates `.agent.md` commands, companion `.prompt.md` files, and merges `.vscode/settings.json`. It also supports a `--skills` mode that scaffolds `speckit-<name>/SKILL.md` under `.github/skills/` using composition with an internal `_CopilotSkillsHelper`. See `src/specify_cli/integrations/copilot/__init__.py` for the full implementation.
269
+
Copilot extends `IntegrationBase` directly because it supports two layouts. It scaffolds `speckit-<name>/SKILL.md` under `.github/skills/` by default using composition with an internal `_CopilotSkillsHelper`. Its `--commands` mode creates `.agent.md` commands, companion `.prompt.md` files, and merges `.vscode/settings.json`. See `src/specify_cli/integrations/copilot/__init__.py` for the full implementation.
270
270
271
271
### 7. Update Devcontainer files (Optional)
272
272
@@ -415,36 +415,28 @@ Some agents require custom processing beyond the standard template transformatio
415
415
416
416
### Copilot Integration
417
417
418
-
GitHub Copilot has unique requirements:
418
+
GitHub Copilot uses skills by default, scaffolded as
419
+
`speckit-<name>/SKILL.md`under `.github/skills/`.
419
420
420
-
- Commands use `.agent.md` extension (not `.md`)
421
-
- Each command gets a companion `.prompt.md` file in `.github/prompts/`
422
-
- Installs `.vscode/settings.json` with prompt file recommendations
423
-
- Context file lives at `.github/copilot-instructions.md`
424
-
425
-
Implementation: Extends `IntegrationBase` with custom `setup()` method that:
421
+
**Commands mode (`--commands`):** Copilot also supports a commands-based layout
422
+
via `--integration-options="--commands"`. When enabled:
426
423
427
-
1. Processes templates with `process_template()`
428
-
2. Generates companion `.prompt.md` files
429
-
3. Merges VS Code settings
430
-
431
-
**Skills mode (`--skills`):** Copilot also supports an alternative skills-based layout
432
-
via `--integration-options="--skills"`. When enabled:
424
+
- Commands use `.agent.md` extension under `.github/agents/`
425
+
- Each command gets a companion `.prompt.md` file in `.github/prompts/`
426
+
- `.vscode/settings.json`is merged with prompt file recommendations
427
+
- `build_command_invocation()`returns bare args for `--agent` dispatch
433
428
434
-
- Commands are scaffolded as `speckit-<name>/SKILL.md` under `.github/skills/`
435
-
- No companion `.prompt.md` files are generated
436
-
- No `.vscode/settings.json` merge
437
-
- `post_process_skill_content()` injects a `mode: speckit.<stem>` frontmatter field
438
-
- `build_command_invocation()`returns `/speckit-<stem>` instead of bare args
429
+
In the default skills mode, no companion prompts or VS Code settings merge are
430
+
created, and `build_command_invocation()` returns `/speckit-<stem>`.
439
431
440
432
The two modes are mutually exclusive — a project uses one or the other:
|[GitHub Copilot](https://code.visualstudio.com/)|`copilot`|Defaults to legacy markdown mode: `.agent.md`command files under `.github/agents/`, companion `.prompt.md`files under `.github/prompts/`, and a `.vscode/settings.json` merge. Pass `--integration-options="--skills"` to scaffold skills as `speckit-<command>/SKILL.md` under `.github/skills/` instead. Legacy markdown mode is deprecated and will stop being the default in a future release. |
23
+
|[GitHub Copilot](https://code.visualstudio.com/)|`copilot`|Skills-based by default; installs `speckit-<command>/SKILL.md` under `.github/skills/`. Pass `--integration-options="--commands"` to use the supported commands layout: `.agent.md`files under `.github/agents/`, companion `.prompt.md` files under `.github/prompts/`, and a `.vscode/settings.json` merge. |
24
24
|[Goose](https://goose-docs.ai/)|`goose`| Uses YAML recipe format in `.goose/recipes/`|
25
25
|[Grok Build](https://docs.x.ai/build/overview)|`grok`| Skills-based integration; installs skills into `.grok/skills` and invokes them as `/speckit-<command>`|
26
26
|[Hermes](https://github.com/NousResearch/hermes-agent)|`hermes`| Skills-based integration; installs skills globally into `~/.hermes/skills/`|
@@ -234,7 +234,8 @@ Some integrations accept additional options via `--integration-options`:
|`generic`|`--commands-dir`| Required. Directory for command files |
236
236
|`kimi`|`--migrate-legacy`| Migrate legacy `.kimi/skills/` installs to `.kimi-code/skills/` (including dotted→hyphenated skill naming, e.g. `speckit.xxx` → `speckit-xxx`) |
237
-
|`copilot`|`--skills`| Scaffold commands as agent skills (`speckit-<command>/SKILL.md` under `.github/skills/`, invoked as `/speckit-<command>`) instead of the default legacy markdown mode (`.github/agents/*.agent.md` plus `.github/prompts/*.prompt.md` and a `.vscode/settings.json` merge). Without this flag, install warns that legacy markdown mode is deprecated. |
237
+
|`copilot`|`--commands`| Scaffold `.github/agents/*.agent.md` commands with `.github/prompts/*.prompt.md` companions and merge `.vscode/settings.json` instead of using the default skills layout. |
238
+
|`copilot`|`--skills`| Force the default skills layout, overriding an existing commands layout during an explicit migration. |
0 commit comments