From feature-workflow
Creates Notion task entries in '任務追蹤工具', local .spec/{slug}/ planning directories, and optional Git branches for feature and bug types. Triggered by /plan-start or keywords like '新任務'.
npx claudepluginhub mark22013333/crew --plugin feature-workflowThis skill uses the workspace's default tool permissions.
在 Notion「任務追蹤工具」建立條目,同時在專案根目錄建立 `.spec/{slug}/` 本地規劃目錄,並可選建立 Git branch。支援 Feature 和 Bug 兩種類型。
Plans tasks or features: loads project context including monorepo checks, clarifies requirements, spawns Plan agent, persists validated plans to .groundwork-plans/.
Creates and breaks down plans into trackable FP issues with subtasks. Imports from Linear/GitHub/Notion URLs or local plans. Triggers on planning requests or pasted URLs.
Parse specifications and create implementation plans with task tracking in Notion
Share bugs, ideas, or general feedback.
在 Notion「任務追蹤工具」建立條目,同時在專案根目錄建立 .spec/{slug}/ 本地規劃目錄,並可選建立 Git branch。支援 Feature 和 Bug 兩種類型。
依 references/config-resolver.md 的漸進式載入邏輯讀取設定。本 Skill 需要:
config.md(Notion IDs)projects/{repo-id}.md(專案對應、技術棧 ID)Bug 類型還需檢查 bug-workflow 設定檔(~/.claude-company/bug-workflow-config.md 或 ~/.claude/bug-workflow-config.md)。
若設定目錄不存在,提示使用者先執行 /plan-setup 或 /bug-setup。
前置檢查:參照 bug-workflow plugin 的
references/prerequisites.md執行完整前置檢查(CLAUDE.md + 設定檔 + 專案註冊)。
使用者會以以下格式觸發:
/plan-start <任務簡述> [選項]
類型推斷:
/plan-start feature 推播標籤查詢 或 /plan-start bug SSO 登入錯誤Bug 關聯選項:
--related <feature-slug>:手動指定關聯的 feature自動偵測環境:
git branch --show-current 2>/dev/null || echo ""
pwd
git remote get-url origin 2>/dev/null || echo ""
Git Repo 識別碼解析規則:
intumit(公司 GitLab)→ 只取 {group}/{repo}{host}/{group}/{repo}.git 後綴自動專案對應:用 Git Repo 識別碼轉換為檔名(/ → --),檢查 projects/{sanitized-id}.md 是否存在。匹配失敗則進入互動式選擇。
高 / 中 / 低小 / 中 / 大測試 / UAT / 正式高 / 中 / 低從任務簡述產生英文 slug:
push-tag-query).spec/{slug}/ 不存在,若存在則加數字後綴在建立 Notion 條目前,自動偵測負責人以填入「負責人」(people 類型)欄位:
git config user.email 2>/dev/null || echo ""
notion-get-users 取得 Notion 工作區使用者列表注意:
notion-get-users回傳的使用者物件包含id、name、person.email等欄位。比對時使用person.email。
使用 notion-create-pages 在「任務追蹤工具」建立,Properties:
| 欄位 | 值 |
|---|---|
| 任務名稱 | 使用者提供的任務簡述 |
| 任務類型 | ["💬 功能要求"] |
| 狀態 | 進行中 |
| 優先順序 | 使用者選擇 |
| 難度 | 使用者選擇 |
| 開發階段 | 需求分析 |
| 專案資料庫 | 關聯的專案頁面 URL |
| 負責人 | 步驟 5 偵測到的 Notion 使用者(若有) |
頁面 content 使用 references/notion-page-template.md 的標準 7 區塊模板。
使用 notion-create-pages,Properties 同 bug-start:
| 欄位 | 值 |
|---|---|
| 任務名稱 | 使用者提供的任務簡述 |
| 任務類型 | ["🐞 錯誤"] |
| 狀態 | 進行中 |
| 優先順序 | 使用者選擇 |
| 環境 | 使用者選擇 |
| 專案資料庫 | 關聯的專案頁面 URL |
| 負責人 | 步驟 5 偵測到的 Notion 使用者(若有) |
頁面 content 使用 bug-start 的標準模板。
檢查專案根目錄的 .gitignore,若不包含 .spec/ 則追加:
# Local spec files (managed by plan-* skills)
.spec/
Feature 類型:
mkdir -p .spec/{slug}
建立 README.md:
---
type: feature
name: {任務簡述}
slug: {slug}
status: 需求分析
notion_url: {Notion 頁面 URL}
notion_page_id: {Notion 頁面 ID}
branch: {Git branch 名稱,若後續建立}
tech_stack: {技術棧 ID,從 projects/{repo-id}.md 的 stack 欄位取得}
created: {當前日期 YYYY-MM-DD}
---
# {任務簡述}
## 需求描述
{使用者提供的描述,或待填寫}
Bug 類型:
mkdir -p .spec/{slug}
建立 README.md:
---
type: bug
name: {任務簡述}
slug: {slug}
status: 調查中
notion_url: {Notion 頁面 URL}
notion_page_id: {Notion 頁面 ID}
branch: {Git branch 名稱,若後續建立}
related_feature: {關聯的 feature slug,若有}
related_feature_notion: {關聯 feature 的 Notion URL,若有}
created: {當前日期 YYYY-MM-DD}
---
# {任務簡述}
## 問題描述
{使用者提供的描述,或待填寫}
若使用者指定 --related <feature-slug>:
.spec/{feature-slug}/ 存在README.md 取得 notion_urlrelated_feature 和 related_feature_notion若未指定,嘗試智慧匹配:
.spec/ 下所有目錄的 README.md(type=feature 且 status 非「需求分析」)spec.md、arch.md、db.md 中的類別名和表名讀取或建立 .spec/_index.md:
# 任務索引
## 進行中
| slug | 類型 | 名稱 | 狀態 | 分支 | Notion | 建立日期 |
|------|------|------|------|------|--------|---------|
| {slug} | {feature/bug} | {名稱} | {狀態} | {branch} | [連結]({url}) | {日期} |
## 已完成
| slug | 類型 | 名稱 | 完成日期 | Notion |
|------|------|------|---------|--------|
在「進行中」表格新增一列。
從專案設定檔讀取 prod_branch(PROD 分支),作為新分支的基準:
是否建立 Git branch?
1. 是,建立 {feature|hotfix}/{slug}(從 {prod_branch} 分支)
2. 是,自訂分支名稱
3. 否,稍後再建立
若選擇建立:
git checkout {prod_branch} && git pull && git checkout -b {type}/{slug}
(feature → feature/{slug},bug → hotfix/{slug},從 PROD 分支建立).spec/{slug}/README.md 的 branch 欄位若
prod_branch未設定(舊專案),回退到從當前分支建立,並提示使用者執行/project-add補充分支設定。
任務已建立!
📋 Notion 頁面:{URL}
📁 本地規劃:.spec/{slug}/
🔀 Git branch:{branch}(若有)
📊 類型:{Feature / Bug}
後續可使用:
• /plan-spec — 技術規格
• /plan-db — DB 設計
• /plan-arch — 架構設計
• /plan-build — Agent Teams 產生程式碼
• /plan-review — Agent Teams 審查
• /plan-status — 查看所有任務狀態
• /plan-close — 結案並同步 Notion
.spec/ 目錄名稱和 Git branch 名稱,一旦建立就很難改。中文翻譯成英文時,優先用專案中已有的術語(如 LineBC 專案中的「推播」→ push 而非 broadcast),保持與 codebase 一致。_index.md 破壞了表格格式(缺少 | 或對齊跑掉),後續 /plan-status 讀取會解析失敗。寫入時確保表格格式正確。bug-start 的完全一致。如果 bug-start 更新了模板但 plan-start 沒跟上,會導致 /bug-close 找不到預期的區塊標題。.spec/ 到 .gitignore 時,如果檔案末尾沒有換行,新增的行會和最後一行黏在一起。追加前確認末尾有換行。/plan-setup 或 /bug-setup.spec/ 目錄已存在同名 slug:加數字後綴或詢問使用者.spec/ 目錄,notion_page_id 留空,提示使用者可稍後用 /plan-sync 補建