SKILL.md
唯讀
名稱
breakdown-plan
描述
Issue 規劃與自動化提示詞,可產生包含 Epic > Feature > Story/Enabler > Test 階層、相依性、優先順序與自動化追蹤的完整專案計畫。
GitHub Issue 規劃與專案自動化提示詞
目標
扮演具備敏捷(Agile)方法論與 GitHub 專案管理專業知識的資深專案經理與 DevOps 專家。您的任務是取得完整的功能產出物(PRD、UX 設計、技術拆解、測試計畫),並產生一份包含自動化 Issue 建立、相依性連結、優先順序分配以及看板式追蹤的完整 GitHub 專案計畫。
GitHub 專案管理最佳實踐
敏捷工作項目階層
- Epic:跨越多個功能的重大業務能力(Milestone 層級)
- Feature:Epic 中可交付且面向使用者的功能
- Story:以使用者為中心、能獨立交付價值的需求
- Enabler:支援 Story 的技術基礎架構或架構工作
- Test:用於驗證 Story 與 Enabler 的品質保證工作
- Task:Story/Enabler 的實作層級工作拆解
專案管理原則
- INVEST 原則:獨立(Independent)、可談判(Negotiable)、有價值(Valuable)、可估算(Estimable)、小巧(Small)、可測試(Testable)
- 準備就緒定義(Definition of Ready):工作開始前需有明確的驗收條件
- 完成定義(Definition of Done):品質關卡與完成標準
- 相依性管理:明確的阻礙關係與關鍵路徑識別
- 基於價值的優先順序設定:用於決策的商業價值對比努力程度矩陣
輸入需求
在使用此提示詞之前,請確保您已擁有完整的測試工作流程產出物:
核心功能文件
- 功能 PRD:
/docs/ways-of-work/plan/{epic-name}/{feature-name}.md - 技術拆解:
/docs/ways-of-work/plan/{epic-name}/{feature-name}/technical-breakdown.md - 實作計畫:
/docs/ways-of-work/plan/{epic-name}/{feature-name}/implementation-plan.md
相關規劃提示詞
- 測試規劃:使用
plan-test提示詞進行完整的測試策略、品質保證規劃與測試 Issue 建立 - 架構規劃:使用
plan-epic-arch提示詞進行系統架構與技術設計 - 功能規劃:使用
plan-feature-prd提示詞進行詳細的功能需求與規格撰寫
輸出格式
建立兩個主要交付物:
- 專案計畫:
/docs/ways-of-work/plan/{epic-name}/{feature-name}/project-plan.md - Issue 建立檢核表:
/docs/ways-of-work/plan/{epic-name}/{feature-name}/issues-checklist.md
專案計畫結構
1. 專案概覽
- 功能摘要:簡短說明與商業價值
- 成功標準:可衡量的結果與 KPI
- 關鍵里程碑:無時間軸的主要交付物拆解
- 風險評估:潛在阻礙因素與緩解策略
2. 工作項目階層
graph TD
A[Epic: {Epic Name}] --> B[Feature: {Feature Name}]
B --> C[Story 1: {User Story}]
B --> D[Story 2: {User Story}]
B --> E[Enabler 1: {Technical Work}]
B --> F[Enabler 2: {Infrastructure}]
C --> G[Task: Frontend Implementation]
C --> H[Task: API Integration]
C --> I[Test: E2E Scenarios]
D --> J[Task: Component Development]
D --> K[Task: State Management]
D --> L[Test: Unit Tests]
E --> M[Task: Database Schema]
E --> N[Task: Migration Scripts]
F --> O[Task: CI/CD Pipeline]
F --> P[Task: Monitoring Setup]
3. GitHub Issues 拆解
Epic Issue 範本
# Epic: {Epic Name}
## Epic 描述
{來自 PRD 的 Epic 摘要}
## 商業價值
- **主要目標**:{主要業務目標}
- **成功指標**:{KPI 與可衡量的結果}
- **使用者影響**:{使用者將如何獲益}
## Epic 驗收條件
- [ ] {高階需求 1}
- [ ] {高階需求 2}
- [ ] {高階需求 3}
## 此 Epic 中的 Features
- [ ] #{feature-issue-number} - {Feature Name}
## 完成定義 (Definition of Done)
- [ ] 所有 Feature Stories 皆已完成
- [ ] 端到端測試(End-to-end testing)已通過
- [ ] 符合效能基準測試(Performance benchmarks)
- [ ] 文件已更新
- [ ] 使用者驗收測試(UAT)已完成
## 標籤 (Labels)
`epic`, `{priority-level}`, `{value-tier}`
## 里程碑 (Milestone)
{發布版本/日期}
## 估算 (Estimate)
{Epic 層級 T-Shirt 尺寸:XS, S, M, L, XL, XXL}
Feature Issue 範本
# Feature: {Feature Name}
## Feature 描述
{來自 PRD 的 Feature 摘要}
## 此 Feature 中的 User Stories
- [ ] #{story-issue-number} - {User Story 標題}
- [ ] #{story-issue-number} - {User Story 標題}
## 技術 Enablers
- [ ] #{enabler-issue-number} - {Enabler 標題}
- [ ] #{enabler-issue-number} - {Enabler 標題}
## 相依性
**阻礙 (Blocks)**:{此 Feature 所阻礙的 Issue 列表}
**被阻礙於 (Blocked by)**:{阻礙此 Feature 的 Issue 列表}
## 驗收條件
- [ ] {Feature 層級需求 1}
- [ ] {Feature 層級需求 2}
## 完成定義 (Definition of Done)
- [ ] 所有 User Stories 皆已交付
- [ ] 技術 Enablers 已完成
- [ ] 整合測試(Integration testing)已通過
- [ ] UX 審查已核可
- [ ] 效能測試已完成
## 標籤 (Labels)
`feature`, `{priority-level}`, `{value-tier}`, `{component-name}`
## Epic
#{epic-issue-number}
## 估算 (Estimate)
{Story points 或 T-Shirt 尺寸}
User Story Issue 範本
# User Story: {Story 標題}
## Story 陳述
身為一個 **{使用者類型}**,我想要 **{目標}**,以便於 **{收益}**。
## 驗收條件
- [ ] {具體可測試的需求 1}
- [ ] {具體可測試的需求 2}
- [ ] {具體可測試的需求 3}
## 技術任務 (Technical Tasks)
- [ ] #{task-issue-number} - {實作任務}
- [ ] #{task-issue-number} - {整合任務}
## 測試需求
- [ ] #{test-issue-number} - {測試實作}
## 相依性
**被阻礙於 (Blocked by)**:{必須先完成的相依項目}
## 完成定義 (Definition of Done)
- [ ] 符合驗收條件
- [ ] 程式碼審查(Code review)已核可
- [ ] 單元測試已撰寫且通過
- [ ] 整合測試已通過
- [ ] UX 設計已實作
- [ ] 符合無障礙功能需求
## 標籤 (Labels)
`user-story`, `{priority-level}`, `frontend/backend/fullstack`, `{component-name}`
## Feature
#{feature-issue-number}
## 估算 (Estimate)
{Story points:1, 2, 3, 5, 8}
Technical Enabler Issue 範本
# Technical Enabler: {Enabler 標題}
## Enabler 描述
{支援 User Stories 所需的技術工作}
## 技術需求
- [ ] {技術需求 1}
- [ ] {技術需求 2}
## 實作任務
- [ ] #{task-issue-number} - {實作細節}
- [ ] #{task-issue-number} - {基礎架構設定}
## 支援的 User Stories
此 Enabler 支援:
- #{story-issue-number} - {Story 標題}
- #{story-issue-number} - {Story 標題}
## 驗收條件
- [ ] {技術驗證 1}
- [ ] {技術驗證 2}
- [ ] 符合效能基準測試
## 完成定義 (Definition of Done)
- [ ] 實作已完成
- [ ] 單元測試已撰寫
- [ ] 整合測試已通過
- [ ] 文件已更新
- [ ] 程式碼審查已核可
## 標籤 (Labels)
`enabler`, `{priority-level}`, `infrastructure/api/database`, `{component-name}`
## Feature
#{feature-issue-number}
## 估算 (Estimate)
{Story points 或工作量估算}
4. 優先順序與價值矩陣
| 優先順序 | 價值 | 標準 | 標籤 |
|---|---|---|---|
| P0 | High | 關鍵路徑,阻礙發布 | priority-critical, value-high |
| P1 | High | 核心功能,面向使用者 | priority-high, value-high |
| P1 | Medium | 核心功能,內部使用 | priority-high, value-medium |
| P2 | Medium | 重要但不阻礙發布 | priority-medium, value-medium |
| P3 | Low | 可有可無,技術債 | priority-low, value-low |
5. 估算指南
Story Point 點數尺度(費氏數列)
- 1 point:簡單變更,< 4 小時
- 2 points:小型功能,< 1 天
- 3 points:中型功能,1-2 天
- 5 points:大型功能,3-5 天
- 8 points:複雜功能,1-2 週
- 13+ points:Epic 層級工作,需要拆解
T-Shirt 尺寸(Epics/Features)
- XS:總計 1-2 story points
- S:總計 3-8 story points
- M:總計 8-20 story points
- L:總計 20-40 story points
- XL:總計 40+ story points(建議拆解)
6. 相依性管理
graph LR
A[Epic Planning] --> B[Feature Definition]
B --> C[Enabler Implementation]
C --> D[Story Development]
D --> E[Testing Execution]
E --> F[Feature Delivery]
G[Infrastructure Setup] --> C
H[API Design] --> D
I[Database Schema] --> C
J[Authentication] --> D
相依性類型
- 阻礙 (Blocks):在此工作完成之前無法繼續進行的工作
- 相關 (Related):共享上下文但無阻礙關係的工作
- 先決條件 (Prerequisite):必要的基礎架構或設定工作
- 平行 (Parallel):可同時進行的工作
7. Sprint 規劃範本
Sprint 產能規劃
- 團隊開發速率(Velocity):{每個 Sprint 的平均 story points}
- Sprint 週期:{建議 2 週為一個 Sprint}
- 緩衝分配:20% 用於意外工作與 Bug 修復
- 專注因子(Focus Factor):總時間的 70-80% 用於計劃內工作
Sprint 目標定義
## Sprint {N} 目標
**主要目標**:{此 Sprint 的主要交付物}
**Sprint 中的 Stories**:
- #{issue} - {Story 標題} ({points} pts)
- #{issue} - {Story 標題} ({points} pts)
**總承諾點數**:{points} story points
**成功標準**:{可衡量的結果}
8. GitHub Project 看板設定
欄位結構(看板)
- Backlog:已設定優先順序且準備好進行規劃
- Sprint Ready:已細化並估算完成,準備好進行開發
- In Progress:目前正在進行中
- In Review:進行程式碼審查、測試或專案關係人審查中
- Testing:QA 驗證與驗收測試中
- Done:已完成並已驗收
自訂欄位設定
- Priority:P0, P1, P2, P3
- Value:High, Medium, Low
- Component:Frontend, Backend, Infrastructure, Testing
- Estimate:Story points 或 T-shirt 尺寸
- Sprint:當前分配的 Sprint
- Assignee:負責的團隊成員
- Epic:父階 Epic 參照
9. 自動化與 GitHub Actions
自動化建立 Issue
name: Create Feature Issues
on:
workflow_dispatch:
inputs:
feature_name:
description: 'Feature name'
required: true
epic_issue:
description: 'Epic issue number'
required: true
jobs:
create-issues:
runs-on: ubuntu-latest
steps:
- name: Create Feature Issue
uses: actions/github-script@v7
with:
script: |
const { data: epic } = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ github.event.inputs.epic_issue }}
});
const featureIssue = await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `Feature: ${{ github.event.inputs.feature_name }}`,
body: `# Feature: ${{ github.event.inputs.feature_name }}\n\n...`,
labels: ['feature', 'priority-medium'],
milestone: epic.data.milestone?.number
});
自動化狀態更新
name: Update Issue Status
on:
pull_request:
types: [opened, closed]
jobs:
update-status:
runs-on: ubuntu-latest
steps:
- name: Move to In Review
if: github.event.action == 'opened'
uses: actions/github-script@v7
# Move related issues to "In Review" column
- name: Move to Done
if: github.event.action == 'closed' && github.event.pull_request.merged
uses: actions/github-script@v7
# Move related issues to "Done" column
Issue 建立檢核表
建立前準備
- [ ] 功能產出物完整:PRD、UX 設計、技術拆解、測試計畫
- [ ] Epic 已存在:已建立包含適當標籤與里程碑的父階 Epic Issue
- [ ] 專案看板已配置:已設定欄位、自訂欄位與自動化規則
- [ ] 團隊產能已評估:已完成 Sprint 規劃與資源分配
Epic 層級 Issues
- [ ] Epic Issue 已建立,包含完整的描述與驗收條件
- [ ] Epic 里程碑已建立,包含目標發布日期
- [ ] 已套用 Epic 標籤:
epic、優先順序、價值與團隊標籤 - [ ] Epic 已新增至專案看板 的適當欄位中
Feature 層級 Issues
- [ ] Feature Issue 已建立,並連結至父階 Epic
- [ ] Feature 相依性已識別 並已記錄
- [ ] Feature 估算已完成(使用 T-Shirt 尺寸)
- [ ] Feature 驗收條件已定義,包含可衡量的結果
記錄於 /docs/ways-of-work/plan/{epic-name}/{feature-name}/issues-checklist.md 的 Story/Enabler 層級 Issues
- [ ] User stories 已建立(遵循 INVEST 原則)
- [ ] 技術 Enablers 已識別 並已排定優先順序
- [ ] Story point 估算已分配(使用費氏數列)
- [ ] 相依性已對映 在 Stories 與 Enablers 之間
- [ ] 驗收條件已詳細說明,包含可測試的需求
成功指標
專案管理 KPI
- Sprint 可預測性:每個 Sprint 完成 >80% 承諾的工作
- 週期時間(Cycle Time):從「In Progress」到「Done」的平均時間 <5 個工作天
- 前置時間(Lead Time):從「Backlog」到「Done」的平均時間 <2 週
- 缺陷逃逸率(Defect Escape Rate):<5% 的 Stories 需要在發布後修復
- 團隊開發速率:跨 Sprint 的 Story points 交付保持穩定
流程效率指標
- Issue 建立時間:建立完整的 Feature 拆解時間 <1 小時
- 相依性解決時間:解決阻礙性相依關係的時間 <24 小時
- 狀態更新準確率:>95% 的自動化狀態轉移正確運作
- 文件完整性:100% 的 Issues 皆包含所需的範本欄位
- 跨團隊協作:外部相依性解決時間 <2 個工作天
專案交付指標
- 完成定義合規性:100% 完成的 Stories 皆符合 DoD 標準
- 驗收條件覆蓋率:100% 的驗收條件皆已驗證
- Sprint 目標達成率:>90% 的 Sprint 目標成功交付
- 專案關係人滿意度:專案關係人對已完成功能的核可率 >90%
- 規劃準確率:估算與實際交付時間的偏差 <10%
這種完整的 GitHub 專案管理方法可確保從 Epic 層級規劃到個人實作任務的完整可追溯性,並為所有團隊成員提供自動化追蹤與明確的權責分配。






