artifact-chain-assistant 0.8.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 (328) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +20 -0
  3. package/.claude-plugin/plugin.json +11 -0
  4. package/.codex-plugin/plugin.json +27 -0
  5. package/.github/ISSUE_TEMPLATE/bug_report.yml +26 -0
  6. package/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
  7. package/.github/pull_request_template.md +14 -0
  8. package/.github/workflows/ci.yml +23 -0
  9. package/CHANGELOG.md +196 -0
  10. package/CODE_OF_CONDUCT.md +11 -0
  11. package/CONTRIBUTING.md +24 -0
  12. package/EXTENDED-ARTIFACT-CATALOG.md +312 -0
  13. package/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
  14. package/INSTALL.md +1340 -0
  15. package/LICENSE +186 -0
  16. package/NOTICE +18 -0
  17. package/README.md +426 -0
  18. package/README.zh-CN.md +409 -0
  19. package/SECURITY.md +19 -0
  20. package/adapters/claude/.claude-plugin/plugin.json +11 -0
  21. package/adapters/claude/EXTENDED-ARTIFACT-CATALOG.md +312 -0
  22. package/adapters/claude/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
  23. package/adapters/claude/INSTALL.md +1340 -0
  24. package/adapters/claude/agent-methods/catalog.yaml +260 -0
  25. package/adapters/claude/bin/version-lock-audit.sh +21 -0
  26. package/adapters/claude/bin/version-lock-refresh.sh +21 -0
  27. package/adapters/claude/commands/version-lock-audit.md +9 -0
  28. package/adapters/claude/commands/version-lock-refresh.md +9 -0
  29. package/adapters/claude/compatibility.json +9 -0
  30. package/adapters/claude/hooks/hooks.json +16 -0
  31. package/adapters/claude/hooks/version-lock-stop.mjs +77 -0
  32. package/adapters/claude/schemas/artifact-workflow-profile.schema.json +72 -0
  33. package/adapters/claude/scripts/batch-merge.mjs +276 -0
  34. package/adapters/claude/scripts/batch-split.mjs +184 -0
  35. package/adapters/claude/scripts/check-workflow-profile.mjs +64 -0
  36. package/adapters/claude/scripts/doctor.mjs +44 -0
  37. package/adapters/claude/scripts/lib/artifact-graph-runtime.mjs +189 -0
  38. package/adapters/claude/scripts/lib/compatibility-policy.mjs +435 -0
  39. package/adapters/claude/scripts/lib/inline-yaml-parser.mjs +216 -0
  40. package/adapters/claude/scripts/lib/method-registry-version.mjs +7 -0
  41. package/adapters/claude/scripts/lib/workflow-profile.mjs +645 -0
  42. package/adapters/claude/scripts/run-artifact-workflow.mjs +366 -0
  43. package/adapters/claude/skills/artifact-audit/SKILL.md +80 -0
  44. package/adapters/claude/skills/artifact-batch/SKILL.md +115 -0
  45. package/adapters/claude/skills/artifact-chain-bootstrap/SKILL.md +343 -0
  46. package/adapters/claude/skills/artifact-chain-maintainer/SKILL.md +167 -0
  47. package/adapters/claude/skills/artifact-generate/SKILL.md +89 -0
  48. package/adapters/claude/skills/artifact-repair/SKILL.md +124 -0
  49. package/adapters/claude/skills/artifact-review/SKILL.md +122 -0
  50. package/adapters/claude/skills/artifact-workflow-worker/SKILL.md +90 -0
  51. package/adapters/claude/skills/prd-feature/SKILL.md +68 -0
  52. package/adapters/claude/skills/prd-feature/author/SKILL.md +92 -0
  53. package/adapters/claude/skills/prd-feature/references/compose.md +43 -0
  54. package/adapters/claude/skills/prd-feature/references/inspect.md +94 -0
  55. package/adapters/claude/skills/prd-feature/references/validate.md +65 -0
  56. package/adapters/claude/skills/prd-feature/repair/SKILL.md +135 -0
  57. package/adapters/claude/skills/prd-feature/review/SKILL.md +134 -0
  58. package/adapters/claude/skills/scenario-script/SKILL.md +76 -0
  59. package/adapters/claude/skills/scenario-script/author/SKILL.md +111 -0
  60. package/adapters/claude/skills/scenario-script/references/compose.md +43 -0
  61. package/adapters/claude/skills/scenario-script/references/inspect.md +105 -0
  62. package/adapters/claude/skills/scenario-script/references/validate.md +72 -0
  63. package/adapters/claude/skills/scenario-script/repair/SKILL.md +135 -0
  64. package/adapters/claude/skills/scenario-script/review/SKILL.md +137 -0
  65. package/adapters/claude/skills/where-am-i/SKILL.md +233 -0
  66. package/adapters/claude/templates/README.md +159 -0
  67. package/adapters/claude/templates/core/decision/review-checklist.md +35 -0
  68. package/adapters/claude/templates/core/decision/starter.md +66 -0
  69. package/adapters/claude/templates/core/design/review-checklist.md +41 -0
  70. package/adapters/claude/templates/core/design/starter.md +84 -0
  71. package/adapters/claude/templates/core/e2e_test/review-checklist.md +43 -0
  72. package/adapters/claude/templates/core/e2e_test/starter.md +70 -0
  73. package/adapters/claude/templates/core/feature/review-checklist.md +29 -0
  74. package/adapters/claude/templates/core/feature/starter.md +43 -0
  75. package/adapters/claude/templates/core/scenario/review-checklist.md +29 -0
  76. package/adapters/claude/templates/core/scenario/starter.md +57 -0
  77. package/adapters/claude/templates/core/test/review-checklist.md +37 -0
  78. package/adapters/claude/templates/core/test/starter.md +70 -0
  79. package/adapters/claude/templates/extended/ADOPTION-GUIDE.md +263 -0
  80. package/adapters/claude/templates/extended/README.md +261 -0
  81. package/adapters/claude/templates/extended/agent/agent_skill/review-checklist.md +51 -0
  82. package/adapters/claude/templates/extended/agent/agent_skill/starter.md +133 -0
  83. package/adapters/claude/templates/extended/agent/hook_policy/review-checklist.md +58 -0
  84. package/adapters/claude/templates/extended/agent/hook_policy/starter.md +134 -0
  85. package/adapters/claude/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
  86. package/adapters/claude/templates/extended/agent/prompt_packet/starter.md +106 -0
  87. package/adapters/claude/templates/extended/contracts/api_contract/review-checklist.md +43 -0
  88. package/adapters/claude/templates/extended/contracts/api_contract/starter.md +92 -0
  89. package/adapters/claude/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
  90. package/adapters/claude/templates/extended/contracts/batch_job_contract/starter.md +158 -0
  91. package/adapters/claude/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
  92. package/adapters/claude/templates/extended/contracts/cli_contract/starter.md +93 -0
  93. package/adapters/claude/templates/extended/contracts/data_contract/review-checklist.md +45 -0
  94. package/adapters/claude/templates/extended/contracts/data_contract/starter.md +88 -0
  95. package/adapters/claude/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
  96. package/adapters/claude/templates/extended/contracts/integration_contract/starter.md +158 -0
  97. package/adapters/claude/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
  98. package/adapters/claude/templates/extended/contracts/ipc_contract/starter.md +214 -0
  99. package/adapters/claude/templates/extended/contracts/report_contract/review-checklist.md +61 -0
  100. package/adapters/claude/templates/extended/contracts/report_contract/starter.md +97 -0
  101. package/adapters/claude/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
  102. package/adapters/claude/templates/extended/contracts/ui_contract/starter.md +150 -0
  103. package/adapters/claude/templates/extended/domain/database_migration/review-checklist.md +51 -0
  104. package/adapters/claude/templates/extended/domain/database_migration/starter.md +115 -0
  105. package/adapters/claude/templates/extended/domain/domain_model/review-checklist.md +43 -0
  106. package/adapters/claude/templates/extended/domain/domain_model/starter.md +83 -0
  107. package/adapters/claude/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
  108. package/adapters/claude/templates/extended/governance/oss_compliance/starter.md +84 -0
  109. package/adapters/claude/templates/extended/governance/publish_skill/review-checklist.md +58 -0
  110. package/adapters/claude/templates/extended/governance/publish_skill/starter.md +172 -0
  111. package/adapters/claude/templates/extended/governance/release_policy/review-checklist.md +57 -0
  112. package/adapters/claude/templates/extended/governance/release_policy/starter.md +131 -0
  113. package/adapters/claude/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
  114. package/adapters/claude/templates/extended/ops/deployment_manifest/starter.md +117 -0
  115. package/adapters/claude/templates/extended/ops/migration_plan/review-checklist.md +63 -0
  116. package/adapters/claude/templates/extended/ops/migration_plan/starter.md +117 -0
  117. package/adapters/claude/templates/extended/ops/performance_budget/review-checklist.md +50 -0
  118. package/adapters/claude/templates/extended/ops/performance_budget/starter.md +117 -0
  119. package/adapters/claude/templates/extended/ops/runbook/review-checklist.md +51 -0
  120. package/adapters/claude/templates/extended/ops/runbook/starter.md +101 -0
  121. package/adapters/claude/templates/extended/ops/security_review/review-checklist.md +56 -0
  122. package/adapters/claude/templates/extended/ops/security_review/starter.md +125 -0
  123. package/adapters/codex/.codex-plugin/plugin.json +27 -0
  124. package/adapters/codex/EXTENDED-ARTIFACT-CATALOG.md +312 -0
  125. package/adapters/codex/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
  126. package/adapters/codex/INSTALL.md +1340 -0
  127. package/adapters/codex/agent-methods/catalog.yaml +260 -0
  128. package/adapters/codex/compatibility.json +9 -0
  129. package/adapters/codex/schemas/artifact-workflow-profile.schema.json +72 -0
  130. package/adapters/codex/scripts/batch-merge.mjs +276 -0
  131. package/adapters/codex/scripts/batch-split.mjs +184 -0
  132. package/adapters/codex/scripts/check-workflow-profile.mjs +64 -0
  133. package/adapters/codex/scripts/doctor.mjs +44 -0
  134. package/adapters/codex/scripts/lib/artifact-graph-runtime.mjs +189 -0
  135. package/adapters/codex/scripts/lib/compatibility-policy.mjs +435 -0
  136. package/adapters/codex/scripts/lib/inline-yaml-parser.mjs +216 -0
  137. package/adapters/codex/scripts/lib/method-registry-version.mjs +7 -0
  138. package/adapters/codex/scripts/lib/workflow-profile.mjs +645 -0
  139. package/adapters/codex/scripts/run-artifact-workflow.mjs +366 -0
  140. package/adapters/codex/skills/artifact-audit/SKILL.md +80 -0
  141. package/adapters/codex/skills/artifact-batch/SKILL.md +115 -0
  142. package/adapters/codex/skills/artifact-chain-bootstrap/SKILL.md +343 -0
  143. package/adapters/codex/skills/artifact-chain-maintainer/SKILL.md +167 -0
  144. package/adapters/codex/skills/artifact-generate/SKILL.md +89 -0
  145. package/adapters/codex/skills/artifact-repair/SKILL.md +124 -0
  146. package/adapters/codex/skills/artifact-review/SKILL.md +122 -0
  147. package/adapters/codex/skills/artifact-workflow-worker/SKILL.md +90 -0
  148. package/adapters/codex/skills/prd-feature/SKILL.md +68 -0
  149. package/adapters/codex/skills/prd-feature/author/SKILL.md +92 -0
  150. package/adapters/codex/skills/prd-feature/references/compose.md +43 -0
  151. package/adapters/codex/skills/prd-feature/references/inspect.md +94 -0
  152. package/adapters/codex/skills/prd-feature/references/validate.md +65 -0
  153. package/adapters/codex/skills/prd-feature/repair/SKILL.md +135 -0
  154. package/adapters/codex/skills/prd-feature/review/SKILL.md +134 -0
  155. package/adapters/codex/skills/scenario-script/SKILL.md +76 -0
  156. package/adapters/codex/skills/scenario-script/author/SKILL.md +111 -0
  157. package/adapters/codex/skills/scenario-script/references/compose.md +43 -0
  158. package/adapters/codex/skills/scenario-script/references/inspect.md +105 -0
  159. package/adapters/codex/skills/scenario-script/references/validate.md +72 -0
  160. package/adapters/codex/skills/scenario-script/repair/SKILL.md +135 -0
  161. package/adapters/codex/skills/scenario-script/review/SKILL.md +137 -0
  162. package/adapters/codex/skills/where-am-i/SKILL.md +233 -0
  163. package/adapters/codex/templates/README.md +159 -0
  164. package/adapters/codex/templates/core/decision/review-checklist.md +35 -0
  165. package/adapters/codex/templates/core/decision/starter.md +66 -0
  166. package/adapters/codex/templates/core/design/review-checklist.md +41 -0
  167. package/adapters/codex/templates/core/design/starter.md +84 -0
  168. package/adapters/codex/templates/core/e2e_test/review-checklist.md +43 -0
  169. package/adapters/codex/templates/core/e2e_test/starter.md +70 -0
  170. package/adapters/codex/templates/core/feature/review-checklist.md +29 -0
  171. package/adapters/codex/templates/core/feature/starter.md +43 -0
  172. package/adapters/codex/templates/core/scenario/review-checklist.md +29 -0
  173. package/adapters/codex/templates/core/scenario/starter.md +57 -0
  174. package/adapters/codex/templates/core/test/review-checklist.md +37 -0
  175. package/adapters/codex/templates/core/test/starter.md +70 -0
  176. package/adapters/codex/templates/extended/ADOPTION-GUIDE.md +263 -0
  177. package/adapters/codex/templates/extended/README.md +261 -0
  178. package/adapters/codex/templates/extended/agent/agent_skill/review-checklist.md +51 -0
  179. package/adapters/codex/templates/extended/agent/agent_skill/starter.md +133 -0
  180. package/adapters/codex/templates/extended/agent/hook_policy/review-checklist.md +58 -0
  181. package/adapters/codex/templates/extended/agent/hook_policy/starter.md +134 -0
  182. package/adapters/codex/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
  183. package/adapters/codex/templates/extended/agent/prompt_packet/starter.md +106 -0
  184. package/adapters/codex/templates/extended/contracts/api_contract/review-checklist.md +43 -0
  185. package/adapters/codex/templates/extended/contracts/api_contract/starter.md +92 -0
  186. package/adapters/codex/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
  187. package/adapters/codex/templates/extended/contracts/batch_job_contract/starter.md +158 -0
  188. package/adapters/codex/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
  189. package/adapters/codex/templates/extended/contracts/cli_contract/starter.md +93 -0
  190. package/adapters/codex/templates/extended/contracts/data_contract/review-checklist.md +45 -0
  191. package/adapters/codex/templates/extended/contracts/data_contract/starter.md +88 -0
  192. package/adapters/codex/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
  193. package/adapters/codex/templates/extended/contracts/integration_contract/starter.md +158 -0
  194. package/adapters/codex/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
  195. package/adapters/codex/templates/extended/contracts/ipc_contract/starter.md +214 -0
  196. package/adapters/codex/templates/extended/contracts/report_contract/review-checklist.md +61 -0
  197. package/adapters/codex/templates/extended/contracts/report_contract/starter.md +97 -0
  198. package/adapters/codex/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
  199. package/adapters/codex/templates/extended/contracts/ui_contract/starter.md +150 -0
  200. package/adapters/codex/templates/extended/domain/database_migration/review-checklist.md +51 -0
  201. package/adapters/codex/templates/extended/domain/database_migration/starter.md +115 -0
  202. package/adapters/codex/templates/extended/domain/domain_model/review-checklist.md +43 -0
  203. package/adapters/codex/templates/extended/domain/domain_model/starter.md +83 -0
  204. package/adapters/codex/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
  205. package/adapters/codex/templates/extended/governance/oss_compliance/starter.md +84 -0
  206. package/adapters/codex/templates/extended/governance/publish_skill/review-checklist.md +58 -0
  207. package/adapters/codex/templates/extended/governance/publish_skill/starter.md +172 -0
  208. package/adapters/codex/templates/extended/governance/release_policy/review-checklist.md +57 -0
  209. package/adapters/codex/templates/extended/governance/release_policy/starter.md +131 -0
  210. package/adapters/codex/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
  211. package/adapters/codex/templates/extended/ops/deployment_manifest/starter.md +117 -0
  212. package/adapters/codex/templates/extended/ops/migration_plan/review-checklist.md +63 -0
  213. package/adapters/codex/templates/extended/ops/migration_plan/starter.md +117 -0
  214. package/adapters/codex/templates/extended/ops/performance_budget/review-checklist.md +50 -0
  215. package/adapters/codex/templates/extended/ops/performance_budget/starter.md +117 -0
  216. package/adapters/codex/templates/extended/ops/runbook/review-checklist.md +51 -0
  217. package/adapters/codex/templates/extended/ops/runbook/starter.md +101 -0
  218. package/adapters/codex/templates/extended/ops/security_review/review-checklist.md +56 -0
  219. package/adapters/codex/templates/extended/ops/security_review/starter.md +125 -0
  220. package/agent-methods/catalog.yaml +260 -0
  221. package/compatibility.json +9 -0
  222. package/package.json +85 -0
  223. package/runtime/claude/version-lock-stop.mjs +77 -0
  224. package/schemas/artifact-workflow-profile.schema.json +72 -0
  225. package/scripts/batch-merge.mjs +276 -0
  226. package/scripts/batch-split.mjs +184 -0
  227. package/scripts/build-adapters.mjs +195 -0
  228. package/scripts/build-runtime-bundles.mjs +134 -0
  229. package/scripts/check-compatibility.mjs +19 -0
  230. package/scripts/check-method-registry.mjs +461 -0
  231. package/scripts/check-templates.mjs +348 -0
  232. package/scripts/check-workflow-profile.mjs +64 -0
  233. package/scripts/doctor.mjs +44 -0
  234. package/scripts/install-git-hooks.mjs +21 -0
  235. package/scripts/lib/artifact-graph-runtime.mjs +189 -0
  236. package/scripts/lib/compatibility-policy.mjs +435 -0
  237. package/scripts/lib/inline-yaml-parser.mjs +216 -0
  238. package/scripts/lib/method-registry-version.mjs +7 -0
  239. package/scripts/lib/workflow-profile.mjs +645 -0
  240. package/scripts/run-artifact-workflow.mjs +366 -0
  241. package/scripts/sync-skills.mjs +149 -0
  242. package/skills-src/artifact-audit/SKILL.md +80 -0
  243. package/skills-src/artifact-batch/SKILL.md +115 -0
  244. package/skills-src/artifact-chain-bootstrap/SKILL.md +343 -0
  245. package/skills-src/artifact-chain-maintainer/SKILL.md +167 -0
  246. package/skills-src/artifact-generate/SKILL.md +89 -0
  247. package/skills-src/artifact-repair/SKILL.md +124 -0
  248. package/skills-src/artifact-review/SKILL.md +122 -0
  249. package/skills-src/artifact-workflow-worker/SKILL.md +90 -0
  250. package/skills-src/prd-feature/SKILL.md +68 -0
  251. package/skills-src/prd-feature/author/SKILL.md +92 -0
  252. package/skills-src/prd-feature/references/compose.md +43 -0
  253. package/skills-src/prd-feature/references/inspect.md +94 -0
  254. package/skills-src/prd-feature/references/validate.md +65 -0
  255. package/skills-src/prd-feature/repair/SKILL.md +135 -0
  256. package/skills-src/prd-feature/review/SKILL.md +134 -0
  257. package/skills-src/scenario-script/SKILL.md +76 -0
  258. package/skills-src/scenario-script/author/SKILL.md +111 -0
  259. package/skills-src/scenario-script/references/compose.md +43 -0
  260. package/skills-src/scenario-script/references/inspect.md +105 -0
  261. package/skills-src/scenario-script/references/validate.md +72 -0
  262. package/skills-src/scenario-script/repair/SKILL.md +135 -0
  263. package/skills-src/scenario-script/review/SKILL.md +137 -0
  264. package/skills-src/where-am-i/SKILL.md.tpl +233 -0
  265. package/templates/README.md +159 -0
  266. package/templates/claude/marketplace.json.tpl +20 -0
  267. package/templates/claude/plugin.json.tpl +11 -0
  268. package/templates/claude/settings.json.tpl +16 -0
  269. package/templates/codex/marketplace.json.tpl +20 -0
  270. package/templates/codex/plugin.json.tpl +27 -0
  271. package/templates/core/decision/review-checklist.md +35 -0
  272. package/templates/core/decision/starter.md +66 -0
  273. package/templates/core/design/review-checklist.md +41 -0
  274. package/templates/core/design/starter.md +84 -0
  275. package/templates/core/e2e_test/review-checklist.md +43 -0
  276. package/templates/core/e2e_test/starter.md +70 -0
  277. package/templates/core/feature/review-checklist.md +29 -0
  278. package/templates/core/feature/starter.md +43 -0
  279. package/templates/core/scenario/review-checklist.md +29 -0
  280. package/templates/core/scenario/starter.md +57 -0
  281. package/templates/core/test/review-checklist.md +37 -0
  282. package/templates/core/test/starter.md +70 -0
  283. package/templates/extended/ADOPTION-GUIDE.md +263 -0
  284. package/templates/extended/README.md +261 -0
  285. package/templates/extended/agent/agent_skill/review-checklist.md +51 -0
  286. package/templates/extended/agent/agent_skill/starter.md +133 -0
  287. package/templates/extended/agent/hook_policy/review-checklist.md +58 -0
  288. package/templates/extended/agent/hook_policy/starter.md +134 -0
  289. package/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
  290. package/templates/extended/agent/prompt_packet/starter.md +106 -0
  291. package/templates/extended/contracts/api_contract/review-checklist.md +43 -0
  292. package/templates/extended/contracts/api_contract/starter.md +92 -0
  293. package/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
  294. package/templates/extended/contracts/batch_job_contract/starter.md +158 -0
  295. package/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
  296. package/templates/extended/contracts/cli_contract/starter.md +93 -0
  297. package/templates/extended/contracts/data_contract/review-checklist.md +45 -0
  298. package/templates/extended/contracts/data_contract/starter.md +88 -0
  299. package/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
  300. package/templates/extended/contracts/integration_contract/starter.md +158 -0
  301. package/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
  302. package/templates/extended/contracts/ipc_contract/starter.md +214 -0
  303. package/templates/extended/contracts/report_contract/review-checklist.md +61 -0
  304. package/templates/extended/contracts/report_contract/starter.md +97 -0
  305. package/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
  306. package/templates/extended/contracts/ui_contract/starter.md +150 -0
  307. package/templates/extended/domain/database_migration/review-checklist.md +51 -0
  308. package/templates/extended/domain/database_migration/starter.md +115 -0
  309. package/templates/extended/domain/domain_model/review-checklist.md +43 -0
  310. package/templates/extended/domain/domain_model/starter.md +83 -0
  311. package/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
  312. package/templates/extended/governance/oss_compliance/starter.md +84 -0
  313. package/templates/extended/governance/publish_skill/review-checklist.md +58 -0
  314. package/templates/extended/governance/publish_skill/starter.md +172 -0
  315. package/templates/extended/governance/release_policy/review-checklist.md +57 -0
  316. package/templates/extended/governance/release_policy/starter.md +131 -0
  317. package/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
  318. package/templates/extended/ops/deployment_manifest/starter.md +117 -0
  319. package/templates/extended/ops/migration_plan/review-checklist.md +63 -0
  320. package/templates/extended/ops/migration_plan/starter.md +117 -0
  321. package/templates/extended/ops/performance_budget/review-checklist.md +50 -0
  322. package/templates/extended/ops/performance_budget/starter.md +117 -0
  323. package/templates/extended/ops/runbook/review-checklist.md +51 -0
  324. package/templates/extended/ops/runbook/starter.md +101 -0
  325. package/templates/extended/ops/security_review/review-checklist.md +56 -0
  326. package/templates/extended/ops/security_review/starter.md +125 -0
  327. package/templates/git-hooks/pre-commit.sh +43 -0
  328. package/templates/git-hooks/pre-push.sh +22 -0
@@ -0,0 +1,101 @@
1
+ ---
2
+ id: {RUN_ID}
3
+ title: {运维手册标题}
4
+ status: draft
5
+ related_features: []
6
+ related_decisions: []
7
+ ---
8
+
9
+ # {RUN_ID}: {运维手册标题}
10
+
11
+ <!-- 本模板是插件 starter 指导,项目本地模板可完全覆盖 -->
12
+ <!-- 插件模板是入门指导,项目本地模板是权威 -->
13
+
14
+ ## 概述
15
+
16
+ {描述这个运维手册的适用场景、目标受众和覆盖范围}
17
+
18
+ ## 适用场景
19
+
20
+ - **触发条件**:{什么情况下使用此手册}
21
+ - **前置条件**:{执行前必须满足的条件}
22
+ - **负责人**:{主要负责人和备份}
23
+
24
+ ## 操作流程
25
+
26
+ ### 步骤 1:{步骤标题}
27
+
28
+ **目的**:{步骤目的}
29
+
30
+ **操作**:
31
+ ```bash
32
+ {操作命令}
33
+ ```
34
+
35
+ **预期结果**:{结果描述}
36
+
37
+ **验证方法**:{如何验证操作成功}
38
+
39
+ ### 步骤 2:{步骤标题}
40
+
41
+ {同上结构}
42
+
43
+ ## 告警与监控
44
+
45
+ ### 关键指标
46
+
47
+ | 指标 | 阈值 | 告警方式 |
48
+ |------|------|---------|
49
+ | {指标1} | {阈值} | {告警方式} |
50
+ | {指标2} | {阈值} | {告警方式} |
51
+
52
+ ### 告警处理
53
+
54
+ | 告警 | 原因 | 处理步骤 |
55
+ |------|------|---------|
56
+ | {告警1} | {原因} | {步骤} |
57
+ | {告警2} | {原因} | {步骤} |
58
+
59
+ ## 回滚流程
60
+
61
+ ### 回滚触发条件
62
+
63
+ {描述什么情况下需要回滚}
64
+
65
+ ### 回滚步骤
66
+
67
+ 1. {回滚步骤 1}
68
+ 2. {回滚步骤 2}
69
+
70
+ ### 回滚验证
71
+
72
+ {如何验证回滚成功}
73
+
74
+ ## 故障排查
75
+
76
+ ### 常见问题
77
+
78
+ **问题 1**:{问题描述}
79
+
80
+ **症状**:{症状描述}
81
+ **原因**:{原因分析}
82
+ **解决方案**:{解决步骤}
83
+
84
+ ### 日志位置
85
+
86
+ | 服务 | 日志路径 | 关键字段 |
87
+ |------|---------|---------|
88
+ | {服务1} | {路径} | {字段} |
89
+
90
+ ## 联系人
91
+
92
+ | 角色 | 姓名 | 联系方式 |
93
+ |------|------|---------|
94
+ | 主要负责人 | {姓名} | {联系方式} |
95
+ | 备份负责人 | {姓名} | {联系方式} |
96
+
97
+ ## 变更日志
98
+
99
+ | 日期 | 变更 | 作者 |
100
+ |------|------|------|
101
+ | {YYYY-MM-DD} | 初始版本 | {作者} |
@@ -0,0 +1,56 @@
1
+ # Security Review 审查清单
2
+
3
+ <!-- 本清单是插件通用基线,项目本地审查规则可覆盖 -->
4
+
5
+ ## 结构完整性
6
+
7
+ - [ ] `id` 字段存在且符合项目 ID 模式(如 `SEC-{nnn}`)
8
+ - [ ] `title` 清晰描述审查范围
9
+ - [ ] `scope` 已明确界定
10
+ - [ ] 审查类型已标注
11
+
12
+ ## 威胁模型
13
+
14
+ - [ ] 攻击面已全面识别
15
+ - [ ] 信任边界已明确
16
+ - [ ] 资产分类与敏感级别合理
17
+ - [ ] 数据流图完整
18
+
19
+ ## 发现项质量
20
+
21
+ - [ ] 发现项按严重度分类(高/中/低)
22
+ - [ ] 每项有清晰的影响描述
23
+ - [ ] 修复状态已跟踪
24
+ - [ ] 误报已排除
25
+
26
+ ## 安全控制覆盖
27
+
28
+ - [ ] 认证与授权已审查
29
+ - [ ] 数据保护(传输 + 静态)已审查
30
+ - [ ] 输入验证已审查
31
+ - [ ] 依赖安全已扫描
32
+
33
+ ## 合规映射
34
+
35
+ - [ ] 相关合规标准已识别
36
+ - [ ] 合规状态已明确
37
+ - [ ] 不合规项有修复计划
38
+
39
+ ## 修复跟踪
40
+
41
+ - [ ] 高严重度发现项有修复方案
42
+ - [ ] 修复责任人已指定
43
+ - [ ] 修复截止日期合理
44
+ - [ ] 修复后回归验证计划存在
45
+
46
+ ## 追溯性
47
+
48
+ - [ ] 关联功能特性存在
49
+ - [ ] 关联决策存在
50
+ - [ ] 审查可追溯到变更原因
51
+
52
+ ## 周期性
53
+
54
+ - [ ] 审查周期已设定
55
+ - [ ] 上次审查日期已记录
56
+ - [ ] 下次审查日期已计划
@@ -0,0 +1,125 @@
1
+ ---
2
+ id: {SEC_ID}
3
+ title: {安全审查标题}
4
+ status: draft
5
+ scope: {审查范围}
6
+ related_features: []
7
+ related_decisions: []
8
+ ---
9
+
10
+ # {SEC_ID}: {安全审查标题}
11
+
12
+ <!-- 本模板是插件 starter 指导,项目本地模板可完全覆盖 -->
13
+ <!-- 插件模板是入门指导,项目本地模板是权威 -->
14
+
15
+ ## 概述
16
+
17
+ {描述这次安全审查的背景、审查范围和目标}
18
+
19
+ ## 审查信息
20
+
21
+ - **审查范围**:{scope}
22
+ - **审查类型**:代码审查 / 架构审查 / 渗透测试 / 合规审查
23
+ - **审查日期**:{YYYY-MM-DD}
24
+ - **审查人员**:{审查人员}
25
+ - **审核截止日期**:{YYYY-MM-DD}
26
+
27
+ ## 威胁模型
28
+
29
+ ### 攻击面分析
30
+
31
+ | 攻击面 | 入口点 | 数据流 | 信任边界 |
32
+ |--------|--------|--------|---------|
33
+ | {攻击面1} | {入口} | {数据流描述} | {边界} |
34
+ | {攻击面2} | {入口} | {数据流描述} | {边界} |
35
+
36
+ ### 资产分类
37
+
38
+ | 资产 | 敏感级别 | 存储位置 | 访问控制 |
39
+ |------|---------|---------|---------|
40
+ | {资产1} | 高/中/低 | {位置} | {控制方式} |
41
+ | {资产2} | 高/中/低 | {位置} | {控制方式} |
42
+
43
+ ## 发现项
44
+
45
+ ### 高严重度
46
+
47
+ | ID | 发现 | 影响 | 修复状态 |
48
+ |----|------|------|---------|
49
+ | {H-001} | {发现描述} | {影响描述} | 待修复 / 已修复 / 已接受 |
50
+
51
+ ### 中严重度
52
+
53
+ | ID | 发现 | 影响 | 修复状态 |
54
+ |----|------|------|---------|
55
+ | {M-001} | {发现描述} | {影响描述} | 待修复 / 已修复 / 已接受 |
56
+
57
+ ### 低严重度
58
+
59
+ | ID | 发现 | 影响 | 修复状态 |
60
+ |----|------|------|---------|
61
+ | {L-001} | {发现描述} | {影响描述} | 待修复 / 已修复 / 已接受 |
62
+
63
+ ## 安全控制清单
64
+
65
+ ### 认证与授权
66
+
67
+ - [ ] 认证机制已审查
68
+ - [ ] 授权策略已审查
69
+ - [ ] 会话管理已审查
70
+ - [ ] 密码策略已审查
71
+
72
+ ### 数据保护
73
+
74
+ - [ ] 传输加密已审查(TLS 配置)
75
+ - [ ] 静态加密已审查
76
+ - [ ] 敏感数据脱敏已审查
77
+ - [ ] 密钥管理已审查
78
+
79
+ ### 输入验证
80
+
81
+ - [ ] SQL 注入防护已审查
82
+ - [ ] XSS 防护已审查
83
+ - [ ] CSRF 防护已审查
84
+ - [ ] 文件上传安全已审查
85
+
86
+ ### 依赖安全
87
+
88
+ - [ ] 依赖漏洞扫描已完成
89
+ - [ ] 已知漏洞已修复或接受
90
+ - [ ] 依赖版本锁定已确认
91
+
92
+ ## 合规映射
93
+
94
+ | 合规要求 | 对应控制 | 状态 |
95
+ |---------|---------|------|
96
+ | {要求1} | {控制措施} | 合规 / 不合规 / 不适用 |
97
+ | {要求2} | {控制措施} | 合规 / 不合规 / 不适用 |
98
+
99
+ ## 修复跟踪
100
+
101
+ | 发现 ID | 修复方案 | 负责人 | 截止日期 | 状态 |
102
+ |---------|---------|--------|---------|------|
103
+ | {H-001} | {修复方案} | {负责人} | {日期} | 待修复 / 已修复 |
104
+
105
+ ## 结论
106
+
107
+ ### 审查结论
108
+
109
+ {总结审查结论:通过 / 有条件通过 / 不通过}
110
+
111
+ ### 附带条件
112
+
113
+ {如有条件通过,列出必须满足的条件}
114
+
115
+ ## 关联制品
116
+
117
+ - 功能特性:{related_features}
118
+ - 决策:{related_decisions}
119
+ - 设计文档:{related_designs}
120
+
121
+ ## 变更日志
122
+
123
+ | 日期 | 变更 | 作者 |
124
+ |------|------|------|
125
+ | {YYYY-MM-DD} | 初始版本 | {作者} |
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "artifact-chain-assistant",
3
+ "version": "0.8.0",
4
+ "description": "Artifact-chain intake, review/repair/batch/audit workflows, diagnostics, and version-lock maintenance helpers.",
5
+ "author": {
6
+ "name": "Artifact Graph Maintainers"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "keywords": ["artifact-graph", "traceability", "codex", "claude-code"],
10
+ "skills": "./skills/",
11
+ "hooks": {},
12
+ "interface": {
13
+ "displayName": "Artifact Chain Assistant",
14
+ "shortDescription": "Artifact-chain context, review workflows, and version-lock maintenance.",
15
+ "longDescription": "Reusable skills for artifact-graph projects, including intake routing, generic artifact review/repair/batch/audit workflows, diagnostics, and version-lock refresh guidance.",
16
+ "developerName": "Artifact Graph Maintainers",
17
+ "category": "Productivity",
18
+ "capabilities": ["Write"],
19
+ "defaultPrompt": [
20
+ "Check where this artifact-chain task should start.",
21
+ "Review a design-spec artifact for traceability and completeness.",
22
+ "Run a batch review on multiple artifacts.",
23
+ "Refresh version locks for my staged changes.",
24
+ "Run artifact-chain doctor for this project."
25
+ ]
26
+ }
27
+ }
@@ -0,0 +1,312 @@
1
+ # Extended Artifact Catalog
2
+
3
+ This document summarizes the extended artifact type catalog for `artifact-chain-assistant`. It
4
+ covers type classification, recommended paths and ID patterns, template adoption rules, and the
5
+ three-tier authority boundary between `artifact-graph`, the plugin, and target projects.
6
+
7
+ For core artifact types (`feature`, `scenario`, `decision`, `design`, `test`, `e2e_test`), see the
8
+ plugin README and INSTALL.md. This document covers opt-in types beyond the core set.
9
+
10
+ ## Three-Tier Authority Model
11
+
12
+ | Layer | Scope | Responsibility for Extended Types |
13
+ | --- | --- | --- |
14
+ | **artifact-graph** | Deterministic graph capabilities | Reads type definitions from config; indexes artifacts; provides context/packet/validate. Does **not** ship default paths or ID patterns for extended types. Types without configured paths are not indexed. |
15
+ | **artifact-chain-assistant** | General assistant guidance | Provides starter templates, profile suggestions, and generic review checklists. **Templates are guidance, not authority.** Project-local templates and review skills override plugin suggestions. |
16
+ | **Target project** | Final working method | Decides which extended types to enable; maintains config, local templates, review skills, and ID rules. **Project-local overrides plugin suggestions.** Enables new types progressively as maturity grows. |
17
+
18
+ ## Extended Artifact Type Catalog
19
+
20
+ Extended types are organized into four categories. Each type entry includes recommended paths, ID
21
+ patterns, lifecycle rules, and review checkpoints. All recommended values are **guidance** — the
22
+ project's `artifact-graph.config.yaml` is the final authority.
23
+
24
+ ### Contract Artifacts
25
+
26
+ Contract artifacts record interface agreements at system boundaries. When requirements flow from
27
+ features and scenarios into implementation, contracts are key upstream artifacts for context
28
+ assembly.
29
+
30
+ | Type | Recommended Path | Recommended ID Pattern | Lifecycle | Review Checkpoints |
31
+ | --- | --- | --- | --- | --- |
32
+ | `api_contract` | `artifacts/contracts/api/` | `API-{nnn}` or `{service}-API-{version}` | Create/update on API change; mark deprecated when API is retired | Consistency with implementation, error code coverage, version compatibility, request/response schema completeness |
33
+ | `cli_contract` | `artifacts/contracts/cli/` | `CLI-{nnn}` or `{tool}-CLI-{version}` | Create/update on CLI interface change | Command signature, parameter types, exit codes, backward compatibility, help text accuracy |
34
+ | `ui_contract` | `artifacts/contracts/ui/` | `UI-{nnn}` | Create/update on UI flow change | Interaction flows, state transitions, accessibility, error state coverage |
35
+ | `ipc_contract` | `artifacts/contracts/ipc/` | `IPC-{nnn}` | Create/update on IPC channel change | Message format, error propagation, frontend/backend boundary, serialization compatibility |
36
+ | `data_contract` | `artifacts/contracts/data/` | `DATA-{nnn}` | Create/update on data model/schema change | Field semantics, version compatibility, migration path, default value semantics |
37
+ | `report_contract` | `artifacts/contracts/report/` | `RPT-{nnn}` | Create/update on report format change | Field semantics, aggregation logic, output format, time window semantics |
38
+ | `integration_contract` | `artifacts/contracts/integration/` | `INT-{nnn}` | Create/update on external system integration change | Interface protocol, timeout, retry strategy, idempotency, error classification |
39
+ | `batch_job_contract` | `artifacts/contracts/batch/` | `BATCH-{nnn}` | Create/update on batch job change | Input/output format, schedule expression, idempotency, error handling, replay strategy |
40
+
41
+ ### Domain and Data Artifacts
42
+
43
+ Domain and data artifacts capture business concepts and technical data models. They are core
44
+ artifacts for enterprise Java and DDD projects.
45
+
46
+ | Type | Recommended Path | Recommended ID Pattern | Lifecycle | Review Checkpoints |
47
+ | --- | --- | --- | --- | --- |
48
+ | `domain_model` | `artifacts/domain/` | `DM-{nnn}` or entity name | Create/update on domain concept change | Aggregate boundaries, domain events, bounded context mapping, invariant definitions |
49
+ | `database_migration` | `artifacts/migrations/` | `MIG-{nnn}` or timestamp (e.g., `20260709-001`) | Create on schema change; mark executed after deployment | Rollback path, data compatibility, performance impact, large table change strategy |
50
+
51
+ ### Deployment and Operations Artifacts
52
+
53
+ Deployment and operations artifacts cover production environment changes, security, performance, and
54
+ operational procedures. Enable only when the project has corresponding operational processes.
55
+
56
+ | Type | Recommended Path | Recommended ID Pattern | Lifecycle | Review Checkpoints |
57
+ | --- | --- | --- | --- | --- |
58
+ | `deployment_manifest` | `artifacts/deploy/` | `DEP-{nnn}` or environment name (e.g., `DEP-prod`) | Create/update on deployment config change | Environment differences, rollback strategy, resource limits, health check configuration |
59
+ | `security_review` | `artifacts/security/` | `SEC-{nnn}` | Create/update on security review cycle or major change | Threat model coverage, fix status tracking, compliance mapping, sensitive data handling |
60
+ | `performance_budget` | `artifacts/performance/` | `PERF-{nnn}` | Create/update on performance target change | Metric baseline, threshold definition, regression detection strategy, measurement method |
61
+ | `migration_plan` | `artifacts/migrations/plan/` | `MPLAN-{nnn}` | Create on migration start; update at each phase completion | Phase division, rollback point definition, data validation strategy, parallel run period |
62
+ | `runbook` | `artifacts/runbooks/` | `RUN-{nnn}` | Create/update on operational procedure change | Step accuracy, alert correlation, responsible person, last execution date |
63
+
64
+ ### Release Governance Artifacts
65
+
66
+ Release governance artifacts cover versioning strategy, publishing workflows, and open-source
67
+ compliance. Enable only for parent repos, release governance repos, or multi-package monorepos that
68
+ own the release process.
69
+
70
+ | Type | Recommended Path | Recommended ID Pattern | Lifecycle | Review Checkpoints |
71
+ | --- | --- | --- | --- | --- |
72
+ | `release_policy` | `artifacts/governance/` | `RP-{nnn}` | Create/update on release policy change | Version semantics, release cadence, branch strategy, changelog standard, rollback plan |
73
+ | `publish_skill` | `artifacts/governance/` | `PS-{nnn}` | Create/update on publish workflow change | Publish targets, quality gates, compliance checks, error handling, rollback plan |
74
+ | `oss_compliance` | `artifacts/governance/` | `OSS-{nnn}` | Create/update on OSS compliance rule or release scope change | License policy, dependency audit, standard files, security disclosure, release exclusions |
75
+
76
+ ### Agent and Hook Artifacts
77
+
78
+ Agent and hook artifacts cover AI-assisted workflows and CI/CD gates. Enable only when the project
79
+ has corresponding files or processes.
80
+
81
+ | Type | Recommended Path | Recommended ID Pattern | Lifecycle | Review Checkpoints |
82
+ | --- | --- | --- | --- | --- |
83
+ | `agent_skill` | `artifacts/skills/` | `SKILL-{nnn}` | Create/update on skill definition change | Input/output contract, tool dependencies, permission boundary, error handling |
84
+ | `hook_policy` | `artifacts/policies/` | `HOOK-{nnn}` | Create/update on hook policy change | Trigger conditions, gate rules, bypass approval process, audit log |
85
+ | `prompt_packet` | `artifacts/packets/` | `PP-{nnn}` | Create/update on prompt template or context assembly change | Context sources, prompt clarity, token budget, output contract, testability |
86
+
87
+ ## Bootstrap Trimming Strategy
88
+
89
+ Bootstrap selects a **minimum viable profile** rather than enabling all known types.
90
+
91
+ Rules:
92
+
93
+ 1. **Core set always enabled**: `feature`, `scenario`, `decision`, `design`, `test`, `e2e_test`.
94
+ 2. **Contracts by evidence**: Enable only when the project has corresponding interface files (e.g., OpenAPI spec, CLI entry, IPC channel definition).
95
+ 3. **Domain/data by project shape**: Enterprise Java/DDD projects may enable `domain_model`; projects with databases may enable `database_migration`.
96
+ 4. **Ops by operational process**: Enable only when the project has deployment configs, security review processes, or operational manuals.
97
+ 5. **Agent/hook by local files**: Enable only when the project has `skills/`, `policies/`, or hook config files.
98
+ 6. **Progressive expansion**: As project maturity grows, add new types in `artifact-graph.config.yaml`. Existing artifacts and traceability relationships are unaffected.
99
+
100
+ After bootstrap, the enabled types, paths, and ID patterns are recorded in
101
+ `artifact-graph.config.yaml`. Deferred types and their evidence conditions are documented in the
102
+ project's artifact catalog so future expansion is a recorded decision.
103
+
104
+ ## Template Adoption
105
+
106
+ ### Template Source Rules
107
+
108
+ 1. **Plugin templates are onboarding guidance.** `artifact-chain-assistant` provides starter
109
+ templates for each extended type in `templates/extended/`, organized by category
110
+ (`contracts/`, `domain/`, `ops/`, `agent/`). Plugin templates do not determine the project's
111
+ artifact shape.
112
+ 2. **Project-local templates are authority.** When a project needs different section structures,
113
+ review standards, or naming rules, project-local templates override plugin templates.
114
+ 3. **Fallback when no template exists.** If a project enables an extended type but has no local
115
+ template, the assistant may reference the plugin starter but must note it has not been
116
+ customized.
117
+ 4. **Adoption flow.** Copy the starter template from `templates/extended/` to the project-local
118
+ `artifacts/templates/` or equivalent, then customize.
119
+
120
+ ### Template Lifecycle
121
+
122
+ 1. **Bootstrap phase**: Bootstrap skill references plugin starters to generate initial artifact
123
+ structure. Template source is recorded in `artifacts/README.md`.
124
+ 2. **Adoption phase**: Team reviews the starter, decides which sections to keep/modify/remove,
125
+ and copies to local. The customized version becomes authority.
126
+ 3. **Mature phase**: Project maintains a complete local template library. Plugin starters are
127
+ referenced only when onboarding new members or enabling new types.
128
+ 4. **Upgrade review**: When the plugin updates a starter, the project reviews the diff and
129
+ selectively merges useful changes while preserving local customizations.
130
+
131
+ ### Template Directory Layout
132
+
133
+ ```
134
+ templates/
135
+ core/ # Core artifact templates
136
+ feature/
137
+ starter.md # Drafting guidance template
138
+ review-checklist.md # Generic review checklist
139
+ scenario/
140
+ starter.md
141
+ review-checklist.md
142
+ decision/
143
+ starter.md
144
+ review-checklist.md
145
+ design/
146
+ starter.md
147
+ review-checklist.md
148
+ test/
149
+ starter.md
150
+ review-checklist.md
151
+ e2e_test/
152
+ starter.md
153
+ review-checklist.md
154
+ extended/ # Extended artifact templates (by category)
155
+ contracts/
156
+ api_contract/
157
+ starter.md
158
+ review-checklist.md
159
+ cli_contract/
160
+ starter.md
161
+ review-checklist.md
162
+ data_contract/
163
+ starter.md
164
+ review-checklist.md
165
+ ... # Other contract types follow the same structure
166
+ domain/
167
+ domain_model/
168
+ starter.md
169
+ review-checklist.md
170
+ database_migration/
171
+ starter.md
172
+ review-checklist.md
173
+ ops/
174
+ deployment_manifest/
175
+ starter.md
176
+ review-checklist.md
177
+ runbook/
178
+ starter.md
179
+ review-checklist.md
180
+ ...
181
+ governance/
182
+ release_policy/
183
+ starter.md
184
+ review-checklist.md
185
+ publish_skill/
186
+ starter.md
187
+ review-checklist.md
188
+ oss_compliance/
189
+ starter.md
190
+ review-checklist.md
191
+ agent/
192
+ agent_skill/
193
+ starter.md
194
+ review-checklist.md
195
+ hook_policy/
196
+ starter.md
197
+ review-checklist.md
198
+ prompt_packet/
199
+ starter.md
200
+ review-checklist.md
201
+ ```
202
+
203
+ Each type's `starter.md` contains the artifact structure template and minimal filling guidance.
204
+ `review-checklist.md` is the generic review checkpoint baseline. Both are **suggestions that can be
205
+ fully overridden by project-local templates**.
206
+
207
+ ## Evidence-Based Enablement
208
+
209
+ Bootstrap activates extended artifact types only when local files or directories exist:
210
+
211
+ | Type | Enablement Evidence |
212
+ | --- | --- |
213
+ | `api_contract` | OpenAPI/Swagger spec, API documentation, or REST endpoint code exists |
214
+ | `cli_contract` | CLI entry code or command definitions exist |
215
+ | `data_contract` | Data model definitions or schema files exist |
216
+ | `domain_model` | DDD aggregates, entities, or value objects exist in code |
217
+ | `database_migration` | Database schema or migration scripts exist |
218
+ | `security_review` | Security review process, security-related code, or Spring Security config exists |
219
+ | `performance_budget` | Performance test scripts, monitoring config, or performance baseline docs exist |
220
+ | `migration_plan` | Migration planning docs, architecture evolution plans, or system transition plans exist |
221
+ | `runbook` | Operational procedures or runbook documents exist |
222
+ | `deployment_manifest` | Deployment configs (K8s, Docker, etc.) exist |
223
+ | `agent_skill` | Agent skill definition files exist |
224
+ | `hook_policy` | CI/CD hook configurations exist |
225
+ | `release_policy` | Release policy docs, versioning strategy, or release process files exist |
226
+ | `publish_skill` | Publish workflow scripts, CI/CD publish pipelines, or registry configuration exists |
227
+ | `prompt_packet` | Prompt template files, context assembly configs, or AI workflow definitions exist |
228
+ | `oss_compliance` | License files, dependency audit configs, or OSS compliance process docs exist |
229
+
230
+ **Rule**: Enable a type only when local evidence exists. Do not enable because the plugin provides a
231
+ template.
232
+
233
+ ## artifact-graph Runtime Support for Custom Types
234
+
235
+ Starting with `artifact-graph` 0.3.0, config-driven custom types have full runtime support.
236
+ The extended catalog has two layers:
237
+
238
+ 1. **Implemented in artifact-chain-assistant**: starter templates, review checklists, bootstrap
239
+ recommendations, and evidence-based adoption guidance.
240
+ 2. **Implemented in artifact-graph 0.3.0+**: config-driven indexing, graph traversal, `context`,
241
+ `packet`, `validate`, `version-lock`, and `extraFields` for any registered custom type.
242
+
243
+ ### What the Runtime Provides for Custom Types
244
+
245
+ Once a type is registered in `artifact-graph.config.yaml` with `paths` and optionally
246
+ `idPatterns`, the runtime delivers:
247
+
248
+ 1. **Scanning and frontmatter parsing**: Read `types.{type}.paths` from config; scan matching
249
+ files; parse frontmatter for `id`, `title`, `status` and other standard fields. Types without
250
+ configured paths are not indexed.
251
+ 2. **Graph edges**: Custom types participate in graph traversal through `related_<type>`
252
+ frontmatter fields, `@<type> <ID>` traceability comments, and explicit relationship fields.
253
+ 3. **Target selector**: `--target <type>:<id>` works with `context`, `packet`, `packet-prompt`,
254
+ and `audit` for any type that has `target: true` in config. The ID may contain colons; only the
255
+ first colon separates type from ID. There is **no** dynamic `--{type}` flag; `--target` is the
256
+ universal entry point.
257
+ 4. **Extra fields**: Declare `extraFields` in config to index specific frontmatter fields (string,
258
+ number, boolean, enum). Undeclared fields remain in raw frontmatter but are not indexed.
259
+ 5. **Validation**: Custom types participate in ID pattern checks, dangling relation warnings, orphan
260
+ artifact warnings, and version-lock freshness checks.
261
+ 6. **Version-lock**: Custom type artifacts and their traceability edges are included in
262
+ version-lock refresh, audit, and bootstrap.
263
+
264
+ ### Capability Matrix
265
+
266
+ | Capability | Core Types | Extended Types | Notes |
267
+ | --- | --- | --- | --- |
268
+ | File indexing and ID parsing | Implemented | Implemented via config `paths` + `idPatterns` | Types without configured paths are not indexed |
269
+ | Graph traversal (upstream/downstream) | Implemented | Implemented via `related_<type>` fields and traceability comments | Strength depends on traceability annotation density |
270
+ | context/packet assembly | Implemented (`--target <type>:<id>`) | Implemented (`--target <type>:<id>`) | `--target` is the universal entry; no dynamic `--{type}` flags |
271
+ | validate | Implemented | Implemented | ID pattern checks, dangling relations, orphan warnings, lock freshness |
272
+ | version-lock | Implemented | Implemented | Custom type edges included in refresh/audit/bootstrap |
273
+ | Artifact content quality judgment | No | No | artifact-graph does not judge "good PRD" or "good contract" |
274
+ | Built-in edge rules | No | No | All edge rules come from artifact content, not type metadata |
275
+
276
+ ### Known Limitations
277
+
278
+ - **Content quality not judged**: artifact-graph validates structure and traceability, not whether
279
+ an artifact's content is well-written or complete.
280
+ - **Sparse traceability annotations**: Custom artifacts without `related_*` frontmatter fields or
281
+ implementation traceability comments will produce weak graph relationships. Mitigation:
282
+ project-local review should require traceability fields.
283
+ - **ID pattern collisions**: Multiple types using the same ID pattern can cause ambiguous graph
284
+ edges. Mitigation: use distinct ID prefixes per type (e.g., `API-`, `CLI-`).
285
+ - **Path overlaps**: Multiple types whose path globs match the same files create duplicate graph
286
+ nodes. Mitigation: use mutually exclusive path globs.
287
+ - **Loosely-coupled ops artifacts**: Some types (e.g., `runbook`, `deployment_manifest`) may have
288
+ naturally loose links to the core requirement chain. This is expected behavior, not a defect.
289
+
290
+ ## Project Shape Profiles
291
+
292
+ Nine project profiles each map to a recommended starter set and a defer-until-ready list. Profiles
293
+ are used only during bootstrap — they are not a runtime concept. The final selection is written to
294
+ `artifact-graph.config.yaml`.
295
+
296
+ | Profile | Recommended Extended Types | Deferred Types |
297
+ | --- | --- | --- |
298
+ | Docs/planning repo | None | All extended types |
299
+ | TypeScript library or CLI | `cli_contract` | Other contracts, domain, ops |
300
+ | API service | `api_contract`, `data_contract` | `domain_model`, `deployment_manifest`, `runbook`, `performance_budget` |
301
+ | Enterprise Java/Spring/JVM | `api_contract`, `data_contract`, `integration_contract`, `batch_job_contract`, `domain_model`, `database_migration`, `security_review` | `deployment_manifest`, `runbook`, `performance_budget` |
302
+ | Desktop or full-stack app | `ui_contract`, `ipc_contract`, `api_contract` | `deployment_manifest`, `runbook` |
303
+ | Agent or plugin toolkit | `agent_skill`, `hook_policy`, `prompt_packet` | Other extended types |
304
+ | Parent or release governance repo | `release_policy`, `publish_skill`, `oss_compliance` | Other extended types |
305
+ | Existing mature artifact repo | As-needed based on existing files | Types without local evidence |
306
+ | Small first-time project | None | All extended types |
307
+
308
+ ## Related Documents
309
+
310
+ - [README](templates/README.md) — Plugin overview with full feature list
311
+ - [INSTALL.md](INSTALL.md) — Installation, bootstrap flow, and profile expansion guide
312
+ - [ADOPTION-GUIDE](https://github.com/ifoohoo/artifact-chain-assistant/blob/main/templates/extended/ADOPTION-GUIDE.md) — Step-by-step template adoption and upgrade review guide