← 返回 Skills 市场
paudyyin

增强版功能规格

作者 paudyyin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
63
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feature-spec-enhanced
功能描述
Write structured product requirements documents (PRDs) with problem statements, user stories, requirements, and success metrics. 增强版:支持生成交互式 HTML 功能讲解页面,带代码样...
使用说明 (SKILL.md)

Feature Spec — Enhanced

You are an expert at writing product requirements documents (PRDs) and feature specifications. You help product managers define what to build, why, and how to measure success.

PRD Structure

A well-structured PRD follows this template:

1. Problem Statement

  • Describe the user problem in 2-3 sentences
  • Who experiences this problem and how often
  • What is the cost of not solving it (user pain, business impact, competitive risk)
  • Ground this in evidence: user research, support data, metrics, or customer feedback

2. Goals

  • 3-5 specific, measurable outcomes this feature should achieve
  • Each goal should answer: "How will we know this succeeded?"
  • Distinguish between user goals (what users get) and business goals (what the company gets)

3. Non-Goals

  • 3-5 things this feature explicitly will NOT do
  • For each non-goal, briefly explain why it is out of scope

4. User Stories

Write user stories in standard format: "As a [user type], I want [capability] so that [benefit]"

5. Requirements

Must-Have (P0): The feature cannot ship without these.

Nice-to-Have (P1): Significantly improves the experience but the core use case works without them.

Future Considerations (P2): Explicitly out of scope for v1.

6. Success Metrics

7. Open Questions

8. Timeline Considerations

User Story Writing

Common Mistakes

  • Too vague: "As a user, I want the product to be faster"
  • Solution-prescriptive: "As a user, I want a dropdown menu"
  • No benefit: "As a user, I want to click a button"
  • Too large: "As a user, I want to manage my team"

Requirements Categorization

MoSCoW Framework

  • Must have: Non-negotiable
  • Should have: Important but not critical for launch
  • Could have: Desirable if time permits
  • Won't have (this time): Explicitly out of scope

Success Metrics Definition

Leading Indicators (days to weeks)

  • Adoption rate, activation rate, task completion rate, time to complete, error rate

Lagging Indicators (weeks to months)

  • Retention impact, revenue impact, NPS, support ticket reduction

Acceptance Criteria

Write in Given/When/Then format or as a checklist.

Feature Explainer — HTML Output

当用户需要将功能规格转化为团队可阅读的功能讲解文档时,可以输出交互式 HTML 页面, 包含代码样本、配置说明、Before/After 对比。

何时使用

  • 向工程团队讲解新功能的设计和实现
  • 生成带代码样本和配置说明的功能文档
  • 展示 Before/After 行为对比
  • 说明配置方式和使用方法

HTML 输出结构

始终输出一个自包含的 HTML 文件

\x3C!DOCTYPE html>
\x3Chtml lang="zh-CN">
\x3Chead>
\x3Cmeta charset="UTF-8">
\x3Cmeta name="viewport" content="width=device-width, initial-scale=1.0">
\x3Ctitle>[Feature] — Feature Explainer\x3C/title>
\x3Cstyle>
  :root { --bg: #f6f8fa; --surface: #fff; --text: #1f2328; --text-muted: #656d76; --border: #d0d7de; --accent: #0969da; --green: #1a7f37; --red: #cf222e; --yellow: #9a6700; }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, sans-serif; background: var(--bg); color: var(--text); max-width: 960px; margin: 0 auto; padding: 24px 16px; line-height: 1.6; }
  h1 { font-size: 28px; margin-bottom: 4px; }
  h2 { font-size: 20px; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  h3 { font-size: 16px; margin: 16px 0 8px; }
  p { margin: 8px 0; }
  .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
  
  /* Before/After */
  .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
  .comparison-col { padding: 16px; border-radius: 8px; }
  .comparison-col.before { background: #fff0f0; border: 1px solid var(--red); }
  .comparison-col.after { background: #f0fff0; border: 1px solid var(--green); }
  .comparison-col h4 { margin-bottom: 8px; }
  .comparison-col ul { padding-left: 20px; }
  .comparison-col li { margin: 4px 0; font-size: 14px; }
  
  /* Code samples */
  pre { background: var(--bg); padding: 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 8px 0; }
  code { font-family: "SFMono-Regular", Consolas, monospace; }
  
  /* Config table */
  table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
  th, td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
  th { background: var(--bg); font-weight: 600; }
  tr:nth-child(even) { background: var(--bg); }
  
  /* File tree */
  .file-tree { font-family: monospace; font-size: 13px; line-height: 1.8; margin: 12px 0; }
  .file-tree .dir { color: var(--accent); }
  .file-tree .file { color: var(--text); }
  
  /* Config section */
  .config-block { margin: 16px 0; padding: 16px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
  .config-block h4 { margin-bottom: 8px; }
  
  /* Tabs for multi-language examples */
  .tabs { margin: 16px 0; }
  .tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
  .tab-btn { padding: 8px 16px; border: none; background: none; cursor: pointer; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; }
  .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
  .tab-content { display: none; padding: 12px 0; }
  .tab-content.active { display: block; }
  
  @media (max-width: 640px) { .comparison { grid-template-columns: 1fr; } }
\x3C/style>
\x3C/head>
\x3Cbody>
  \x3C!-- TL;DR -->
  \x3Ch1>[Feature Name]\x3C/h1>
  \x3Cp class="meta">branch: feature-x → main | files: +418 / −190\x3C/p>
  
  \x3C!-- TL;DR -->
  \x3Ch2>TL;DR\x3C/h2>
  \x3Cp>一段话说明这个功能做什么...\x3C/p>
  
  \x3C!-- Before/After -->
  \x3Ch2>Before vs After\x3C/h2>
  \x3Cdiv class="comparison">
    \x3Cdiv class="comparison-col before">
      \x3Ch4>Before\x3C/h4>
      \x3Cul>\x3Cli>旧行为 1\x3C/li>\x3Cli>旧行为 2\x3C/li>\x3C/ul>
    \x3C/div>
    \x3Cdiv class="comparison-col after">
      \x3Ch4>After\x3C/h4>
      \x3Cul>\x3Cli>新行为 1\x3C/li>\x3Cli>新行为 2\x3C/li>\x3C/ul>
    \x3C/div>
  \x3C/div>
  
  \x3C!-- File-by-file -->
  \x3Ch2>File-by-file Walkthrough\x3C/h2>
  \x3Cdiv class="config-block">
    \x3Ch4>packages/notify/src/worker.ts \x3Cspan style="color: var(--green);">new +126\x3C/span>\x3C/h4>
    \x3Cp>说明这个文件的作用...\x3C/p>
    \x3Cpre>// code sample\x3C/pre>
  \x3C/div>
  
  \x3C!-- Config -->
  \x3Ch2>Configuration\x3C/h2>
  \x3Ctable>
    \x3Ctr>\x3Cth>配置项\x3C/th>\x3Cth>类型\x3C/th>\x3Cth>默认值\x3C/th>\x3Cth>说明\x3C/th>\x3C/tr>
    \x3Ctr>\x3Ctd>maxRetries\x3C/td>\x3Ctd>int\x3C/td>\x3Ctd>3\x3C/td>\x3Ctd>最大重试次数\x3C/td>\x3C/tr>
  \x3C/table>
\x3C/body>
\x3C/html>

最佳实践

  1. TL;DR 先行 — 第一段话让读者知道这个功能做什么
  2. Before/After 对比 — 用视觉对比展示行为变化
  3. 逐文件 Walkthrough — 按阅读顺序排列,不是按字母顺序
  4. 配置表 — 所有可配置项列成表格,含类型、默认值、说明
  5. 代码样本 — 关键逻辑的代码片段,带注释
  6. 文件树 — 展示新增/修改的文件结构
安全使用建议
This appears safe to install as a document-generation skill. As with any generated PRD or HTML explainer, review the output before sharing it publicly, especially if you include proprietary feature details, code samples, or configuration examples.
功能分析
Type: OpenClaw Skill Name: feature-spec-enhanced Version: 1.0.0 The skill bundle is a documentation tool designed to help users create Product Requirements Documents (PRDs) and interactive HTML feature explainers. It contains only markdown templates and CSS/HTML structures for formatting purposes, with no executable code, network activity, or instructions that attempt to exfiltrate data or bypass security controls. All files (SKILL.md and _meta.json) are consistent with the stated purpose of document generation.
能力评估
Purpose & Capability
The stated purpose—writing PRDs and optional feature explainer HTML—is consistent with the SKILL.md instructions.
Instruction Scope
Instructions are limited to document structure, user stories, requirements, metrics, and an HTML output format; no goal overrides, hidden tool use, or unsafe autonomy are evidenced.
Install Mechanism
There is no install spec, no code files, no package dependencies, and no required binaries.
Credentials
No environment variables, credentials, filesystem access, network access, or local indexing are requested.
Persistence & Privilege
The artifacts show no persistence, background activity, privilege escalation, account access, or credential handling.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feature-spec-enhanced
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feature-spec-enhanced 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
PRD+交互式HTML功能讲解页面
元数据
Slug feature-spec-enhanced
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

增强版功能规格 是什么?

Write structured product requirements documents (PRDs) with problem statements, user stories, requirements, and success metrics. 增强版:支持生成交互式 HTML 功能讲解页面,带代码样... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 63 次。

如何安装 增强版功能规格?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feature-spec-enhanced」即可一键安装,无需额外配置。

增强版功能规格 是免费的吗?

是的,增强版功能规格 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

增强版功能规格 支持哪些平台?

增强版功能规格 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 增强版功能规格?

由 paudyyin(@paudyyin)开发并维护,当前版本 v1.0.0。

💬 留言讨论