用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HashWarlock/clawdi-plugins --skill write-spec命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | write_spec |
| description | Write a comprehensive product specification document for a feature or project |
| metadata | {"openclaw":{"tags":["product-management","spec","documentation","planning"]}} |
Write a comprehensive product specification document for a new feature, project, or initiative. This skill gathers context from existing tasks and documents, then produces a structured spec ready for review.
Activate this skill when the user wants to:
Ask the user for the core inputs if they have not provided them:
Accept whatever level of detail the user provides. The skill should produce value even from a single sentence like "we need a better onboarding flow".
Use capability_execute with the following parameters:
docs.search_filesproduct-managementquery: the feature name and key terms from the problem statementmaxResults: 10Look for:
Incorporate relevant findings as context for the spec.
Use capability_execute with the following parameters:
project.list_tasksproduct-managementquery: the feature name and related keywordsstatus: "all" (include completed and open tasks)maxResults: 15Identify:
Use capability_execute with the following parameters:
research.web_searchproduct-managementquery: the problem space, how other products solve itmaxResults: 10This step is optional. Use it when:
Skip it for purely internal features with no external analog.
Compose the specification using all gathered context.
Use capability_execute with the following parameters:
docs.create_briefproduct-managementtitle: "Spec: {feature name}"content: the formatted spec contentfolder: user-specified location or default specs folderThis capability is optional. If it returns needs_setup, present the spec
inline and let the user copy it.
## Product Specification: {Feature Name}
**Author:** {user name or "Product Team"}
**Date:** {current date}
**Status:** Draft
**Version:** 1.0
---
### 1. Problem Statement
{2-3 paragraphs describing the problem this feature solves.
Include user pain points, business impact, and any data supporting
the need for this feature.}
### 2. Goals and Non-Goals
**Goals:**
- {goal 1: measurable outcome this feature should achieve}
- {goal 2}
- {goal 3}
**Non-Goals:**
- {non-goal 1: explicitly out of scope to prevent scope creep}
- {non-goal 2}
### 3. Target Users
| User Segment | Description | Primary Need |
|-------------|-------------|--------------|
| {segment 1} | {description} | {what they need from this feature} |
| {segment 2} | {description} | {what they need} |
### 4. Proposed Solution
**Overview:**
{2-3 paragraphs describing the proposed approach at a high level.}
**Key User Flows:**
**Flow 1: {flow name}**
1. User {action}
2. System {response}
3. User {action}
4. System {response}
**Flow 2: {flow name}**
1. User {action}
2. System {response}
3. ...
### 5. Detailed Requirements
| ID | Requirement | Priority | Notes |
|----|------------|----------|-------|
| R1 | {requirement} | P0 | {notes} |
| R2 | {requirement} | P0 | {notes} |
| R3 | {requirement} | P1 | {notes} |
| R4 | {requirement} | P2 | {notes} |
### 6. Technical Considerations
{2-3 paragraphs on technical approach, architecture implications,
API changes, data model changes, or infrastructure needs.}
### 7. Dependencies
- {dependency 1: other teams, features, or systems this depends on}
- {dependency 2}
### 8. Success Metrics
| Metric | Current | Target | Measurement Method |
|--------|---------|--------|-------------------|
| {metric} | {baseline} | {target} | {how to measure} |
| {metric} | {baseline} | {target} | {how to measure} |
### 9. Timeline Estimate
| Phase | Duration | Description |
|-------|----------|-------------|
| Design | {duration} | {description} |
| Build | {duration} | {description} |
| Test | {duration} | {description} |
| Launch | {duration} | {description} |
### 10. Open Questions
- {question 1: unresolved decision or unknown}
- {question 2}
- {question 3}
### 11. References
- {link to related doc}
- {link to related task}
- {link to related research}
---
**Related tasks found:** {list any existing tasks discovered in Step 3}
**Prior work found:** {list any existing docs discovered in Step 2}
Adjust section depth based on the maturity of the idea. For early-stage concepts, sections 4-6 can be shorter with more open questions. For well-defined features, provide maximum detail in requirements and technical considerations.