Skip to content

💫 Toolkit to help you get started with SDD or any other process!

Merge main into feature/add-qwen-support

Ahmet Çetinkaya856680e3bc6b
diff --cc .github/workflows/release.yml
index fabcef621,bb29563b8..c7f66e66f
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@@ -16,117 -16,116 +16,119 @@@ jobs
permissions:
contents: write
pull-requests: write
-
steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Get latest tag
- id: get_tag
- run: |
- # Get the latest tag, or use v0.0.0 if no tags exist
- LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
- echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
-
- # Extract version number and increment
- VERSION=$(echo $LATEST_TAG | sed 's/v//')
- IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
- MAJOR=${VERSION_PARTS[0]:-0}
- MINOR=${VERSION_PARTS[1]:-0}
- PATCH=${VERSION_PARTS[2]:-0}
-
- # Increment patch version
- PATCH=$((PATCH + 1))
- NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
-
- echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
- echo "New version will be: $NEW_VERSION"
-
- - name: Check if release already exists
- id: check_release
- run: |
- if gh release view ${{ steps.get_tag.outputs.new_version }} >/dev/null 2>&1; then
- echo "exists=true" >> $GITHUB_OUTPUT
- echo "Release ${{ steps.get_tag.outputs.new_version }} already exists, skipping..."
- else
- echo "exists=false" >> $GITHUB_OUTPUT
- echo "Release ${{ steps.get_tag.outputs.new_version }} does not exist, proceeding..."
- fi
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Create release package
- if: steps.check_release.outputs.exists == 'false'
- run: |
- chmod +x .github/workflows/scripts/create-release-packages.sh
- .github/workflows/scripts/create-release-packages.sh ${{ steps.get_tag.outputs.new_version }}
-
- - name: Generate release notes
- if: steps.check_release.outputs.exists == 'false'
- id: release_notes
- run: |
- # Get commits since last tag
- LAST_TAG=${{ steps.get_tag.outputs.latest_tag }}
- if [ "$LAST_TAG" = "v0.0.0" ]; then
- # Check how many commits we have and use that as the limit
- COMMIT_COUNT=$(git rev-list --count HEAD)
- if [ "$COMMIT_COUNT" -gt 10 ]; then
- COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~10..HEAD)
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Get latest tag
+ id: get_tag
+ run: |
+ # Get the latest tag, or use v0.0.0 if no tags exist
+ LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
+ echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
+
+ # Extract version number and increment
+ VERSION=$(echo $LATEST_TAG | sed 's/v//')
+ IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
+ MAJOR=${VERSION_PARTS[0]:-0}
+ MINOR=${VERSION_PARTS[1]:-0}
+ PATCH=${VERSION_PARTS[2]:-0}
+
+ # Increment patch version
+ PATCH=$((PATCH + 1))
+ NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
+
+ echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
+ echo "New version will be: $NEW_VERSION"
+ - name: Check if release already exists
+ id: check_release
+ run: |
+ if gh release view ${{ steps.get_tag.outputs.new_version }} >/dev/null 2>&1; then
+ echo "exists=true" >> $GITHUB_OUTPUT
+ echo "Release ${{ steps.get_tag.outputs.new_version }} already exists, skipping..."
else
- COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~$COMMIT_COUNT..HEAD 2>/dev/null || git log --oneline --pretty=format:"- %s")
+ echo "exists=false" >> $GITHUB_OUTPUT
+ echo "Release ${{ steps.get_tag.outputs.new_version }} does not exist, proceeding..."
fi
- else
- COMMITS=$(git log --oneline --pretty=format:"- %s" $LAST_TAG..HEAD)
- fi
-
- # Create release notes
- cat > release_notes.md << EOF
- Template release ${{ steps.get_tag.outputs.new_version }}
-
- Updated specification-driven development templates for GitHub Copilot, Claude Code, Gemini CLI, and Qwen Code.
-
- Download the template for your preferred AI assistant:
- - spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip
- - spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip
- - spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip
- - spec-kit-template-qwen-${{ steps.get_tag.outputs.new_version }}.zip
- EOF
-
- echo "Generated release notes:"
- cat release_notes.md
-
- - name: Create GitHub Release
- if: steps.check_release.outputs.exists == 'false'
- run: |
- # Remove 'v' prefix from version for release title
- VERSION_NO_V=${{ steps.get_tag.outputs.new_version }}
- VERSION_NO_V=${VERSION_NO_V#v}
-
- gh release create ${{ steps.get_tag.outputs.new_version }} \
- spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip \
- spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip \
- spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip \
- spec-kit-template-qwen-${{ steps.get_tag.outputs.new_version }}.zip \
- --title "Spec Kit Templates - $VERSION_NO_V" \
- --notes-file release_notes.md
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Update version in pyproject.toml (for release artifacts only)
- if: steps.check_release.outputs.exists == 'false'
- run: |
- # Update version in pyproject.toml (remove 'v' prefix for Python versioning)
- VERSION=${{ steps.get_tag.outputs.new_version }}
- PYTHON_VERSION=${VERSION#v}
-
- if [ -f "pyproject.toml" ]; then
- sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml
- echo "Updated pyproject.toml version to $PYTHON_VERSION (for release artifacts only)"
- fi
-
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Create release package variants
+ if: steps.check_release.outputs.exists == 'false'
+ run: |
+ chmod +x .github/workflows/scripts/create-release-packages.sh
+ .github/workflows/scripts/create-release-packages.sh ${{ steps.get_tag.outputs.new_version }}
+ - name: Generate release notes
+ if: steps.check_release.outputs.exists == 'false'
+ id: release_notes
+ run: |
+ # Get commits since last tag
+ LAST_TAG=${{ steps.get_tag.outputs.latest_tag }}
+ if [ "$LAST_TAG" = "v0.0.0" ]; then
+ # Check how many commits we have and use that as the limit
+ COMMIT_COUNT=$(git rev-list --count HEAD)
+ if [ "$COMMIT_COUNT" -gt 10 ]; then
+ COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~10..HEAD)
+ else
+ COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~$COMMIT_COUNT..HEAD 2>/dev/null || git log --oneline --pretty=format:"- %s")
+ fi
+ else
+ COMMITS=$(git log --oneline --pretty=format:"- %s" $LAST_TAG..HEAD)
+ fi
+
+ # Create release notes
+ cat > release_notes.md << EOF
+ Template release ${{ steps.get_tag.outputs.new_version }}
+
+ Updated specification-driven development templates for GitHub Copilot, Claude Code, Gemini CLI, and Cursor.
+
+ Now includes per-script variants for POSIX shell (sh) and PowerShell (ps).
+
+ Download the template for your preferred AI assistant + script type:
+ - spec-kit-template-copilot-sh-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-copilot-ps-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-claude-sh-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-claude-ps-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-gemini-sh-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-gemini-ps-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-cursor-sh-${{ steps.get_tag.outputs.new_version }}.zip
+ - spec-kit-template-cursor-ps-${{ steps.get_tag.outputs.new_version }}.zip
+ EOF
+
+ echo "Generated release notes:"
+ cat release_notes.md
+ - name: Create GitHub Release
+ if: steps.check_release.outputs.exists == 'false'
+ run: |
+ # Remove 'v' prefix from version for release title
+ VERSION_NO_V=${{ steps.get_tag.outputs.new_version }}
+ VERSION_NO_V=${VERSION_NO_V#v}
+
+ gh release create ${{ steps.get_tag.outputs.new_version }} \
+ spec-kit-template-copilot-sh-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-copilot-ps-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-claude-sh-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-claude-ps-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-gemini-sh-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-gemini-ps-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-cursor-sh-${{ steps.get_tag.outputs.new_version }}.zip \
+ spec-kit-template-cursor-ps-${{ steps.get_tag.outputs.new_version }}.zip \
+ --title "Spec Kit Templates - $VERSION_NO_V" \
+ --notes-file release_notes.md
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Update version in pyproject.toml (for release artifacts only)
+ if: steps.check_release.outputs.exists == 'false'
+ run: |
+ # Update version in pyproject.toml (remove 'v' prefix for Python versioning)
+ VERSION=${{ steps.get_tag.outputs.new_version }}
+ PYTHON_VERSION=${VERSION#v}
+
+ if [ -f "pyproject.toml" ]; then
+ sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml
+ echo "Updated pyproject.toml version to $PYTHON_VERSION (for release artifacts only)"
+ fi
++
+ # Note: No longer committing version changes back to main branch
+ # The version is only updated in the release artifacts
diff --cc .github/workflows/scripts/create-release-packages.sh
index a9867620a,3f5e70185..dbee8842f
--- a/.github/workflows/scripts/create-release-packages.sh
+++ b/.github/workflows/scripts/create-release-packages.sh
@@@ -59,44 -80,112 +80,116 @@@ generate_commands()
done
}
- # Create Claude package
- echo "Building Claude package..."
- mkdir -p sdd-claude-package
- cp -r sdd-package-base/. sdd-claude-package/
- mkdir -p sdd-claude-package/.claude/commands
- generate_commands claude md "\$ARGUMENTS" sdd-claude-package/.claude/commands
- echo "Created Claude package"
+ build_variant() {
+ local agent=$1 script=$2
+ local base_dir="sdd-${agent}-package-${script}"
+ echo "Building $agent ($script) package..."
+ mkdir -p "$base_dir"
+
+ # Copy base structure but filter scripts by variant
+ SPEC_DIR="$base_dir/.specify"
+ mkdir -p "$SPEC_DIR"
+
+ [[ -d memory ]] && { cp -r memory "$SPEC_DIR/"; echo "Copied memory -> .specify"; }
+
+ # Only copy the relevant script variant directory
+ if [[ -d scripts ]]; then
+ mkdir -p "$SPEC_DIR/scripts"
+ case $script in
+ sh)
+ [[ -d scripts/bash ]] && { cp -r scripts/bash "$SPEC_DIR/scripts/"; echo "Copied scripts/bash -> .specify/scripts"; }
+ # Copy any script files that aren't in variant-specific directories
+ find scripts -maxdepth 1 -type f -exec cp {} "$SPEC_DIR/scripts/" \; 2>/dev/null || true
+ ;;
+ ps)
+ [[ -d scripts/powershell ]] && { cp -r scripts/powershell "$SPEC_DIR/scripts/"; echo "Copied scripts/powershell -> .specify/scripts"; }
+ # Copy any script files that aren't in variant-specific directories
+ find scripts -maxdepth 1 -type f -exec cp {} "$SPEC_DIR/scripts/" \; 2>/dev/null || true
+ ;;
+ esac
+ fi
+
+ [[ -d templates ]] && { mkdir -p "$SPEC_DIR/templates"; find templates -type f -not -path "templates/commands/*" -exec cp --parents {} "$SPEC_DIR"/ \; ; echo "Copied templates -> .specify/templates"; }
+ # Inject variant into plan-template.md within .specify/templates if present
+ local plan_tpl="$base_dir/.specify/templates/plan-template.md"
+ if [[ -f "$plan_tpl" ]]; then
+ plan_norm=$(tr -d '\r' < "$plan_tpl")
+ variant_line=$(printf '%s\n' "$plan_norm" | grep -E "<!--[[:space:]]*VARIANT:$script" | head -1 | sed -E "s/.*VARIANT:$script[[:space:]]+//; s/-->.*//; s/^[[:space:]]+//; s/[[:space:]]+$//")
+ if [[ -n $variant_line ]]; then
+ tmp_file=$(mktemp)
+ sed "s|VARIANT-INJECT|${variant_line}|" "$plan_tpl" | tr -d '\r' | sed "s|__AGENT__|${agent}|g" | sed '/<!--[[:space:]]*VARIANT:sh/d' | sed '/<!--[[:space:]]*VARIANT:ps/d' > "$tmp_file" && mv "$tmp_file" "$plan_tpl"
+ else
+ echo "Warning: no plan-template variant for $script (pattern not matched)" >&2
+ fi
+ fi
+ case $agent in
+ claude)
+ mkdir -p "$base_dir/.claude/commands"
+ generate_commands claude md "\$ARGUMENTS" "$base_dir/.claude/commands" "$script" ;;
+ gemini)
+ mkdir -p "$base_dir/.gemini/commands"
+ generate_commands gemini toml "{{args}}" "$base_dir/.gemini/commands" "$script"
+ [[ -f agent_templates/gemini/GEMINI.md ]] && cp agent_templates/gemini/GEMINI.md "$base_dir/GEMINI.md" ;;
+ copilot)
+ mkdir -p "$base_dir/.github/prompts"
+ generate_commands copilot prompt.md "\$ARGUMENTS" "$base_dir/.github/prompts" "$script" ;;
+ cursor)
+ mkdir -p "$base_dir/.cursor/commands"
+ generate_commands cursor md "\$ARGUMENTS" "$base_dir/.cursor/commands" "$script" ;;
++ qwen)
++ mkdir -p "$base_dir/.qwen/commands"
++ generate_commands qwen md "\$ARGUMENTS" "$base_dir/.qwen/commands" "$script"
++ [[ -f agent_templates/qwen/QWEN.md ]] && cp agent_templates/qwen/QWEN.md "$base_dir/QWEN.md" ;;
+ esac
+ ( cd "$base_dir" && zip -r "../spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip" . )
+ echo "Created spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip"
+ }
+
+ # Determine agent list
-ALL_AGENTS=(claude gemini copilot cursor)
++ALL_AGENTS=(claude gemini copilot cursor qwen)
+ ALL_SCRIPTS=(sh ps)
+
+ norm_list() {
+ # convert comma+space separated -> space separated unique while preserving order of first occurrence
+ tr ',\n' ' ' | awk '{for(i=1;i<=NF;i++){if(!seen[$i]++){printf((out?" ":"") $i)}}}END{printf("\n")}'
+ }
+
+ validate_subset() {
+ local type=$1; shift; local -n allowed=$1; shift; local items=($@)
+ local ok=1
+ for it in "${items[@]}"; do
+ local found=0
+ for a in "${allowed[@]}"; do [[ $it == $a ]] && { found=1; break; }; done
+ if [[ $found -eq 0 ]]; then
+ echo "Error: unknown $type '$it' (allowed: ${allowed[*]})" >&2
+ ok=0
+ fi
+ done
+ return $ok
+ }
- # Create Gemini package
- echo "Building Gemini package..."
- mkdir -p sdd-gemini-package
- cp -r sdd-package-base/. sdd-gemini-package/
- mkdir -p sdd-gemini-package/.gemini/commands
- generate_commands gemini toml "{{args}}" sdd-gemini-package/.gemini/commands
- [[ -f agent_templates/gemini/GEMINI.md ]] && cp agent_templates/gemini/GEMINI.md sdd-gemini-package/GEMINI.md
- echo "Created Gemini package"
+ if [[ -n ${AGENTS:-} ]]; then
+ AGENT_LIST=($(printf '%s' "$AGENTS" | norm_list))
+ validate_subset agent ALL_AGENTS "${AGENT_LIST[@]}" || exit 1
+ else
+ AGENT_LIST=(${ALL_AGENTS[@]})
+ fi
- # Create Copilot package
- echo "Building Copilot package..."
- mkdir -p sdd-copilot-package
- cp -r sdd-package-base/. sdd-copilot-package/
- mkdir -p sdd-copilot-package/.github/prompts
- generate_commands copilot prompt.md "\$ARGUMENTS" sdd-copilot-package/.github/prompts
- echo "Created Copilot package"
+ if [[ -n ${SCRIPTS:-} ]]; then
+ SCRIPT_LIST=($(printf '%s' "$SCRIPTS" | norm_list))
+ validate_subset script ALL_SCRIPTS "${SCRIPT_LIST[@]}" || exit 1
+ else
+ SCRIPT_LIST=(${ALL_SCRIPTS[@]})
+ fi
- # Create Qwen package
- echo "Building Qwen package..."
- mkdir -p sdd-qwen-package
- cp -r sdd-package-base/. sdd-qwen-package/
- mkdir -p sdd-qwen-package/.qwen/commands
- generate_commands qwen md "\$ARGUMENTS" sdd-qwen-package/.qwen/commands
- [[ -f agent_templates/qwen/QWEN.md ]] && cp agent_templates/qwen/QWEN.md sdd-qwen-package/QWEN.md
- echo "Created Qwen package"
+ echo "Agents: ${AGENT_LIST[*]}"
+ echo "Scripts: ${SCRIPT_LIST[*]}"
- ( cd sdd-claude-package && zip -r ../spec-kit-template-claude-${NEW_VERSION}.zip . )
- ( cd sdd-gemini-package && zip -r ../spec-kit-template-gemini-${NEW_VERSION}.zip . )
- ( cd sdd-copilot-package && zip -r ../spec-kit-template-copilot-${NEW_VERSION}.zip . )
- ( cd sdd-qwen-package && zip -r ../spec-kit-template-qwen-${NEW_VERSION}.zip . )
+ for agent in "${AGENT_LIST[@]}"; do
+ for script in "${SCRIPT_LIST[@]}"; do
+ build_variant "$agent" "$script"
+ done
+ done
echo "Archives:"
ls -1 spec-kit-template-*-${NEW_VERSION}.zip
diff --cc README.md
index 0347b30fa,153d1dbe6..f70f8d99f
--- a/README.md
+++ b/README.md
@@@ -152,7 -163,7 +163,7 @@@ Our research and experimentation focus
## 🔧 Prerequisites
- **Linux/macOS** (or WSL2 on Windows)
- - AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), [Gemini CLI](https://github.com/google-gemini/gemini-cli), or [Qwen CLI](https://github.com/QwenLM/qwen-code)
-- AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), [Gemini CLI](https://github.com/google-gemini/gemini-cli), or [Cursor](https://cursor.sh/)
++- AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [Cursor](https://cursor.sh/), or [Qwen CLI](https://github.com/QwenLM/qwen-code)
- [uv](https://docs.astral.sh/uv/) for package management
- [Python 3.11+](https://www.python.org/downloads/)
- [Git](https://git-scm.com/downloads)
diff --cc src/specify_cli/__init__.py
index 9289914f1,88c166998..1aa5f73a6
--- a/src/specify_cli/__init__.py
+++ b/src/specify_cli/__init__.py
@@@ -57,8 -57,10 +57,11 @@@ AI_CHOICES =
"copilot": "GitHub Copilot",
"claude": "Claude Code",
"gemini": "Gemini CLI",
- "cursor": "Cursor"
++ "cursor": "Cursor",
+ "qwen": "Qwen Code"
}
+ # Add script type choices
+ SCRIPT_TYPE_CHOICES = {"sh": "POSIX Shell (bash/zsh)", "ps": "PowerShell"}
# Claude CLI local installation path after migrate-installer
CLAUDE_LOCAL_PATH = Path.home() / ".claude" / "local" / "claude"
@@@ -723,7 -722,8 +723,8 @@@ def ensure_executable_scripts(project_p
@app.command()
def init(
project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here)"),
- ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, or qwen"),
- ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, or cursor"),
++ ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor, or qwen"),
+ script_type: str = typer.Option(None, "--script", help="Script type to use: sh or ps"),
ignore_agent_tools: bool = typer.Option(False, "--ignore-agent-tools", help="Skip checks for AI agent tools like Claude Code"),
no_git: bool = typer.Option(False, "--no-git", help="Skip git repository initialization"),
here: bool = typer.Option(False, "--here", help="Initialize project in the current directory instead of creating a new one"),
@@@ -734,7 -735,7 +736,7 @@@
This command will:
1. Check that required tools are installed (git is optional)
- 2. Let you choose your AI assistant (Claude Code, Gemini CLI, GitHub Copilot, or Qwen Code)
- 2. Let you choose your AI assistant (Claude Code, Gemini CLI, GitHub Copilot, or Cursor)
++ 2. Let you choose your AI assistant (Claude Code, Gemini CLI, GitHub Copilot, Cursor, or Qwen Code)
3. Download the appropriate template from GitHub
4. Extract the template to a new project directory or current directory
5. Initialize a fresh git repository (if not --no-git and no existing repo)
@@@ -745,7 -746,7 +747,8 @@@
specify init my-project --ai claude
specify init my-project --ai gemini
specify init my-project --ai copilot --no-git
+ specify init my-project --ai cursor
+ specify init my-project --ai qwen
specify init --ignore-agent-tools my-project
specify init --here --ai claude
specify init --here
@@@ -824,12 -825,7 +827,12 @@@
if not check_tool("gemini", "Install from: https://github.com/google-gemini/gemini-cli"):
console.print("[red]Error:[/red] Gemini CLI is required for Gemini projects")
agent_tool_missing = True
+ elif selected_ai == "qwen":
+ if not check_tool("qwen", "Install from: https://github.com/QwenLM/qwen-code"):
+ console.print("[red]Error:[/red] Qwen CLI is required for Qwen Code projects")
+ agent_tool_missing = True
- # GitHub Copilot check is not needed as it's typically available in supported IDEs
-
++ # GitHub Copilot and Cursor checks are not needed as they're typically available in supported IDEs
+
if agent_tool_missing:
console.print("\n[red]Required AI tool is missing![/red]")
console.print("[yellow]Tip:[/yellow] Use --ignore-agent-tools to skip this check")
@@@ -924,13 -950,8 +957,14 @@@
steps_lines.append(" - See GEMINI.md for all available commands")
elif selected_ai == "copilot":
steps_lines.append(f"{step_num}. Open in Visual Studio Code and use [bold cyan]/specify[/], [bold cyan]/plan[/], [bold cyan]/tasks[/] commands with GitHub Copilot")
+ elif selected_ai == "qwen":
+ steps_lines.append(f"{step_num}. Use / commands with Qwen CLI")
+ steps_lines.append(" - Run qwen /specify to create specifications")
+ steps_lines.append(" - Run qwen /plan to create implementation plans")
+ steps_lines.append(" - Run qwen /tasks to generate tasks")
+ steps_lines.append(" - See QWEN.md for all available commands")
+ # Removed script variant step (scripts are transparent to users)
step_num += 1
steps_lines.append(f"{step_num}. Update [bold magenta]CONSTITUTION.md[/bold magenta] with your project's non-negotiable principles")
@@@ -954,13 -975,18 +988,20 @@@ def check()
tracker.add("git", "Git version control")
tracker.add("claude", "Claude Code CLI")
tracker.add("gemini", "Gemini CLI")
+ tracker.add("qwen", "Qwen Code CLI")
+ tracker.add("code", "VS Code (for GitHub Copilot)")
+ tracker.add("cursor-agent", "Cursor IDE agent (optional)")
# Check each tool
git_ok = check_tool_for_tracker("git", "https://git-scm.com/downloads", tracker)
claude_ok = check_tool_for_tracker("claude", "https://docs.anthropic.com/en/docs/claude-code/setup", tracker)
gemini_ok = check_tool_for_tracker("gemini", "https://github.com/google-gemini/gemini-cli", tracker)
+ qwen_ok = check_tool_for_tracker("qwen", "https://github.com/QwenLM/qwen-code", tracker)
+ # Check for VS Code (code or code-insiders)
+ code_ok = check_tool_for_tracker("code", "https://code.visualstudio.com/", tracker)
+ if not code_ok:
+ code_ok = check_tool_for_tracker("code-insiders", "https://code.visualstudio.com/insiders/", tracker)
+ cursor_ok = check_tool_for_tracker("cursor-agent", "https://cursor.sh/", tracker)
# Render the final tree
console.print(tracker.render())