spec-driven-development
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- id
- SPEC_DRIVEN_DEVELOPMENT
- domain
- RESEARCH
- schema
- { "parameters": { "type": "object", "required": [ "feature" ], "properties": { "feature": { "type": "string", "description": "Mô tả tính năng hoặc yêu cầu đầu vào" } } } }
- name_vn
- Phát triển Hướng Đặc tả
- version
- 1.0.0
- priority
- HIGH
- aliases_vn
- [ "phát triển hướng đặc tả", "spec driven", "viết đặc tả", "tạo PRD" ]
- intent_pairs
- [ [ "CREATE", "SPEC" ], [ "ANALYZE", "REQUIREMENT" ] ]
- assigned_agent
- agent_planner.md
02 资源文件 4
- 脚本__init__.py27 B
- 参考文档dossier.md8.0 KB
- 脚本logic.py455 B
- 参考文档manifest.json954 B
03 SKILL.md 正文
Spec-Driven Development
Write a structured specification before writing any code. The spec is the shared source of truth between you and the human engineer — it defines what we're building, why, and how we'll know it's done. Code without a spec is guessing.
When to Use
- Starting a new project or feature
- Requirements are ambiguous or incomplete
- The change touches multiple files or modules
- You're about to make an architectural decision
- The task would take more than 30 minutes to implement
When NOT to use: Single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained.
The Gated Workflow
Spec-driven development has four phases. Do not advance to the next phase until the current one is validated.
SPECIFY ──→ PLAN ──→ TASKS ──→ IMPLEMENT
│ │ │ │
▼ ▼ ▼ ▼
Human Human Human Human
reviews reviews reviews reviews
Phase 1: Specify
Start with a high-level vision. Ask the human clarifying questions until requirements are concrete.
Surface assumptions immediately. Before writing any spec content, list what you're assuming:
ASSUMPTIONS I'M MAKING:
1. This is a web application (not native mobile)
2. Authentication uses session-based cookies (not JWT)
3. The database is PostgreSQL (based on existing Prisma schema)
4. We're targeting modern browsers only (no IE11)
→ Correct me now or I'll proceed with these.
Don't silently fill in ambiguous requirements. The spec's entire purpose is to surface misunderstandings before code gets written — assumptions are the most dangerous form of misunderstanding.
Write a spec document covering these six core areas:
- Objective — What are we building and why? Who is the user? What does success look like?
- Commands — Full executable commands with flags, not just tool names.
- Project Structure — Where source code lives, where tests go, where docs belong.
- Code Style — One real code snippet showing your style.
- Testing Strategy — What framework, where tests live, coverage expectations.
- Boundaries — Always do, Ask first, Never do.
Phase 2: Plan
With the validated spec, generate a technical implementation plan:
- Identify the major components and their dependencies
- Determine the implementation order
- Note risks and mitigation strategies
- Identify what can be built in parallel vs. what must be sequential
- Define verification checkpoints between phases
Phase 3: Tasks
Break the plan into discrete, implementable tasks:
- Each task should be completable in a single focused session
- Each task has explicit acceptance criteria
- Each task includes a verification step (test, build, manual check)
- Tasks are ordered by dependency
- No task should require changing more than ~5 files
Phase 4: Implement
Execute tasks one at a time following skills/incremental-implementation/SKILL.md and skills/test-driven-development/SKILL.md.
Anti-Rationalization (Chống Ngụy Biện)
| Rationalization | Reality |
|---|---|
| "This is simple, I don't need a spec" | Simple tasks don't need long specs, but they still need acceptance criteria. A two-line spec is fine. |
| "I'll write the spec after I code it" | That's documentation, not specification. The spec's value is in forcing clarity before code. |
| "The spec will slow us down" | A 15-minute spec prevents hours of rework. Waterfall in 15 minutes beats debugging in 15 hours. |
| "Requirements will change anyway" | That's why the spec is a living document. An outdated spec is still better than no spec. |
| "The user knows what they want" | Even clear requests have implicit assumptions. The spec surfaces those assumptions. |
Red Flags
- Starting to write code without any written requirements
- Asking "should I just start building?" before clarifying what "done" means
- Implementing features not mentioned in any spec or task list
- Making architectural decisions without documenting them
- Skipping the spec because "it's obvious what to build"
Exit Criteria & Verification
Before proceeding to implementation, confirm:
- [ ] The spec covers all six core areas
- [ ] The human has reviewed and approved the spec
- [ ] Success criteria are specific and testable
- [ ] Boundaries (Always/Ask First/Never) are defined
- [ ] The spec is saved to a file in the repository
Sovereign Laws
- Skill nay duoc dong hoa tu agent-skills (MIT License - Addy Osmani).
- Moi hanh vi cua JKAI khi kich hoat skill #4010 phai tuan thu giao thuc tren.
- Khong dua ra ket qua cuoi cung neu chua hoan thanh checklist cuoi muc Verification.
Deck #4010 | Property of Master LeeTrung | JKAI Zenith
04 同仓库更多 Skills
standard_plugin
Hướng dẫn kích hoạt và vận hành cho kỹ năng standard_plugin.
_STANDARD
暂无简介
test_dynamic_audit
Thao tác kiểm toán động
security-audit
暂无简介
security-and-hardening
暂无简介
performance-optimization
暂无简介