OpenSpec
OpenSpec is a lightweight command-line tool for software developers that automatically generates structured specification documents before coding begins, reducing discrepancies between development intent and actual implementation. Its core workflow spans four phases: propose, continue, apply, and archive. Specification documents are stored in plain Markdown format, require no specific framework or environment dependencies, and are designed to work alongside AI-assisted programming tools.
Core Facts
The development of AI coding tools has gone through three stages: code completion, conversational code generation, and autonomous development agents.
AI model lifecycle management is increasingly important for developers, requiring the establishment of clear deployment, monitoring, and retirement mechanisms.
OpenSpec's Explore mode lets the AI freely explore the codebase, helping to analyze architecture, identify bottlenecks, and understand existing designs.
Timeline (last 90 days)
The author wrote the diagram requirements into OpenSpec's configuration, so they are included in every generation and do not rely on the AI remembering them itself.
After actually running the four-step process, the author found that going back to revise the documents was error-prone, so the core change of SD Flow was changed to "record the minutes first, then write the document": after exploration, first record a temporary decision minutes, fill each decision into the minutes as it is settled during grilling, and finally write the OpenSpec spec document from the minutes in one go.
The author initially combined OpenSpec and grill-me into a four-step process: Explorer divergent chat, OpenSpec generating four documents at once, grill with Docs item-by-item grilling, recording ADRs and the glossary and then going back to revise the documents.
SD Flow was proposed by the Bilibili creator "Lao Da Qian Li" and is a practical process that combines OpenSpec with grill-me.
grill-me handles how to ask (extracting the decisions in the user's head one by one), OpenSpec handles the spec lifecycle (how to write it, how to archive it, how changes are handled); the two are complementary rather than an either-or choice.
The author analyzed 788 open-source repositories using the OpenSpec pattern and found that the write-back step is manual and that no one maintains the text no one reads.
OpenSpec is not a new IDE or platform that you need to migrate to, but rather a Markdown folder in the repository, a small CLI, and a set of instructions for agents.
Everything in OpenSpec is placed under the openspec/ folder, divided into two parts: specs/ (the source of truth for current system behavior) and changes/ (proposed modifications, one folder per change).
In OpenSpec's delta specs, scenarios are treated as the acceptance criteria for requirements: each Requirement under ADDED Requirements is followed by several Scenarios, covering the normal path, boundaries, and exceptions respectively.
After OpenSpec archiving, the delta is merged into specs/, the change folder is moved into changes/archive/ with a date prefix, the spec describes the system's current state, and the archived change retains the full context.
17 more timeline events
All Facts (20)
The development of AI coding tools has gone through three stages: code completion, conversational code generation, and autonomous development agents.
90%VerifiedAI model lifecycle management is increasingly important for developers, requiring the establishment of clear deployment, monitoring, and retirement mechanisms.
65%VerifiedOpenSpec's Explore mode lets the AI freely explore the codebase, helping to analyze architecture, identify bottlenecks, and understand existing designs.
65%UnverifiedOpenSpec的Apply命令会将源Spec和DeltaSpec自动合并成最新版本
90%UnverifiedDeltaSpec通过edit新增、modify修改、remove删除三种操作来描述变化
90%UnverifiedOpenSpec使用Devon文档格式来描述需求场景
90%UnverifiedOpenSpec使用DAG(有向无环图)产物依赖图机制,依次产出Proposal、Specs、Design、Tasks四份需求文件
90%Unverified一个功能从想法到上线需要经过七步流程:需求产物生成、Auto Plan评审、TDD编码、Review审查、QA验收、SHIP发布、Archive归档
85%UnverifiedGStack的SHIP命令会自动触发OpenSpec的Archive操作,将本次迭代的Delta规范合入主规范,完成从需求到发布再到归档的闭环
85%UnverifiedGStack的Auto Plan模块从四个维度评审OpenSpec产物:CEO视角看商业价值、工程视角看技术可行性、设计视角看用户体验、DX视角看开发者友好度
85%UnverifiedDeltaSpec增量变更机制将规范输出从800行压缩到250行,比传统方式短70%
70%UnverifiedStructured specs can express developer intent more precisely than natural language prompts, reducing the AI's room for improvisation.
60%UnverifiedOpenSpec's Propose command generates 4 files at once: Proposal.md, Specs, Design.md, and Task.md.
60%UnverifiedOpenSpec's core workflow contains four commands: Propose, Continue, Apply, and Archive.
60%UnverifiedOpenSpec does not require an API Key and is stored purely in Markdown within the code repository.
60%UnverifiedThe author wrote the diagram requirements into OpenSpec's configuration, so they are included in every generation and do not rely on the AI remembering them itself.
50%Unverifiedgrill-me handles how to ask (extracting the decisions in the user's head one by one), OpenSpec handles the spec lifecycle (how to write it, how to archive it, how changes are handled); the two are complementary rather than an either-or choice.
50%UnverifiedSD Flow was proposed by the Bilibili creator "Lao Da Qian Li" and is a practical process that combines OpenSpec with grill-me.
50%UnverifiedThe author initially combined OpenSpec and grill-me into a four-step process: Explorer divergent chat, OpenSpec generating four documents at once, grill with Docs item-by-item grilling, recording ADRs and the glossary and then going back to revise the documents.
50%UnverifiedAfter actually running the four-step process, the author found that going back to revise the documents was error-prone, so the core change of SD Flow was changed to "record the minutes first, then write the document": after exploration, first record a temporary decision minutes, fill each decision into the minutes as it is settled during grilling, and finally write the OpenSpec spec document from the minutes in one go.
50%