@cregis-dev/cckit 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/README.md +15 -3
  2. package/package.json +1 -1
  3. package/registry.json +234 -200
  4. package/src/commands/init.js +19 -15
  5. package/src/commands/update.js +9 -4
  6. package/src/core/plugin-installer.js +59 -13
  7. package/src/utils/fs.js +6 -1
  8. package/templates/bmad/_config/bmad-help.csv +2 -1
  9. package/templates/bmad/_config/files-manifest.csv +437 -431
  10. package/templates/bmad/_config/ides/claude-code.yaml +5 -5
  11. package/templates/bmad/_config/ides/trae.yaml +5 -5
  12. package/templates/bmad/_config/task-manifest.csv +7 -6
  13. package/templates/bmad/_config/workflow-manifest.csv +34 -34
  14. package/templates/bmad/bmm/agents/qa.md +1 -1
  15. package/templates/bmad/bmm/config.yaml +1 -1
  16. package/templates/bmad/bmm/module-help.csv +1 -1
  17. package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +1 -1
  18. package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +1 -1
  19. package/templates/bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +1 -1
  20. package/templates/bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +1 -1
  21. package/templates/bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +1 -1
  22. package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +1 -1
  23. package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +1 -1
  24. package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +1 -1
  25. package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +1 -1
  26. package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +1 -1
  27. package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +1 -1
  28. package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +1 -1
  29. package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +1 -1
  30. package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +1 -1
  31. package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +1 -1
  32. package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +1 -1
  33. package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +1 -1
  34. package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +1 -1
  35. package/templates/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +1 -1
  36. package/templates/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +1 -1
  37. package/templates/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +1 -1
  38. package/templates/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +1 -1
  39. package/templates/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +1 -1
  40. package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +1 -1
  41. package/templates/bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +1 -1
  42. package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +1 -1
  43. package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +1 -1
  44. package/templates/bmad/bmm/workflows/document-project/workflow.yaml +1 -1
  45. package/templates/bmad/bmm/workflows/generate-project-context/workflow.md +1 -1
  46. package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml +2 -2
  47. package/templates/bmad/commands/bmad-bmm-check-implementation-readiness.md +2 -2
  48. package/templates/bmad/commands/bmad-bmm-code-review.md +4 -4
  49. package/templates/bmad/commands/bmad-bmm-correct-course.md +4 -4
  50. package/templates/bmad/commands/bmad-bmm-create-architecture.md +2 -2
  51. package/templates/bmad/commands/bmad-bmm-create-epics-and-stories.md +2 -2
  52. package/templates/bmad/commands/bmad-bmm-create-prd.md +2 -2
  53. package/templates/bmad/commands/bmad-bmm-create-product-brief.md +2 -2
  54. package/templates/bmad/commands/bmad-bmm-create-story.md +4 -4
  55. package/templates/bmad/commands/bmad-bmm-create-ux-design.md +2 -2
  56. package/templates/bmad/commands/bmad-bmm-dev-story.md +4 -4
  57. package/templates/bmad/commands/bmad-bmm-document-project.md +4 -4
  58. package/templates/bmad/commands/bmad-bmm-domain-research.md +2 -2
  59. package/templates/bmad/commands/bmad-bmm-edit-prd.md +2 -2
  60. package/templates/bmad/commands/bmad-bmm-generate-project-context.md +2 -2
  61. package/templates/bmad/commands/bmad-bmm-market-research.md +2 -2
  62. package/templates/bmad/commands/bmad-bmm-qa-generate-e2e-tests.md +4 -4
  63. package/templates/bmad/commands/bmad-bmm-quick-dev.md +2 -2
  64. package/templates/bmad/commands/bmad-bmm-quick-spec.md +2 -2
  65. package/templates/bmad/commands/bmad-bmm-retrospective.md +4 -4
  66. package/templates/bmad/commands/bmad-bmm-sprint-planning.md +4 -4
  67. package/templates/bmad/commands/bmad-bmm-sprint-status.md +4 -4
  68. package/templates/bmad/commands/bmad-bmm-technical-research.md +2 -2
  69. package/templates/bmad/commands/bmad-bmm-validate-prd.md +2 -2
  70. package/templates/bmad/commands/bmad-brainstorming.md +2 -2
  71. package/templates/bmad/commands/bmad-editorial-review-prose.md +1 -1
  72. package/templates/bmad/commands/bmad-editorial-review-structure.md +1 -1
  73. package/templates/bmad/commands/bmad-help.md +1 -1
  74. package/templates/bmad/commands/bmad-index-docs.md +1 -1
  75. package/templates/bmad/commands/bmad-party-mode.md +2 -2
  76. package/templates/bmad/commands/bmad-review-adversarial-general.md +1 -1
  77. package/templates/bmad/commands/bmad-review-edge-case-hunter.md +10 -0
  78. package/templates/bmad/commands/bmad-shard-doc.md +1 -1
  79. package/templates/bmad/commands/bmad-tea-teach-me-testing.md +2 -2
  80. package/templates/bmad/commands/bmad-tea-testarch-atdd.md +4 -4
  81. package/templates/bmad/commands/bmad-tea-testarch-automate.md +4 -4
  82. package/templates/bmad/commands/bmad-tea-testarch-ci.md +4 -4
  83. package/templates/bmad/commands/bmad-tea-testarch-framework.md +4 -4
  84. package/templates/bmad/commands/bmad-tea-testarch-nfr.md +4 -4
  85. package/templates/bmad/commands/bmad-tea-testarch-test-design.md +4 -4
  86. package/templates/bmad/commands/bmad-tea-testarch-test-review.md +4 -4
  87. package/templates/bmad/commands/bmad-tea-testarch-trace.md +4 -4
  88. package/templates/bmad/core/config.yaml +1 -1
  89. package/templates/bmad/core/module-help.csv +1 -0
  90. package/templates/bmad/core/tasks/editorial-review-prose.xml +1 -1
  91. package/templates/bmad/core/tasks/editorial-review-structure.xml +1 -1
  92. package/templates/bmad/core/tasks/help.md +1 -1
  93. package/templates/bmad/core/tasks/index-docs.xml +1 -1
  94. package/templates/bmad/core/tasks/review-adversarial-general.xml +1 -1
  95. package/templates/bmad/core/tasks/review-edge-case-hunter.xml +63 -0
  96. package/templates/bmad/core/tasks/shard-doc.xml +1 -1
  97. package/templates/bmad/core/workflows/advanced-elicitation/workflow.xml +1 -1
  98. package/templates/bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +31 -18
  99. package/templates/bmad/core/workflows/brainstorming/steps/step-01b-continue.md +1 -1
  100. package/templates/bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +2 -2
  101. package/templates/bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +2 -2
  102. package/templates/bmad/core/workflows/brainstorming/workflow.md +4 -2
  103. package/templates/bmad/core/workflows/party-mode/workflow.md +1 -1
  104. package/templates/bmad/tea/config.yaml +5 -1
  105. package/templates/bmad/tea/testarch/knowledge/contract-testing.md +24 -2
  106. package/templates/bmad/tea/testarch/knowledge/pact-mcp.md +204 -0
  107. package/templates/bmad/tea/testarch/knowledge/pactjs-utils-consumer-helpers.md +211 -0
  108. package/templates/bmad/tea/testarch/knowledge/pactjs-utils-overview.md +210 -0
  109. package/templates/bmad/tea/testarch/knowledge/pactjs-utils-provider-verifier.md +315 -0
  110. package/templates/bmad/tea/testarch/knowledge/pactjs-utils-request-filter.md +224 -0
  111. package/templates/bmad/tea/testarch/tea-index.csv +5 -0
  112. package/templates/bmad/tea/workflows/testarch/README.md +1 -1
  113. package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +30 -0
  114. package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +159 -57
  115. package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subagent-api-failing.md +215 -0
  116. package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subagent-e2e-failing.md +244 -0
  117. package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +31 -15
  118. package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +1 -1
  119. package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +3 -3
  120. package/templates/bmad/tea/workflows/testarch/atdd/workflow.yaml +2 -2
  121. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +32 -0
  122. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +215 -101
  123. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subagent-api.md +193 -0
  124. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-backend.md +246 -0
  125. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-e2e.md +213 -0
  126. package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +38 -22
  127. package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +1 -1
  128. package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +3 -3
  129. package/templates/bmad/tea/workflows/testarch/automate/workflow.yaml +2 -2
  130. package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +124 -1
  131. package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +7 -0
  132. package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +1 -1
  133. package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +3 -3
  134. package/templates/bmad/tea/workflows/testarch/ci/workflow.yaml +2 -2
  135. package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +126 -3
  136. package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +1 -1
  137. package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +3 -3
  138. package/templates/bmad/tea/workflows/testarch/framework/workflow.yaml +2 -2
  139. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +150 -36
  140. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subagent-security.md +138 -0
  141. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subagent-performance.md +84 -0
  142. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subagent-reliability.md +85 -0
  143. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subagent-scalability.md +88 -0
  144. package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +27 -10
  145. package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +1 -1
  146. package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +3 -3
  147. package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +2 -2
  148. package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +3 -3
  149. package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +6 -6
  150. package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow.md +1 -1
  151. package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +30 -0
  152. package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +72 -1
  153. package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +1 -1
  154. package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +3 -3
  155. package/templates/bmad/tea/workflows/testarch/test-design/workflow.yaml +2 -2
  156. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +29 -1
  157. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +147 -46
  158. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subagent-determinism.md +214 -0
  159. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subagent-isolation.md +125 -0
  160. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subagent-maintainability.md +102 -0
  161. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subagent-performance.md +117 -0
  162. package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +10 -10
  163. package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +1 -1
  164. package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +3 -3
  165. package/templates/bmad/tea/workflows/testarch/test-review/workflow.yaml +2 -2
  166. package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +92 -1
  167. package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +1 -1
  168. package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +3 -3
  169. package/templates/bmad/tea/workflows/testarch/trace/workflow.yaml +2 -2
  170. package/templates/ecc/agents/chief-of-staff.md +151 -0
  171. package/templates/ecc/commands/claw.md +79 -0
  172. package/templates/ecc/rules/README.md +23 -2
  173. package/templates/ecc/rules/common/development-workflow.md +37 -0
  174. package/templates/ecc/rules/common/git-workflow.md +2 -23
  175. package/templates/ecc/rules/swift/coding-style.md +47 -0
  176. package/templates/ecc/rules/swift/hooks.md +20 -0
  177. package/templates/ecc/rules/swift/patterns.md +66 -0
  178. package/templates/ecc/rules/swift/security.md +33 -0
  179. package/templates/ecc/rules/swift/testing.md +45 -0
  180. package/templates/ecc/skills/api-design/SKILL.md +1 -0
  181. package/templates/ecc/skills/article-writing/SKILL.md +85 -0
  182. package/templates/ecc/skills/backend-patterns/SKILL.md +1 -0
  183. package/templates/ecc/skills/clickhouse-io/SKILL.md +1 -0
  184. package/templates/ecc/skills/coding-standards/SKILL.md +1 -0
  185. package/templates/ecc/skills/configure-ecc/SKILL.md +32 -4
  186. package/templates/ecc/skills/content-engine/SKILL.md +88 -0
  187. package/templates/ecc/skills/content-hash-cache-pattern/SKILL.md +1 -0
  188. package/templates/ecc/skills/continuous-learning/SKILL.md +2 -1
  189. package/templates/ecc/skills/continuous-learning-v2/SKILL.md +4 -1
  190. package/templates/ecc/skills/continuous-learning-v2/hooks/observe.sh +14 -7
  191. package/templates/ecc/skills/cost-aware-llm-pipeline/SKILL.md +1 -0
  192. package/templates/ecc/skills/cpp-coding-standards/SKILL.md +1 -0
  193. package/templates/ecc/skills/cpp-testing/SKILL.md +1 -0
  194. package/templates/ecc/skills/database-migrations/SKILL.md +1 -0
  195. package/templates/ecc/skills/deployment-patterns/SKILL.md +1 -0
  196. package/templates/ecc/skills/django-patterns/SKILL.md +1 -0
  197. package/templates/ecc/skills/django-security/SKILL.md +1 -0
  198. package/templates/ecc/skills/django-tdd/SKILL.md +1 -0
  199. package/templates/ecc/skills/django-verification/SKILL.md +1 -0
  200. package/templates/ecc/skills/docker-patterns/SKILL.md +1 -0
  201. package/templates/ecc/skills/e2e-testing/SKILL.md +1 -0
  202. package/templates/ecc/skills/eval-harness/SKILL.md +1 -0
  203. package/templates/ecc/skills/foundation-models-on-device/SKILL.md +243 -0
  204. package/templates/ecc/skills/frontend-patterns/SKILL.md +1 -0
  205. package/templates/ecc/skills/frontend-slides/SKILL.md +184 -0
  206. package/templates/ecc/skills/frontend-slides/STYLE_PRESETS.md +330 -0
  207. package/templates/ecc/skills/golang-patterns/SKILL.md +1 -0
  208. package/templates/ecc/skills/golang-testing/SKILL.md +1 -0
  209. package/templates/ecc/skills/investor-materials/SKILL.md +96 -0
  210. package/templates/ecc/skills/investor-outreach/SKILL.md +76 -0
  211. package/templates/ecc/skills/iterative-retrieval/SKILL.md +1 -0
  212. package/templates/ecc/skills/java-coding-standards/SKILL.md +1 -0
  213. package/templates/ecc/skills/jpa-patterns/SKILL.md +1 -0
  214. package/templates/ecc/skills/liquid-glass-design/SKILL.md +279 -0
  215. package/templates/ecc/skills/market-research/SKILL.md +75 -0
  216. package/templates/ecc/skills/nutrient-document-processing/SKILL.md +1 -1
  217. package/templates/ecc/skills/postgres-patterns/SKILL.md +1 -0
  218. package/templates/ecc/skills/project-guidelines-example/SKILL.md +1 -0
  219. package/templates/ecc/skills/python-patterns/SKILL.md +1 -0
  220. package/templates/ecc/skills/python-testing/SKILL.md +1 -0
  221. package/templates/ecc/skills/regex-vs-llm-structured-text/SKILL.md +1 -0
  222. package/templates/ecc/skills/search-first/SKILL.md +3 -1
  223. package/templates/ecc/skills/security-review/SKILL.md +1 -0
  224. package/templates/ecc/skills/security-scan/SKILL.md +1 -0
  225. package/templates/ecc/skills/skill-stocktake/SKILL.md +176 -0
  226. package/templates/ecc/skills/skill-stocktake/scripts/quick-diff.sh +87 -0
  227. package/templates/ecc/skills/skill-stocktake/scripts/save-results.sh +56 -0
  228. package/templates/ecc/skills/skill-stocktake/scripts/scan.sh +170 -0
  229. package/templates/ecc/skills/springboot-patterns/SKILL.md +1 -0
  230. package/templates/ecc/skills/springboot-security/SKILL.md +1 -0
  231. package/templates/ecc/skills/springboot-tdd/SKILL.md +1 -0
  232. package/templates/ecc/skills/springboot-verification/SKILL.md +1 -0
  233. package/templates/ecc/skills/strategic-compact/SKILL.md +1 -0
  234. package/templates/ecc/skills/swift-actor-persistence/SKILL.md +1 -0
  235. package/templates/ecc/skills/swift-concurrency-6-2/SKILL.md +216 -0
  236. package/templates/ecc/skills/swift-protocol-di-testing/SKILL.md +1 -0
  237. package/templates/ecc/skills/swiftui-patterns/SKILL.md +259 -0
  238. package/templates/ecc/skills/tdd-workflow/SKILL.md +1 -0
  239. package/templates/ecc/skills/verification-loop/SKILL.md +1 -0
  240. package/templates/ecc/skills/visa-doc-translate/README.md +86 -0
  241. package/templates/ecc/skills/visa-doc-translate/SKILL.md +117 -0
  242. package/templates/ext-skills/pinchtab/SKILL.md +89 -486
  243. package/templates/ext-skills/pinchtab/TRUST.md +69 -0
  244. package/templates/ext-skills/pinchtab/references/api.md +297 -0
  245. package/templates/ext-skills/pinchtab/references/env.md +45 -0
  246. package/templates/ext-skills/pinchtab/references/profiles.md +107 -0
  247. package/templates/plugins/claude-code-setup/.claude-plugin/plugin.json +9 -0
  248. package/templates/plugins/claude-code-setup/LICENSE +202 -0
  249. package/templates/plugins/claude-code-setup/README.md +29 -0
  250. package/templates/plugins/claude-code-setup/automation-recommender-example.png +0 -0
  251. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md +288 -0
  252. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/hooks-patterns.md +226 -0
  253. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/mcp-servers.md +263 -0
  254. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/plugins-reference.md +98 -0
  255. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/skills-reference.md +408 -0
  256. package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/subagent-templates.md +181 -0
  257. package/templates/plugins/claude-md-management/.claude-plugin/plugin.json +9 -0
  258. package/templates/plugins/claude-md-management/LICENSE +202 -0
  259. package/templates/plugins/claude-md-management/README.md +40 -0
  260. package/templates/plugins/claude-md-management/claude-md-improver-example.png +0 -0
  261. package/templates/plugins/claude-md-management/commands/revise-claude-md.md +54 -0
  262. package/templates/plugins/claude-md-management/revise-claude-md-example.png +0 -0
  263. package/templates/plugins/claude-md-management/skills/claude-md-improver/SKILL.md +179 -0
  264. package/templates/plugins/claude-md-management/skills/claude-md-improver/references/quality-criteria.md +109 -0
  265. package/templates/plugins/claude-md-management/skills/claude-md-improver/references/templates.md +253 -0
  266. package/templates/plugins/claude-md-management/skills/claude-md-improver/references/update-guidelines.md +150 -0
  267. package/templates/plugins/code-simplifier/.claude-plugin/plugin.json +9 -0
  268. package/templates/plugins/code-simplifier/LICENSE +202 -0
  269. package/templates/plugins/code-simplifier/agents/code-simplifier.md +52 -0
  270. package/templates/plugins/commit-commands/.claude-plugin/plugin.json +9 -0
  271. package/templates/plugins/commit-commands/LICENSE +202 -0
  272. package/templates/plugins/commit-commands/README.md +225 -0
  273. package/templates/plugins/commit-commands/commands/clean_gone.md +53 -0
  274. package/templates/plugins/commit-commands/commands/commit-push-pr.md +20 -0
  275. package/templates/plugins/commit-commands/commands/commit.md +17 -0
  276. package/templates/trae-bmad/rules/bmad-bmm-check-implementation-readiness.md +2 -2
  277. package/templates/trae-bmad/rules/bmad-bmm-code-review.md +4 -4
  278. package/templates/trae-bmad/rules/bmad-bmm-correct-course.md +4 -4
  279. package/templates/trae-bmad/rules/bmad-bmm-create-architecture.md +2 -2
  280. package/templates/trae-bmad/rules/bmad-bmm-create-epics-and-stories.md +2 -2
  281. package/templates/trae-bmad/rules/bmad-bmm-create-prd.md +2 -2
  282. package/templates/trae-bmad/rules/bmad-bmm-create-product-brief.md +2 -2
  283. package/templates/trae-bmad/rules/bmad-bmm-create-story.md +4 -4
  284. package/templates/trae-bmad/rules/bmad-bmm-create-ux-design.md +2 -2
  285. package/templates/trae-bmad/rules/bmad-bmm-dev-story.md +4 -4
  286. package/templates/trae-bmad/rules/bmad-bmm-document-project.md +4 -4
  287. package/templates/trae-bmad/rules/bmad-bmm-domain-research.md +2 -2
  288. package/templates/trae-bmad/rules/bmad-bmm-edit-prd.md +2 -2
  289. package/templates/trae-bmad/rules/bmad-bmm-generate-project-context.md +2 -2
  290. package/templates/trae-bmad/rules/bmad-bmm-market-research.md +2 -2
  291. package/templates/trae-bmad/rules/bmad-bmm-qa-generate-e2e-tests.md +4 -4
  292. package/templates/trae-bmad/rules/bmad-bmm-quick-dev.md +2 -2
  293. package/templates/trae-bmad/rules/bmad-bmm-quick-spec.md +2 -2
  294. package/templates/trae-bmad/rules/bmad-bmm-retrospective.md +4 -4
  295. package/templates/trae-bmad/rules/bmad-bmm-sprint-planning.md +4 -4
  296. package/templates/trae-bmad/rules/bmad-bmm-sprint-status.md +4 -4
  297. package/templates/trae-bmad/rules/bmad-bmm-technical-research.md +2 -2
  298. package/templates/trae-bmad/rules/bmad-bmm-validate-prd.md +2 -2
  299. package/templates/trae-bmad/rules/bmad-brainstorming.md +2 -2
  300. package/templates/trae-bmad/rules/bmad-editorial-review-prose.md +1 -1
  301. package/templates/trae-bmad/rules/bmad-editorial-review-structure.md +1 -1
  302. package/templates/trae-bmad/rules/bmad-help.md +1 -1
  303. package/templates/trae-bmad/rules/bmad-index-docs.md +1 -1
  304. package/templates/trae-bmad/rules/bmad-party-mode.md +2 -2
  305. package/templates/trae-bmad/rules/bmad-review-adversarial-general.md +1 -1
  306. package/templates/trae-bmad/rules/bmad-review-edge-case-hunter.md +10 -0
  307. package/templates/trae-bmad/rules/bmad-shard-doc.md +1 -1
  308. package/templates/trae-bmad/rules/bmad-tea-teach-me-testing.md +2 -2
  309. package/templates/trae-bmad/rules/bmad-tea-testarch-atdd.md +4 -4
  310. package/templates/trae-bmad/rules/bmad-tea-testarch-automate.md +4 -4
  311. package/templates/trae-bmad/rules/bmad-tea-testarch-ci.md +4 -4
  312. package/templates/trae-bmad/rules/bmad-tea-testarch-framework.md +4 -4
  313. package/templates/trae-bmad/rules/bmad-tea-testarch-nfr.md +4 -4
  314. package/templates/trae-bmad/rules/bmad-tea-testarch-test-design.md +4 -4
  315. package/templates/trae-bmad/rules/bmad-tea-testarch-test-review.md +4 -4
  316. package/templates/trae-bmad/rules/bmad-tea-testarch-trace.md +4 -4
package/README.md CHANGED
@@ -118,7 +118,7 @@ cckit add https://github.com/user/my-plugin
118
118
  cckit 使用两套独立的分发体系:
119
119
 
120
120
  **插件体系**(ECC、Superpowers 等 marketplace 插件):
121
- - **Claude Code** — 仅将插件 ID 写入 `.claude/settings.json`,插件内容(skills/commands/agents)由用户从 marketplace 获取
121
+ - **Claude Code** — 将插件 ID 写入 `.claude/settings.json`(`enabledPlugins`),非内置市场同时注册 `extraKnownMarketplaces`,用户信任项目后 Claude Code 自动提示安装;插件内容由 marketplace 获取
122
122
  - **Trae** — 提取 skills(直接复制)、commands/agents(通过 trae-adapter 添加 YAML frontmatter)
123
123
 
124
124
  **Skills 体系**(ext-skills 等独立第三方技能):
@@ -133,7 +133,19 @@ cckit 使用两套独立的分发体系:
133
133
  | ECC Rules | ecc-rules | `.claude/rules/` |
134
134
  | 独立 Skills | ext-skills | `.claude/skills/` |
135
135
  | MCP 配置 | mcp | `.mcp.json` |
136
- | 插件 ID | plugins | `.claude/settings.json` |
136
+ | 插件 ID + 市场源 | plugins | `.claude/settings.json` |
137
+ | 环境变量默认值 | — (始终写入) | `.claude/settings.json` |
138
+
139
+ 默认写入的环境变量(`settings.json` → `env`):
140
+
141
+ | 变量 | 值 | 说明 |
142
+ |------|-----|------|
143
+ | `DISABLE_BUG_COMMAND` | `1` | 禁用 /bug 命令 |
144
+ | `DISABLE_ERROR_REPORTING` | `1` | 禁用 Sentry 错误报告 |
145
+ | `DISABLE_TELEMETRY` | `1` | 禁用 Statsig 遥测 |
146
+ | `MCP_TIMEOUT` | `60000` | MCP 工具超时(毫秒) |
147
+ | `MAX_THINKING_TOKENS` | `31999` | 扩展思考最大 token 数 |
148
+ | `CLAUDE_CODE_MAX_OUTPUT_TOKENS` | `64000` | 输出最大 token 数 |
137
149
 
138
150
  ### Trae 安装内容(完整分发)
139
151
 
@@ -199,7 +211,7 @@ your-project/
199
211
  │ ├── rules/ # ECC 编码规范(按语言分目录)
200
212
  │ ├── skills/ # 独立第三方 Skills(ext-skills)
201
213
  │ ├── commands/ # BMAD 命令
202
- │ └── settings.json # 启用的 marketplace 插件(enabledPlugins)
214
+ │ └── settings.json # 插件配置 + 市场源 + 环境变量默认值
203
215
  ├── .trae/ # Trae IDE 配置(如启用)
204
216
  │ ├── rules/ # BMAD Rules + ECC Rules/Agents/Commands + 插件
205
217
  │ ├── skills/ # ECC Skills + 独立 Skills + 插件 Skills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cregis-dev/cckit",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Multi-IDE AI dev environment setup CLI — BMAD + ECC + Skills + MCP for Claude Code and Trae",
5
5
  "type": "module",
6
6
  "bin": {
package/registry.json CHANGED
@@ -1,200 +1,234 @@
1
- {
2
- "version": "1.0.0",
3
- "upstream": {
4
- "bmad": {
5
- "type": "npm",
6
- "package": "bmad-method",
7
- "lastSyncVersion": "6.0.2",
8
- "lastSyncDate": "2026-02-23T08:39:20.730Z"
9
- },
10
- "ecc": {
11
- "type": "git",
12
- "repo": "https://github.com/affaan-m/everything-claude-code",
13
- "lastSyncSha": "6f94c2e28fe55a1c7f56a980ea9b76a1cbdd121b",
14
- "lastSyncDate": "2026-02-23T08:39:20.730Z"
15
- },
16
- "plugins": {
17
- "type": "git",
18
- "repo": "https://github.com/anthropics/claude-plugins-official",
19
- "pluginsPath": "plugins",
20
- "lastSyncSha": "aa296ec81e8ccb49c9784f167c2c0aa625a86cec",
21
- "lastSyncDate": "2026-02-23T08:39:20.730Z"
22
- },
23
- "ext-skills": {
24
- "pinchtab": {
25
- "type": "git",
26
- "repo": "https://github.com/pinchtab/pinchtab",
27
- "skillPath": "skill/pinchtab",
28
- "lastSyncSha": "c1b15733865da3250234ae3d888c361fdc745cba",
29
- "lastSyncDate": "2026-02-23T08:39:20.730Z"
30
- }
31
- }
32
- },
33
- "plugins": {
34
- "everything-claude-code": {
35
- "name": "Everything Claude Code",
36
- "marketplace": "affaan-m",
37
- "default": true,
38
- "description": "Rules, agents, commands, skills, and hooks for Claude Code"
39
- },
40
- "superpowers": {
41
- "name": "Superpowers",
42
- "marketplace": "claude-plugins-official",
43
- "default": true,
44
- "description": "Structured workflows with brainstorming, debugging, TDD, and code review skills"
45
- }
46
- },
47
- "modules": {
48
- "bmad-core": {
49
- "name": "BMAD Core",
50
- "source": "builtin",
51
- "templateDir": "templates/bmad/core",
52
- "targetDir": "_bmad/core",
53
- "required": true,
54
- "configPrompts": [
55
- "user_name",
56
- "communication_language"
57
- ]
58
- },
59
- "bmad-bmm": {
60
- "name": "BMAD Method",
61
- "source": "builtin",
62
- "templateDir": "templates/bmad/bmm",
63
- "targetDir": "_bmad/bmm",
64
- "default": true,
65
- "dependsOn": [
66
- "bmad-core"
67
- ]
68
- },
69
- "bmad-tea": {
70
- "name": "Test Architecture Enterprise",
71
- "source": "builtin",
72
- "templateDir": "templates/bmad/tea",
73
- "targetDir": "_bmad/tea",
74
- "default": true,
75
- "dependsOn": [
76
- "bmad-core"
77
- ]
78
- },
79
- "bmad-commands": {
80
- "name": "BMAD Commands",
81
- "source": "builtin",
82
- "templateDir": "templates/bmad/commands",
83
- "targetDir": ".claude/commands",
84
- "default": true,
85
- "dependsOn": [
86
- "bmad-core"
87
- ],
88
- "ideTarget": "claude-code"
89
- },
90
- "bmad-config": {
91
- "name": "BMAD Config",
92
- "source": "builtin",
93
- "templateDir": "templates/bmad/_config",
94
- "targetDir": "_bmad/_config",
95
- "default": true,
96
- "dependsOn": [
97
- "bmad-core"
98
- ]
99
- },
100
- "bmad-trae": {
101
- "name": "BMAD Trae Rules",
102
- "source": "builtin",
103
- "templateDir": "templates/trae-bmad/rules",
104
- "targetDir": ".trae/rules",
105
- "default": true,
106
- "dependsOn": [
107
- "bmad-core"
108
- ],
109
- "ideTarget": "trae"
110
- },
111
- "ecc-rules": {
112
- "name": "ECC Rules",
113
- "source": "builtin",
114
- "templateDir": "templates/ecc/rules",
115
- "default": true,
116
- "options": {
117
- "languages": [
118
- "common",
119
- "typescript",
120
- "python",
121
- "golang"
122
- ]
123
- },
124
- "targets": {
125
- "claude-code": {
126
- "targetDir": ".claude/rules"
127
- },
128
- "trae": {
129
- "targetDir": ".trae/rules/ecc",
130
- "adapter": "trae-rules"
131
- }
132
- }
133
- },
134
- "ecc-agents": {
135
- "name": "ECC Agents",
136
- "source": "builtin",
137
- "templateDir": "templates/ecc/agents",
138
- "default": true,
139
- "targets": {
140
- "trae": {
141
- "targetDir": ".trae/rules/ecc/agents",
142
- "adapter": "trae-agents"
143
- }
144
- }
145
- },
146
- "ecc-skills": {
147
- "name": "ECC Skills",
148
- "source": "builtin",
149
- "templateDir": "templates/ecc/skills",
150
- "default": true,
151
- "targets": {
152
- "trae": {
153
- "targetDir": ".trae/skills"
154
- }
155
- }
156
- },
157
- "ecc-commands": {
158
- "name": "ECC Commands",
159
- "source": "builtin",
160
- "templateDir": "templates/ecc/commands",
161
- "default": true,
162
- "targets": {
163
- "trae": {
164
- "targetDir": ".trae/rules/ecc/commands",
165
- "adapter": "trae-commands"
166
- }
167
- }
168
- },
169
- "mcp": {
170
- "name": "MCP Server Config",
171
- "source": "builtin",
172
- "templateDir": "templates/mcp",
173
- "default": true,
174
- "targets": {
175
- "claude-code": {
176
- "targetDir": ".",
177
- "templateDir": "templates/mcp/claude-code"
178
- },
179
- "trae": {
180
- "targetDir": ".trae",
181
- "templateDir": "templates/mcp/trae"
182
- }
183
- }
184
- },
185
- "ext-skills": {
186
- "name": "Third-party Skills",
187
- "source": "builtin",
188
- "templateDir": "templates/ext-skills",
189
- "default": true,
190
- "targets": {
191
- "claude-code": {
192
- "targetDir": ".claude/skills"
193
- },
194
- "trae": {
195
- "targetDir": ".trae/skills"
196
- }
197
- }
198
- }
199
- }
200
- }
1
+ {
2
+ "version": "1.0.0",
3
+ "upstream": {
4
+ "bmad": {
5
+ "type": "npm",
6
+ "package": "bmad-method",
7
+ "lastSyncVersion": "6.0.4",
8
+ "lastSyncDate": "2026-03-01T10:34:14.151Z"
9
+ },
10
+ "ecc": {
11
+ "type": "git",
12
+ "repo": "https://github.com/affaan-m/everything-claude-code",
13
+ "lastSyncSha": "2d3be88bb550c48f1c44ab260934021615dd3cad",
14
+ "lastSyncDate": "2026-03-01T10:34:14.151Z"
15
+ },
16
+ "plugins": {
17
+ "type": "git",
18
+ "repo": "https://github.com/anthropics/claude-plugins-official",
19
+ "pluginsPath": "plugins",
20
+ "lastSyncSha": "55b58ec6e5649104f926ba7558b567dc8d33c5ff",
21
+ "lastSyncDate": "2026-03-01T10:34:14.151Z"
22
+ },
23
+ "ext-skills": {
24
+ "pinchtab": {
25
+ "type": "git",
26
+ "repo": "https://github.com/pinchtab/pinchtab",
27
+ "skillPath": "skill/pinchtab",
28
+ "lastSyncSha": "3fef93b35f33a535d8ff6ec772412dd309e40cfa",
29
+ "lastSyncDate": "2026-03-01T10:34:14.151Z"
30
+ }
31
+ }
32
+ },
33
+ "plugins": {
34
+ "everything-claude-code": {
35
+ "name": "Everything Claude Code",
36
+ "marketplace": "affaan-m",
37
+ "marketplaceSource": {
38
+ "source": "github",
39
+ "repo": "affaan-m/everything-claude-code"
40
+ },
41
+ "default": true,
42
+ "description": "Rules, agents, commands, skills, and hooks for Claude Code"
43
+ },
44
+ "superpowers": {
45
+ "name": "Superpowers",
46
+ "marketplace": "claude-plugins-official",
47
+ "default": true,
48
+ "description": "Structured workflows with brainstorming, debugging, TDD, and code review skills"
49
+ },
50
+ "claude-code-setup": {
51
+ "name": "Claude Code Setup",
52
+ "marketplace": "claude-plugins-official",
53
+ "default": true,
54
+ "description": "Analyze codebases and recommend Claude Code automations, audit and improve CLAUDE.md files"
55
+ },
56
+ "claude-md-management": {
57
+ "name": "Claude MD Management",
58
+ "marketplace": "claude-plugins-official",
59
+ "default": true,
60
+ "description": "Audit, improve, and update CLAUDE.md documentation files"
61
+ },
62
+ "code-simplifier": {
63
+ "name": "Code Simplifier",
64
+ "marketplace": "claude-plugins-official",
65
+ "default": true,
66
+ "description": "Simplify and refine code for clarity, consistency, and maintainability"
67
+ },
68
+ "commit-commands": {
69
+ "name": "Commit Commands",
70
+ "marketplace": "claude-plugins-official",
71
+ "default": true,
72
+ "description": "Git commit workflows: commit, push, PR creation, and branch cleanup"
73
+ },
74
+ "firecrawl": {
75
+ "name": "Firecrawl",
76
+ "marketplace": "claude-plugins-official",
77
+ "default": true,
78
+ "description": "Web scraping, search, and skill generation using Firecrawl"
79
+ }
80
+ },
81
+ "modules": {
82
+ "bmad-core": {
83
+ "name": "BMAD Core",
84
+ "source": "builtin",
85
+ "templateDir": "templates/bmad/core",
86
+ "targetDir": "_bmad/core",
87
+ "required": true,
88
+ "configPrompts": [
89
+ "user_name",
90
+ "communication_language"
91
+ ]
92
+ },
93
+ "bmad-bmm": {
94
+ "name": "BMAD Method",
95
+ "source": "builtin",
96
+ "templateDir": "templates/bmad/bmm",
97
+ "targetDir": "_bmad/bmm",
98
+ "default": true,
99
+ "dependsOn": [
100
+ "bmad-core"
101
+ ]
102
+ },
103
+ "bmad-tea": {
104
+ "name": "Test Architecture Enterprise",
105
+ "source": "builtin",
106
+ "templateDir": "templates/bmad/tea",
107
+ "targetDir": "_bmad/tea",
108
+ "default": true,
109
+ "dependsOn": [
110
+ "bmad-core"
111
+ ]
112
+ },
113
+ "bmad-commands": {
114
+ "name": "BMAD Commands",
115
+ "source": "builtin",
116
+ "templateDir": "templates/bmad/commands",
117
+ "targetDir": ".claude/commands",
118
+ "default": true,
119
+ "dependsOn": [
120
+ "bmad-core"
121
+ ],
122
+ "ideTarget": "claude-code"
123
+ },
124
+ "bmad-config": {
125
+ "name": "BMAD Config",
126
+ "source": "builtin",
127
+ "templateDir": "templates/bmad/_config",
128
+ "targetDir": "_bmad/_config",
129
+ "default": true,
130
+ "dependsOn": [
131
+ "bmad-core"
132
+ ]
133
+ },
134
+ "bmad-trae": {
135
+ "name": "BMAD Trae Rules",
136
+ "source": "builtin",
137
+ "templateDir": "templates/trae-bmad/rules",
138
+ "targetDir": ".trae/rules",
139
+ "default": true,
140
+ "dependsOn": [
141
+ "bmad-core"
142
+ ],
143
+ "ideTarget": "trae"
144
+ },
145
+ "ecc-rules": {
146
+ "name": "ECC Rules",
147
+ "source": "builtin",
148
+ "templateDir": "templates/ecc/rules",
149
+ "default": true,
150
+ "options": {
151
+ "languages": [
152
+ "common",
153
+ "typescript",
154
+ "python",
155
+ "golang"
156
+ ]
157
+ },
158
+ "targets": {
159
+ "claude-code": {
160
+ "targetDir": ".claude/rules"
161
+ },
162
+ "trae": {
163
+ "targetDir": ".trae/rules/ecc",
164
+ "adapter": "trae-rules"
165
+ }
166
+ }
167
+ },
168
+ "ecc-agents": {
169
+ "name": "ECC Agents",
170
+ "source": "builtin",
171
+ "templateDir": "templates/ecc/agents",
172
+ "default": true,
173
+ "targets": {
174
+ "trae": {
175
+ "targetDir": ".trae/rules/ecc/agents",
176
+ "adapter": "trae-agents"
177
+ }
178
+ }
179
+ },
180
+ "ecc-skills": {
181
+ "name": "ECC Skills",
182
+ "source": "builtin",
183
+ "templateDir": "templates/ecc/skills",
184
+ "default": true,
185
+ "targets": {
186
+ "trae": {
187
+ "targetDir": ".trae/skills"
188
+ }
189
+ }
190
+ },
191
+ "ecc-commands": {
192
+ "name": "ECC Commands",
193
+ "source": "builtin",
194
+ "templateDir": "templates/ecc/commands",
195
+ "default": true,
196
+ "targets": {
197
+ "trae": {
198
+ "targetDir": ".trae/rules/ecc/commands",
199
+ "adapter": "trae-commands"
200
+ }
201
+ }
202
+ },
203
+ "mcp": {
204
+ "name": "MCP Server Config",
205
+ "source": "builtin",
206
+ "templateDir": "templates/mcp",
207
+ "default": true,
208
+ "targets": {
209
+ "claude-code": {
210
+ "targetDir": ".",
211
+ "templateDir": "templates/mcp/claude-code"
212
+ },
213
+ "trae": {
214
+ "targetDir": ".trae",
215
+ "templateDir": "templates/mcp/trae"
216
+ }
217
+ }
218
+ },
219
+ "ext-skills": {
220
+ "name": "Third-party Skills",
221
+ "source": "builtin",
222
+ "templateDir": "templates/ext-skills",
223
+ "default": true,
224
+ "targets": {
225
+ "claude-code": {
226
+ "targetDir": ".claude/skills"
227
+ },
228
+ "trae": {
229
+ "targetDir": ".trae/skills"
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
@@ -259,10 +259,11 @@ export async function runInit(opts = {}) {
259
259
  installResult = await installer.install(installable, variables)
260
260
  }
261
261
 
262
- // Step 9.5: Install plugins
262
+ // Step 9.5: Install plugins + Claude Code settings
263
263
  let pluginResult = { claudeCode: [], trae: { files: 0, details: [] }, installed: [] }
264
264
  let pluginSkippedEntries = []
265
265
 
266
+ let resolvedPlugins = []
266
267
  if (config.plugins !== 'none') {
267
268
  const pluginIds = config.plugins === 'default'
268
269
  ? getDefaultPlugins(registry)
@@ -271,20 +272,7 @@ export async function runInit(opts = {}) {
271
272
  if (pluginIds.length > 0) {
272
273
  const templatesBase = path.resolve(CCKIT_ROOT, 'templates')
273
274
  const { found, skipped: pluginSkipped } = resolvePlugins(registry, pluginIds, templatesBase, logger)
274
-
275
- if (found.length > 0) {
276
- pluginResult = await installPlugins({
277
- plugins: found,
278
- targetDir,
279
- ides: config.ides,
280
- variables,
281
- logger,
282
- })
283
-
284
- if (pluginResult.installed.length > 0) {
285
- logger.success(`Plugins: ${pluginResult.installed.join(', ')}`)
286
- }
287
- }
275
+ resolvedPlugins = found
288
276
 
289
277
  pluginSkippedEntries = pluginSkipped.map(ps => ({
290
278
  id: `plugin:${ps.id}`,
@@ -294,6 +282,22 @@ export async function runInit(opts = {}) {
294
282
  }
295
283
  }
296
284
 
285
+ // Always call installPlugins when claude-code is selected (writes env settings)
286
+ // or when there are resolved plugins to install
287
+ if (resolvedPlugins.length > 0 || config.ides.includes('claude-code')) {
288
+ pluginResult = await installPlugins({
289
+ plugins: resolvedPlugins,
290
+ targetDir,
291
+ ides: config.ides,
292
+ variables,
293
+ logger,
294
+ })
295
+
296
+ if (pluginResult.installed.length > 0) {
297
+ logger.success(`Plugins: ${pluginResult.installed.join(', ')}`)
298
+ }
299
+ }
300
+
297
301
  const allSkipped = [...skipped, ...pluginSkippedEntries]
298
302
 
299
303
  // Step 10: Create scaffold directories
@@ -305,7 +305,7 @@ export async function runUpdate(opts = {}) {
305
305
 
306
306
  // Apply mode: reinstall files from templates
307
307
  if (opts.apply) {
308
- const applied = { updated: 0, backedUp: 0, restored: 0, added: 0, failed: 0 }
308
+ const applied = { updated: 0, backedUp: 0, restored: 0, added: 0, failed: 0, orphaned: 0 }
309
309
 
310
310
  let registry
311
311
  let sourceMap
@@ -343,9 +343,11 @@ export async function runUpdate(opts = {}) {
343
343
 
344
344
  for (const relPath of allFiles) {
345
345
  const source = findSourceForFile(relPath, sourceMap)
346
- if (!source) {
347
- logger.debug(`No source template found for: ${relPath}`)
348
- applied.failed += 1
346
+ if (!source || !await fse.pathExists(source.srcAbsPath)) {
347
+ logger.debug(`No source template found for: ${relPath} (orphaned)`)
348
+ applied.orphaned += 1
349
+ // Remove orphaned file from registry so it's no longer tracked
350
+ delete fileRegistry[relPath]
349
351
  continue
350
352
  }
351
353
 
@@ -407,6 +409,9 @@ export async function runUpdate(opts = {}) {
407
409
  await fse.writeFile(manifestPath, YAML.stringify(manifest), 'utf8')
408
410
 
409
411
  logger.newline()
412
+ if (applied.orphaned > 0) {
413
+ logger.warn(`${applied.orphaned} file(s) orphaned (module removed, no longer tracked)`)
414
+ }
410
415
  logger.success(
411
416
  `Applied: ${applied.updated} updated, ${applied.added} added, ${applied.restored} restored, ${applied.backedUp} backed up, ${applied.failed} failed`
412
417
  )