Communitygithub.com

Lev-it/lev-skills

將當前對話內容轉換為產品需求文檔(PRD)並發布到項目問題追蹤器 — 無需訪談,僅需匯整你已討論過的內容。

lev-skills 是什麼?

此技能主要功能是將當前對話上下文與對代碼庫的理解進行綜合,自動生成一份結構清晰的產品需求文檔(PRD),然後直接發布到項目的問題追蹤器中。開發者無需再進行冗長的訪談流程,技能會利用已有的討論資訊完成文檔產出。生成 PRD 的過程中,技能會先探索代碼庫以了解當前狀態,並使用項目的領域詞彙表詞彙,同時尊重相關的架構決策記錄(ADR)。接著,它會規劃出用於測試功能的最佳隔離邊界(seam),優先選用現有邊界,數量越少越好,並與用戶確認這些邊界是否符合預期。最後,技能會按照一個包含問題陳述、解決方案、用戶故事、實現決策、測試決策和範圍外事項的模板撰寫 PRD,並將其發布到問題追蹤器,同時自動打上 `ready-for-agent` 的分類標籤。此技能主要適用於支援問題追蹤器集成的開發環境或 AI 編碼代理(如 Cursor、Claude Code 等),能顯著加速從討論到可執行文檔的轉換過程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Lev-it/lev-skills/tree/HEAD/.claude/skills/to-prd

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

此技能會根據當前的對話上下文和對代碼庫的理解,產出產品需求文檔(PRD)。請勿對用戶進行訪談——僅需匯整你已知的資訊。

問題追蹤器和分類標籤詞彙表應已提供給你——如果尚未提供,請執行 /setup-matt-pocock-skills。

流程

  1. 探索代碼庫以了解當前狀態(如果尚未這麼做)。在整個 PRD 中使用項目的領域詞彙表詞彙,並在你觸及的區域中尊重相關的架構決策記錄(ADR)。

  2. 草擬你將用來測試該功能的隔離邊界(seam)。優先選用現有的隔離邊界,而非新增。使用盡可能高的隔離邊界。如果需要新的隔離邊界,請在你所能達到的最高層級提出建議。代碼庫中的隔離邊界越少越好——理想數量是一個。

與用戶確認這些隔離邊界是否符合他們的預期。

  1. 使用以下模板撰寫 PRD,然後將其發布到項目問題追蹤器。套用 ready-for-agent 分類標籤——無需額外的分類處理。

問題陳述

從用戶角度出發,用戶面臨的問題。

解決方案

從用戶角度出發,問題的解決方案。

用戶故事

一個長篇、編號的用戶故事列表。每個用戶故事應遵循以下格式:

  1. 身為一個<角色>,我希望<某個功能>,以便<某個好處>

此用戶故事列表應非常詳盡,並涵蓋該功能的所有方面。

實現決策

一系列已做出的實現決策。可以包含:

  • 將要構建/修改的模組
  • 這些模組將要修改的介面
  • 來自開發者的技術說明
  • 架構決策
  • 資料表結構變更
  • API 合約
  • 特定互動

請勿包含特定的檔案路徑或程式碼片段。它們可能很快就會過時。

例外:如果原型產生的程式碼片段能夠比散文更精確地編碼某個決策(例如狀態機、reducer、資料表結構、類型形狀),則將其內聯到相關決策中,並簡短註明其來自原型。僅保留富含決策價值的部分——不是一個可運行的展示,僅是重要的部分。

測試決策

一系列已做出的測試決策。包含:

  • 什麼構成一個好的測試的描述(僅測試外部行為,不測試實作細節)
  • 哪些模組將被測試
  • 測試的前例(即,代碼庫中相似的測試類型)

不在此範圍內

此 PRD 中不涵蓋的事項的描述。

進一步說明

關於此功能的任何進一步說明。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

Lev-it/lev-skills

Ask which skill or flow fits your situation. A router over the user-invoked skills in this repo.

Lev-it/lev-skills

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.

Lev-it/lev-skills

Compact the current conversation into a handoff document for another agent to pick up.

Lev-it/lev-skills

Ink terminal renderer for json-render that turns JSON specs into interactive terminal UIs. Use when working with @json-render/ink, building terminal UIs from JSON, creating terminal component catalogs, or rendering AI-generated specs in the terminal.

Lev-it/lev-skills

Interactive QA session where user reports bugs or issues conversationally, and the agent files GitHub issues. Explores the codebase in the background for context and domain language. Use when user wants to report bugs, do QA, file issues conversationally, or mentions "QA session".

Lev-it/lev-skills

Facilitate a structured sprint retrospective — what went well, what didn't, and prioritized action items with owners and deadlines. Use when running a retrospective, reflecting on a sprint, creating action items from team feedback, or learning how to run effective retros.

Lev-it/lev-skills

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".

Lev-it/lev-skills

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Lev-it/lev-skills

Teach the user a new skill or concept, within this workspace.

Lev-it/lev-skills

Move issues through a state machine of triage roles — categorise, reproduce, grill if needed, and write agent-ready briefs.

Lev-it/lev-skills

Create product backlog items in Why-What-Acceptance format — independent, valuable, testable items with strategic context. Use when writing structured backlog items, breaking features into work items, or using the WWA format.

相關技能