Spec-driven Development
ขั้นตอนการพัฒนาซอฟต์แวร์ตามแนวทาง Spec-driven Development ด้วย GitHub Spec Kit และ Copilot
- Define the Constitution: Establish the
- ground rules
- principles
- standards for the entire project in a
CONSTITUTION.mdfile.
This document sets constraints and context that the AI agent references throughout the process.
- Specify Features: Use the
/specifycommand in Copilot Chat to define what to build:
- features
- user stories
- acceptance criteria rather than how.
The AI helps generate detailed specification documents (often in Markdown).
- Plan the Implementation: Use the
/plancommand to create a technical blueprint. The AI, using the context from the specification and constitution, generates a detailed plan including:
- technology stacks/frameworks
- architecture
- data models.
-
Break into Tasks: The
/taskscommand instructs the AI to break down the plan into granular, actionable steps with clear acceptance criteria. -
Implement the Code: Finally, use the
/implementcommand or manually prompt Copilot Chat to generate the code for the defined tasks. The AI leverages all the previously generated documentation to provide highly contextual and accurate code suggestions. -
Analyze and Clarify: The
/analyzeand/clarifycommands can be used at any point to check for inconsistencies or missing information in the specifications, ensuring all stakeholders (human and AI) agree on the intent before implementation.
