跳到正文
cccskills
免费在 GitHub 公开

spec-driven-development

Use when starting a new feature, product, or system design. Eliminates the spec-implementation gap by making specifications the primary artifact that drives code generation. Keywords: SDD, spec-driven, PRD, feature spec, user stories, implementation plan, specification, acceptance criteria, Given-When-Then.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Spec-Driven Development (SDD)

SDD is the professional standard for high-assurance, agentic software engineering in 2026. It reverses the traditional "code-first" approach, elevating specifications to the primary system artifact. By ensuring code is merely a verified expression of precise specs, we eliminate ambiguity, technical debt, and misaligned requirements.

Why SDD in 2026?

As AI agents become the primary contributors to codebases, the bottleneck has shifted from writing code to defining intent. SDD provides:

  • Alignment: Ensures AI agents work on the exact problem identified by the human.
  • Traceability: Every line of code can be traced back to an acceptance criterion in a spec.
  • Verification: Specs serve as the "ground truth" for automated test suites and agent-based verification.
  • Efficiency: Reduces the need for costly refactoring by catching logic errors at the specification phase rather than the production phase.

When to Use

  • New Features: Implementing non-trivial functionality.
  • System Design: Defining architecture, data flows, or API contracts.
  • Refactoring: When changing existing systems where behavioral preservation is critical.
  • Complex Logic: When business rules are nuanced and prone to ambiguity.
  • Agent Orchestration: When directing multiple agents, specs act as the shared project language.

Core Workflow (The SDD Lifecycle)

  1. Idea → PRD: Iterate with an AI agent to clarify the problem, user value, and constraints.
  2. PRD → Spec: Translate the PRD into an executable feature specification using User Stories and Acceptance Scenarios.
  3. Spec → Implementation Plan: Derive the technical approach. Ensure every technical decision is explicitly traced to a requirement in the spec.
  4. Plan → Code Generation: Use the plan to generate, review, and integrate code.
  5. Feedback → Evolution: Feed production metrics, user behavior, and edge-case discoveries back into the spec to keep the system's "truth" updated.

Spec Template (spec-template.md)

Use this structure to define features:

# Feature: [Name]
## Context
- Business Value: [Why are we building this?]
- Priority: [P1/P2/P3]

## User Stories
- Given [Persona/Condition], When [Action], Then [Expected Result].

## Acceptance Scenarios
1. Scenario: [Title]
   - Given: [Prerequisites]
   - When: [Trigger]
   - Then: [Outcome]

## Constraints & Edge Cases
- [Constraints]
- [Edge Cases]

Implementation Plan Structure (plan-template.md)

# Implementation Plan: [Feature Name]
## Objective
- [Core goal mapped to Spec requirement #]

## Technical Strategy
- [Module/Component Changes]
- [Data Flow/Schema Updates]
- [Dependencies]

## Verification Plan
- [How do we confirm this matches the Spec?]
- [Testing strategy]

Quality Gates

SDD succeeds only when verified. Enforce these gates:

  1. The Independence Gate: Every user story must be testable in isolation.
  2. The Traceability Gate: No code change may exist without a referenced spec requirement.
  3. The Consistency Gate: Continuous validation—every time a plan is generated, check if it contradicts existing spec constraints.

Best Practices

  • Spec-First, Code-Last: Never touch an editor until the spec is approved.
  • Research-First: Use research agents to gather context, API documentation, and existing codebase constraints before drafting specs.
  • Bidirectional Feedback: Treat specs as living documents. If production deviates from the spec, update the spec first.
  • Branching for Exploration: If uncertain about technical direction, create multiple implementation plans from the same spec to evaluate trade-offs.

References & Resources


SDD: If it isn't specified, it doesn't exist.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

2d-games

免费

2D game development principles. Sprites, tilemaps, physics, camera.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

3d-games

免费

3D game development principles. Rendering, shaders, physics, cameras.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

aesthetic

免费

Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

Use when implementing or managing persistent, hierarchical memory systems for AI agents. Covers cross-session state, fact supersession, and self-managed memory tools to enable long-term recall and adaptive agent behavior.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

Use when monitoring, tracing, or debugging agentic workflows in production. Keywords: observability, tracing, OpenTelemetry, Langfuse, latency, token cost, loop detection, telemetry.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

Use when building self-correcting retrieval systems for AI agents. Keywords: RAG, retrieval, Corrective RAG, Self-RAG, query decomposition, reranking, hallucination, grounding.

中文简介正在准备中。当前显示原文说明。

VoDaiLocz/kilo-kit-mcp282026年9月13日 更新

查看 VoDaiLocz 的全部技能

报告此技能的问题