From zenbu-powers
文件初建 playbook:全新專案 CLAUDE.md / rules / specs 的建立流程與模板。供 doc-manager agent 在 greenfield 場景載入。
npx claudepluginhub zenbuapps/zenbu-powers --plugin zenbu-powersThis skill uses the workspace's default tool permissions.
本 skill 是 **Greenfield 場景**(全新或未經文件化的專案)的文件建立流程總覽。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
本 skill 是 Greenfield 場景(全新或未經文件化的專案)的文件建立流程總覽。
當 @zenbu-powers:doc-manager 判定為 greenfield(.claude/CLAUDE.md 存在但 specs/ 不存在;或透過其他啟發式判斷)時,載入本 skill 並依 references/ 順序執行。
[待確認]。Step A:判斷階段(references/decision-tree.md)
→ 確認走 greenfield 還是 incremental
Step B:Serena Onboarding(references/serena-onboarding.md)
→ 確保語意化閱讀環境就緒
Step C:初始化主文件(references/initial-setup.md)
→ CLAUDE.md 補強 + rules 建立 + specs 草稿
Step D:套用標準模板(references/templates.md)
→ 確保所有文件符合 Claude Code 規範
| 檔案 | 時機 | 內容 |
|---|---|---|
references/decision-tree.md | 流程開始前 | greenfield vs incremental 判斷決策樹 |
references/serena-onboarding.md | Step 0 | .serena 目錄檢查 + MCP onboarding 實務 |
references/initial-setup.md | Step 1(主流程) | 逐檔讀 → CLAUDE.md 補強 → rules 建立 → specs 草稿 |
references/templates.md | Step 1 / Step 3 | CLAUDE.md、rule.md、SKILL.md 等標準模板 |
@zenbu-powers:lib-skill-creator。@zenbu-powers:clarifier 進行 discovery / clarify-loop。@zenbu-powers:claude-manager 做合規審查。@zenbu-powers:doc-updater agent。| 情境 | 處理方式 |
|---|---|
| serena MCP 不可用 | 降級為 bash/Read 工具逐一讀取檔案,警告效率下降 |
.serena onboarding 失敗 | 報告錯誤,繼續使用 bash 方式讀取 |
| 專案過大(>500 檔案) | 先取目錄結構概覽,再依優先順序讀取(入口→設定→核心) |
| 依賴檔案不存在 | 跳過 library SKILL 評估,在報告中標注 |
| 便條紙無法從代碼解答 | 標注為 [待確認],列出需用戶釐清的項目 |