spec-feature
v1.1.9
Published
> **⚠️ ALPHA VERSION** - This is an early release. Features may change and some functionality may be incomplete.
Downloads
41
Maintainers
Readme
⚠️ ALPHA VERSION - This is an early release. Features may change and some functionality may be incomplete.
🚀 Spec Feature
Turn your idea into a ready development plan in minutes!
Create technical specifications, plans, and tasks for your development team using AI from a single description.
🎯 Benefits
✨ Clear project start • 🤝 Fewer misunderstandings • 📚 Documented architecture • ✅ Controlled tasks • 🔄 Easy updates • 🤖 Better AI integration
⚡ Quick Start
# Initialize in current directory
npx spec-feature init
# Or with custom folder name
npx spec-feature init my-project-docsCreates the Spec Feature structure inside spec/ by default, or inside the folder name you provide.
View specs in browser
# Start viewer (default folder: spec)
npx spec-feature view
# Start viewer for a specific feature and/or custom folder
npx spec-feature view <feature-slug> --folder my-docs- Opens a local web viewer at
http://localhost:4173/. - If
<feature-slug>exists underspec/features/, the viewer jumps directly to it; otherwise you land on the feature list. - Pass
--folder|-fwhen your specs live outside the defaultspec/directory.
Viewer build and hot reload
The viewer is built with Vite (React + TypeScript + Tailwind). After cloning, build once then run the viewer:
npm run build:viewer # build viewer to bin/dist
npm run dev:viewer # serve built viewer + API on :4173For frontend development with hot reload, run the Vite dev server (with API proxy to the CLI server):
npm run dev:viewer:hmr # starts CLI on :4173 and Vite on :5173; open http://localhost:5173Or run in two terminals: npm run dev:viewer then npm run dev:viewer:vite, and open http://localhost:5173.
📁 Structure
graph TD
spec_root[spec/] --> readme[README.md]
spec_root --> feature_template[feature.md]
spec_root --> core_dir[core/]
spec_root --> features_dir[features/]
spec_root --> constitution_dir[constitution/]
core_dir --> core_spec[spec.md]
core_dir --> core_plan[plan.md]
core_dir --> core_tasks[tasks.md]
core_dir --> core_clarifications[clarifications.md]
core_dir --> core_verify[verify.md]
core_dir --> core_hotfix[hotfix.md]
features_dir --> feat[user-auth/]
feat --> feat_spec[spec.md]
feat --> feat_plan[plan.md]
feat --> feat_tasks[tasks.md]
feat --> feat_clarifications[clarifications.md]
feat --> feat_verify[verify-report.md]Templates (core/) → Features (features/)
🧭 Constitution
spec/constitution/stores project rules and constraints for humans and AI.- Before changes, read
spec/constitution/README.mdand all files in the folder. - Conflict order: Constitution > feature specs > plans > tasks.
- Add or update Constitution documents when a new invariant requirement appears.
🎬 Workflow
Send these prompts to your AI assistant (Claude, Cursor, Copilot, etc.) to create, execute, and update features.
1️⃣ Create Feature
Use the template from spec/feature.md.
#feature-name# Your description hereFormat: #feature# description → creates spec/features/feature-name/ with up to 5 files (adds clarifications.md when needed):
flowchart LR
A[feature.md template] --> B[spec.md]
A --> C[plan.md]
A --> D[tests.md]
A --> E[tasks.md]
A --> F[clarifications.md]2️⃣ Execute Tasks
Execute all tasks in spec/features/{FEATURE}/tasks.mdflowchart TD
A[tasks.md] --> B[Task 1]
B --> C[Task 2]
C --> D[Task N]
D --> E[All Complete]
E --> F[Auto Verification]
F --> G[verify-report.md]3️⃣ Update Feature
Use the template from spec/feature.md.
#feature-name# New requirementsOverwrites spec.md, plan.md, tasks.md with updated content.
🛠️ Troubleshooting
| Problem | Solution |
|---------|----------|
| No feature folder created | Check format #feature# context |
| Wrong task order | Reorder numbers in tasks.md |
| Verification not launched | All tasks must be checked, or run manually: Use template from spec/core/verify.md to verify spec/features/{FEATURE}/ |
| Update conflicts | Use git to track changes |
