From zenbu-powers
後端專案環境初始化(script-driven)。用 AskUserQuestion 詢問後端專案目錄, 再執行 generate-skeleton.py 從 templates/ 一次性建立骨架。 支援 Python E2E / Java E2E / Python UT / Node.js IT 變體。
npx claudepluginhub zenbuapps/zenbu-powers --plugin zenbu-powersThis skill uses the workspace's default tool permissions.
Script-driven 骨架產生器。一行指令建出完整後端專案結構。
references/variants/java-e2e.mdreferences/variants/nodejs-it.mdreferences/variants/python-e2e.mdreferences/variants/python-ut.mdscripts/generate-skeleton.pytemplates/nodejs-it/drizzle.config.tstemplates/nodejs-it/features__steps__common_then__error-message.tstemplates/nodejs-it/features__steps__common_then__failure.tstemplates/nodejs-it/features__steps__common_then__success.tstemplates/nodejs-it/features__support__hooks.tstemplates/nodejs-it/features__support__jwt-helper.tstemplates/nodejs-it/features__support__world.tstemplates/nodejs-it/package.jsontemplates/nodejs-it/src__app.tstemplates/nodejs-it/src__db__index.tstemplates/nodejs-it/src__db__schema.tstemplates/nodejs-it/src__errors.tstemplates/nodejs-it/src__middleware__error-handler.tstemplates/nodejs-it/src__middleware__jwt-auth.tstemplates/nodejs-it/src__repositories__index.tsSearches, 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.
Script-driven 骨架產生器。一行指令建出完整後端專案結構。
讀取 arguments.yml,從 key prefix 自動偵測技術棧:
PY_ → python-e2e / python-ut(依 test_strategy 決定)JAVA_ → java-e2eNODE_ → nodejs-it偵測不到 → 用 AskUserQuestion 詢問使用者技術棧。
使用 AskUserQuestion 詢問:
後端專案要建立在哪個目錄?(預設:目前工作目錄)
取得 PROJECT_DIR 後繼續。
使用 AskUserQuestion 詢問:
專案名稱?(用於 pyproject.toml / pom.xml 的 name + Docker container 命名)
取得 PROJECT_NAME 後繼續。
uv run .claude/skills/zenbu-powers:aibdd-auto-backend-starter/scripts/generate-skeleton.py \
--project-dir "${PROJECT_DIR}" \
--project-name "${PROJECT_NAME}" \
--variant "${VARIANT}" \
--arguments "${ARGUMENTS_YML_PATH}"
腳本自動:讀 arguments.yml → 對 templates/{variant}/ 做 ${VAR} 替換 → 寫入目標目錄。
依偵測到的技術棧,用該語言的套件管理工具安裝 ${PROJECT_DIR} 中的依賴。
${FEATURE_SPECS_DIR}/ 整個目錄移動到 ${PROJECT_DIR} 內的測試目錄(含 .feature、句型.md、系統抽象.md 等所有分析產物),保留子目錄結構。arguments.yml 中的相關路徑變數,指向移動後的位置(以 ${PROJECT_DIR} 為基礎)。用該測試框架的 dry-run 模式執行,確認能找到所有 feature 檔案且無 import 錯誤。
templates/{variant}/ 中的檔案名用 __ 表示目錄分隔:
app__main.py → app/main.pytests__features__environment.py → tests/features/environment.pyapp____init__.py → app/__init__.py(四底線 = 目錄 + init)