How to Install Spec Kit on Windows with GitHub Copilot | specify-cli Setup

Install Spec Kit on Windows with uv and Python 3.12, fix PyYAML errors, and set up a project with GitHub Copilot step by step.

Spec-driven development is becoming an increasingly useful approach for building software with AI coding assistants. Instead of immediately asking an AI assistant to generate code, you first define what the application should do, establish requirements, create an implementation plan, and then generate development tasks.

Spec Kit provides a structured workflow for doing exactly this. In this guide, we will install Spec Kit on Windows using uv, configure it with Python 3.12, initialize a project, and prepare it for use with GitHub Copilot.

What Is Spec Kit?

Spec Kit is a toolkit designed around specification-driven development. It helps developers describe application requirements before implementation begins.

A typical workflow looks like this:

  • Define project principles and development rules.
  • Create a detailed feature specification.
  • Clarify unclear requirements.
  • Create a technical implementation plan.
  • Generate development tasks.
  • Implement those tasks using an AI coding assistant.

This approach can be particularly useful when working with tools such as GitHub Copilot because it gives the AI much more structured context about the application being developed.

Prerequisites

Before starting, make sure you have the following installed:

  • Windows 10 or Windows 11
  • PowerShell
  • Git
  • Visual Studio Code
  • GitHub Copilot if you plan to use Copilot integration
  • uv Python package and environment manager

Step 1: Verify uv Installation

Open PowerShell and verify that uv is available:

uv --version

If the command returns the installed version, uv is ready to use.

You can also check the Python versions available through uv:

uv python list

Step 2: Install Python 3.12

During my initial setup, the latest Python version available through uv was Python 3.15.

However, installing specify-cli with that Python version resulted in a PyYAML build error.

The installation failed with an error similar to:

error: Failed to build `pyyaml==6.0.3`

cause: The build backend returned an error
cause: Call to `_pyyaml_pep517.build_wheel` failed

Instead of trying to manually repair the PyYAML build process, I installed Python 3.12 and used that version specifically for Spec Kit.

Run:

uv python install 3.12

After installation, you can verify it with:

uv python list

Step 3: Install specify-cli Using Python 3.12

Now install Spec Kit's CLI while explicitly telling uv to use Python 3.12:

uv tool install specify-cli --python 3.12

This avoids the PyYAML compatibility problem encountered with the newer Python version.

Step 4: Verify the Spec Kit Installation

After the installation completes, verify that the specify command is available:

specify version

If the command displays the installed Spec Kit version, the installation has completed successfully.

Step 5: Create a New Spec Kit Project

Now we can initialize a new project.

For this example, I will create a project called:

Data360

Move to the directory where you want to create the project:

cd C:\Projects

Then initialize the project:

specify init Data360 --integration copilot --script ps

Here:

  • Data360 is the project name.
  • --integration copilot configures the project for GitHub Copilot.
  • --script ps configures the generated workflow for PowerShell.

Step 6: Open the Project

After initialization completes, move into the project:

cd Data360

Then open it in Visual Studio Code:

code .

At this point, you should see the Spec Kit project structure generated inside the project directory.

Understanding the Spec-Driven Workflow

Installing Spec Kit is only the first step. The important part is how we use it to build the application.

Instead of immediately generating application code, we move through a structured development workflow.

1. Define the Project Constitution

The constitution defines the development principles that should remain consistent throughout the project.

For example, for a .NET application, the principles might include:

  • Use ASP.NET Core Web API.
  • Follow clean architecture principles.
  • Use dependency injection.
  • Use Entity Framework Core for database access.
  • Use asynchronous APIs wherever appropriate.
  • Add logging and centralized exception handling.
  • Write maintainable and testable code.

2. Create the Feature Specification

Next, describe what you actually want to build.

The specification should focus primarily on the application's requirements rather than implementation details.

For example:

Create a Data360 application that allows users to import,
manage, search and analyze customer information from
multiple data sources.

Users should be able to upload data, validate records,
identify duplicate information and view consolidated
customer profiles.

The more clearly the requirement is described, the easier it becomes for the later planning and implementation stages to produce useful results.

3. Clarify Requirements

Real-world requirements often contain unanswered questions.

For example:

  • Which file formats should be supported?
  • How should duplicate customers be detected?
  • What should happen when validation fails?
  • Which users are allowed to import data?
  • How much data should the application support?

Clarifying these questions before coding can prevent significant rework later.

4. Generate the Technical Plan

Once the requirements are stable, the next stage converts them into an implementation plan.

For a .NET project, the plan might define technologies such as:

Backend       : ASP.NET Core Web API
Language      : C#
Database      : SQL Server
ORM           : Entity Framework Core
Authentication: ASP.NET Core Identity
API Docs      : Swagger / OpenAPI
Testing       : xUnit

The technical plan connects the business specification with the actual application architecture.

5. Generate Development Tasks

The implementation plan can then be converted into smaller development tasks.

For example:

1. Create ASP.NET Core solution
2. Configure project architecture
3. Configure SQL Server
4. Add Entity Framework Core
5. Create domain models
6. Add authentication
7. Create import service
8. Implement validation
9. Create customer APIs
10. Add Swagger
11. Add unit tests

Breaking the project into smaller tasks makes AI-assisted development easier to review and control.

Why Use Spec Kit with GitHub Copilot?

AI coding assistants are powerful, but vague instructions can result in inconsistent implementations.

For example, asking:

Build a customer data management application.

leaves many architectural and functional decisions undefined.

A specification-driven workflow instead provides Copilot with structured information about:

  • what the application should do,
  • what constraints must be followed,
  • which architecture should be used,
  • which tasks need to be completed, and
  • how the final implementation should behave.

This can make AI-assisted development more predictable and easier to maintain.

Troubleshooting: PyYAML Installation Error

One of the main problems I encountered during installation occurred when running:

uv tool install specify-cli

The installation attempted to use Python 3.15 and failed while building PyYAML.

The working solution was:

uv python install 3.12

uv tool install specify-cli --python 3.12

Then verify:

specify version

This successfully installed the CLI without requiring manual PyYAML compilation changes.

Complete Setup Commands

Here is the complete sequence used in this setup:

uv --version

uv python list

uv python install 3.12

uv tool install specify-cli --python 3.12

specify version

cd C:\Projects

specify init Data360 --integration copilot --script ps

cd Data360

code .

What Comes Next?

After creating the project, the next step is not immediately writing hundreds of lines of code.

Instead, we can use the Spec Kit workflow to define the application requirements, clarify them, design the technical architecture, generate development tasks, and then begin implementation with GitHub Copilot.

In the next article, we can build the Data360 application step by step using Spec Kit and ASP.NET Core, starting from the specification and continuing all the way to implementation.

Conclusion

Spec Kit introduces a structured approach to AI-assisted software development. Rather than relying on a series of disconnected prompts, the project begins with requirements and gradually converts those requirements into an actionable implementation plan.

For Windows users who encounter PyYAML installation problems with newer Python versions, installing Python 3.12 through uv and using it explicitly for specify-cli provides a straightforward solution.

With Spec Kit installed and the project initialized, we are now ready to start building a real application using specification-driven development, GitHub Copilot and .NET.

Hello! My name is Aniket Shahane and I am a senior software consultant. I hold a post-graduate degree (MTech) in Computer Science and Engineering, and I have a passion for using my technical expertise to solve complex problems. I am excited to be here and eager to share my knowledge and experience with you.

Post a Comment