先安装 specify-cli
使用 specify init
确立项目原则
创建项目的管理原则和开发指南,指导后续开发 /speckit.constitution Create principles focused on code quality, testing standards, user experience consistency, and performance requirements 会创建一个.specify/memory/constitution.md
创建需求
/speckit.specify Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums are never in other nested albums. Within each album, photos are previewed in a tile-like interface. 描述你想构建的内容。关注 what and why,需求和用户故事之类,而不是技术栈。
制定技术实施计划
可选的 /speckit.clarify 澄清未明确的领域,还可以让cc验证下你的checklist: Read the review and acceptance checklist, and check off each item in the checklist if the feature spec meets the criteria. Leave it empty if it does not. 然后提供你的技术栈和架构选择 /speckit.plan The application uses Vite with minimal number of libraries. Use vanilla HTML, CSS, and JavaScript as much as possible. Images are not uploaded anywhere and metadata is stored in a local SQLite database. 执行后要检查 research.md 是否使用了正确的技术栈
任务拆解
/speckit.tasks 会创建 tasks.md 每个用户故事都拥有自己的一组任务
执行
可选的 /speckit.analyze /speckit.implement 支持vibe-coding to AI-native development 参考 https://github.com/github/spec-kit