requirements-clarity by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill requirements-clarity通过系统性的澄清过程,采用 100 分评分系统,自动将模糊的需求转化为可执行的产品需求文档。
当被调用时,检测模糊需求:
在以下情况下请勿激活:
输入:用户的需求描述
任务:
1.0)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
./docs/prds/ 目录存在以输出 PRD评估标准:
功能清晰度:/30 分
- 清晰的输入/输出:10 分
- 定义了用户交互:10 分
- 陈述了成功标准:10 分
技术具体性:/25 分
- 提及技术栈:8 分
- 识别集成点:8 分
- 指定约束条件:9 分
实施完整性:/25 分
- 考虑了边界情况:8 分
- 提及错误处理:9 分
- 指定了数据验证:8 分
业务上下文:/20 分
- 问题陈述清晰:7 分
- 识别了目标用户:7 分
- 定义了成功指标:6 分
初始响应格式:
我理解您的需求。让我帮您完善这个规格说明。
**当前清晰度分数**:X/100
**已明确方面**:
- [列出已明确的内容]
**需要澄清**:
- [列出差距]
让我系统地澄清这些要点...
从四个维度识别缺失的信息:
1. 功能范围
2. 用户交互
3. 技术约束
4. 业务价值
提问策略:
问题格式:
我需要澄清以下几点以完成需求文档:
1. **[类别]**:[具体问题]?
- 例如:[如有帮助,提供示例]
2. **[类别]**:[具体问题]?
3. **[类别]**:[具体问题]?
请提供您的答案,我将继续完善 PRD。
每次用户响应后:
分数更新格式:
感谢您提供的额外信息!
**清晰度分数更新**:X/100 → Y/100
**新澄清的内容**:
- [总结新信息]
**仍需澄清的要点**:
- [如果分数 < 90,列出剩余差距]
[如果分数 < 90:"继续下一轮提问"]
[如果分数 ≥ 90:"很好!我现在将生成完整的 PRD 文档..."]
一旦清晰度分数 ≥ 90,生成全面的 PRD。
输出文件:
./docs/prds/{feature_name}-v{version}-prd.md使用 Write 工具创建或更新此文件。从 PRD 中记录的文档版本(默认为 1.0)推导出 {version}。
# {功能名称} - 产品需求文档
## 需求描述
### 背景
- **业务问题**:[描述要解决的业务问题]
- **目标用户**:[目标用户群体]
- **价值主张**:[此功能带来的价值]
### 功能概述
- **核心功能**:[主要功能列表]
- **功能边界**:[包含和不包含的内容]
- **用户场景**:[典型使用场景]
### 详细需求
- **输入/输出**:[具体的输入/输出规格]
- **用户交互**:[用户操作流程]
- **数据要求**:[数据结构和验证规则]
- **边界情况**:[边界情况处理]
## 设计决策
### 技术方案
- **架构选择**:[技术架构决策及理由]
- **关键组件**:[主要技术组件列表]
- **数据存储**:[数据模型和存储方案]
- **接口设计**:[API/接口规格]
### 约束条件
- **性能要求**:[响应时间、吞吐量等]
- **兼容性**:[系统兼容性要求]
- **安全性**:[安全考虑]
- **可扩展性**:[未来扩展考虑]
### 风险评估
- **技术风险**:[潜在技术风险及缓解计划]
- **依赖风险**:[外部依赖及替代方案]
- **进度风险**:[时间线风险及应对策略]
## 验收标准
### 功能验收
- [ ] 功能 1:[具体验收条件]
- [ ] 功能 2:[具体验收条件]
- [ ] 功能 3:[具体验收条件]
### 质量标准
- [ ] 代码质量:[代码标准和审查要求]
- [ ] 测试覆盖率:[测试要求和覆盖率]
- [ ] 性能指标:[性能测试通过标准]
- [ ] 安全审查:[安全审查要求]
### 用户验收
- [ ] 用户体验:[UX 验收标准]
- [ ] 文档:[文档交付要求]
- [ ] 培训材料:[如需,培训材料要求]
## 执行阶段
### 阶段 1:准备
**目标**:环境准备和技术验证
- [ ] 任务 1:[具体任务描述]
- [ ] 任务 2:[具体任务描述]
- **交付物**:[阶段交付物]
- **时间**:[预计时间]
### 阶段 2:核心开发
**目标**:实现核心功能
- [ ] 任务 1:[具体任务描述]
- [ ] 任务 2:[具体任务描述]
- **交付物**:[阶段交付物]
- **时间**:[预计时间]
### 阶段 3:集成与测试
**目标**:集成和质量保证
- [ ] 任务 1:[具体任务描述]
- [ ] 任务 2:[具体任务描述]
- **交付物**:[阶段交付物]
- **时间**:[预计时间]
### 阶段 4:部署
**目标**:发布和监控
- [ ] 任务 1:[具体任务描述]
- [ ] 任务 2:[具体任务描述]
- **交付物**:[阶段交付物]
- **时间**:[预计时间]
---
**文档版本**:1.0
**创建时间**:{时间戳}
**澄清轮次**:{澄清轮次}
**质量分数**:{质量分数}/100
- [ ] 格式)每周安装量
176
仓库
GitHub 星标数
22.6K
首次出现
2026年1月25日
安全审计
安装于
opencode147
claude-code143
gemini-cli129
cursor129
codex125
github-copilot112
Automatically transforms vague requirements into actionable PRDs through systematic clarification with a 100-point scoring system.
When invoked, detect vague requirements:
Vague Feature Requests
Missing Technical Context
Incomplete Specifications
Ambiguous Scope
Do NOT activate when :
Systematic Questioning
Quality-Driven Iteration
Actionable Output
Input : User's requirement description
Tasks :
1.0 unless user specifies otherwise)./docs/prds/ exists for PRD outputAssessment Rubric :
Functional Clarity: /30 points
- Clear inputs/outputs: 10 pts
- User interaction defined: 10 pts
- Success criteria stated: 10 pts
Technical Specificity: /25 points
- Technology stack mentioned: 8 pts
- Integration points identified: 8 pts
- Constraints specified: 9 pts
Implementation Completeness: /25 points
- Edge cases considered: 8 pts
- Error handling mentioned: 9 pts
- Data validation specified: 8 pts
Business Context: /20 points
- Problem statement clear: 7 pts
- Target users identified: 7 pts
- Success metrics defined: 6 pts
Initial Response Format :
I understand your requirement. Let me help you refine this specification.
**Current Clarity Score**: X/100
**Clear Aspects**:
- [List what's clear]
**Needs Clarification**:
- [List gaps]
Let me systematically clarify these points...
Identify missing information across four dimensions:
1. Functional Scope
2. User Interaction
3. Technical Constraints
4. Business Value
Question Strategy :
Question Format :
I need to clarify the following points to complete the requirements document:
1. **[Category]**: [Specific question]?
- For example: [Example if helpful]
2. **[Category]**: [Specific question]?
3. **[Category]**: [Specific question]?
Please provide your answers, and I'll continue refining the PRD.
After Each User Response :
Score Update Format :
Thank you for the additional information!
**Clarity Score Update**: X/100 → Y/100
**New Clarified Content**:
- [Summarize new information]
**Remaining Points to Clarify**:
- [List remaining gaps if score < 90]
[If score < 90: Continue with next round of questions]
[If score ≥ 90: "Perfect! I will now generate the complete PRD document..."]
Once clarity score ≥ 90, generate comprehensive PRD.
Output File :
./docs/prds/{feature_name}-v{version}-prd.mdUse the Write tool to create or update this file. Derive {version} from the document version recorded in the PRD (default 1.0).
# {Feature Name} - Product Requirements Document (PRD)
## Requirements Description
### Background
- **Business Problem**: [Describe the business problem to solve]
- **Target Users**: [Target user groups]
- **Value Proposition**: [Value this feature brings]
### Feature Overview
- **Core Features**: [List of main features]
- **Feature Boundaries**: [What is and isn't included]
- **User Scenarios**: [Typical usage scenarios]
### Detailed Requirements
- **Input/Output**: [Specific input/output specifications]
- **User Interaction**: [User operation flow]
- **Data Requirements**: [Data structures and validation rules]
- **Edge Cases**: [Edge case handling]
## Design Decisions
### Technical Approach
- **Architecture Choice**: [Technical architecture decisions and rationale]
- **Key Components**: [List of main technical components]
- **Data Storage**: [Data models and storage solutions]
- **Interface Design**: [API/interface specifications]
### Constraints
- **Performance Requirements**: [Response time, throughput, etc.]
- **Compatibility**: [System compatibility requirements]
- **Security**: [Security considerations]
- **Scalability**: [Future expansion considerations]
### Risk Assessment
- **Technical Risks**: [Potential technical risks and mitigation plans]
- **Dependency Risks**: [External dependencies and alternatives]
- **Schedule Risks**: [Timeline risks and response strategies]
## Acceptance Criteria
### Functional Acceptance
- [ ] Feature 1: [Specific acceptance conditions]
- [ ] Feature 2: [Specific acceptance conditions]
- [ ] Feature 3: [Specific acceptance conditions]
### Quality Standards
- [ ] Code Quality: [Code standards and review requirements]
- [ ] Test Coverage: [Testing requirements and coverage]
- [ ] Performance Metrics: [Performance test pass criteria]
- [ ] Security Review: [Security review requirements]
### User Acceptance
- [ ] User Experience: [UX acceptance criteria]
- [ ] Documentation: [Documentation delivery requirements]
- [ ] Training Materials: [If needed, training material requirements]
## Execution Phases
### Phase 1: Preparation
**Goal**: Environment preparation and technical validation
- [ ] Task 1: [Specific task description]
- [ ] Task 2: [Specific task description]
- **Deliverables**: [Phase deliverables]
- **Time**: [Estimated time]
### Phase 2: Core Development
**Goal**: Implement core functionality
- [ ] Task 1: [Specific task description]
- [ ] Task 2: [Specific task description]
- **Deliverables**: [Phase deliverables]
- **Time**: [Estimated time]
### Phase 3: Integration & Testing
**Goal**: Integration and quality assurance
- [ ] Task 1: [Specific task description]
- [ ] Task 2: [Specific task description]
- **Deliverables**: [Phase deliverables]
- **Time**: [Estimated time]
### Phase 4: Deployment
**Goal**: Release and monitoring
- [ ] Task 1: [Specific task description]
- [ ] Task 2: [Specific task description]
- **Deliverables**: [Phase deliverables]
- **Time**: [Estimated time]
---
**Document Version**: 1.0
**Created**: {timestamp}
**Clarification Rounds**: {clarification_rounds}
**Quality Score**: {quality_score}/100
- [ ] format)Weekly Installs
176
Repository
GitHub Stars
22.6K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode147
claude-code143
gemini-cli129
cursor129
codex125
github-copilot112
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装
OpenAI API 完整文档技能 - 官方文档集成与智能问答助手
1 周安装
Next.js 官方文档中文指南 - 从入门到精通,掌握App Router、数据获取与性能优化
1 周安装
Hono 框架中文文档 | 轻量级 Web 框架,支持 Bun、Deno、Cloudflare Workers
1 周安装
Express.js 全面中文文档与 API 参考 | 涵盖安全漏洞、性能优化与迁移指南
1 周安装
Drizzle ORM 完整文档 | 无头 ORM 与类 SQL 查询指南
1 周安装
Cortex 文档大全 | 集成指南与 API 参考 | 涵盖 FireHydrant、ServiceNow、Datadog 等
1 周安装