npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mike-ai/requirement-definition

v2.2.0

Published

AI 產品經理需求定義全流程助手 — Claude Code Skill 安裝器

Readme

requirement-definition

AI 產品經理需求定義全流程助手 · Claude Code Skill

一個面向 AI 產品經理 的 Claude Code Skill,幫你從「一句話想法」推到「可評審的四件套需求文件」。基於唯物辯證法的認識論——從使用者的真實矛盾出發推導產品方向,而不是從商業假設出發。


它能做什麼

輸入一個產品方向(例:「我想做一個 AI 廣告創意生成工具」),輸出一套可直接拿去團隊評審的需求文件:

{存檔目錄}/
  ├── 使用者畫像.md
  ├── MRD-市場需求文件.md      (含 7 維競品研究 + 反面驗證)
  ├── BRD-商業需求文件.md      (含關係人利益分析)
  ├── PRD-產品需求文件.md      (含 AI 能力、人機邊界、兜底策略)
  └── 競品分析報告.md          (獨立深度報告,回饋 PRD)

核心特點

| 維度 | 說明 | |------|------| | 矛盾驅動 | Step 1 強制識別核心矛盾,後續所有文件圍繞主要矛盾展開。防止「商業假設當需求」。 | | 6 步順序 | 使用者是誰 → 市場多大 → 商業可行嗎 → 具體做什麼 → 自檢存檔。每步等使用者確認。 | | 聯網取證 | 市場資料 / 競品資訊走 WebSearch(7 維:官網、新聞、G2、Gartner、徵才、社群、失敗案例),不憑空編造。 | | 反面驗證 | 同賽道失敗案例 + 核心假設推翻測試 + 魔鬼代言人最強反駁(含 12 個月後失敗劇本),結論必須經得起質疑。 | | 假設分級 | Step 6 假設追蹤表按 desirable/viable/feasible/usable/ethical 五維度分類,再以「影響 × 證據」決定優先驗證順序。 | | 痛點驗證標籤 | 畫像每個痛點強制標註 [推導] / [訪談 X/N 場] / [數據],把 PM 推論與用戶真實反饋分開。 | | AI 專屬維度 | 模型選型 / 資料飛輪 / 人機邊界 / 兜底策略 / 推論成本,PRD 中不可省略。 | | 範圍與驗收 | PRD 強制寫 Non-Goals(本期不做什麼)+ 零和範圍規則(加項必配減項或順延);每個 P0 配 Given/When/Then 驗收標準,覆蓋 happy + error/邊界,禁用「快/好用/直觀」等模糊詞。 | | 領域適配 | 廣告、搜尋推薦、電商、雲端服務自動追加領域特有關注點(eCPM、冷啟動、庫存連動、SLA 等)。 | | 回饋機制 | 寫 PRD 前強制回讀 Step 3 的競品分析報告,把洞察主動注入 PRD 的 5 個強錨點。 |


三種執行模式

| 模式 | 適用場景 | 時長 | |------|---------|------| | 快速模式 | 早期探索、30 分鐘內判斷 idea 是否值得做 | ~30 min | | 完整模式(預設) | 正式立項、團隊評審 | ~2 h | | 單文件模式 | 只需補某一份文件(如已有使用者畫像,只缺 PRD) | 視範圍而定 |

差別在「推導深度」,不是「是否聯網」——快速模式也跑基礎事實搜尋。


使用方式

在 Claude Code 中觸發

直接說出意圖即可,Skill 會自動啟動(繁簡中文皆可):

  • 「幫我寫個 PRD」
  • 「新專案需求梳理」
  • 「我要做一個 AI 產品,幫我立項」
  • 「需求定義」/「需求定义」
  • 「產品立項」/「产品立项」

也支援顯式呼叫:/requirement-definition

安裝到本機

方式 1:npx(推薦,不用下載源碼)

# 一鍵安裝(Mac / Linux / Windows 通用,需要 Node.js 16+)
npx requirement-definition install

# 更新到最新版
npx requirement-definition update

# 移除
npx requirement-definition uninstall

可選參數:

npx requirement-definition install --dir <自訂路徑>   # 改裝到別處
npx requirement-definition install --force            # 覆寫既有檔案
npx requirement-definition where                      # 顯示安裝位置
npx requirement-definition --help

預設安裝到 ~/.claude/skills/requirement-definition/(Windows 為 %USERPROFILE%\.claude\skills\requirement-definition\),重啟 Claude Code 後即可使用。

方式 2:git clone(需要本機保留源碼)

# Mac / Linux
git clone https://github.com/mokecome/requirement-definition.git ~/.claude/skills/requirement-definition

# Windows
git clone https://github.com/mokecome/requirement-definition.git %USERPROFILE%\.claude\skills\requirement-definition

重啟 Claude Code 後,Skill 會自動被發現。


6 步流程一覽

Step 1  專案資訊收集 + 核心矛盾識別      ←  防循環論證,三方交叉推導對立面
Step 2  使用者畫像定義(JTBD 三要素)     ←  從使用者真實生活出發
Step 3  市場與競品分析 → MRD             ←  7 維 WebSearch + 反面驗證
Step 4  商業分析 → BRD                  ←  含關係人利益衝突識別
Step 5  產品需求撰寫 → PRD              ←  回饋機制 + 矛盾回溯檢查
Step 6  魔鬼代言人檢驗 + 存檔            ←  形式 + 實質雙重自檢

每步獨立產出可評內容,等使用者確認後再進入下一步。


內建模板

references/ 下提供 5 份標準模板,Skill 執行時自動讀取:

| 檔案 | 用途 | 呼叫階段 | |------|------|----------| | 用户画像模板.md | 使用者畫像文件結構 | Step 2 | | MRD-市场需求文档模板.md | 市場需求文件結構 | Step 3 | | BRD-商业需求文档模板.md | 商業需求文件結構(含 NSM 北極星指標) | Step 4 | | PRD-产品需求文档模板.md | 產品需求文件結構 | Step 5 | | 竞品分析模板.md | 7 區塊競品分析(含 Positioning Analysis、Strategic Implications) | Step 3 |

可以獨立使用這些模板,也可以讓 Skill 自動按模板填充。


可選擴充

| Skill | 用途 | 觸發方式 | |-------|------|---------| | hv-analysis | 對單一關鍵競品做萬字級縱橫深度研究(輸出 PDF) | Step 3 中精確回覆「縱橫分析 [競品名]」 |

未安裝 hv-analysis 時會自動降級為內建深度流程,輸出 .md 報告。


檔案結構

requirement-definition/
├── SKILL.md                          # Skill 主體(流程定義 + 規則)
├── README.md                         # 本檔案
└── references/                       # 標準模板
    ├── 用户画像模板.md
    ├── MRD-市场需求文档模板.md
    ├── BRD-商业需求文档模板.md
    ├── PRD-产品需求文档模板.md
    └── 竞品分析模板.md

預設存檔位置

  • macOS / Linux:~/Documents/AI產品需求/{專案名稱}/
  • Windows:C:\Users\<使用者名稱>\Documents\AI產品需求\{專案名稱}\

Step 1 可指定其他絕對路徑覆蓋預設值。


License

MIT