spec-driven-development
Fungsinya
Tool ini membantu membuat rencana rinci (spesifikasi) sebelum menulis kode apa pun. Tool ini memastikan semua orang memahami apa yang akan dibangun, mengapa, dan bagaimana mengetahui bahwa pekerjaannya sudah selesai.
Kapan dipakai
- βSaat memulai proyek atau fitur baru.
- βSaat kebutuhan belum jelas atau belum lengkap.
- βSebelum mengambil keputusan besar tentang arsitektur software.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/spec-driven-development/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuatkan spesifikasi untuk aplikasi to-do list sederhana.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Pertama, tool ini membantu mendefinisikan tujuan dengan jelas dan mengajukan pertanyaan untuk memperjelas detailnya. Setelah itu, informasi tersebut disusun menjadi dokumen terstruktur yang mencakup tujuan, perintah, struktur proyek, gaya penulisan kode, strategi pengujian, dan batasan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Spec-Driven Development
Overview
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.
Build: npm run build Test: npm test -- --coverage Lint: npm run lint --fix Dev: npm run devProject Structure β Where source code lives, where tests go, where docs belong.
src/ β Application source code src/components β React components src/lib β Shared utilities tests/ β Unit and integration tests e2e/ β End-to-end tests docs/ β DocumentationCode Style β One real code snippet showing your style beats three paragraphs describing it. Include naming conventions, formatting rules, and examples of good output.
Testing Strategy β What framework, where tests live, coverage expectations, which test levels for which concerns.
Boundaries β Three-tier system:
- Always do: Run tests before commits, follow naming conventions, validate inputs
- Ask first: Database schema changes, adding dependencies, changing CI config
- Never do: Commit secrets, edit vendor directories, remove failing tests without approval
Spec template:
# Spec: [Project/Feature Name]
## Objective
[What we're building and why. User stories or acceptance criteria.]
## Tech Stack
[Framework, language, key dependencies with versions]
## Commands
[Build, test, lint, dev β full commands]
## Project Structure
[Directory layout with descriptions]
## Code Style
[Example snippet + key conventions]
## Testing Strategy
[Framework, test locations, coverage requirements, test levels]
## Boundaries
- Always: [...]
- Ask first: [...]
- Never: [...]
## Success Criteria
[How we'll know this is done β specific, testable conditions]
## Open Questions
[Anything unresolved that needs human input]
Reframe instructions as success criteria. When receiving vague requirements, translate them into concrete conditions:
REQUIREMENT: "Make the dashboard faster"
REFRAMED SUCCESS CRITERIA:
- Dashboard LCP < 2.5s on 4G connection
- Initial data load completes in < 500ms
- No layout shift during load (CLS < 0.1)
β Are these the right targets?
This lets you loop, retry, and problem-solve toward a clear goal rather than guessing what "faster" means.
Phase 2: Plan
With the validated spec, generate a technical implementation plan:
- Identify the major components and their dependencies
- Determine the implementation order (what must be built first)
- Note risks and mitigation strategies
- Identify what can be built in parallel vs. what must be sequential
β¦
Pertanyaan umum
Mengapa penting menulis spesifikasi sebelum coding?
Menulis spesifikasi sebelum coding membantu mencegah kesalahpahaman, memastikan semua orang sejalan, dan mengurangi pengerjaan ulang karena kebutuhan sudah didefinisikan dengan jelas sejak awal.
Apa saja bagian dari sebuah spesifikasi?
Spesifikasi biasanya mencakup tujuan, perintah yang diperlukan, struktur proyek, gaya penulisan kode, strategi pengujian, dan batasan (apa yang boleh dilakukan, apa yang harus meminta izin, dan apa yang tidak boleh pernah dilakukan).
Kapan sebaiknya saya TIDAK menggunakan tool ini?
Jangan gunakan tool ini untuk perbaikan yang sangat sederhana, seperti memperbaiki salah ketik, atau ketika kebutuhannya sudah sangat jelas dan tidak ambigu.
Detail
Deskripsi asli dari pembuat
Creates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear, ambiguous, or only exist as a vague idea.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5837
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.