Skip to content

Commit dbd1437

Browse files
committed
Let's switch to proper prompts
1 parent 317ae4d commit dbd1437

12 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/scripts/create-release-packages.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ generate_commands() {
9595
{ echo "description = \"$description\""; echo; echo "prompt = \"\"\""; echo "$body"; echo "\"\"\""; } > "$output_dir/speckit.$name.$ext" ;;
9696
md)
9797
echo "$body" > "$output_dir/speckit.$name.$ext" ;;
98-
chatmode.md)
98+
prompt.md)
9999
echo "$body" > "$output_dir/speckit.$name.$ext" ;;
100100
esac
101101
done
@@ -146,8 +146,8 @@ build_variant() {
146146
generate_commands gemini toml "{{args}}" "$base_dir/.gemini/commands" "$script"
147147
[[ -f agent_templates/gemini/GEMINI.md ]] && cp agent_templates/gemini/GEMINI.md "$base_dir/GEMINI.md" ;;
148148
copilot)
149-
mkdir -p "$base_dir/.github/chatmodes"
150-
generate_commands copilot chatmode.md "\$ARGUMENTS" "$base_dir/.github/chatmodes" "$script"
149+
mkdir -p "$base_dir/.github/prompts"
150+
generate_commands copilot prompt.md "\$ARGUMENTS" "$base_dir/.github/prompts" "$script"
151151
# Create VS Code workspace settings
152152
mkdir -p "$base_dir/.vscode"
153153
[[ -f templates/vscode-settings.json ]] && cp templates/vscode-settings.json "$base_dir/.vscode/settings.json"

AGENTS.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Specify supports multiple AI agents by generating agent-specific command files a
3333
|-------|-----------|---------|----------|-------------|
3434
| **Claude Code** | `.claude/commands/` | Markdown | `claude` | Anthropic's Claude Code CLI |
3535
| **Gemini CLI** | `.gemini/commands/` | TOML | `gemini` | Google's Gemini CLI |
36-
| **GitHub Copilot** | `.github/chatmodes/` | Markdown | N/A (IDE-based) | GitHub Copilot in VS Code |
36+
| **GitHub Copilot** | `.github/prompts/` | Markdown | N/A (IDE-based) | GitHub Copilot in VS Code |
3737
| **Cursor** | `.cursor/commands/` | Markdown | `cursor-agent` | Cursor CLI |
3838
| **Qwen Code** | `.qwen/commands/` | TOML | `qwen` | Alibaba's Qwen Code CLI |
3939
| **opencode** | `.opencode/command/` | Markdown | `opencode` | opencode CLI |
@@ -318,7 +318,10 @@ Command content with {SCRIPT} and $ARGUMENTS placeholders.
318318

319319
**GitHub Copilot Chat Mode format:**
320320
```markdown
321-
# Command Name
321+
---
322+
description: "Command description"
323+
mode: speckit.command-name
324+
---
322325

323326
Command content with {SCRIPT} and $ARGUMENTS placeholders.
324327
```
@@ -338,7 +341,7 @@ Command content with {SCRIPT} and {{args}} placeholders.
338341

339342
- **CLI agents**: Usually `.<agent-name>/commands/`
340343
- **IDE agents**: Follow IDE-specific patterns:
341-
- Copilot: `.github/chatmodes/`
344+
- Copilot: `.github/prompts/`
342345
- Cursor: `.cursor/commands/`
343346
- Windsurf: `.windsurf/workflows/`
344347

scripts/bash/update-agent-context.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ AGENT_TYPE="${1:-}"
6161
# Agent-specific file paths
6262
CLAUDE_FILE="$REPO_ROOT/CLAUDE.md"
6363
GEMINI_FILE="$REPO_ROOT/GEMINI.md"
64-
COPILOT_FILE="$REPO_ROOT/.github/chatmodes/copilot-instructions.md"
64+
COPILOT_FILE="$REPO_ROOT/.github/prompts/copilot-instructions.md"
6565
CURSOR_FILE="$REPO_ROOT/.cursor/rules/specify-rules.mdc"
6666
QWEN_FILE="$REPO_ROOT/QWEN.md"
6767
AGENTS_FILE="$REPO_ROOT/AGENTS.md"

scripts/powershell/update-agent-context.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $NEW_PLAN = $IMPL_PLAN
4646
# Agent file paths
4747
$CLAUDE_FILE = Join-Path $REPO_ROOT 'CLAUDE.md'
4848
$GEMINI_FILE = Join-Path $REPO_ROOT 'GEMINI.md'
49-
$COPILOT_FILE = Join-Path $REPO_ROOT '.github/chatmodes/copilot-instructions.md'
49+
$COPILOT_FILE = Join-Path $REPO_ROOT '.github/prompts/copilot-instructions.md'
5050
$CURSOR_FILE = Join-Path $REPO_ROOT '.cursor/rules/specify-rules.mdc'
5151
$QWEN_FILE = Join-Path $REPO_ROOT 'QWEN.md'
5252
$AGENTS_FILE = Join-Path $REPO_ROOT 'AGENTS.md'

templates/commands/analyze.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
3+
mode: speckit.analyze
34
scripts:
45
sh: scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
56
ps: scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks

templates/commands/checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Generate a custom checklist for the current feature based on user requirements.
3+
mode: speckit.checklist
34
scripts:
45
sh: scripts/bash/check-prerequisites.sh --json
56
ps: scripts/powershell/check-prerequisites.ps1 -Json

templates/commands/clarify.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
3+
mode: speckit.clarify
34
scripts:
45
sh: scripts/bash/check-prerequisites.sh --json --paths-only
56
ps: scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly

templates/commands/constitution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
3+
mode: speckit.constitution
34
handoffs:
45
- label: Build Specification
56
agent: speckit.specify

templates/commands/implement.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
3+
mode: speckit.implement
34
scripts:
45
sh: scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
56
ps: scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks

templates/commands/plan.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Execute the implementation planning workflow using the plan template to generate design artifacts.
3+
mode: speckit.plan
34
handoffs:
45
- label: Create Tasks
56
agent: speckit.tasks

0 commit comments

Comments
 (0)