More Controllable AI Coding: GitHub's Own Spec-kit for a Silky-Smooth Development Flow

GitHub's own AI coding tool Spec Kit gives you a silky-smooth development workflow and lets your AI build enterprise-grade applications with ease.

Regulating AI coding through SDD (Spec-Driven Development) to make AI more controllable has already become feasible.

What I'm covering in detail today is spec-kit, developed by GitHub itself.

It really is quite rare for GitHub to develop a tool with its own hands. Having used it, my overall impression is very good: both the design philosophy and the actual experience reflect GitHub's deep understanding of what developers need. It has also picked up 62.3K stars from the community — the most among the three open-source tools I covered earlier.

Installation

Open-source repository: https://github.com/github/spec-kit

Star count: 62.3K

Install command, to run on a machine that already has Python and the uv tool installed:

uv tool install specify-cli --from git+https://github.com/github/spec-kit.git

Initialization

After installing, use the command line to initialize:

specify init --here

When it finishes, it creates three folders — memory, scripts, and templates — under the .specify folder in the root directory. That is quite a bit more than the openSpec I covered earlier. And because some of its features are implemented through scripts, it curbs the AI's freedom to improvise to a degree, which makes the output more stable.

Some tools need a restart before /命令 takes effect.

Usage

The development flow has 8 steps in total, 3 of which are optional

The corresponding commands are as follows:

  • /speckit.constitution Establish project principles
  • /speckit.specify Draft the baseline specification
  • /speckit.clarify Optional step, requirement clarification: before planning, use structured questions to eliminate the risk of ambiguous areas;
  • /speckit.plan Create the implementation plan
  • /speckit.checklist Optional step, document validation: draw up a quality checklist to verify the completeness, clarity, and consistency of the requirements;
  • /speckit.tasks Generate executable tasks
  • /speckit.analyze Optional step, alignment report: a cross-deliverable consistency and alignment report;
  • /speckit.implement Carry out the implementation plan

Constitution: establish project principles

If you have no special requirements, just use the official content — but remember to convert it to Chinese. If you copy the official prompt, all the following steps will answer in English, and the documents will be in English too.

Type the following into the chat box:

/speckit.constitution 制定以代码质量、测试标准、用户体验一致性和性能要求为核心的原则

When it's done, it updates the constitution.md document in the .specify/memory folder.

Normally you don't need to change it, unless you want to loosen some release conditions — not requiring 100% unit test coverage, say — or you want to use spec-kit for non-programming work such as writing a medium-length or full-length novel.

Specify: draft the baseline specification

After that you can start on requirement development. Type into the chat box:

/speckit.specify 做一个xx网站/app,实现xxx功能。请使用中文回答。

As above, spec-kit's Chinese support is so-so and it may answer in English, so you still need to add "please answer in Chinese".

If the project is linked to GitHub, it will also automatically create a new branch and switch to it.

After the command runs, it generates the checklist and spec documents.

  • checklist document: a preliminary verification checklist; if you don't use /speckit.checklist later, you can ignore it.
  • spec document: the most important document, roughly broken down into the following content:

Anyone who has done agile development should find the content of the spec document familiar.

If you haven't done agile development, don't worry — understanding the user scenarios and the user stories in the tests isn't actually complicated: they are essentially about standing in the user's shoes and running through the flow from beginning to end. For a "user login" scenario, for example, you need to simulate a real user opening the app, entering an account and password, clicking the login button, and verifying whether they successfully land on the home page.

Through that shift in perspective, you can more effectively check whether the flow has logic holes, misleading UI, or missing features.

If you're worried that you've overlooked something, or that you don't have clear requirements, you can let the AI help. Type into the chat box:

/speckit.clarify

The AI takes your pulse for you again: at this point it raises a few key questions for you to choose from.

Plan: create the implementation plan

Once the requirements spec document is confirmed, you can move on to detailed design and laying out the development plan. Type into the chat box:

/speckit.plan

After validating the requirements document, it starts generating the following documents:

  • plan document: project architecture, key technology choices
  • research document: the reasoning and decision process behind the technology choices
  • data-model document: field names and indexes already defined, plus some relationship diagrams and state machine content
  • openapi.YAML: interface definitions.

During this stage it calls search tools to get the latest technical information and research best practices, so the result better fits current technical requirements. That makes the overall project quality better than what a plain plan mode in an IDE/CLI tool produces.

It also takes the data model into account, with detailed designs for the backend database and frontend state management. And interface definitions have moved from markdown documents to YAML documents. All of this ensures that the project you develop can actually run.

If you want the AI to check things for you later, you can type into the chat box again:

/speckit.checklist

It will then ask which checks you want to run:

When it's done, it generates some checklists in the checklist folder. These get validated later when the tasks are executed.

Tasks: generate executable tasks

Type into the chat box:

/speckit.tasks

It generates the executable task document task.md.

In the document, tasks are tied to specific user stories — [US1], for instance, is the content linked to the first user story. In addition, [P] marks tasks that can run in parallel. If the tool can execute in parallel, like Claude Code, things speed up a lot.

Compared with other tools that only describe things roughly, speckit is precise down to the specific files to be modified. And the final tasks include explicit testing tasks as well.

These are the strengths of how it divides up tasks, and to some extent they are also what guarantees later quality.

There is also a dependency graph for all the tasks:

If a later task depends on an earlier one, it forces the earlier task to run first. The Phase 3 tasks above, for example, depend on the Phase 1 and Phase 2 tasks; when executed, it checks whether the earlier work is done, and if not it jumps back to Phase 1 and Phase 2:

Of course, it's still best to execute in dependency order. If you use Claude Code, you can try running dependency-free tasks in multiple windows, which also speeds things up — Phase 3 and Phase 4 above, for instance.

If you go back and change requirements or technical details after this stage, the changes can still be automatically updated into the tasks. Still, it's better to nail down all the technical details in the previous step.

Implement: carry out the implementation plan

Once the task list is confirmed, start executing the tasks. Type into the chat box:

# 全部任务
/specify.implement
# 或者具体的任务
/specify.implement 开始实施 Phase 1
# 或者具体的多个任务
/specify.implement 开始实施 T001-T005

You can choose to execute one of them, several of them, or all of them.

For various reasons, fully automatic execution isn't possible yet. Every so often the developer needs to look and see what's going on. The command may need authorization, memory usage may go over 100%, or a task may be interrupted — all of which require manual confirmation or typing "continue".

If you aren't using official models from Claude, Gemini, or OpenAI, it's still best to verify in the development environment after each scenario Phase before running the next step; that reduces debugging hassle later.

Also, test tasks consume a fair amount of time and tokens, so I suggest running the test tasks separately.

There may be tasks that slipped through; you can check at the end.

Results and experience

This is an HR management system I built with 3 Specify iterations.

It's published on GitHub now; if you want the source code, go take a look:

https://github.com/dcchanInSz/hrms_spec

A little ad for the team: if you need systems developed for small and medium businesses, get in touch.

Because it's detailed down to the page level, the error rate isn't high, or the errors are fairly simple ones. This time the issue was a path problem, fixed easily.

The finished pages:

Overall, speckit's development flow is more complete, the odds of finishing a complex project are higher, and the degree of completion is quite good. The quality of the AI's code output is more controllable.

It isn't fully automated, but the chances that a developer needs to look at or modify code are few. While tasks are running, stepping away from the computer for 3-5 minutes is no problem at all.

Because the documents are more complete, I feel much more confident handing development entirely to the AI — no more worrying while waiting, the way I did with Trae / Claude Code Yolo mode.

Of course, the upfront documentation work takes more time too — about 30 minutes for complex tasks. And the only real downside is that Chinese support is so-so.

All in all, if you want to regulate development and get it done by confirming documents, using speckit is absolutely fine.

Five stars, highly recommended!

Related articles

After a quick trial of spec-driven AI development, I found where it fits

More controllable AI coding: the open-source SDD tool OpenSpec