Skip to content

Commit d09552f

Browse files
committed
fix: align Cursor agent naming to use 'cursor-agent' consistently
The Python CLI was configured to use "cursor-agent" as the agent key in AGENT_CONFIG, causing it to search for release packages with the pattern "spec-kit-template-cursor-agent-sh-*.zip". However, the release build scripts were generating packages named "spec-kit-template-cursor-sh-*.zip", resulting in a mismatch that prevented successful template downloads. This commit updates the release scripts to use "cursor-agent" consistently throughout, aligning with the AGENT_CONFIG key and the documented best practice of using actual CLI tool names as dictionary keys. Changes: - Update ALL_AGENTS array in create-release-packages.sh - Update case statement for cursor-agent in build_variant() - Update release asset paths in create-github-release.sh - Update documentation in README.md and AGENTS.md to reflect correct usage This ensures that `specify init --ai cursor-agent` correctly finds and downloads the matching release package from GitHub. Fixes the bug where cursor-agent initialization would fail with "No matching release asset found" error. **Written with the help of a cursor agent**
1 parent ed5dbf1 commit d09552f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ gh release create "$VERSION" \
2222
.genreleases/spec-kit-template-claude-ps-"$VERSION".zip \
2323
.genreleases/spec-kit-template-gemini-sh-"$VERSION".zip \
2424
.genreleases/spec-kit-template-gemini-ps-"$VERSION".zip \
25-
.genreleases/spec-kit-template-cursor-sh-"$VERSION".zip \
26-
.genreleases/spec-kit-template-cursor-ps-"$VERSION".zip \
25+
.genreleases/spec-kit-template-cursor-agent-sh-"$VERSION".zip \
26+
.genreleases/spec-kit-template-cursor-agent-ps-"$VERSION".zip \
2727
.genreleases/spec-kit-template-opencode-sh-"$VERSION".zip \
2828
.genreleases/spec-kit-template-opencode-ps-"$VERSION".zip \
2929
.genreleases/spec-kit-template-qwen-sh-"$VERSION".zip \

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -euo pipefail
66
# Usage: .github/workflows/scripts/create-release-packages.sh <version>
77
# Version argument should include leading 'v'.
88
# Optionally set AGENTS and/or SCRIPTS env vars to limit what gets built.
9-
# AGENTS : space or comma separated subset of: claude gemini copilot cursor qwen opencode windsurf codex (default: all)
9+
# AGENTS : space or comma separated subset of: claude gemini copilot cursor-agent qwen opencode windsurf codex (default: all)
1010
# SCRIPTS : space or comma separated subset of: sh ps (default: both)
1111
# Examples:
1212
# AGENTS=claude SCRIPTS=sh $0 v0.2.0
@@ -133,7 +133,7 @@ build_variant() {
133133
[[ -d templates ]] && { mkdir -p "$SPEC_DIR/templates"; find templates -type f -not -path "templates/commands/*" -not -name "vscode-settings.json" -exec cp --parents {} "$SPEC_DIR"/ \; ; echo "Copied templates -> .specify/templates"; }
134134

135135
# NOTE: We substitute {ARGS} internally. Outward tokens differ intentionally:
136-
# * Markdown/prompt (claude, copilot, cursor, opencode): $ARGUMENTS
136+
# * Markdown/prompt (claude, copilot, cursor-agent, opencode): $ARGUMENTS
137137
# * TOML (gemini, qwen): {{args}}
138138
# This keeps formats readable without extra abstraction.
139139

@@ -152,9 +152,9 @@ build_variant() {
152152
mkdir -p "$base_dir/.vscode"
153153
[[ -f templates/vscode-settings.json ]] && cp templates/vscode-settings.json "$base_dir/.vscode/settings.json"
154154
;;
155-
cursor)
155+
cursor-agent)
156156
mkdir -p "$base_dir/.cursor/commands"
157-
generate_commands cursor md "\$ARGUMENTS" "$base_dir/.cursor/commands" "$script" ;;
157+
generate_commands cursor-agent md "\$ARGUMENTS" "$base_dir/.cursor/commands" "$script" ;;
158158
qwen)
159159
mkdir -p "$base_dir/.qwen/commands"
160160
generate_commands qwen toml "{{args}}" "$base_dir/.qwen/commands" "$script"
@@ -190,7 +190,7 @@ build_variant() {
190190
}
191191

192192
# Determine agent list
193-
ALL_AGENTS=(claude gemini copilot cursor qwen opencode windsurf codex kilocode auggie roo codebuddy q)
193+
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy q)
194194
ALL_SCRIPTS=(sh ps)
195195

196196
norm_list() {

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Modify `.github/workflows/scripts/create-release-packages.sh`:
104104

105105
##### Add to ALL_AGENTS array:
106106
```bash
107-
ALL_AGENTS=(claude gemini copilot cursor qwen opencode windsurf q)
107+
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf q)
108108
```
109109

110110
##### Add case statement for directory structure:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ The `specify` command supports the following options:
164164
| Argument/Option | Type | Description |
165165
|------------------------|----------|------------------------------------------------------------------------------|
166166
| `<project-name>` | Argument | Name for your new project directory (optional if using `--here`, or use `.` for current directory) |
167-
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, or `q` |
167+
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor-agent`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, or `q` |
168168
| `--script` | Option | Script variant to use: `sh` (bash/zsh) or `ps` (PowerShell) |
169169
| `--ignore-agent-tools` | Flag | Skip checks for AI agent tools like Claude Code |
170170
| `--no-git` | Flag | Skip git repository initialization |

0 commit comments

Comments
 (0)