From feature-workflow
Automatically detects or interactively creates custom tech stacks for Java projects by scanning package layers (entity, repo, service, controller, DTO), generates glob patterns from build files like pom.xml/gradle, and writes config files for project planning.
npx claudepluginhub mark22013333/crew --plugin feature-workflowThis skill uses the workspace's default tool permissions.
自動掃描專案的分層結構,偵測各層級的 package 與命名慣例,產生範本掃描規則並寫入設定檔。
Auto-detects tech stack in new/unfamiliar codebases, verifies build/test/lint tooling, documents code patterns, and scaffolds Architecture Decision Records.
Analyzes existing codebases to detect project types, frameworks, structures, and collision risks. Supports context, brownfield, and setup modes for feature planning.
Scans project's tech stack, directory structure, and code conventions to generate before-modify (pre-change checklist) and project-structure (index) skills for consistent style and avoiding duplicates.
Share bugs, ideas, or general feedback.
自動掃描專案的分層結構,偵測各層級的 package 與命名慣例,產生範本掃描規則並寫入設定檔。
依 references/config-resolver.md 的解析邏輯載入設定目錄。技術棧檔案寫入 stacks/{id}.md。
前置檢查:參照 bug-workflow plugin 的
references/prerequisites.md檢查 CLAUDE.md 是否存在。
/plan-stack [技術棧 ID]
stacks/_builtin.md 取得內建 ID 清單stacks/{id}.md 是否已存在掃描建置檔(pom.xml / build.gradle),擷取框架、ORM、DB。
驗證:不可與內建或已有 ID 重複,格式為小寫英文 + 數字 + 連字號。
掃描 src/main/java 下的 package 結構,辨識各層級並產生 Glob Pattern。
| 辨識規則 | 層級 |
|---|---|
entity / model / pojo / domain | Entity |
dao / mapper / repository | Repository/Mapper |
mapping + .xml | Mapper XML |
service (無 impl) | Service |
service/impl | ServiceImpl |
controller / rest / api | Controller |
dto / vo | DTO |
展示層級表格,支援確認/編輯/取消。
建立或更新 stacks/{id}.md,格式參照 references/config.template.md 的自訂技術棧模板:
---
id: {技術棧 ID}
framework: {框架}
orm: {ORM}
db: {DB}
scaffold: {scaffold 行為}
---
## 掃描規則
| 層級 | 說明 | Glob Pattern | 範例 Package |
|------|------|-------------|-------------|
| ... | ... | ... | ... |
## 特殊慣例
- ...
同時更新對應專案的 projects/{repo-id}.md 中的 stack 欄位。
自訂技術棧設定完成!
技術棧檔案:~/.claude-company/feature-workflow/stacks/{id}.md
層級數:{N}
現在執行 /plan-build 時會自動使用此技術棧的掃描規則。
spring-mvc-mybatis、spring-boot-mybatis、spring-boot-jpa、spring-boot-mybatis-plus。衝突時會靜默覆蓋內建定義,導致其他使用相同內建 ID 的專案行為改變。repository 而非 dao 時仍可辨識,但非標準命名(如 persistence、store)可能辨識失敗。掃描結果必須展示給使用者確認(步驟 5),不可跳過。/plan-setup/project-add