---
id: 18460
lang: en
title: "GitHub Spec Kit Makes the AI Agent Write a Spec Before the Code"
published_at: "2026-11-27 16:33:02"
source_name: "X: @liambraus"
source_url: "https://x.com/liambraus/status/2125976477795541088"
canonical_url: "https://news.hamidun.com/en/news/18460"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# GitHub Spec Kit Makes the AI Agent Write a Spec Before the Code

> **Краткая суть (BLUF):** Vibe coding breaks down on vague prompts: the agent fills in the gaps on its own and produces inconsistent code. GitHub has released Spec Kit, an open-source toolkit that makes the AI draft a specification first. The agent asks clarifying questions, outlines the architecture, and only then writes code. The kit works with Claude Code, Cursor, Copilot, Codex, and Gemini CLI. That makes it cheaper to describe a task before starting than to fix the result afterward.  • Commands: /constitution, /specify, /clarify, /plan • Supports more than 25 AI agents, and the code is open on GitHub • The post cites 95–126 thousand stars and 8 thousand forks

A familiar scene: you tell an agent "build a personal account with payments," it cheerfully generates hundreds of lines, and an hour later you discover it picked the wrong stack, renamed half the modules, and ignored your formatting rules. This habit of working "by luck" is called vibe coding, and GitHub has released Spec Kit, an open toolkit for specification-driven development, to push back against it.

## What Spec Kit does

The idea is simple: before the agent touches any code, it has to produce a written description of the task and get it agreed with you. This is like working with a human contractor. A good one doesn't start until the requirements are clarified, while a poor one starts on the first sentence and then rewrites everything.

From a post by the blogger Liam Braus, there are four steps, each triggered by a separate command:

- /constitution sets the project's rules and standards: code style, testing approach, forbidden solutions;
- /specify describes what exactly needs to be built, without tying it to technologies;
- /clarify makes the agent ask questions about whatever remains unclear before work begins;
- /plan fixes the architecture and the choice of stack.

Only after that does the agent move on to the code itself. The specification lives in the repository as ordinary files, so it can be read, edited by hand, and discussed in a pull request just like code.

## Why it helps

The main problem with agents isn't that they can't write code, but that they lack context. When a request is vague, the model fills the gaps with guesses, and different guesses in different parts of the project produce inconsistent results. Spec Kit moves those guesses to a stage where they are cheap: answering an agent's question takes a minute, while rewriting a finished module takes much longer.

The author promises fewer "absurd mistakes," less contradictory code, and more predictable results. These are reasonable expectations, but keep in mind that the post contains no independent measurements: it reflects the author's impression, not a verified metric.

Another advantage is portability. According to the author, the kit works with Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, and more than 25 other agents. This means you can write the specification once and switch agents if you like without losing the agreements about the project. Rules and requirements live separately from any particular tool.

## What to consider before adopting it

First, the popularity figures in the post don't match. The beginning mentions more than 126 thousand stars, and the end mentions 95 thousand, plus 8 thousand forks. For an exact number, check the repository page directly, but the overall picture is clear: the project gained popularity very quickly.

Second, the approach adds bureaucracy. For changing a single button or a quick weekend prototype, a chain of four commands is overkill. The benefit shows up on tasks involving several modules, several people, or several agent runs, where it matters that everyone works from the same requirements.

Third, the quality of the specification determines the quality of the result. If you write a vague phrase in /specify, just as you did before in a prompt, no magic will happen. The /clarify step partly protects against this, since the agent surfaces gaps on its own, but responsibility for stating the goal clearly stays with the human.

## Practical takeaway

Teams already working with coding agents should consider trying Spec Kit on one medium-sized feature and comparing how many corrections were needed after the first generation with and without it. If the difference is noticeable, make /constitution a shared rules file for the whole repository. It's a cheap experiment, the tool is open source, it supports the agents you already use, and it doesn't lock you into a single vendor.

---
- **Первоисточник:** [X: @liambraus](https://x.com/liambraus/status/2125976477795541088)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18460
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
