Skip to main content

Spec-driven Development

· 4 min read
Wijai Thongsom
Tech enthusiast

ขั้นตอนการพัฒนาซอฟต์แวร์ตามแนวทาง Spec-driven Development ด้วย GitHub Spec Kit และ Copilot

  1. Define the Constitution: Establish the
  • ground rules
  • principles
  • standards for the entire project in a CONSTITUTION.md file.

This document sets constraints and context that the AI agent references throughout the process.

  1. Specify Features: Use the /specify command 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).

  1. Plan the Implementation: Use the /plan command 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.
  1. Break into Tasks: The /tasks command instructs the AI to break down the plan into granular, actionable steps with clear acceptance criteria.

  2. Implement the Code: Finally, use the /implement command 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.

  3. Analyze and Clarify: The /analyze and /clarify commands 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.

Read more on GitHub's blog