Use GitHub Spec Kit with QWEN Code CLI

ยท
2 min read
tech programming ai-tools
#ai #github #api #development #specifications

Learn how to integrate GitHub Spec Kit with QWEN Code CLI for enhanced spec-driven development. Discover workflows that combine specification management with AI-powered coding assistance for more efficient software projects.

TL;DR:

  • Initialize a new Spec Kit project.
  • Rename .gemini to .qwen for QWEN compatibility.
  • Use Spec Kit commands in QWEN CLI for spec-driven development.

Step-by-Step Integration Guide

Step 1: Initialize Spec Project

Create a new project directory with GitHub Spec Kit configured for QWEN Code CLI.

Option A: New Project Directory

Terminal window
uvx --from git+https://github.com/github/spec-kit.git specify init --ai gemini --script sh <PROJECT_NAME>
cd <PROJECT_NAME>

Replace <PROJECT_NAME> with your desired project name.

Option B: Current Directory

Initialize Spec Kit in your current directory.

Terminal window
uvx --from git+https://github.com/github/spec-kit.git specify init --ai gemini --script sh --here

Step 2: Configure QWEN Integration

After initialization, rename the .gemini directory to .qwen for QWEN CLI compatibility.

Terminal window
mv .gemini .qwen

Either you find any reference in .specify directory or ask Qwen Code to do it:

Terminal window
qwen -y -p "find files in .specify that contains Gemini-related usage. Copy the syntax and adapt it for Qwen Code. Strictly edit the files, add the syntax, and don't do anything else"

Now, all GitHub Spec Kit commands are available in QWEN Code CLI.

Usage Examples

Basic Spec Creation

Create a simple spec and generate a plan.

Terminal window
/specify Build a weather dashboard that shows current conditions and 7-day forecast for user-selected cities
/plan Use React for frontend, Express.js for backend, OpenWeatherMap API for data
/tasks

Advanced Research Integration

Research technologies first, then plan a complex system.

Terminal window
/specify Create an e-commerce platform with payment processing, inventory management, and user reviews
/plan Research Stripe integration, PostgreSQL for data, Redis for caching, Docker for deployment

Constitution Compliance

Check if your spec follows simplicity rules.

Terminal window
/specify Build a microservice architecture with 5 services

The system warns about complexity and suggests fewer services.

References