spec-lite
v1.1.0
Published
Spec-driven development kit for Claude Code
Downloads
391
Readme
spec-lite
Bộ skills spec-driven development cho Claude Code — phỏng vấn có cấu trúc để xây dựng PRD, kiến trúc hệ thống, và integration specs. Domain knowledge và component/feature artifacts mọc dần qua cascade từ integrations.
Lưu ý: Hiện tại chỉ hoạt động với Claude Code (thư mục
.claude/).
Cài đặt
npx spec-lite installLệnh này copy skills/ và templates/ vào thư mục .claude/ của project.
Sử dụng
Các skill được gọi bằng slash command bên trong Claude Code.
Thứ tự thực hiện
/spec-prd → /spec-sad
│
(có requirement mới)
│
/spec-new
│
/spec-tech
│
/plan
│
/buildSeed skills — chạy một lần khi bắt đầu dự án
/spec-prd
Tạo hoặc cập nhật specs/main/prd.md thông qua interview có cấu trúc. Đồng thời scaffold specs/main/domain.md skeleton.
Sections: Problem Statement · Target Users · Scope · Features · Components · Non-Functional Requirements · Business Constraints
/spec-sad
Tạo hoặc cập nhật specs/main/sad.md. Yêu cầu prd.md và domain.md đã tồn tại.
Sections: Architectural Style · System Overview · Tech Stack · Cross-Cutting Concerns · Inter-Service Communication · Infrastructure Overview · Architectural Guardrails
Integration skills — chạy mỗi khi có requirement mới
/spec-new [requirement]
Tạo specs/integrations/{slug}/spec.md cho một integration mới.
- Có argument → dùng trực tiếp làm raw requirement
- Không có argument → hiển thị danh sách features TODO từ
prd.mdđể chọn
/spec-tech [number]
Tạo specs/integrations/{slug}/tech.md sau khi spec.md được approve.
- Có argument → chọn integration theo số thứ tự luôn
- Không có argument → hiển thị danh sách tất cả integrations
/plan
Tạo plan.md và todo.md từ spec.md + tech.md.
/build
Implement từng task trong plan.md/todo.md theo TDD incremental.
Files được tạo ra
| Command | Output |
|---------|--------|
| /spec-prd | specs/main/prd.md, specs/main/domain.md (skeleton) |
| /spec-sad | specs/main/sad.md |
| /spec-new | specs/integrations/{slug}/spec.md |
| /spec-tech | specs/integrations/{slug}/tech.md |
| /plan | specs/integrations/{slug}/plan.md, todo.md |
| /build | (implements tasks từ plan.md/todo.md) |
Component (crd.md, cdd.md) và feature (frd.md, fdd.md) artifacts mọc dần qua cascade proposals từ integrations — không có skill chuyên biệt để tạo.
