[KongchangAI]
Concept

SD Flow

A specification-driven development practice workflow that combines OpenSpec with grill-me. It emphasizes recording decision notes before generating specification documents in order to manage the quality of AI-generated specifications.

Timeline (last 90 days)

Nov 18

SD Flow was proposed by the Bilibili creator "Lao Da Qian Li" and is a practical process that combines OpenSpec with grill-me.

Unverified50%
Nov 18

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.

Unverified50%
Nov 18

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.

Unverified50%
Nov 18

In SD Flow, the decision minutes cover the whole process, while ADRs only capture key decisions that need long-term reference, forming a division of labor between the two.

Unverified50%
Nov 18

The three core questions in the grilling phase are: who to ask (facts checkable in code the AI looks up itself, multiple options the AI researches with a recommendation, system impact judged by a human, private requirements and preferences ask a human), what to ask first (attack the heavy constraints first), and when to stop (check whether each heavy constraint has evidence: code file and line number, command output, or personal confirmation).

Unverified50%
Nov 18

In the new process, at the very start of grilling, a branch and change directory are created with a draft minutes placed in it, recording four things: what was decided, which options were cut and why, the heavy constraints and evidence, and the places where risks are known but accepted; each item is written in on the spot as it is settled.

Unverified50%
Nov 18

When the minutes are finalized, a content fingerprint is computed, and it is recomputed and compared before archiving, to prevent the minutes from being quietly changed.

Unverified50%
Nov 18

The four most important of the general spec rules: write success metrics (what to measure with, what must be achieved); when writing what is not being done, attach an assumption that can be overturned; check facts in the code before writing them, do not rely on memory; when choosing an approach, clearly write the rejected options and the reasons.

Unverified50%
Nov 18

SD Flow's domain rule list is layered: the bottom layer is general rules, above that are domains such as backend, embedded and frontend, and above that are specific languages, chips and frameworks (such as Go, ESP32, React); writing Go code means passing through all three layers: general, backend and Go.

Unverified50%
Nov 18

The author emphasizes: users must first have expectations in their own minds about their complete requirements, and the AI grilling helps users find and write down those expectations, not decide for them; for small changes where the goal and direction are already clear, exploration can be shortened or even skipped, but scope and approach clarification, fact checking and decision confirmation cannot be omitted.

Unverified50%

All Facts (10)

Unverified

SD Flow was proposed by the Bilibili creator "Lao Da Qian Li" and is a practical process that combines OpenSpec with grill-me.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

In SD Flow, the decision minutes cover the whole process, while ADRs only capture key decisions that need long-term reference, forming a division of labor between the two.

50%
Unverified

The three core questions in the grilling phase are: who to ask (facts checkable in code the AI looks up itself, multiple options the AI researches with a recommendation, system impact judged by a human, private requirements and preferences ask a human), what to ask first (attack the heavy constraints first), and when to stop (check whether each heavy constraint has evidence: code file and line number, command output, or personal confirmation).

50%
Unverified

In the new process, at the very start of grilling, a branch and change directory are created with a draft minutes placed in it, recording four things: what was decided, which options were cut and why, the heavy constraints and evidence, and the places where risks are known but accepted; each item is written in on the spot as it is settled.

50%
Unverified

When the minutes are finalized, a content fingerprint is computed, and it is recomputed and compared before archiving, to prevent the minutes from being quietly changed.

50%
Unverified

The four most important of the general spec rules: write success metrics (what to measure with, what must be achieved); when writing what is not being done, attach an assumption that can be overturned; check facts in the code before writing them, do not rely on memory; when choosing an approach, clearly write the rejected options and the reasons.

50%
Unverified

SD Flow's domain rule list is layered: the bottom layer is general rules, above that are domains such as backend, embedded and frontend, and above that are specific languages, chips and frameworks (such as Go, ESP32, React); writing Go code means passing through all three layers: general, backend and Go.

50%
Unverified

The author emphasizes: users must first have expectations in their own minds about their complete requirements, and the AI grilling helps users find and write down those expectations, not decide for them; for small changes where the goal and direction are already clear, exploration can be shortened or even skipped, but scope and approach clarification, fact checking and decision confirmation cannot be omitted.

50%

Source Articles