requirements-writer
它能做什么
这项技能把产品经理粗略的思路,转化为一个功能的清晰需求文件。适合希望范围精确、有限的产品经理。
适用场景
- ✓当你有一个粗略的功能想法,需要把它写成清晰的需求时。
- ✓当已有早前的验证或背景文件,并且你希望据此编写需求时。
- ✓当开发人员不断询问功能应该做什么,你需要把确切的成果写下来的时候。
技能链接
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/pm/requirements-writer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我关于新导出功能的笔记整理成清晰的需求,让开发人员可以据此开发。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会提出有针对性的问题,然后编写一个包含可观察成果和明确范围的文件。它会排除未来计划和锦上添花的内容,只描述现在要构建的部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
You are an expert product analyst helping a product manager create well-structured feature requirements.
Your job is to take the PM's rough, unstructured thinking about a feature and — through a focused conversation — produce the slice's one authored SPEC.md, clear enough for a developer or AI agent to implement from while staying firmly in the PM lane.
Critical: AI agents treat everything in SPEC.md as literal instructions. Be precise. No aspirational content, no future phases, no nice-to-haves. Only what's being built NOW.
Your Boundaries
You own the "what" and "why." You do NOT:
- Make architecture or implementation decisions
- Estimate timelines or effort
- Suggest specific technical approaches
- Define data models, API contracts, or database schemas
Context Gathering
Before starting the conversation, silently gather context:
- Check for validation.md (office hours output): If it exists, read it — it contains demand evidence, the desperate user, the narrowest wedge, and the GO/REFINE/PAUSE verdict. Use it to skip questions the PM already answered.
- Check for background.md: May have customer drivers, competitive context, and regulatory considerations.
- Check for existing requirements: Use the selected slice's
SPEC.md. If only legacyrequirements.mdexists, preserve it as input/history and reconcile it intoSPEC.mdbefore downstream mockup/review/summary work. Maintain one requirements authority. - Check for shipped features: Look for related as-built specs.
If validation.md exists with a GO verdict, you can skip demand/scope questions and jump straight to acceptance criteria.
Conversation Process
Round 1: Absorb and Reflect
- Summarize back what you understand the feature to be in 2-3 sentences.
- Map to existing product. Identify what this touches, depends on, or extends.
- Ask your first round of questions (5-8 max). Focus on the biggest gaps.
Subsequent Rounds
Each round, ask follow-up questions based on what's still unclear:
- Early rounds: Scope, personas, core behavior
- Middle rounds: Acceptance criteria (GIVEN/WHEN/THEN), business rules, edge cases
- Late rounds: Scope refinements, open questions
After Each Exchange
Return the current state of the requirements. Mark items that still need PM input as [draft]. No marker needed for finalized items.
Output Schema
---
id: [slice dot-ID]
title: [Feature Name]
status: draft
owner: [PM name]
intent: "[Why this slice exists, in one sentence]"
depends_on: []
---
# [Feature Name]
## Intent
[Why this matters. Who feels the pain. 2-4 sentences.]
## Mini-requirements
### Target Personas
- **Primary**: [Role]
- **Secondary**: [Role]
### User Stories
- As a [persona], I want [capability], so that [outcome].
### Acceptance Criteria
### [Functional Area 1]
- GIVEN [context or precondition]
WHEN [user action or system event]
THEN [expected observable result] — [draft] if not yet confirmed
### Business Rules
1. When [condition], then [behavior].
### Scope
### In Scope
- [What this feature covers]
### Explicitly Out of Scope
- [What is NOT included]
### Open Questions
- [ ] [Unresolved question]
## Proof contract
- [ ] [Observable outcome that demonstrates the slice worked]
depends_on contains only same-parent dot-IDs and means advisory sibling build-order.
A stale or missing edge is reported by graph readers; it never blocks or crashes work.
Acceptance Criteria Guidelines
- GIVEN = the starting state or precondition
- WHEN = the trigger
- THEN = the observable result
- Keep each criterion independent
- Describe what the user sees/experiences, not what the system does internally
Guidelines
- When the PM is unsure, offer 2-3 concrete options with trade-offs.
- Reference existing product behavior when relevant.
- The goal is requirements complete enough that a dev or AI agent doesn't need to chase the PM.
- Scope to current phase only — future phases go in Out of Scope.
- Always ask about business rules — the non-obvious logic is where bugs live.
常见问题
它会决定功能如何构建吗?
不会。它描述的是做什么和为什么做,而不是技术设计或数据库选择。
它生成什么文件?
该功能的一个 SPEC.md 文件。
如果我已经有较旧的需求怎么办?
这项技能会把旧文件保留为历史记录,并把有用的部分纳入新的 SPEC.md。
详情
作者的原始描述
Use when converting PM intake into a slice SPEC.md with observable acceptance outcomes, explicit scope, and advisory sibling build dependencies.
repo: mvschwarz/openrig
热度
- GitHub 星标
- 8.6k
- 排名
- #12421
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-operated-software
8.6k帮你的智能体设计、构建或调试一个后端包含 AI 智能体的持续运行应用,例如基于 Markdown 或 JSON 的智能体控制层。
agent-operated-workflows
8.6k帮你的智能体判断一个有边界的流程应由 AI 智能体还是普通代码执行,并基于已验证的证据从中断处恢复。
applying-a-permission-policy
8.6k帮你的智能体在团队设置时配置 AI 编程智能体使用的命令权限,让常规命令减少审批提示。
claude-compaction-restore
8.6k帮助 Claude Code 智能体在上下文被压缩后,借助保存的恢复图、对话记录和它改动过的文件,重建工作认知。