@shao__meng: AI 驱动开发的七阶段 1. Grill 2. Research 3. Prototype 4. PRD 5. Issues 6. Implement 7. Review 来自 Skills For Real Engineers 作者 @…
摘要
A Twitter thread shares the seven stages of AI-driven development from the Skills For Real Engineers project by @mattpocockuk, including alignment techniques like grill sessions and tooling for coding agents.
查看缓存全文
缓存时间: 2026/06/16 03:15
AI 驱动开发的七阶段
- Grill
- Research
- Prototype
- PRD
- Issues
- Implement
- Review
来自 Skills For Real Engineers 作者 @mattpocockuk https://github.com/mattpocock/skills…
7 个阶段:目的 | 产出
- Grill:把模糊想法变成共享理解 | 问题陈述 + 对齐
- Research:缓存难探索的外部信息 | research.md
- Prototype:用可玩代码验证设计/UX | 可丢弃原型
- PRD:描述终点,而非路径 | 需求文档
- Issues:拆成可并行执行的垂直切片 | 带依赖的工单 DAG
- Implement:Agent 执行(TDD、Ralph 等) | 可运行代码
- Review:人工 QA,发现问题再回环 | QA 计划 + 新工单
/grill-with-docs:这是 /grill-me 的升级版,专为有代码库的场景设计
额外能力:
- 领域语言(CONTEXT.md) 来自 DDD 的 ubiquitous language。CONTEXT.md 只是术语表,不是 spec、不是实现笔记。 例:「materialization cascade」比「lesson 被 real 化时文件系统里占坑」省 token、可搜索、命名一致。
- ADR(docs/adr/) 只在三条件同时满足时写:难逆转、无上下文会令人惊讶、存在真实 trade-off。
- 会话中的四类动作 · 对照 glossary 挑战用词 · 用具体场景压测边界 · 对照代码发现矛盾 · 决策即时写入 CONTEXT,不批量攒
与 /grill-me 的分工:有代码库 → /grill-with-docs;无代码库(写悼词、纯产品构思)→ /grill-me。
mattpocock/skills
Source: https://github.com/mattpocock/skills
Skills For Real Engineers
My agent skills that I use every day to do real engineering - not vibe coding.
Developing real applications is hard. Approaches like GSD, BMAD, and Spec-Kit try to help by owning the process. But while doing so, they take away your control and make bugs in the process hard to resolve.
These skills are designed to be small, easy to adapt, and composable. They work with any model. They’re based on decades of engineering experience. Hack around with them. Make them your own. Enjoy.
If you want to keep up with changes to these skills, and any new ones I create, you can join ~60,000 other devs on my newsletter:
Quickstart (30-second setup)
- Run the skills.sh installer:
npx skills@latest add mattpocock/skills
-
Pick the skills you want, and which coding agents you want to install them on. Make sure you select
/setup-matt-pocock-skills. -
Run
/setup-matt-pocock-skillsin your agent. It will:- Ask you which issue tracker you want to use (GitHub, Linear, or local files)
- Ask you what labels you apply to tickets when you triage them (
/triageuses labels) - Ask you where you want to save any docs we create
-
Bam - you’re ready to go.
Why These Skills Exist
I built these skills as a way to fix common failure modes I see with Claude Code, Codex, and other coding agents.
#1: The Agent Didn’t Do What I Want
“No-one knows exactly what they want”
David Thomas & Andrew Hunt, The Pragmatic Programmer
The Problem. The most common failure mode in software development is misalignment. You think the dev knows what you want. Then you see what they’ve built - and you realize it didn’t understand you at all.
This is just the same in the AI age. There is a communication gap between you and the agent. The fix for this is a grilling session - getting the agent to ask you detailed questions about what you’re building.
The Fix is to use:
/grill-me- for non-code uses/grill-with-docs- same as/grill-me, but adds more goodies (see below)
These are my most popular skills. They help you align with the agent before you get started, and think deeply about the change you’re making. Use them every time you want to make a change.
#2: The Agent Is Way Too Verbose
With a ubiquitous language, conversations among developers and expressions of the code are all derived from the same domain model.
Eric Evans, Domain-Driven-Design
The Problem: At the start of a project, devs and the people they’re building the software for (the domain experts) are usually speaking different languages.
I felt the same tension with my agents. Agents are usually dropped into a project and asked to figure out the jargon as they go. So they use 20 words where 1 will do.
The Fix for this is a shared language. It’s a document that helps agents decode the jargon used in the project.
Example
Here’s an example CONTEXT.md, from my course-video-manager repo. Which one is easier to read?
- BEFORE: “There’s a problem when a lesson inside a section of a course is made ‘real’ (i.e. given a spot in the file system)”
- AFTER: “There’s a problem with the materialization cascade”
This concision pays off session after session.
This is built into /grill-with-docs. It’s a grilling session, but that helps you build a shared language with the AI, and document hard-to-explain decisions in ADR’s.
It’s hard to explain how powerful this is. It might be the single coolest technique in this repo. Try it, and see.
A shared language has many other benefits than reducing verbosity:
- Variables, functions and files are named consistently, using the shared language
- As a result, the codebase is easier to navigate for the agent
- The agent also spends fewer tokens on thinking, because it has access to a more concise language
#3: The Code Doesn’t Work
“Always take small, deliberate steps. The rate of feedback is your speed limit. Never take on a task that’s too big.”
David Thomas & Andrew Hunt, The Pragmatic Programmer
The Problem: Let’s say that you and the agent are aligned on what to build. What happens when the agent still produces crap?
It’s time to look at your feedback loops. Without feedback on how the code it produces actually runs, the agent will be flying blind.
The Fix: You need the usual tranche of feedback loops: static types, browser access, and automated tests.
For automated tests, a red-green-refactor loop is critical. This is where the agent writes a failing test first, then fixes the test. This helps give the agent a consistent level of feedback that results in far better code.
I’ve built a /tdd skill you can slot into any project. It encourages red-green-refactor and gives the agent plenty of guidance on what makes good and bad tests.
For debugging, I’ve also built a /diagnose skill that wraps best debugging practices into a simple loop.
#4: We Built A Ball Of Mud
“Invest in the design of the system every day.”
Kent Beck, Extreme Programming Explained
“The best modules are deep. They allow a lot of functionality to be accessed through a simple interface.”
John Ousterhout, A Philosophy Of Software Design
The Problem: Most apps built with agents are complex and hard to change. Because agents can radically speed up coding, they also accelerate software entropy. Codebases get more complex at an unprecedented rate.
The Fix for this is a radical new approach to AI-powered development: caring about the design of the code.
This is built in to every layer of these skills:
/to-prdquizzes you about which modules you’re touching before creating a PRD/zoom-outtells the agent to explain code in the context of the whole system
And crucially, /improve-codebase-architecture helps you rescue a codebase that has become a ball of mud. I recommend running it on your codebase once every few days.
Summary
Software engineering fundamentals matter more than ever. These skills are my best effort at condensing these fundamentals into repeatable practices, to help you ship the best apps of your career. Enjoy.
Reference
Engineering
Skills I use daily for code work.
- diagnose — Disciplined diagnosis loop for hard bugs and performance regressions: reproduce → minimise → hypothesise → instrument → fix → regression-test.
- grill-with-docs — Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates
CONTEXT.mdand ADRs inline. - triage — Triage issues through a state machine of triage roles.
- improve-codebase-architecture — Find deepening opportunities in a codebase, informed by the domain language in
CONTEXT.mdand the decisions indocs/adr/. - setup-matt-pocock-skills — Scaffold the per-repo config (issue tracker, triage label vocabulary, domain doc layout) that the other engineering skills consume. Run once per repo before using
to-issues,to-prd,triage,diagnose,tdd,improve-codebase-architecture, orzoom-out. - tdd — Test-driven development with a red-green-refactor loop. Builds features or fixes bugs one vertical slice at a time.
- to-issues — Break any plan, spec, or PRD into independently-grabbable GitHub issues using vertical slices.
- to-prd — Turn the current conversation context into a PRD and submit it as a GitHub issue. No interview — just synthesizes what you’ve already discussed.
- zoom-out — Tell the agent to zoom out and give broader context or a higher-level perspective on an unfamiliar section of code.
- prototype — Build a throwaway prototype to flesh out a design — either a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.
Productivity
General workflow tools, not code-specific.
- caveman — Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler while keeping full technical accuracy.
- grill-me — Get relentlessly interviewed about a plan or design until every branch of the decision tree is resolved.
- handoff — Compact the current conversation into a handoff document so another agent can continue the work.
- teach — Teach the user a new skill or concept over multiple sessions, using the current directory as a stateful teaching workspace.
- write-a-skill — Create new skills with proper structure, progressive disclosure, and bundled resources.
Misc
Tools I keep around but rarely use.
- git-guardrails-claude-code — Set up Claude Code hooks to block dangerous git commands (push, reset –hard, clean, etc.) before they execute.
- migrate-to-shoehorn — Migrate test files from
astype assertions to @total-typescript/shoehorn. - scaffold-exercises — Create exercise directory structures with sections, problems, solutions, and explainers.
- setup-pre-commit — Set up Husky pre-commit hooks with lint-staged, Prettier, type checking, and tests.
Matt Pocock (@mattpocockuk): Here are my 7 phases of AI-powered development.
I’ve been thinking that the pre-PRD phase needs more structure. You need to figure out the shape of the design tree first, before then walking down it with higher-fidelity prototypes.
In other words, /grill-with-docs needs to
相似文章
@mattpocockuk:以下是我在 AI 辅助开发中的七个阶段。我一直认为预 PRD 阶段需要更多结构。你需要先确定设计树的形态,然后再通过高保真原型逐步推进。
Matt Pocock 分享了他使用 AI 进行开发的七个阶段,并强调预 PRD 阶段需要更结构化的流程。
@arcane_bloom: 从软件工程到智能体工程的转变:五部分解析 1/6 大多数开发者在构建AI时失败…
一条推文解释了从传统软件工程过渡到智能体工程所需的5个核心思维转变,强调了为什么硬编码路由和二元测试等常规模式在AI智能体中会失效。
@DeRonin_:如果我只有 6 个月从零成为 AI 工程师,我会这样做。第一阶段:打基础——学习 Python、Git……
一位从业者分享了从零成为 AI 工程师的 6 个月路线图,涵盖软件基础、LLM 应用开发、RAG、智能体与评估、部署/可靠性以及方向选择——强调公司招聘的是在模型之上构建系统的人,而不是训练模型的人。
@vikingmute: 很棒的流程,现在也是我开发新 feature 和 新点子的主要流程: Grill 让 AI 疯狂拷问一些细节,直到清晰 -> Research 针对有难点的地方,单独分析,并且创建一个 research 文档(可以略过) -> PRD 生…
VikingMute 分享了其开发新功能和点子的主要流程:使用AI(Grill)进行细节拷问,Research分析难点,生成PRD,拆分为独立Issue,分步实现,最后Review。这是对Matt Pocock AI开发七阶段方法的补充。
AI 用户的 7 个等级(以及如何进阶)
本文提出了一个 7 级的 AI 用户熟练度框架,从基础的搜索替代到构建自主智能体系统。文章提供了在每个阶段进阶的策略,例如语境工程和多工具集成。