惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
博客园 - 聂微东
小众软件
小众软件
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
TaoSecurity Blog
TaoSecurity Blog
博客园 - 司徒正美
罗磊的独立博客
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
S
Security @ Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
月光博客
月光博客
S
Secure Thoughts
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Forbes - Security
Forbes - Security
H
Heimdal Security Blog
W
WeLiveSecurity
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
L
LangChain Blog
T
The Blog of Author Tim Ferriss
NISL@THU
NISL@THU
Google DeepMind News
Google DeepMind News
Cloudbric
Cloudbric
H
Hacker News: Front Page
The Last Watchdog
The Last Watchdog
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
博客园 - 三生石上(FineUI控件)
博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
Project Zero
Project Zero
SecWiki News
SecWiki News
爱范儿
爱范儿
The Register - Security
The Register - Security
AI
AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog
L
Lohrmann on Cybersecurity
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Privacy International News Feed
J
Java Code Geeks
S
Securelist
C
Cyber Attacks, Cyber Crime and Cyber Security
V
Visual Studio Blog

人人都是产品经理

为什么你的产品找不到差异化?90%的失败都卡在第一步上(下) – 人人都是产品经理, 3年从30万到1300万用户、获2200万美元融资,这个AI教育产品用“抽卡”破解了获客难题 – 人人都是产品经理, 园区招商系统怎么做才能真正帮到去化?我加了这一个功能,推广链接转发400次阅读过万 – 人人都是产品经理, AI大事件:OpenAI发完网络安全模型又搞药物研发,小鹏汽车要抓”DeepSeek时刻” – 人人都是产品经理, 电商不是卖货,是一场更残酷的产品经理实战 – 人人都是产品经理, 没想到,活动营销又回来了! – 人人都是产品经理, 为何All-in海外KOC:一场关于AI时代窗口期的豪赌 – 人人都是产品经理, 重新理解企业的内部协作 – 人人都是产品经理, 苹果的 AI 战略到底是什么? – 人人都是产品经理, 医疗智能体·第2讲——合规护城河:等保、PIPL与HIPAA的架构实战 – 人人都是产品经理, 向量知识库五步法:从“答非所问”到“精准回复” – 人人都是产品经理, 鸿蒙PC三方库构建总指挥HPKBUILD(sha)库为例 – 人人都是产品经理, 何时该用LLM?AI产品经理的LLM设计指南 – 人人都是产品经理, 医疗信息领域的需求方、决策方、准入方以及关注点(二) – 人人都是产品经理, 即梦涨价:一场被误读的「傲慢」 – 人人都是产品经理, 面试AI PM必答题:Hermes和OpenClaw的区别,如何讲清楚业务价值 – 人人都是产品经理, AI的下一张船票:世界模型——AI产品经理必须理解的技术拐点 – 人人都是产品经理, 小红书做GEO,怎么让AI信你?记住这 3 个重要信息 – 人人都是产品经理, 5 家印度 AI 初创公司,看看印度 AI 再做什么 – 人人都是产品经理, AI项目跨团队协作:产品技术业务如何不打架 – 人人都是产品经理, Agentic Workflow(智能体工作流):让AI从”答案生成器”变成”数字员工” – 人人都是产品经理, lycium_plusplus 项目全景解读:OpenHarmony 三方库构建的“大管家” – 人人都是产品经理, 从爆单救火到前置履约:两套预采策略,把生鲜大促履约效率拉满 – 人人都是产品经理, 什么时候该补货?我用一轮数据做了一个决定 – 人人都是产品经理, 从“机械兜底”到“动态分流”:AI客服重复进线治理的4大底层逻辑 – 人人都是产品经理, 抖音拼效率,红书拼洞察 – 人人都是产品经理, 全民狂欢与退潮——为什么龙虾这波热潮冷却得如此之快? – 人人都是产品经理, Stripe押注!MPP重塑全球支付 – 人人都是产品经理, 小红书GEO:AI引用你的内容,不是因为你对,而是因为你看起来可信 – 人人都是产品经理, 前百度副总裁押注办公Agent,日韩付费爆发,Manus迎来强劲对手 – 人人都是产品经理, 企事业单位数字化的业务供需本质 – 人人都是产品经理, 医疗智能体·第1讲——医疗信息化重构:从“辅助软件”到“自主智能体”的范式转移 – 人人都是产品经理, 粉丝量就是空气!!! – 人人都是产品经理, 用户说“薯片碎了”,机器回“要买吗?”:意图识别的翻车与破局 – 人人都是产品经理, RAG召回准确率从75到90 我做对了这三件事 – 人人都是产品经理, AI大事件:Anthropic改收费、OpenAI发安全版、手术机器人纳入医保、阿里发布”秒悟” – 人人都是产品经理, Chrome 推出 Skills 新功能,Agent 重塑上网方式 – 人人都是产品经理, GitHub前创始人拿了a16z的1700万美元,做Agent时代的Git – 人人都是产品经理 拷贝或克隆其他 Flutter OH 项目到本地后无法运行 – 人人都是产品经理, 优惠券设计:优惠券创建 – 人人都是产品经理, 不用死磕文档!AI 助手 1 小时搞定飞书 CLI 安装 + 配置 + 知识库 – 人人都是产品经理, 用小龙虾做竞品分析报告:从2天到20分钟,我是怎么做到的 – 人人都是产品经理 用小龙虾做市场分析报告:搞懂这3个公式,市场规模不再靠猜 – 人人都是产品经理, 你早就在做 Harness 工程,只是不知道它叫这个名字 – 人人都是产品经理, Think Long就够?你可能想多了! – 人人都是产品经理, 货代SRM实战:供应商准入怎么做,才能让资源池不是通讯录而是可交付网络? – 人人都是产品经理, 如何做好用户调研?详解基本技巧 – 人人都是产品经理, 木鸟、途家、美团对打,平台春天行动开“卷” – 人人都是产品经理, 入职才发现公司不靠谱?小红书从业者求职避坑指南 – 人人都是产品经理, 美国 AI 三巨头联手封堵,中国 AI 突围之路在何方 – 人人都是产品经理, 小红书,放在需求对面的镜子 – 人人都是产品经理, AI 会带来大规模失业吗? – 人人都是产品经理, 从出单到补货前,我第一次犹豫:该不该放大? – 人人都是产品经理, Flutter 三方库鸿蒙化适配:5 种高效检查方式,快速判断是否需要适配 – 人人都是产品经理, 从做产品进阶拿结果:医美机构产品经理转岗科室运营经理 – 人人都是产品经理, 阿里HappyHorse,一场关于“Token经济”的阳谋 – 人人都是产品经理, To B AI:客户留存落地的观察与思考 – 人人都是产品经理, AI产品的“生命线”——数据采集、标注、清洗的产品化设计 – 人人都是产品经理, 谈谈AI Agent(二):当“孩子”能自己“体验世界”时,你该学什么? – 人人都是产品经理, UI/UX设计师的3层能力进阶,前两层让你活下来,第三层…才是真正的分水岭 – 人人都是产品经理, 2分钟 → 30秒,效率提升75%:B端产品经理如何用「规则枷锁」驯服AI幻觉? – 人人都是产品经理, 还没来得及学OpenClaw,来了个更猛的:Hermes Agent – 人人都是产品经理, AI日报:宇树机器人跑出10m/s刷新世界纪录 – 人人都是产品经理, 一文说透基金互金如何用情绪价值引导用户决策做转化 – 人人都是产品经理, 当浏览器开始替你”看”网页:AI 浏览器正在亲手拆掉它脚下的那张网 – 人人都是产品经理, 0代码,一天时间我Vibe Coding了个网站 – 人人都是产品经理, Hermes 和 OpenClaw 之争,Agent 的能力应该“装上去”还是“长出来”? – 人人都是产品经理 视频生成的“桌子”,字节Seedance 2掀完,阿里快乐马掀 – 人人都是产品经理, 从听不懂到完全信任:我的 Codex 深度产品体验 – 人人都是产品经理, 当虚拟偶像有了北京户口,与真人偶像还有什么区别? – 人人都是产品经理, 会说,远远比会做更重要 —— 对 SBTI 爆火现象的五层观察 – 人人都是产品经理, AI产品经理必看:当“搭环境”比“选模型”更重要,你的认知还在2024年吗? – 人人都是产品经理, 2026年AI产品商业化核心逻辑:从功能demo到规模化营收的3个必破卡点 – 人人都是产品经理, 京东围绕供应链,卷起裤腿下场的那些事儿 – 人人都是产品经理, SBTI一夜刷屏:它赢在了“太会说人话” – 人人都是产品经理, 折扣零售的真相:不是便宜,而是价值感! – 人人都是产品经理, 和甲方吵了一架,最后加钱做了——我学到的ToB产品经理生存法则 – 人人都是产品经理, 和几位小红书操盘手聊了8小时,干货全在这 – 人人都是产品经理, 智谱GLM-5.1登场,开源模型首超Opus4.6!!! – 人人都是产品经理 Anthropic收入凭什么反超OpenAI,终于有人把这事说清楚了 – 人人都是产品经理, 史上最有故事感的技术报告——Claude最强模型Mythos 7个极其精彩的细节 – 人人都是产品经理, 模型不是壁垒,Harness 也不是 – 人人都是产品经理, 抖音本地生活业务思考21 – 人人都是产品经理, Superpowers:145k Star的AI编码框架,到底是什么来头? Superpowers:145k Star的AI编码框架,到底是什么来头? – 人人都是产品经理, OpenAI 的路走错了,Anthropic Harness 解法启示:模型需要实践专科生 – 人人都是产品经理, 画原型图的前一步:设计站点地图 – 人人都是产品经理, 给 DeepSeek 的最后一封催更信 – 人人都是产品经理, 手把手教你用 Claude Code 搭建 AI 营销团队:5 个 Agent、12 项技能,独立完成研究、写作、设计全流程 – 人人都是产品经理, 你以为大模型在学语言?不,它在重新发明语言学 – 人人都是产品经理 所谓Skill,不过是AI时代的工业垃圾 – 人人都是产品经理, 聊一聊内容传播的几个方法 – 人人都是产品经理, 当平台开始吃掉生态:从 OpenClaw 被封杀,读懂 Anthropic 的这盘棋 – 人人都是产品经理, 你装了 10 个 AI 插件,Obsidian 还是一个文件夹 – 人人都是产品经理 关于AI智能体架构演进的系统性思考:从单体试水到多体协同的重构 – 人人都是产品经理, 当“人”变成Skill,我们又该何去何从? – 人人都是产品经理 Mythos 事件:前沿 AI 治理的意外实验 – 人人都是产品经理, 货代CRM:信用与风险管理怎么做,才能把坏账风险拦在放货之前? – 人人都是产品经理, 从HR收集自拍照到员工自助录入——我见证了园区人脸识别从”不可用”到”真好用”的全过程 – 人人都是产品经理 千问闯关AI混沌期:阿里画靶,吴嘉张弓,马云射箭? – 人人都是产品经理,
一文看懂Kiro,其 Spec工作流秒杀Cursor,可移植至Claude Code
饼干哥哥 · 2025-07-21 · via 人人都是产品经理

当 Cursor 的“即兴编程”开始拖累项目质量,AWS 新晋 IDE Kiro 以 Spec 工作流打出“先规范后编码”的系统工程思维:需求-设计-任务三件套一次生成,文档与代码同步落地,复杂项目不再返工。更妙的是,这套流程还能完整移植到 Claude Code,让任何编辑器秒变专业级 AI 架构师。

Cursor最近越来越令人恼火了:经常出现过度优化Token消耗、整体规划不足,导致代码质量参差不齐甚至出现“AI擅自改坏代码”等问题。从模糊需求到精准实现:Kiro Spec工作流驱动的编程革命

在Cursor 备受诟病之际,AWS推出新型AI IDE——Kiro,凭借其核心的Spec工作流,掀开AI 编程新范式。

Spec(Specification,规格/规范)并非新概念,但在Kiro中,它被提升为一套结构化的方法论,旨在解决AI辅助开发中普遍存在的上下文遗忘、需求理解偏差及工程质量不高等核心痛点。

目前,Kiro处于公测阶段,完全免费,并提供对Claude系列先进模型(如Claude 4 Sonnet)的免费访问。(虽然确实太慢了,赶紧出付费订阅吧。。)

一、Spec工作流:AI编程的系统工程思维

Kiro的Spec工作流的核心理念是:在生成任何代码之前,必须先通过结构化的文档明确需求、设计与任务。

它将开发过程分为三个清晰、迭代的阶段,每个阶段都对应一个核心文档,保存在项目的.kiro目录下:

1. 需求分析 (Requirements):requirements.md

2. 系统设计 (Design):design.md

3. 实现计划 (Implementation):tasks.md

图自网络

二、Spec工作流的三阶段解析

1. requirements.md:用EARS语法消除需求歧义

Kiro引入EARS(Easy Approach to Requirements Syntax)语法,以标准句式消除需求歧义。

EARS语法通常包含事件驱动、状态驱动等句式,格式如下:

用户故事 (User Story): As a [role], I want [feature], so that [benefit].验收标准 (Acceptance Criteria): WHEN [event] THEN the system SHALL [response].

明确需求的同时,自动生成对应测试用例和设计方案,从根本保障交付质量。

2. design.md:从技术视角构建可行的系统蓝图

在需求明确后,Spec工作流进入设计阶段。

design.md是连接需求与实现的技术桥梁,其内容通常包括:

  • 系统架构图(Architecture)
  • 组件与接口定义(ComponentsandInterfaces)
  • 数据模型(DataModels)
  • 错误处理机制(ErrorHandling)
  • 测试策略(TestingStrategy)

一个高质量的设计文档,能让AI在生成代码时具备全局视野,确保各个模块之间的协同性和可维护性。Kiro能够基于requirements.md自动生成设计草案,并通过与开发者的迭代沟通,最终形成一份生产级的技术设计文档。

图自网络

3. tasks.md:任务清单驱动的精细化执行

tasks.md是将宏观设计分解为微观、可执行编码任务的清单。Kiro强调任务的原子性和可执行性,每个任务都应是离散、可管理的编码步骤,并明确关联到requirements.md中的具体需求点。

图自网络

任务清单通常采用带复选框的格式,支持多层级结构,确保开发过程的有序和可追溯。这种设计使得开发者可以精确控制AI的执行范围,一次只专注于一个任务,并通过任务状态管理实时追踪项目进度。

三、Kiro的交互与控制机制

对应 Cursor 解释,Kiro 的一些按钮。搞不懂为什么不统一名字,是怕被说抄袭吗?

双模式设计:

  1. Vibe模式:对应Cursor的Chat模式,跟AI聊天。
  2. Spec模式:对应Agent模式,逻辑不同,是Kiro的核心优势。

原子化控制与回滚:Follow按钮:对应 Accept 按钮,接受 AI 的修改建议。

Revert机制:按 checkpoint回滚。

Agent Hooks自动化系统: Kiro内置了基于文件事件触发的自动化检查和通知系统。例如,当AI执行需要开发者确认(如npm install)的步骤时,系统会自动弹出提示,解决了AI编程中常见的“等待阻塞”问题。

四、实战对比:Kiro Spec工作流 vs. 传统AI编程模式

为了更直观地展示Spec工作流的优势,我们以一个企业级“团队任务管理系统”(简化版Jira)的开发为例,对比Kiro与传统AI编程工具(如Cursor)在处理复杂项目时的表现。

该项目技术栈涵盖前端(React, TypeScript)、后端(Node.js, Express)、数据库(PostgreSQL, Prisma ORM)及实时通信(Socket.io),并集成了AI功能(如智能工时估算),具有较高的复杂度。

传统AI编程工具(Cursor)的表现:

工作模式:倾向于“功能堆砌”。

开发者提出一个功能点,AI直接生成代码,缺乏对整体架构的考量。

过程问题:

  • 在处理多模块协作时,容易遗漏关键逻辑;
  • 数据库Schema设计不完整;
  • 第三方API集成需要大量手动调整和返工。

产出物:主要是代码文件,几乎没有可供团队协作参考的技术文档,导致项目后期可维护性差。

Kiro Spec工作流的表现:

工作模式:“系统工程思维”。

首先生成完整的需求与设计文档,将项目清晰地分解为用户系统、项目管理、任务流转等独立但互相关联的模块。

过程优势:在design.md中就已规划好完整的数据库Schema、API接口以及Socket.io集成方案。tasks.md则将这些设计转化为具体的、有依赖关系的编码任务。

产出物:不仅有高质量的代码,更有一套完整的、可直接用于团队协作的技术文档,显著提升了项目的规范性和可维护性。

通过对比可以看出,面对企业级复杂项目,Spec工作流的优势是压倒性的。

五、跨平台实践:在Claude Code中复现Kiro Spec工作流

Kiro Spec工作流的强大之处在于其方法论本身,我们可以将这套严谨的开发流程完整地迁移到Claude Code,锦上添花。

要在Claude Code中复现Spec工作流,核心在于配置一个自定义的/spec命令。

1. 配置自定义命令: 首先,需要在Claude Code的用户配置目录下(通常是 ~/.claude/commands/)创建一个名为 spec.md 的文件。

2. 植入核心提示词: 将从Kiro中提取并结构化的“完整的Specs系统提示词”内容,完整地复制并粘贴到这个spec.md文件中。这个提示词详细定义了AI在执行/spec命令时,必须遵循的三阶段(需求收集、设计、任务规划)工作流程、每个阶段的文档格式、约束条件以及与用户的迭代交互模式。

Specs系统提示词:

# Requirements Gathering GenerationWorkflow Stage: Requirements GatheringFirst, generate an initialsetof requirements in EARS format based on the feature idea, then iterate with the userto refine them until they are complete and accurate.Don’t focus on code exploration in this phase. Instead, just focus on writing requirements which will later be turned intoa design.

**Constraints:**

– The model MUST create a ‘.claude/specs/{feature_name}/requirements.md’ file if it doesn’t already exist- The model MUST generate an initial version of the requirements document based on the user’s rough idea WITHOUT asking sequential questions first

– The model MUST format the initial requirements.md document with:

– A clear introduction section that summarizes the feature

– A hierarchical numbered list of requirements where each contains:

– A user story in the format “As a [role], I want [feature], so that [benefit]”

– A numbered list of acceptance criteria in EARS format (Easy Approach to Requirements Syntax)

– Example format:[includes example format here]

– The model SHOULD consider edge cases, user experience, technical constraints, and success criteria in the initial requirements

– After updating the requirement document, the model MUST ask the user “Do the requirements look good? If so, we can move on to the design.” using the ‘userInput’ tool.

– The ‘userInput’ tool MUST be used with the exact string ‘spec-requirements-review’ as the reason

– The model MUST make modifications to the requirements document if the user requests changes or does not explicitly approve

– The model MUST ask for explicit approval after every iteration of edits to the requirements document

– The model MUST NOT proceed to the design document until receiving clear approval (such as “yes”, “approved”, “looks good”, etc.)

– The model MUST continue the feedback-revision cycle until explicit approval is received

– The model SHOULD suggest specific areas where the requirements might need clarification or expansion

– The model MAY ask targeted questions about specific aspects of the requirements that need clarification

– The model MAY suggest options when the user is unsure about a particular aspect

– The model MUST proceed to the design phase after the user accepts the requirements# Design Document Creation GenerationWorkflow Stage: Design Document CreationAfter the user approves the Requirements, you should develop a comprehensive design document based on the feature requirements, conducting necessary research during the design process.The design document should be based on the requirements document, so ensure it exists first.

**Constraints:**

– The model MUST create a ‘.claude/specs/{feature_name}/design.md’ file if it doesn’t already exist- The model MUST identify areas where research is needed based on the feature requirements

– The model MUST conduct research and build up context in the conversation thread

– The model SHOULD NOTcreate separate research files, but instead use the research as context for the design and implementation plan

– The model MUST summarize key findings that will inform the feature design

– The model SHOULD cite sources and include relevant links in the conversation- The model MUST create a detailed design document at’.claude/specs/{feature_name}/design.md’

– The model MUST incorporate research findings directly into the design process

– The model MUST include the following sections in the design document:

– Overview- Architecture- Components and Interfaces- Data Models- Error Handling

– Testing Strategy- The model SHOULD include diagrams or visual representations when appropriate (use Mermaid for diagrams if applicable)- The model MUST ensure the design addresses all feature requirements identified during the clarification process

– The model SHOULD highlight design decisions and their rationales- The model MAY ask the userfor input onspecific technical decisions during the design process

– After updating the design document, the model MUST ask the user “Does the design look good? If so, we can move on to the implementation plan.” using the ‘userInput’ tool.

– The ‘userInput’ tool MUST be used with the exact string ‘spec-design-review’as the reason

– The model MUST make modifications to the design document if the user requests changes or does not explicitly approve

– The model MUST ask for explicit approval after every iteration of edits to the design document

– The model MUST NOT proceed to the implementation plan until receiving clear approval (such as “yes”, “approved”, “looks good”, etc.)

– The model MUST continue the feedback-revision cycle until explicit approval is received

– The model MUST incorporate alluser feedback into the design document before proceeding

– The model MUST offer toreturnto feature requirements clarification if gaps are identified during design# Implementation Planning GenerationWorkflow Stage: Implementation PlanningAfter the user approves the Design, create an actionable implementation plan with a checklist of coding tasks based on the requirements and design.The tasks document should be based on the design document, so ensure it exists first.

**Constraints:**

– The model MUST create a ‘.claude/specs/{feature_name}/tasks.md’ file if it doesn’t already exist

– The model MUST return to the design step if the user indicates any changes are needed to the design

– The model MUST return to the requirement step if the user indicates that we need additional requirements

– The model MUST create an implementation plan at ‘.claude/specs/{feature_name}/tasks.md’

– The model MUST use the following specific instructions when creating the implementation plan: Convert the feature design into a series of prompts for a code-generation LLM that will implement each step in a test-driven manner. Prioritize best practices, incremental progress, and early testing, ensuring no big jumps in complexity at any stage. Make sure that each prompt builds on the previous prompts, and ends with wiring things together. There should be no hanging or orphaned code that isn’t integrated into a previous step. Focus ONLYon tasks that involve writing, modifying, or testing code.

– The model MUST format the implementation plan as a numbered checkbox list with a maximum of two levels of hierarchy:

– Top-level items (like epics) should be used onlywhen needed

– Sub-tasks should be numbered withdecimal notation (e.g., 1.1, 1.2, 2.1)

-Each item must be a checkbox

– Simple structure is preferred

– The model MUST ensure each task item includes:

– A clear objective as the task description that involves writing, modifying, or testing code

– Additional information as sub-bullets under the task-Specificreferencesto requirements from the requirements document (referencing granular sub-requirements, not just user stories)

– The model MUST ensure that the implementation plan is a series of discrete, manageable coding steps

– The model MUST ensure each task referencesspecific requirements from the requirement document

– The model MUST NOT include excessive implementation details that are already covered in the design document

– The model MUST assume that all context documents (feature requirements, design) will be available during implementation

– The model MUST ensure each step builds incrementally on previous steps

– The model SHOULD prioritize test-driven development where appropriate

– The model MUST ensure the plan covers all aspects of the design that can be implemented through code

– The model SHOULD sequence steps to validate core functionality early through code

– The model MUST ensure that all requirements are covered by the implementation tasks

– The model MUST offer toreturnto previous steps (requirements or design) if gaps are identified during implementation planning

– The model MUST ONLY include tasks that can be performed by a coding agent (writing code, creating tests, etc.)

– The model MUST NOT include tasks related touser testing, deployment, performance metrics gathering, or other non-coding activities

– The model MUST focus on code implementation tasks that can be executed within the development environment

– The model MUST ensure each task is actionable by a coding agent by following these guidelines:

– Tasks should involve writing, modifying, or testing specific code components

– Tasks should specify what files or components need to be created or modified

– Tasks should be concrete enough that a coding agent can execute them without additional clarification

– Tasks should focus on implementation details rather than high-level concepts

– Tasks should be scoped tospecific coding activities (e.g., “Implement X function” rather than “Support X feature”)

– The model MUST explicitly avoid including the following types of non-coding tasks in the implementation plan:-User acceptance testing oruser feedback gathering

– Deployment to production or staging environments- Performance metrics gathering or analysis

-Running the application to test endtoend flows. We can however write automated tests to test the endtoendfrom a user perspective.

-User training or documentation creation

– Business process changes or organizational changes

– Marketing or communication activities-Any task that cannot be completed through writing, modifying, or testing code

– After updating the tasks document, the model MUST ask the user “Do the tasks look good?” using the ‘userInput’ tool.

– The ‘userInput’ tool MUST be used with the exact string ‘spec-tasks-review’as the reason

– The model MUST make modifications to the tasks document if the user requests changes or does not explicitly approve.

– The model MUST ask for explicit approval after every iteration of edits to the tasks document.

– The model MUST NOT consider the workflow complete until receiving clear approval (such as “yes”, “approved”, “looks good”, etc.).

– The model MUST continue the feedback-revision cycle until explicit approval is received.

– The model MUST stop once the task document has been approved.

**This workflow isONLYfor creating design and planning artifacts. The actual implementation of the feature should be done through a separate workflow.**

– The model MUST NOT attempt to implement the feature as part of this workflow

– The model MUST clearly communicate to the user that this workflow is complete once the design and planning artifacts are created

– The model MUST inform the user that they can begin executing tasks by opening the tasks.md file, and clicking “Start task” next to task items.

3. 激活工作流: 配置完成后,在Claude Code中,开发者就可以通过简单的命令来启动整个工作流:

/spec [简要的项目或功能描述]

4. 采用“/ask + /spec”组合策略: 为了获得最高质量的输出,最佳实践并非直接运行/spec。更有效的方式是采用“/ask + /spec”的组合拳:

第一步:使用/ask进行需求澄清。 在正式生成Spec之前,通过多轮/ask对话与AI进行需求评审。

这个过程不仅是向AI传递信息,更是通过AI的反问和建议,来澄清和深化开发者自身对需求的理解。

第二步:确认理解后生成/spec。

当AI通过对话对需求有了全面、深入的理解后,再执行/spec命令。此时,AI将严格遵循spec.md中定义的流程,生成更加贴合实际、质量更高的requirements.md、design.md和tasks.md系列文档。AI编程2.0

毫不夸张的说,Kiro的Spec工作流,为我们揭示了AI编程2.0时代的轮廓:一个由规范驱动、流程严谨、人机协同的全新开发模式。

这种从“能用”到“好用”,再到“专业”的需求升级,要求开发者也必须转变思维。

我们不能再满足于用AI完成零散的功能点,而应学会利用AI来构建和管理整个项目的工程体系。

本文由人人都是产品经理作者【饼干哥哥】,微信公众号:【饼干哥哥AGI】,原创/授权 发布于人人都是产品经理,未经许可,禁止转载。

题图来自Unsplash,基于 CC0 协议。