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
Copy file name to clipboardExpand all lines: openspec/specs/cli-init/spec.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,13 @@ The init command SHALL generate slash command files for supported editors using
231
231
-**AND** wrap the shared template body with OpenSpec markers so `openspec update` can refresh the content
232
232
-**AND** each template includes instructions for the relevant OpenSpec workflow stage
233
233
234
+
#### Scenario: Generating slash commands for Gemini CLI
235
+
-**WHEN** the user selects Gemini CLI during initialization
236
+
-**THEN** create `.gemini/commands/openspec/proposal.toml`, `.gemini/commands/openspec/apply.toml`, and `.gemini/commands/openspec/archive.toml`
237
+
-**AND** populate each file as TOML that sets a stage-specific `description = "<summary>"` and a multi-line `prompt = """` block with the shared OpenSpec template
238
+
-**AND** wrap the OpenSpec managed markers (`<!-- OPENSPEC:START -->` / `<!-- OPENSPEC:END -->`) inside the `prompt` value so `openspec update` can safely refresh the body between markers without touching the TOML framing
239
+
-**AND** ensure the slash-command copy matches the existing proposal/apply/archive templates used by other tools
240
+
234
241
### Requirement: Non-Interactive Mode
235
242
The command SHALL support non-interactive operation through command-line options for automation and CI/CD use cases.
Copy file name to clipboardExpand all lines: openspec/specs/cli-update/spec.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,12 @@ The update command SHALL refresh existing slash command files for configured too
117
117
-**AND** update only the OpenSpec-managed block between markers
118
118
-**AND** ensure templates include instructions for the relevant workflow stage
119
119
120
+
#### Scenario: Updating slash commands for Gemini CLI
121
+
-**WHEN**`.gemini/commands/openspec/` contains `proposal.toml`, `apply.toml`, and `archive.toml`
122
+
-**THEN** refresh the body of each file using the shared proposal/apply/archive templates
123
+
-**AND** replace only the content between `<!-- OPENSPEC:START -->` and `<!-- OPENSPEC:END -->` markers inside the `prompt = """` block so the TOML framing (`description`, `prompt`) stays intact
124
+
-**AND** skip creating any missing `.toml` files during update; only pre-existing Gemini commands are refreshed
0 commit comments