diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index ff22faa..90a639f 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -2,5 +2,15 @@ "name": "erp-workflow", "description": "ERP 项目全流程框架:阶段 A 计划(plan-start 入口 + A0~A6 共 7 个 skill + B 阶段瘦入口 coding-start = 9 个 skill;plan-start 终结闸 5 项前移硬校验) + 阶段 B 编码(单个静默 Workflow 脚本 coding.mjs,子代理自动跑后端+前端功能循环、测试闸门、本地里程碑 tag)。", "version": "0.2.0", - "skills": ["./skills"] + "skills": [ + "./skills/plan/plan-start", + "./skills/plan/project-init", + "./skills/plan/scope-lock", + "./skills/plan/skeleton-gen", + "./skills/plan/db-design-gen", + "./skills/plan/db-init", + "./skills/plan/downstream-gen", + "./skills/plan/frontend-scope-lock", + "./skills/coding/coding-start" + ] } diff --git a/README.md b/README.md index d934e9a..0c9142f 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ Claude Code 插件:ERP / 后端管理系统全流程开发框架。 ``` erp-workflow-plugin/ ├── .claude-plugin/ -│ └── plugin.json # 插件清单,声明 ./skills(9 skill) +│ └── plugin.json # 插件清单,显式列出 9 个 skill 路径 ├── README.md # 本文档 ├── workflows/ │ └── coding.mjs # 阶段 B:整个编码阶段编排为单个静默 Workflow @@ -107,23 +107,25 @@ erp-workflow-plugin/ │ └── *.test.mjs # 各助手的 node:test 单测 ├── agents/ │ └── code-reviewer.md # 统一 reviewer(coding.mjs review stage 调用,phase 选维度集) -└── skills/ # 阶段 A:9 个 skill(扁平,无中间层) - ├── plan-start/ # A 阶段入口 + Plan 终结硬闸 - ├── project-init/ # A0 - ├── scope-lock/ # A1 - ├── skeleton-gen/ # A2 - ├── db-design-gen/ # A3 - ├── db-init/ # A4 - ├── downstream-gen/ # A5 - ├── frontend-scope-lock/ # A6 - └── coding-start/ # B 阶段瘦入口(启动 coding.mjs) +└── skills/ # 按阶段分组(slug 不变,由 SKILL.md frontmatter name 决定) + ├── plan/ # 阶段 A:8 个 skill(入口 + A0~A6) + │ ├── plan-start/ # A 阶段入口 + Plan 终结硬闸 + │ ├── project-init/ # A0 + │ ├── scope-lock/ # A1 + │ ├── skeleton-gen/ # A2 + │ ├── db-design-gen/ # A3 + │ ├── db-init/ # A4 + │ ├── downstream-gen/ # A5 + │ └── frontend-scope-lock/ # A6 + └── coding/ # 阶段 B:1 个 skill(瘦入口) + └── coding-start/ # 启动 workflows/coding.mjs ``` ## Hook 清单(0 个) 本插件**不再注册任何 hook**。原"跨模块改动留痕"hook(`log-cross-module.sh`)已删除,其职责由 `workflows/coding.mjs` 的 cross-module stage 在模块循环内承担。 -## Skill 清单(9 个,扁平于 `skills/`) +## Skill 清单(9 个,按阶段分组于 `skills/{plan,coding}/`;slug 由 SKILL.md frontmatter 决定,未受目录调整影响) ### 入口(2 个) diff --git a/skills/coding-start/SKILL.md b/skills/coding/coding-start/SKILL.md index 69c2b0d..69c2b0d 100644 --- a/skills/coding-start/SKILL.md +++ b/skills/coding/coding-start/SKILL.md diff --git a/skills/db-design-gen/SKILL.md b/skills/plan/db-design-gen/SKILL.md index ce41b6e..ce41b6e 100644 --- a/skills/db-design-gen/SKILL.md +++ b/skills/plan/db-design-gen/SKILL.md diff --git a/skills/db-design-gen/templates/docs-03-header-template.md b/skills/plan/db-design-gen/templates/docs-03-header-template.md index fa8507c..fa8507c 100644 --- a/skills/db-design-gen/templates/docs-03-header-template.md +++ b/skills/plan/db-design-gen/templates/docs-03-header-template.md diff --git a/skills/db-design-gen/templates/docs-03-table-template.md b/skills/plan/db-design-gen/templates/docs-03-table-template.md index f43e1ea..f43e1ea 100644 --- a/skills/db-design-gen/templates/docs-03-table-template.md +++ b/skills/plan/db-design-gen/templates/docs-03-table-template.md diff --git a/skills/db-init/SKILL.md b/skills/plan/db-init/SKILL.md index ea9cbbc..ea9cbbc 100644 --- a/skills/db-init/SKILL.md +++ b/skills/plan/db-init/SKILL.md diff --git a/skills/downstream-gen/SKILL.md b/skills/plan/downstream-gen/SKILL.md index 54ad39c..54ad39c 100644 --- a/skills/downstream-gen/SKILL.md +++ b/skills/plan/downstream-gen/SKILL.md diff --git a/skills/downstream-gen/templates/docs-02-template.md b/skills/plan/downstream-gen/templates/docs-02-template.md index 68d29d5..68d29d5 100644 --- a/skills/downstream-gen/templates/docs-02-template.md +++ b/skills/plan/downstream-gen/templates/docs-02-template.md diff --git a/skills/downstream-gen/templates/docs-05-endpoint-template.md b/skills/plan/downstream-gen/templates/docs-05-endpoint-template.md index 91a1fda..91a1fda 100644 --- a/skills/downstream-gen/templates/docs-05-endpoint-template.md +++ b/skills/plan/downstream-gen/templates/docs-05-endpoint-template.md diff --git a/skills/downstream-gen/templates/docs-05-header-template.md b/skills/plan/downstream-gen/templates/docs-05-header-template.md index e89cc3d..e89cc3d 100644 --- a/skills/downstream-gen/templates/docs-05-header-template.md +++ b/skills/plan/downstream-gen/templates/docs-05-header-template.md diff --git a/skills/downstream-gen/templates/docs-06-module-pagelist-template.md b/skills/plan/downstream-gen/templates/docs-06-module-pagelist-template.md index 36f18a5..36f18a5 100644 --- a/skills/downstream-gen/templates/docs-06-module-pagelist-template.md +++ b/skills/plan/downstream-gen/templates/docs-06-module-pagelist-template.md diff --git a/skills/downstream-gen/templates/docs-08-module-row-template.md b/skills/plan/downstream-gen/templates/docs-08-module-row-template.md index edd15f1..edd15f1 100644 --- a/skills/downstream-gen/templates/docs-08-module-row-template.md +++ b/skills/plan/downstream-gen/templates/docs-08-module-row-template.md diff --git a/skills/downstream-gen/templates/docs-10-header-template.md b/skills/plan/downstream-gen/templates/docs-10-header-template.md index 4440bff..4440bff 100644 --- a/skills/downstream-gen/templates/docs-10-header-template.md +++ b/skills/plan/downstream-gen/templates/docs-10-header-template.md diff --git a/skills/frontend-scope-lock/SKILL.md b/skills/plan/frontend-scope-lock/SKILL.md index 1fa8942..1fa8942 100644 --- a/skills/frontend-scope-lock/SKILL.md +++ b/skills/plan/frontend-scope-lock/SKILL.md diff --git a/skills/frontend-scope-lock/templates/fe-scope-template.md b/skills/plan/frontend-scope-lock/templates/fe-scope-template.md index bb8bd6a..bb8bd6a 100644 --- a/skills/frontend-scope-lock/templates/fe-scope-template.md +++ b/skills/plan/frontend-scope-lock/templates/fe-scope-template.md diff --git a/skills/plan-start/SKILL.md b/skills/plan/plan-start/SKILL.md index 67bac3b..67bac3b 100644 --- a/skills/plan-start/SKILL.md +++ b/skills/plan/plan-start/SKILL.md diff --git a/skills/project-init/SKILL.md b/skills/plan/project-init/SKILL.md index 1b93b12..1b93b12 100644 --- a/skills/project-init/SKILL.md +++ b/skills/plan/project-init/SKILL.md diff --git a/skills/project-init/templates/CLAUDE-template.md b/skills/plan/project-init/templates/CLAUDE-template.md index 776a923..776a923 100644 --- a/skills/project-init/templates/CLAUDE-template.md +++ b/skills/plan/project-init/templates/CLAUDE-template.md diff --git a/skills/project-init/templates/docs-01-index-template.md b/skills/plan/project-init/templates/docs-01-index-template.md index 08e326a..08e326a 100644 --- a/skills/project-init/templates/docs-01-index-template.md +++ b/skills/plan/project-init/templates/docs-01-index-template.md diff --git a/skills/project-init/templates/docs-04-stack-template.md b/skills/plan/project-init/templates/docs-04-stack-template.md index 234b200..234b200 100644 --- a/skills/project-init/templates/docs-04-stack-template.md +++ b/skills/plan/project-init/templates/docs-04-stack-template.md diff --git a/skills/project-init/templates/docs-08-initial-template.md b/skills/plan/project-init/templates/docs-08-initial-template.md index 61fc530..61fc530 100644 --- a/skills/project-init/templates/docs-08-initial-template.md +++ b/skills/plan/project-init/templates/docs-08-initial-template.md diff --git a/skills/scope-lock/SKILL.md b/skills/plan/scope-lock/SKILL.md index bbe71c2..bbe71c2 100644 --- a/skills/scope-lock/SKILL.md +++ b/skills/plan/scope-lock/SKILL.md diff --git a/skills/scope-lock/templates/_module-template.md b/skills/plan/scope-lock/templates/_module-template.md index 5425b83..5425b83 100644 --- a/skills/scope-lock/templates/_module-template.md +++ b/skills/plan/scope-lock/templates/_module-template.md diff --git a/skills/scope-lock/templates/config-vars-template.yaml b/skills/plan/scope-lock/templates/config-vars-template.yaml index f986f4e..f986f4e 100644 --- a/skills/scope-lock/templates/config-vars-template.yaml +++ b/skills/plan/scope-lock/templates/config-vars-template.yaml diff --git a/skills/scope-lock/templates/req-card-template.md b/skills/plan/scope-lock/templates/req-card-template.md index 1b88515..1b88515 100644 --- a/skills/scope-lock/templates/req-card-template.md +++ b/skills/plan/scope-lock/templates/req-card-template.md diff --git a/skills/skeleton-gen/SKILL.md b/skills/plan/skeleton-gen/SKILL.md index c953d05..c953d05 100644 --- a/skills/skeleton-gen/SKILL.md +++ b/skills/plan/skeleton-gen/SKILL.md diff --git a/skills/skeleton-gen/templates/docs-04-skeleton-template.md b/skills/plan/skeleton-gen/templates/docs-04-skeleton-template.md index 7f2c116..7f2c116 100644 --- a/skills/skeleton-gen/templates/docs-04-skeleton-template.md +++ b/skills/plan/skeleton-gen/templates/docs-04-skeleton-template.md diff --git a/skills/skeleton-gen/templates/docs-06-static-template.md b/skills/plan/skeleton-gen/templates/docs-06-static-template.md index 21dd358..21dd358 100644 --- a/skills/skeleton-gen/templates/docs-06-static-template.md +++ b/skills/plan/skeleton-gen/templates/docs-06-static-template.md diff --git a/skills/skeleton-gen/templates/docs-07-env-template.md b/skills/plan/skeleton-gen/templates/docs-07-env-template.md index bc246c9..bc246c9 100644 --- a/skills/skeleton-gen/templates/docs-07-env-template.md +++ b/skills/plan/skeleton-gen/templates/docs-07-env-template.md diff --git a/skills/skeleton-gen/templates/docs-09-structure-template.md b/skills/plan/skeleton-gen/templates/docs-09-structure-template.md index d913c08..d913c08 100644 --- a/skills/skeleton-gen/templates/docs-09-structure-template.md +++ b/skills/plan/skeleton-gen/templates/docs-09-structure-template.md diff --git a/skills/skeleton-gen/templates/env-local-template b/skills/plan/skeleton-gen/templates/env-local-template index 43a3bd2..43a3bd2 100644 --- a/skills/skeleton-gen/templates/env-local-template +++ b/skills/plan/skeleton-gen/templates/env-local-template diff --git a/skills/skeleton-gen/templates/gitignore-append-template b/skills/plan/skeleton-gen/templates/gitignore-append-template index ac39aa6..ac39aa6 100644 --- a/skills/skeleton-gen/templates/gitignore-append-template +++ b/skills/plan/skeleton-gen/templates/gitignore-append-template diff --git a/skills/skeleton-gen/templates/scripts-setup-test-db-template.mjs b/skills/plan/skeleton-gen/templates/scripts-setup-test-db-template.mjs index ec56d45..ec56d45 100644 --- a/skills/skeleton-gen/templates/scripts-setup-test-db-template.mjs +++ b/skills/plan/skeleton-gen/templates/scripts-setup-test-db-template.mjs diff --git a/skills/skeleton-gen/templates/scripts-test-template.mjs b/skills/plan/skeleton-gen/templates/scripts-test-template.mjs index 9f0ab8c..9f0ab8c 100644 --- a/skills/skeleton-gen/templates/scripts-test-template.mjs +++ b/skills/plan/skeleton-gen/templates/scripts-test-template.mjs diff --git a/skills/skeleton-gen/templates/styles-tokens-template.css b/skills/plan/skeleton-gen/templates/styles-tokens-template.css index bc8a542..bc8a542 100644 --- a/skills/skeleton-gen/templates/styles-tokens-template.css +++ b/skills/plan/skeleton-gen/templates/styles-tokens-template.css