create-yss-spec 2.2.7 → 2.2.8

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 (130) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/maintaining-skills/SKILL.md +1 -1
  4. package/template/.agents/skills/yss-antd-design/references/evidence.md +4 -0
  5. package/template/.agents/skills/yss-design-system/SKILL.md +3 -1
  6. package/template/.agents/skills/yss-page-module-development/SKILL.md +1 -1
  7. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +1 -1
  8. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  9. package/template/.agents/skills/yss-prototype-stage/SKILL.md +11 -6
  10. package/template/.agents/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  11. package/template/.agents/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  12. package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  13. package/template/.agents/skills/yss-router/references/boundaries.md +1 -1
  14. package/template/.agents/skills/yss-ui/references/antdv-compatibility.md +1 -1
  15. package/template/.claude/skills/maintaining-skills/SKILL.md +1 -1
  16. package/template/.claude/skills/yss-antd-design/references/evidence.md +4 -0
  17. package/template/.claude/skills/yss-design-system/SKILL.md +3 -1
  18. package/template/.claude/skills/yss-page-module-development/SKILL.md +1 -1
  19. package/template/.claude/skills/yss-product-lifecycle/SKILL.md +1 -1
  20. package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  21. package/template/.claude/skills/yss-prototype-stage/SKILL.md +11 -6
  22. package/template/.claude/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  23. package/template/.claude/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  24. package/template/.claude/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  25. package/template/.claude/skills/yss-router/references/boundaries.md +1 -1
  26. package/template/.claude/skills/yss-ui/references/antdv-compatibility.md +1 -1
  27. package/template/.codex/skills/maintaining-skills/SKILL.md +1 -1
  28. package/template/.codex/skills/yss-antd-design/references/evidence.md +4 -0
  29. package/template/.codex/skills/yss-design-system/SKILL.md +3 -1
  30. package/template/.codex/skills/yss-page-module-development/SKILL.md +1 -1
  31. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +1 -1
  32. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  33. package/template/.codex/skills/yss-prototype-stage/SKILL.md +11 -6
  34. package/template/.codex/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  35. package/template/.codex/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  36. package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  37. package/template/.codex/skills/yss-router/references/boundaries.md +1 -1
  38. package/template/.codex/skills/yss-ui/references/antdv-compatibility.md +1 -1
  39. package/template/.cursor/skills/maintaining-skills/SKILL.md +1 -1
  40. package/template/.cursor/skills/yss-antd-design/references/evidence.md +4 -0
  41. package/template/.cursor/skills/yss-design-system/SKILL.md +3 -1
  42. package/template/.cursor/skills/yss-page-module-development/SKILL.md +1 -1
  43. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +1 -1
  44. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  45. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +11 -6
  46. package/template/.cursor/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  47. package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  48. package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  49. package/template/.cursor/skills/yss-router/references/boundaries.md +1 -1
  50. package/template/.cursor/skills/yss-ui/references/antdv-compatibility.md +1 -1
  51. package/template/.hermes/skills/maintaining-skills/SKILL.md +1 -1
  52. package/template/.hermes/skills/yss-antd-design/references/evidence.md +4 -0
  53. package/template/.hermes/skills/yss-design-system/SKILL.md +3 -1
  54. package/template/.hermes/skills/yss-page-module-development/SKILL.md +1 -1
  55. package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +1 -1
  56. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  57. package/template/.hermes/skills/yss-prototype-stage/SKILL.md +11 -6
  58. package/template/.hermes/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  59. package/template/.hermes/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  60. package/template/.hermes/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  61. package/template/.hermes/skills/yss-router/references/boundaries.md +1 -1
  62. package/template/.hermes/skills/yss-ui/references/antdv-compatibility.md +1 -1
  63. package/template/.pi/skills/maintaining-skills/SKILL.md +1 -1
  64. package/template/.pi/skills/yss-antd-design/references/evidence.md +4 -0
  65. package/template/.pi/skills/yss-design-system/SKILL.md +3 -1
  66. package/template/.pi/skills/yss-page-module-development/SKILL.md +1 -1
  67. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +1 -1
  68. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  69. package/template/.pi/skills/yss-prototype-stage/SKILL.md +11 -6
  70. package/template/.pi/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  71. package/template/.pi/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  72. package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  73. package/template/.pi/skills/yss-router/references/boundaries.md +1 -1
  74. package/template/.pi/skills/yss-ui/references/antdv-compatibility.md +1 -1
  75. package/template/.qoder/skills/maintaining-skills/SKILL.md +1 -1
  76. package/template/.qoder/skills/yss-antd-design/references/evidence.md +4 -0
  77. package/template/.qoder/skills/yss-design-system/SKILL.md +3 -1
  78. package/template/.qoder/skills/yss-page-module-development/SKILL.md +1 -1
  79. package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +1 -1
  80. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  81. package/template/.qoder/skills/yss-prototype-stage/SKILL.md +11 -6
  82. package/template/.qoder/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  83. package/template/.qoder/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  84. package/template/.qoder/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  85. package/template/.qoder/skills/yss-router/references/boundaries.md +1 -1
  86. package/template/.qoder/skills/yss-ui/references/antdv-compatibility.md +1 -1
  87. package/template/.trae/skills/maintaining-skills/SKILL.md +1 -1
  88. package/template/.trae/skills/yss-antd-design/references/evidence.md +4 -0
  89. package/template/.trae/skills/yss-design-system/SKILL.md +3 -1
  90. package/template/.trae/skills/yss-page-module-development/SKILL.md +1 -1
  91. package/template/.trae/skills/yss-product-lifecycle/SKILL.md +1 -1
  92. package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +4 -0
  93. package/template/.trae/skills/yss-prototype-stage/SKILL.md +11 -6
  94. package/template/.trae/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  95. package/template/.trae/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  96. package/template/.trae/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  97. package/template/.trae/skills/yss-router/references/boundaries.md +1 -1
  98. package/template/.trae/skills/yss-ui/references/antdv-compatibility.md +1 -1
  99. package/template/AGENTS.md +4 -4
  100. package/template/README.md +10 -11
  101. package/template/__yss_dotfile__.gitignore +1 -0
  102. package/template/docs/agents/skills-maintenance.md +2 -2
  103. package/template/docs/api/templates/openapi-draft-review-checklist.md +2 -2
  104. package/template/docs/design/README.md +2 -2
  105. package/template/docs/design/design.md +48 -9
  106. package/template/docs/design/templates/interaction-spec-template.md +2 -2
  107. package/template/docs/design/templates/prototype-confirmation-template.md +1 -1
  108. package/template/docs/design/templates/prototype-evidence-template.yaml +52 -10
  109. package/template/docs/process/harness-process-tailoring.md +5 -5
  110. package/template/docs/process/template-engineering-overview.md +2 -2
  111. package/template/docs/process/template-verification-profiles.yaml +8 -1
  112. package/template/docs/process/templates/maintenance-checkpoint-template.yaml +3 -12
  113. package/template/docs/templates/requirement-freeze-template.md +1 -1
  114. package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +961 -0
  115. package/template/scripts/lib/maintenance-intensity.mjs +24 -10
  116. package/template/scripts/lib/skill-governance.mjs +19 -0
  117. package/template/scripts/node-verify-lifecycle-registry.mjs +1 -1
  118. package/template/scripts/verify-template-verification-scenarios +5 -0
  119. package/template/scripts/verify-yss-prototype-contract-scenarios +2 -0
  120. package/template/skills-lock.json +8 -8
  121. package/template.snapshot.json +4 -4
  122. package/template/docs/user-guide/templates//347/224/250/346/210/267/346/211/213/345/206/214/346/250/241/346/235/277.md +0 -53
  123. package/template/docs/user-guide//344/272/247/345/223/201/347/224/237/345/221/275/345/221/250/346/234/237/345/267/245/344/275/234/346/265/201.md +0 -223
  124. package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -1115
  125. package/template/docs/user-guide//345/244/226/351/203/250/345/221/275/344/273/244/350/241/214/345/267/245/345/205/267/345/256/236/350/267/265/346/214/207/345/215/227.md +0 -117
  126. package/template/docs/user-guide//347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -584
  127. package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +0 -31
  128. package/template/docs/user-guide//350/247/204/346/240/274/344/270/216/344/273/273/345/212/241/350/277/201/347/247/273/346/214/207/345/215/227.md +0 -44
  129. package/template/docs/user-guide//351/234/200/346/261/202/346/276/204/346/270/205/346/214/207/345/215/227.md +0 -230
  130. package/template/docs/user-guide//351/234/200/346/261/202/346/276/204/346/270/205/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -275
@@ -1,117 +0,0 @@
1
- # `create-yss-spec` 外部 CLI 实践指南
2
-
3
- 本文面向需要基于 YSS Spec Project Template 初始化、接管已有项目或持续同步研发管理资产的使用者。CLI 源码、测试和发布由独立项目 [iloveZzz/create-yss-spec](https://github.com/iloveZzz/create-yss-spec) 维护;本模板仓库只记录使用方法和跨仓库契约。
4
-
5
- ## 适用范围
6
-
7
- `create-yss-spec` 用于生成或补齐包含 Spec、架构、OpenAPI、Ticket 和 Agent 协作基线的模板实例仓库。它不负责生成前后端运行时工程,也不会代替你创建远程 Git 仓库、CI 或 Ticket Board。
8
-
9
- “最新模板”指用户执行的 `npx create-yss-spec@latest` 所携带的最新已发布快照。CLI 运行时不会直接拉取模板仓库;每个实例 metadata 都记录绑定的 `templateCommit`,便于审计、升级和回滚。
10
-
11
- ## 空目录初始化
12
-
13
- 推荐使用 npm create 入口:
14
-
15
- ```bash
16
- npm create yss-spec@latest
17
- ```
18
-
19
- 也可直接通过 npx 执行:
20
-
21
- ```bash
22
- npx create-yss-spec@latest \
23
- --project-name "项目名称" \
24
- --business-domain "业务领域" \
25
- --target-dir "./project" \
26
- --git-init
27
- ```
28
-
29
- 初始化会把模板源身份转换为 `repository_mode: project-instance`,并写入 metadata schema v2。`--dry-run` 只预览,不创建目录、不删除文件。
30
-
31
- ## 接管已有项目
32
-
33
- 在已有项目根目录执行 `attach`,只补齐 manifest 声明的研发管理资产,包括根规则文档、`docs/`、skills、投影、校验脚本和 metadata。前后端运行时代码、业务目录、用户文件和 `.git` 原样保留。
34
-
35
- 先预演:
36
-
37
- ```bash
38
- npx create-yss-spec@latest attach \
39
- --target-dir . \
40
- --project-name "项目名称" \
41
- --business-domain "业务领域" \
42
- --dry-run
43
- ```
44
-
45
- 确认计划后写入:
46
-
47
- ```bash
48
- npx create-yss-spec@latest attach \
49
- --target-dir . \
50
- --project-name "项目名称" \
51
- --business-domain "业务领域" \
52
- --apply [--force]
53
- ```
54
-
55
- 约束:
56
-
57
- - `--dry-run` 与 `--apply` 互斥,且必须显式选择其中一个。
58
- - 已有 `.yss-template.json` 时拒绝重复接管,请使用 `sync`。
59
- - 合法 `template-source` 会转换为 `project-instance`;合法 `project-instance` 保留并校验;身份文件字段、schema 或 mode 非法时阻断。
60
- - 受管路径计划分为 `missing`、`matched`、`conflict`、`unsafe`。`--force` 只允许覆盖 conflict,不能绕过 unsafe、迁移冲突或无法归属的扁平 Ticket。
61
- - 覆盖前会在目标目录外创建临时备份;验证失败自动回滚,metadata 不更新。成功后备份默认保留,并输出恢复路径和清理命令。
62
- - Git worktree 有脏改动时允许继续,但会强提醒;CLI 不自动 stash 或提交。
63
-
64
- ## 持续同步模板
65
-
66
- 已初始化或已 attach 的项目根目录存在 `.yss-template.json` 后,可以先预演:
67
-
68
- ```bash
69
- npx create-yss-spec@latest sync \
70
- --target-dir . \
71
- --dry-run
72
- ```
73
-
74
- 确认后执行:
75
-
76
- ```bash
77
- npx create-yss-spec@latest sync \
78
- --target-dir . [--force]
79
- ```
80
-
81
- 普通同步会新增缺失文件,更新 baseline 未被本地修改的文件,并报告冲突。`sync --force` 会先备份,再覆盖所有受管 conflict;模板删除的文件默认只报告不删除,模板无关文件始终不覆盖。旧路径只有在固定迁移计划安全完成时才移动或删除。
82
-
83
- 同步结束会重新运行:
84
-
85
- ```bash
86
- scripts/sync-skills --check
87
- scripts/update-skill-lock --check
88
- scripts/verify-template
89
- ```
90
-
91
- 任一门禁失败都会回滚本轮文件变更,并保留旧 metadata 版本。
92
-
93
- ## 生成后检查
94
-
95
- 初始化、attach 或 sync 后,至少完成以下检查:
96
-
97
- 1. 运行 `git status --short`,确认实际变更范围。
98
- 2. 检查 `AGENTS.md`、`CONTEXT.md`、`README.md`、`yss-project.yaml` 和 `docs/`。
99
- 3. 确认 `.yss-template.json` 的 `templateCommit` 为 40 位 commit,并核对 `managedFilesManifestVersion`。
100
- 4. 确认 `.qoder/skills`、其他 skills projection 和 `skills-lock.json` 门禁通过。
101
- 5. 人工处理冲突和只报告未删除的文件,确认无误后再创建 Git checkpoint。
102
-
103
- ## 问题定位边界
104
-
105
- - CLI 安装、参数解析、初始化、attach、同步、npm 发布或 CLI 测试问题:在 [create-yss-spec 独立仓库](https://github.com/iloveZzz/create-yss-spec) 追踪。
106
- - 模板内容、流程文档、Agent skills 或 `scripts/verify-template` 问题:在本模板仓库追踪。
107
-
108
- ## 发布与验证
109
-
110
- 模板修复并通过 fresh verification 后,CLI 发布前必须绑定确定模板 commit:
111
-
112
- ```bash
113
- YSS_SPEC_TEMPLATE_REF=<pinned-commit> npm test
114
- YSS_SPEC_TEMPLATE_REF=<pinned-commit> npm pack --dry-run
115
- ```
116
-
117
- 发布顺序为:模板修复与验证 → CLI 绑定 commit 并完成跨仓库测试 → 独立审查 → 发布 CLI `2.1.6`。任一仓库未通过共同验证时,不声明整体可发布。