Convert persona docs into detailed feature specifications with acceptance criteria. Use when translating user needs into implementable specs, writing user stories, defining acceptance criteria, or preparing features for development.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install feature-specification或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install feature-specification⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/feature-specification/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: feature-specification model: reasoning description: Convert persona docs into detailed feature specifications with acceptance criteria. Use when translating user needs into implementable specs, writing user stories, defining acceptance criteria, or preparing features for development. ---
Bridge persona documentation and development. This skill translates user needs, pain points, and journeys identified in persona docs into structured, implementable feature specifications with clear acceptance criteria.
npx clawhub@latest install feature-specification
---
Persona docs define who and why. Feature specs define what and how well. This skill closes the gap:
---
docs/PERSONA.md or docs/personas/)---
Use this structure for every feature specification. Place specs in docs/specs/ or docs/features/.
# Feature: [Feature Name]
## Metadata
- **Priority:** [Must / Should / Could / Won't]
- **Target Persona:** [Persona name from persona docs]
- **Status:** Draft | Review | Approved | In Progress | Complete
- **Estimated Effort:** [T-shirt size: XS / S / M / L / XL]
## Problem Statement
[Directly reference the persona pain point this feature addresses.
Quote or link to the relevant section of persona docs.]
## Solution Description
[High-level description of what the feature does and how it solves
the problem. 2-4 sentences. No implementation details.]
## User Stories
- As a [persona], I want [action], so that [benefit].
- As a [persona], I want [action], so that [benefit].
## Acceptance Criteria
### Scenario: [Happy path description]
- **Given** [precondition]
- **When** [action]
- **Then** [expected result]
### Scenario: [Alternative path description]
- **Given** [precondition]
- **When** [action]
- **Then** [expected result]
### Scenario: [Error case description]
- **Given** [precondition]
- **When** [invalid action]
- **Then** [error handling result]
## Edge Cases
- [ ] [Edge case 1 — description and expected behavior]
- [ ] [Edge case 2 — description and expected behavior]
## Non-Functional Requirements
- **Performance:** [Response time, throughput, load targets]
- **Accessibility:** [WCAG level, keyboard nav, screen reader support]
- **Security:** [Auth requirements, data sensitivity, input validation]
- **Browser/Device:** [Support matrix]
## Dependencies
- [Feature or system this depends on]
- [External API or service required]
## Out of Scope
- [Explicitly list what this feature does NOT include]
- [Prevents scope creep during development]
## Design References
- [Link to mockups, wireframes, or design system components]
- [Screenshots or diagrams if available]
---
User stories connect persona needs to developer tasks. Apply the INVEST criteria:
| Criterion | Meaning | Test Question | |-----------|--------------------------------------|-------------------------------------------| | Independent | No ordering dependency on others | Can this be built and released alone? | | Negotiable | Details can be discussed | Is this a conversation starter, not a contract? | | Valuable | Delivers value to the persona | Would the persona care about this? | | Estimable | Team can estimate effort | Is the scope clear enough to size? | | Small | Fits in a single iteration | Can this ship in one sprint? | | Testable | Clear pass/fail verification | Can QA write a test for this? |
| Bad | Why It's Bad | Good | |-----|-------------|------| | "Users can log in" | No persona, no benefit | "As a returning customer, I want to log in with my email, so that I can access my order history" | | "Make it fast" | Vague, untestable | "As a mobile user on 3G, I want the product list to load in under 2s, so that I don't abandon the page" | | "Add admin panel" | Solution-first, no problem | "As a store manager, I want to update product prices without developer help, so that I can respond to market changes daily" | | "Handle errors" | No specificity | "As a checkout user, I want clear feedback when my payment fails, so that I know whether to retry or use a different card" | | "Implement caching" | Implementation detail, not a story | "As a repeat visitor, I want previously viewed pages to load instantly, so that browsing feels responsive" |
---
Given a logged-in customer with items in their cart
When they click "Checkout"
Then they are taken to the payment page with their cart summary visible
Given a cart with 100 items (maximum allowed)
When the user tries to add another item
Then they see "Cart limit reached — remove an item to add a new one"
And the item is NOT added to the cart
Given a user submitting the registration form
When the email field contains "not-an-email"
Then the form shows inline validation: "Enter a valid email address"
And the form is NOT submitted
And focus moves to the email field
Given an order with status "Processing"
When the warehouse marks it as shipped
Then the order status changes to "Shipped"
And the customer receives a shipping confirmation email within 5 minutes
And the tracking number is visible on the order detail page
Given a user who is NOT the account owner
When they attempt to access /account/settings via direct URL
Then they receive a 403 Forbidden response
And the access attempt is logged
---
Apply MoSCoW prioritization, anchored to persona impact:
| Priority | Label | Definition | Persona Alignment | |----------|---------|-----------------------------------------------|------------------------------------------| | P0 | Must | Product is unusable without this | Blocks the persona's primary goal | | P1 | Should | Significant value, painful to defer | Addresses a top-3 pain point | | P2 | Could | Nice to have, enhances experience | Improves a secondary journey | | P3 | Won't | Explicitly deferred (this release) | Low-frequency need or niche scenario |
Prioritization process:
---
| Anti-Pattern | Example | Fix | |-------------------------------|------------------------------------------|--------------------------------------------------| | Vague requirement | "System should be user-friendly" | Define measurable criteria: "Task completion in < 3 clicks" | | Missing edge cases | Only specifying the happy path | Add boundary, error, and concurrent-use scenarios | | No acceptance criteria | "Implement search" | Add Given/When/Then for each scenario | | Solution masquerading as need | "Use Redis for caching" | State the need: "Repeat queries return in < 50ms" | | Missing personas | "Users can export data" | Specify which persona and why they export | | Unbounded scope | "Support all file formats" | List exact formats: "PDF, CSV, XLSX" | | Implicit assumptions | Assuming auth exists without stating it | List all dependencies explicitly |
---
Feature specs connect to the broader development process:
docs/PERSONA.md) — Source of truth for user needsdocs/specs/) — This skill's output; the development contractWhen using with the /new-feature command or similar workflows:
---
安装 Feature Specification 后,可以对 AI 说这些话来触发它
Help me get started with Feature Specification
Explains what Feature Specification does, walks through the setup, and runs a quick demo based on your current project
Use Feature Specification to convert persona docs into detailed feature specifications with acce...
Invokes Feature Specification with the right parameters and returns the result directly in the conversation
What can I do with Feature Specification in my product manager workflow?
Lists the top use cases for Feature Specification, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/feature-specification/ 目录(个人级,所有项目可用),或 .claude/skills/feature-specification/(项目级)。重启 AI 客户端后,用 /feature-specification 主动调用,或让 AI 根据上下文自动发现并使用。
Feature Specification 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Feature Specification 可免费安装使用。请查阅仓库了解许可证信息。
Convert persona docs into detailed feature specifications with acceptance criteria. Use when translating user needs into implementable specs, writing user stories, defining acceptance criteria, or preparing features for development.
Feature Specification 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my product manager tasks using Feature Specification
Identifies repetitive steps in your workflow and sets up Feature Specification to handle them automatically