@pigcloud/skills 1.0.11 → 1.1.2

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 (298) hide show
  1. package/CHANGELOG.md +25 -20
  2. package/README.en.md +41 -75
  3. package/README.md +26 -39
  4. package/bin/cli.js +260 -151
  5. package/bin/rules-loader.js +271 -484
  6. package/codex-commands/README.md +25 -23
  7. package/codex-commands/commands/analyze.md +21 -22
  8. package/codex-commands/commands/build.md +22 -22
  9. package/codex-commands/commands/design.md +21 -22
  10. package/codex-commands/commands/distill.md +21 -21
  11. package/codex-commands/commands/doc.md +21 -22
  12. package/codex-commands/commands/infra.md +21 -21
  13. package/codex-commands/commands/init.md +20 -20
  14. package/codex-commands/commands/kb.md +21 -20
  15. package/codex-commands/commands/perf.md +21 -21
  16. package/codex-commands/commands/prd.md +21 -22
  17. package/codex-commands/commands/review.md +21 -22
  18. package/codex-commands/commands/security.md +21 -22
  19. package/codex-commands/commands/test.md +21 -21
  20. package/codex-commands/commands/workflow.md +21 -20
  21. package/package.json +5 -2
  22. package/rules/core/index.md +26 -41
  23. package/rules/delivery/index.md +25 -0
  24. package/rules/design/index.md +25 -0
  25. package/rules/discovery/index.md +25 -0
  26. package/rules/implementation/index.md +25 -0
  27. package/rules/index.md +24 -39
  28. package/rules/overlays/index.md +19 -19
  29. package/rules/overlays/pig-cloud.md +20 -45
  30. package/rules/shared/index.md +25 -0
  31. package/rules/skill-stage-map.json +26 -0
  32. package/rules/stages.json +48 -0
  33. package/rules/validation/index.md +25 -0
  34. package/scripts/add-skill-reference-nav.js +3 -0
  35. package/scripts/bootstrap-skill-specs.js +96 -0
  36. package/scripts/ci-validator.sh +51 -114
  37. package/scripts/generate-skill-prompt-library.js +3 -0
  38. package/scripts/golden-prompt-suite.current.js +211 -0
  39. package/scripts/migrate-skill-packages.js +309 -0
  40. package/scripts/run-golden-replays.js +110 -79
  41. package/scripts/validate-rules.js +128 -125
  42. package/scripts/validate-skill-replay-signals.js +45 -57
  43. package/scripts/validate-skill-shapes.js +153 -127
  44. package/scripts/validate-skill-stop-rules.js +54 -46
  45. package/skills/01-discovery/ambiguity-detection/SKILL.md +30 -0
  46. package/skills/01-discovery/ambiguity-detection/assets/golden-prompt-suite.current.js +22 -0
  47. package/skills/01-discovery/ambiguity-detection/references/README.md +17 -0
  48. package/skills/01-discovery/ambiguity-detection/references/cases.md +26 -0
  49. package/skills/01-discovery/ambiguity-detection/references/prompt-template.md +18 -0
  50. package/skills/01-discovery/ambiguity-detection/skill-spec.json +26 -0
  51. package/skills/01-discovery/business-analysis/SKILL.md +30 -0
  52. package/skills/01-discovery/business-analysis/assets/golden-prompt-suite.current.js +22 -0
  53. package/skills/01-discovery/business-analysis/references/README.md +17 -0
  54. package/skills/01-discovery/business-analysis/references/cases.md +26 -0
  55. package/skills/01-discovery/business-analysis/references/prompt-template.md +18 -0
  56. package/skills/01-discovery/business-analysis/skill-spec.json +26 -0
  57. package/skills/01-discovery/impact-analysis/SKILL.md +30 -0
  58. package/skills/01-discovery/impact-analysis/assets/golden-prompt-suite.current.js +22 -0
  59. package/skills/01-discovery/impact-analysis/references/README.md +17 -0
  60. package/skills/01-discovery/impact-analysis/references/cases.md +26 -0
  61. package/skills/01-discovery/impact-analysis/references/prompt-template.md +18 -0
  62. package/skills/01-discovery/impact-analysis/skill-spec.json +26 -0
  63. package/skills/01-discovery/requirement-discovery/SKILL.md +30 -0
  64. package/skills/01-discovery/requirement-discovery/assets/golden-prompt-suite.current.js +24 -0
  65. package/skills/01-discovery/requirement-discovery/references/README.md +17 -0
  66. package/skills/01-discovery/requirement-discovery/references/cases.md +28 -0
  67. package/skills/01-discovery/requirement-discovery/references/prompt-template.md +18 -0
  68. package/skills/01-discovery/requirement-discovery/skill-spec.json +26 -0
  69. package/skills/02-design/api-design/SKILL.md +29 -0
  70. package/skills/02-design/api-design/assets/golden-prompt-suite.current.js +22 -0
  71. package/skills/02-design/api-design/references/README.md +17 -0
  72. package/skills/02-design/api-design/references/cases.md +26 -0
  73. package/skills/02-design/api-design/references/prompt-template.md +18 -0
  74. package/skills/02-design/api-design/skill-spec.json +25 -0
  75. package/skills/02-design/architecture-design/SKILL.md +29 -0
  76. package/skills/02-design/architecture-design/assets/golden-prompt-suite.current.js +22 -0
  77. package/skills/02-design/architecture-design/references/README.md +17 -0
  78. package/skills/02-design/architecture-design/references/cases.md +26 -0
  79. package/skills/02-design/architecture-design/references/prompt-template.md +18 -0
  80. package/skills/02-design/architecture-design/skill-spec.json +25 -0
  81. package/skills/02-design/database-design/SKILL.md +29 -0
  82. package/skills/02-design/database-design/assets/golden-prompt-suite.current.js +22 -0
  83. package/skills/02-design/database-design/references/README.md +17 -0
  84. package/skills/02-design/database-design/references/cases.md +26 -0
  85. package/skills/02-design/database-design/references/prompt-template.md +18 -0
  86. package/skills/02-design/database-design/skill-spec.json +25 -0
  87. package/skills/02-design/task-breakdown/SKILL.md +29 -0
  88. package/skills/02-design/task-breakdown/assets/golden-prompt-suite.current.js +22 -0
  89. package/skills/02-design/task-breakdown/references/README.md +17 -0
  90. package/skills/02-design/task-breakdown/references/cases.md +26 -0
  91. package/skills/02-design/task-breakdown/references/prompt-template.md +18 -0
  92. package/skills/02-design/task-breakdown/skill-spec.json +25 -0
  93. package/skills/03-implementation/backend-development/SKILL.md +29 -0
  94. package/skills/03-implementation/backend-development/assets/golden-prompt-suite.current.js +22 -0
  95. package/skills/03-implementation/backend-development/references/README.md +17 -0
  96. package/skills/03-implementation/backend-development/references/cases.md +26 -0
  97. package/skills/03-implementation/backend-development/references/prompt-template.md +18 -0
  98. package/skills/03-implementation/backend-development/skill-spec.json +25 -0
  99. package/skills/03-implementation/bug-fix/SKILL.md +29 -0
  100. package/skills/03-implementation/bug-fix/assets/golden-prompt-suite.current.js +22 -0
  101. package/skills/03-implementation/bug-fix/references/README.md +17 -0
  102. package/skills/03-implementation/bug-fix/references/cases.md +26 -0
  103. package/skills/03-implementation/bug-fix/references/prompt-template.md +18 -0
  104. package/skills/03-implementation/bug-fix/skill-spec.json +25 -0
  105. package/skills/03-implementation/database-change/SKILL.md +29 -0
  106. package/skills/03-implementation/database-change/assets/golden-prompt-suite.current.js +22 -0
  107. package/skills/03-implementation/database-change/references/README.md +17 -0
  108. package/skills/03-implementation/database-change/references/cases.md +26 -0
  109. package/skills/03-implementation/database-change/references/prompt-template.md +18 -0
  110. package/skills/03-implementation/database-change/skill-spec.json +25 -0
  111. package/skills/03-implementation/frontend-development/SKILL.md +29 -0
  112. package/skills/03-implementation/frontend-development/assets/golden-prompt-suite.current.js +22 -0
  113. package/skills/03-implementation/frontend-development/references/README.md +17 -0
  114. package/skills/03-implementation/frontend-development/references/cases.md +26 -0
  115. package/skills/03-implementation/frontend-development/references/prompt-template.md +18 -0
  116. package/skills/03-implementation/frontend-development/skill-spec.json +25 -0
  117. package/skills/04-validation/code-review/SKILL.md +29 -0
  118. package/skills/04-validation/code-review/assets/golden-prompt-suite.current.js +22 -0
  119. package/skills/04-validation/code-review/references/README.md +17 -0
  120. package/skills/04-validation/code-review/references/cases.md +26 -0
  121. package/skills/04-validation/code-review/references/prompt-template.md +18 -0
  122. package/skills/04-validation/code-review/skill-spec.json +25 -0
  123. package/skills/04-validation/performance-review/SKILL.md +29 -0
  124. package/skills/04-validation/performance-review/assets/golden-prompt-suite.current.js +22 -0
  125. package/skills/04-validation/performance-review/references/README.md +17 -0
  126. package/skills/04-validation/performance-review/references/cases.md +26 -0
  127. package/skills/04-validation/performance-review/references/prompt-template.md +18 -0
  128. package/skills/04-validation/performance-review/skill-spec.json +25 -0
  129. package/skills/04-validation/regression-check/SKILL.md +29 -0
  130. package/skills/04-validation/regression-check/assets/golden-prompt-suite.current.js +22 -0
  131. package/skills/04-validation/regression-check/references/README.md +17 -0
  132. package/skills/04-validation/regression-check/references/cases.md +26 -0
  133. package/skills/04-validation/regression-check/references/prompt-template.md +18 -0
  134. package/skills/04-validation/regression-check/skill-spec.json +25 -0
  135. package/skills/04-validation/security-review/SKILL.md +29 -0
  136. package/skills/04-validation/security-review/assets/golden-prompt-suite.current.js +22 -0
  137. package/skills/04-validation/security-review/references/README.md +17 -0
  138. package/skills/04-validation/security-review/references/cases.md +26 -0
  139. package/skills/04-validation/security-review/references/prompt-template.md +18 -0
  140. package/skills/04-validation/security-review/skill-spec.json +25 -0
  141. package/skills/04-validation/unit-test/SKILL.md +29 -0
  142. package/skills/04-validation/unit-test/assets/golden-prompt-suite.current.js +22 -0
  143. package/skills/04-validation/unit-test/references/README.md +17 -0
  144. package/skills/04-validation/unit-test/references/cases.md +26 -0
  145. package/skills/04-validation/unit-test/references/prompt-template.md +18 -0
  146. package/skills/04-validation/unit-test/skill-spec.json +25 -0
  147. package/skills/05-delivery/change-log/SKILL.md +29 -0
  148. package/skills/05-delivery/change-log/assets/golden-prompt-suite.current.js +22 -0
  149. package/skills/05-delivery/change-log/references/README.md +17 -0
  150. package/skills/05-delivery/change-log/references/cases.md +26 -0
  151. package/skills/05-delivery/change-log/references/prompt-template.md +18 -0
  152. package/skills/05-delivery/change-log/skill-spec.json +25 -0
  153. package/skills/05-delivery/deployment-guide/SKILL.md +29 -0
  154. package/skills/05-delivery/deployment-guide/assets/golden-prompt-suite.current.js +22 -0
  155. package/skills/05-delivery/deployment-guide/references/README.md +17 -0
  156. package/skills/05-delivery/deployment-guide/references/cases.md +26 -0
  157. package/skills/05-delivery/deployment-guide/references/prompt-template.md +18 -0
  158. package/skills/05-delivery/deployment-guide/skill-spec.json +25 -0
  159. package/skills/05-delivery/release-check/SKILL.md +29 -0
  160. package/skills/05-delivery/release-check/assets/golden-prompt-suite.current.js +22 -0
  161. package/skills/05-delivery/release-check/references/README.md +17 -0
  162. package/skills/05-delivery/release-check/references/cases.md +26 -0
  163. package/skills/05-delivery/release-check/references/prompt-template.md +18 -0
  164. package/skills/05-delivery/release-check/skill-spec.json +25 -0
  165. package/skills/05-delivery/release-validation/SKILL.md +29 -0
  166. package/skills/05-delivery/release-validation/assets/golden-prompt-suite.current.js +22 -0
  167. package/skills/05-delivery/release-validation/references/README.md +17 -0
  168. package/skills/05-delivery/release-validation/references/cases.md +26 -0
  169. package/skills/05-delivery/release-validation/references/prompt-template.md +18 -0
  170. package/skills/05-delivery/release-validation/skill-spec.json +25 -0
  171. package/skills/shared/codebase-learning/SKILL.md +29 -0
  172. package/skills/shared/codebase-learning/assets/golden-prompt-suite.current.js +22 -0
  173. package/skills/shared/codebase-learning/references/README.md +17 -0
  174. package/skills/shared/codebase-learning/references/cases.md +26 -0
  175. package/skills/shared/codebase-learning/references/prompt-template.md +18 -0
  176. package/skills/shared/codebase-learning/skill-spec.json +25 -0
  177. package/skills/shared/evidence-collector/SKILL.md +29 -0
  178. package/skills/shared/evidence-collector/assets/golden-prompt-suite.current.js +22 -0
  179. package/skills/shared/evidence-collector/references/README.md +17 -0
  180. package/skills/shared/evidence-collector/references/cases.md +26 -0
  181. package/skills/shared/evidence-collector/references/prompt-template.md +18 -0
  182. package/skills/shared/evidence-collector/skill-spec.json +25 -0
  183. package/skills/shared/framework-guide/SKILL.md +28 -0
  184. package/skills/shared/framework-guide/assets/golden-prompt-suite.current.js +22 -0
  185. package/skills/shared/framework-guide/references/README.md +17 -0
  186. package/skills/shared/framework-guide/references/cases.md +26 -0
  187. package/skills/shared/framework-guide/references/prompt-template.md +18 -0
  188. package/skills/shared/framework-guide/skill-spec.json +24 -0
  189. package/rules/bundles.json +0 -358
  190. package/rules/coding/analysis.md +0 -27
  191. package/rules/coding/backend/cache-invalidation.md +0 -30
  192. package/rules/coding/backend/cache-keying.md +0 -30
  193. package/rules/coding/backend/cache.md +0 -37
  194. package/rules/coding/backend/database.md +0 -32
  195. package/rules/coding/backend/feign.md +0 -30
  196. package/rules/coding/backend/index.md +0 -42
  197. package/rules/coding/backend/query.md +0 -32
  198. package/rules/coding/backend/remote.md +0 -33
  199. package/rules/coding/backend/transaction-boundary.md +0 -30
  200. package/rules/coding/backend/transaction-rollback.md +0 -30
  201. package/rules/coding/backend/transaction.md +0 -38
  202. package/rules/coding/boundary.md +0 -25
  203. package/rules/coding/implementation.md +0 -26
  204. package/rules/coding/index.md +0 -38
  205. package/rules/coding/scaffold.md +0 -28
  206. package/rules/coding/testing.md +0 -29
  207. package/rules/coding/validation.md +0 -29
  208. package/rules/core/code-quality.md +0 -30
  209. package/rules/core/evidence.md +0 -26
  210. package/rules/core/interface.md +0 -26
  211. package/rules/core/iteration.md +0 -26
  212. package/rules/core/layer-boundary.md +0 -25
  213. package/rules/core/logging.md +0 -26
  214. package/rules/core/security.md +0 -26
  215. package/rules/core/task-boundary.md +0 -27
  216. package/rules/docs/api.md +0 -34
  217. package/rules/docs/capture-summary.md +0 -29
  218. package/rules/docs/capture.md +0 -34
  219. package/rules/docs/contract.md +0 -30
  220. package/rules/docs/decision-log.md +0 -32
  221. package/rules/docs/examples.md +0 -28
  222. package/rules/docs/index.md +0 -49
  223. package/rules/docs/reference.md +0 -32
  224. package/rules/overlays/pig-cloud/controller.md +0 -33
  225. package/rules/overlays/pig-cloud/dto-vo.md +0 -33
  226. package/rules/overlays/pig-cloud/entity.md +0 -32
  227. package/rules/overlays/pig-cloud/exception.md +0 -32
  228. package/rules/overlays/pig-cloud/layering.md +0 -31
  229. package/rules/overlays/pig-cloud/mapper.md +0 -32
  230. package/rules/overlays/pig-cloud/query-style.md +0 -32
  231. package/rules/overlays/pig-cloud/rest-response.md +0 -33
  232. package/rules/overlays/pig-cloud/service.md +0 -33
  233. package/rules/overlays/pig-cloud/transactions.md +0 -32
  234. package/rules/overlays/pig-cloud/validation.md +0 -33
  235. package/rules/product/acceptance.md +0 -25
  236. package/rules/product/briefing.md +0 -27
  237. package/rules/product/index.md +0 -36
  238. package/rules/product/intake.md +0 -27
  239. package/rules/product/modeling.md +0 -25
  240. package/rules/product/project-context.md +0 -29
  241. package/rules/review/code.md +0 -35
  242. package/rules/review/evidence.md +0 -31
  243. package/rules/review/index.md +0 -50
  244. package/rules/review/java.md +0 -42
  245. package/rules/review/performance.md +0 -38
  246. package/rules/review/rubric.md +0 -28
  247. package/rules/review/security.md +0 -38
  248. package/rules/review/ts.md +0 -33
  249. package/rules/review/vue.md +0 -33
  250. package/rules/skill-profile-map.json +0 -59
  251. package/rules/skill-profile-map.md +0 -29
  252. package/rules/workflow/handoff.md +0 -25
  253. package/rules/workflow/index.md +0 -37
  254. package/rules/workflow/refinement.md +0 -29
  255. package/rules/workflow/router.md +0 -25
  256. package/rules/workflow/selection.md +0 -25
  257. package/rules/workflow/stop.md +0 -25
  258. package/skills/api-contract-docs/SKILL.md +0 -77
  259. package/skills/business-fact-extraction/SKILL.md +0 -337
  260. package/skills/business-fact-extraction/scripts/write-knowledge-base.js +0 -228
  261. package/skills/code-review/SKILL.md +0 -136
  262. package/skills/code-review/references/findings-template.md +0 -51
  263. package/skills/code-review/references/performance-checklist.md +0 -213
  264. package/skills/code-review/references/rubric.md +0 -232
  265. package/skills/code-review/references/rules.md +0 -32
  266. package/skills/code-review/references/security-checklist.md +0 -178
  267. package/skills/code-review/references/stack-notes.md +0 -25
  268. package/skills/code-review/references/template-review.md +0 -39
  269. package/skills/code-review/scripts/lint-code-review.mjs +0 -431
  270. package/skills/domain-modeling/SKILL.md +0 -81
  271. package/skills/domain-modeling/references/README.md +0 -134
  272. package/skills/domain-modeling/references/distillation-checklist.md +0 -44
  273. package/skills/domain-modeling/references/test-cases-template.md +0 -128
  274. package/skills/environment-deploy/SKILL.md +0 -81
  275. package/skills/feature-build/SKILL.md +0 -122
  276. package/skills/feature-build/references/coding-checklist.md +0 -97
  277. package/skills/feature-build/references/comment-specification.md +0 -89
  278. package/skills/knowledge-capture/SKILL.md +0 -93
  279. package/skills/performance-audit/SKILL.md +0 -118
  280. package/skills/project-bootstrap/SKILL.md +0 -81
  281. package/skills/references/anti-rationalization.md +0 -144
  282. package/skills/references/business-fact-extraction.md +0 -415
  283. package/skills/references/engineering-delivery-method.md +0 -64
  284. package/skills/references/engineering-delivery-template.md +0 -81
  285. package/skills/references/golden-prompt-suite.js +0 -436
  286. package/skills/references/golden-prompt-suite.md +0 -33
  287. package/skills/references/project-requirement-alignment.md +0 -42
  288. package/skills/references/rule-loading-map.md +0 -117
  289. package/skills/references/skill-authoring-standard.md +0 -74
  290. package/skills/references/skill-boundary-template.md +0 -71
  291. package/skills/references/skill-enhanced-template.md +0 -103
  292. package/skills/references/skill-reference-matrix.md +0 -62
  293. package/skills/security-audit/SKILL.md +0 -119
  294. package/skills/spec-refinement/SKILL.md +0 -149
  295. package/skills/technical-design/SKILL.md +0 -106
  296. package/skills/technical-design/references/solid-checklist.md +0 -199
  297. package/skills/test-design/SKILL.md +0 -92
  298. package/skills/workflow-router/SKILL.md +0 -86
@@ -1,358 +0,0 @@
1
- {
2
- "core": {
3
- "description": "通用基础规则",
4
- "entry": "core/index.md",
5
- "files": [
6
- "core/index.md",
7
- "core/task-boundary.md",
8
- "core/evidence.md",
9
- "core/iteration.md",
10
- "core/interface.md",
11
- "core/layer-boundary.md",
12
- "core/code-quality.md",
13
- "core/logging.md",
14
- "core/security.md"
15
- ],
16
- "profiles": {
17
- "core": {
18
- "entry": "core/index.md",
19
- "files": [
20
- "core/index.md",
21
- "core/task-boundary.md",
22
- "core/evidence.md",
23
- "core/iteration.md",
24
- "core/interface.md",
25
- "core/layer-boundary.md",
26
- "core/code-quality.md",
27
- "core/logging.md",
28
- "core/security.md"
29
- ]
30
- }
31
- }
32
- },
33
- "workflow": {
34
- "description": "协作、路由、收口和交接规则",
35
- "entry": "workflow/index.md",
36
- "files": [
37
- "workflow/index.md",
38
- "workflow/router.md",
39
- "workflow/refinement.md",
40
- "workflow/handoff.md",
41
- "workflow/selection.md",
42
- "workflow/stop.md"
43
- ],
44
- "profiles": {
45
- "router": {
46
- "entry": "workflow/router.md",
47
- "files": [
48
- "workflow/index.md",
49
- "workflow/router.md"
50
- ]
51
- },
52
- "refinement": {
53
- "entry": "workflow/refinement.md",
54
- "files": [
55
- "workflow/index.md",
56
- "workflow/refinement.md",
57
- "workflow/selection.md",
58
- "workflow/stop.md"
59
- ]
60
- },
61
- "handoff": {
62
- "entry": "workflow/handoff.md",
63
- "files": [
64
- "workflow/index.md",
65
- "workflow/handoff.md",
66
- "workflow/stop.md"
67
- ]
68
- }
69
- }
70
- },
71
- "product": {
72
- "description": "需求、范围和业务概念规则",
73
- "entry": "product/index.md",
74
- "files": [
75
- "product/index.md",
76
- "product/intake.md",
77
- "product/project-context.md",
78
- "product/modeling.md",
79
- "product/briefing.md",
80
- "product/acceptance.md"
81
- ],
82
- "profiles": {
83
- "intake": {
84
- "entry": "product/intake.md",
85
- "files": [
86
- "product/index.md",
87
- "product/intake.md",
88
- "product/project-context.md",
89
- "product/briefing.md",
90
- "product/acceptance.md"
91
- ]
92
- },
93
- "modeling": {
94
- "entry": "product/modeling.md",
95
- "files": [
96
- "product/index.md",
97
- "product/modeling.md",
98
- "product/project-context.md",
99
- "product/briefing.md"
100
- ]
101
- }
102
- }
103
- },
104
- "coding": {
105
- "description": "编码、重构、测试和代码交付规则",
106
- "entry": "coding/index.md",
107
- "files": [
108
- "coding/index.md",
109
- "coding/analysis.md",
110
- "coding/implementation.md",
111
- "coding/testing.md",
112
- "coding/scaffold.md",
113
- "coding/boundary.md",
114
- "coding/validation.md",
115
- "coding/backend/index.md",
116
- "coding/backend/database.md",
117
- "coding/backend/transaction.md",
118
- "coding/backend/cache.md",
119
- "coding/backend/feign.md",
120
- "coding/backend/query.md",
121
- "coding/backend/remote.md",
122
- "coding/backend/transaction-boundary.md",
123
- "coding/backend/transaction-rollback.md",
124
- "coding/backend/cache-keying.md",
125
- "coding/backend/cache-invalidation.md"
126
- ],
127
- "profiles": {
128
- "analysis": {
129
- "entry": "coding/analysis.md",
130
- "files": [
131
- "coding/index.md",
132
- "coding/analysis.md",
133
- "coding/boundary.md",
134
- "coding/backend/index.md",
135
- "coding/backend/database.md",
136
- "coding/backend/query.md",
137
- "coding/backend/transaction.md"
138
- ]
139
- },
140
- "implementation": {
141
- "entry": "coding/implementation.md",
142
- "files": [
143
- "coding/index.md",
144
- "coding/implementation.md",
145
- "coding/boundary.md",
146
- "coding/validation.md",
147
- "coding/backend/index.md",
148
- "coding/backend/database.md",
149
- "coding/backend/query.md",
150
- "coding/backend/transaction.md",
151
- "coding/backend/transaction-boundary.md",
152
- "coding/backend/transaction-rollback.md",
153
- "coding/backend/cache.md",
154
- "coding/backend/cache-keying.md",
155
- "coding/backend/cache-invalidation.md",
156
- "coding/backend/feign.md",
157
- "coding/backend/remote.md"
158
- ]
159
- },
160
- "testing": {
161
- "entry": "coding/testing.md",
162
- "files": [
163
- "coding/index.md",
164
- "coding/testing.md",
165
- "coding/validation.md",
166
- "coding/backend/index.md"
167
- ]
168
- },
169
- "scaffold": {
170
- "entry": "coding/scaffold.md",
171
- "files": [
172
- "coding/index.md",
173
- "coding/scaffold.md",
174
- "coding/boundary.md",
175
- "coding/backend/index.md"
176
- ]
177
- }
178
- }
179
- },
180
- "docs": {
181
- "description": "文档、知识沉淀和接口说明规则",
182
- "entry": "docs/index.md",
183
- "files": [
184
- "docs/index.md",
185
- "docs/api.md",
186
- "docs/capture.md",
187
- "docs/reference.md",
188
- "docs/decision-log.md",
189
- "docs/contract.md",
190
- "docs/examples.md",
191
- "docs/capture-summary.md"
192
- ],
193
- "profiles": {
194
- "api": {
195
- "entry": "docs/api.md",
196
- "files": [
197
- "docs/index.md",
198
- "docs/api.md",
199
- "docs/reference.md",
200
- "docs/contract.md",
201
- "docs/examples.md"
202
- ]
203
- },
204
- "capture": {
205
- "entry": "docs/capture.md",
206
- "files": [
207
- "docs/index.md",
208
- "docs/capture.md",
209
- "docs/decision-log.md",
210
- "docs/capture-summary.md"
211
- ]
212
- },
213
- "reference": {
214
- "entry": "docs/reference.md",
215
- "files": [
216
- "docs/index.md",
217
- "docs/reference.md"
218
- ]
219
- },
220
- "decision-log": {
221
- "entry": "docs/decision-log.md",
222
- "files": [
223
- "docs/index.md",
224
- "docs/decision-log.md"
225
- ]
226
- },
227
- "contract": {
228
- "entry": "docs/contract.md",
229
- "files": [
230
- "docs/index.md",
231
- "docs/contract.md",
232
- "docs/examples.md"
233
- ]
234
- },
235
- "examples": {
236
- "entry": "docs/examples.md",
237
- "files": [
238
- "docs/index.md",
239
- "docs/examples.md",
240
- "docs/contract.md"
241
- ]
242
- }
243
- }
244
- },
245
- "review": {
246
- "description": "代码、安全、性能与质量门禁规则",
247
- "entry": "review/index.md",
248
- "files": [
249
- "review/index.md",
250
- "review/code.md",
251
- "review/java.md",
252
- "review/vue.md",
253
- "review/ts.md",
254
- "review/security.md",
255
- "review/performance.md",
256
- "review/rubric.md",
257
- "review/evidence.md"
258
- ],
259
- "profiles": {
260
- "code": {
261
- "entry": "review/code.md",
262
- "files": [
263
- "review/index.md",
264
- "review/code.md",
265
- "review/rubric.md",
266
- "review/evidence.md"
267
- ]
268
- },
269
- "code-java": {
270
- "entry": "review/java.md",
271
- "files": [
272
- "review/index.md",
273
- "review/code.md",
274
- "review/java.md",
275
- "review/rubric.md",
276
- "review/evidence.md"
277
- ]
278
- },
279
- "code-vue": {
280
- "entry": "review/vue.md",
281
- "files": [
282
- "review/index.md",
283
- "review/code.md",
284
- "review/vue.md",
285
- "review/rubric.md",
286
- "review/evidence.md"
287
- ]
288
- },
289
- "code-ts": {
290
- "entry": "review/ts.md",
291
- "files": [
292
- "review/index.md",
293
- "review/code.md",
294
- "review/ts.md",
295
- "review/rubric.md",
296
- "review/evidence.md"
297
- ]
298
- },
299
- "security": {
300
- "entry": "review/security.md",
301
- "files": [
302
- "review/index.md",
303
- "review/security.md",
304
- "review/rubric.md",
305
- "review/evidence.md"
306
- ]
307
- },
308
- "performance": {
309
- "entry": "review/performance.md",
310
- "files": [
311
- "review/index.md",
312
- "review/performance.md",
313
- "review/rubric.md",
314
- "review/evidence.md"
315
- ]
316
- }
317
- }
318
- },
319
- "overlays": {
320
- "description": "仓库、团队或公司级覆盖规则",
321
- "entry": "overlays/index.md",
322
- "files": [
323
- "overlays/index.md",
324
- "overlays/pig-cloud.md",
325
- "overlays/pig-cloud/controller.md",
326
- "overlays/pig-cloud/service.md",
327
- "overlays/pig-cloud/mapper.md",
328
- "overlays/pig-cloud/dto-vo.md",
329
- "overlays/pig-cloud/exception.md",
330
- "overlays/pig-cloud/layering.md",
331
- "overlays/pig-cloud/rest-response.md",
332
- "overlays/pig-cloud/entity.md",
333
- "overlays/pig-cloud/validation.md",
334
- "overlays/pig-cloud/query-style.md",
335
- "overlays/pig-cloud/transactions.md"
336
- ],
337
- "profiles": {
338
- "default": {
339
- "entry": "overlays/index.md",
340
- "files": [
341
- "overlays/index.md",
342
- "overlays/pig-cloud.md",
343
- "overlays/pig-cloud/controller.md",
344
- "overlays/pig-cloud/service.md",
345
- "overlays/pig-cloud/mapper.md",
346
- "overlays/pig-cloud/dto-vo.md",
347
- "overlays/pig-cloud/exception.md",
348
- "overlays/pig-cloud/layering.md",
349
- "overlays/pig-cloud/rest-response.md",
350
- "overlays/pig-cloud/entity.md",
351
- "overlays/pig-cloud/validation.md",
352
- "overlays/pig-cloud/query-style.md",
353
- "overlays/pig-cloud/transactions.md"
354
- ]
355
- }
356
- }
357
- }
358
- }
@@ -1,27 +0,0 @@
1
- # Coding Analysis Rules
2
-
3
- ## 默认做法
4
-
5
- - Read the existing code and identify impact boundaries first.
6
- - Describe dependencies, risks, and missing inputs before implementation.
7
- - Return something the next stage can consume directly.
8
-
9
- ## 禁区
10
-
11
- - Do not write implementation recipes here.
12
- - Do not emit code.
13
- - Do not leave scope or compatibility questions vague.
14
-
15
- ## 检查
16
-
17
- - Is the boundary clear?
18
- - Is the dependency impact explicit?
19
- - Is the next stage ready to start?
20
-
21
- ## 回放信号
22
-
23
- - Trigger when the request is about code impact, scope, compatibility, or design preparation.
24
-
25
- ## References
26
-
27
- - `coding/index.md`
@@ -1,30 +0,0 @@
1
- # Backend Cache Invalidation Rules
2
-
3
- ## 默认做法
4
-
5
- - Make invalidation explicit and predictable.
6
- - Tie invalidation to the write path or consistency policy.
7
- - Prefer the simplest invalidation rule that is still safe.
8
- - Name the trigger that invalidates the entry.
9
- - State the freshness window or stale-data tolerance when it matters.
10
-
11
- ## 禁区
12
-
13
- - Do not leave stale-data behavior implicit.
14
- - Do not mix invalidation policy with unrelated cache concerns.
15
- - Do not pretend a cache is safe if the write path never invalidates it.
16
-
17
- ## 检查
18
-
19
- - Is invalidation clear?
20
- - Is the staleness window acceptable?
21
- - Can the reader identify the exact event that removes or refreshes the cache?
22
-
23
- ## 回放信号
24
-
25
- - Trigger when the task needs cache invalidation or consistency handling.
26
-
27
- ## References
28
-
29
- - `coding/backend/index.md`
30
- - `coding/backend/cache.md`
@@ -1,30 +0,0 @@
1
- # Backend Cache Keying Rules
2
-
3
- ## 默认做法
4
-
5
- - Keep cache keys stable, descriptive, and versionable.
6
- - Make key structure easy to inspect.
7
- - Use one keying strategy per cache concern.
8
- - Include the dimensions that actually change the cached value.
9
- - Separate tenant, version, and business identity when they matter.
10
-
11
- ## 禁区
12
-
13
- - Do not hide meaning in opaque key names.
14
- - Do not let different meanings share the same key shape.
15
- - Do not omit a version dimension when incompatible cache formats can coexist.
16
-
17
- ## 检查
18
-
19
- - Is the key design stable?
20
- - Can the key be understood without reading implementation?
21
- - Can a maintainer tell why each segment exists?
22
-
23
- ## 回放信号
24
-
25
- - Trigger when the task needs cache key design or naming.
26
-
27
- ## References
28
-
29
- - `coding/backend/index.md`
30
- - `coding/backend/cache.md`
@@ -1,37 +0,0 @@
1
- # Backend Cache Rules
2
-
3
- ## 默认做法
4
-
5
- - Use this file to choose between keying and invalidation notes.
6
- - Keep the top-level cache rule focused on the cache concern itself.
7
- - Use the smallest cache rule that answers the task.
8
- - If the task needs both naming and freshness, answer keying first and invalidation second.
9
- - Tell the reader whether the issue is cache shape, cache lifetime, or both.
10
- - Use this file for cache scope selection, not data consistency design.
11
-
12
- ## 禁区
13
-
14
- - Do not repeat key design details that belong in `cache-keying`.
15
- - Do not repeat invalidation details that belong in `cache-invalidation`.
16
- - Do not turn this file into a cache strategy handbook.
17
- - Do not leave freshness or consistency concerns implicit.
18
- - Do not use this file as a generic performance rule.
19
-
20
- ## 检查
21
-
22
- - Is the task about cache scope selection, not a detailed rule?
23
- - Should the answer come from the keying or invalidation subrule?
24
- - Is the file still short enough to stay an entry point?
25
- - Would the next step be obvious after reading the chosen subrule?
26
- - Did the answer keep one cache concern in view?
27
- - Is this a cache question rather than a broad consistency question?
28
-
29
- ## 回放信号
30
-
31
- - Trigger when the task touches cache read/write, invalidation, or consistency tradeoffs.
32
-
33
- ## References
34
-
35
- - `coding/backend/index.md`
36
- - `coding/backend/cache-keying.md`
37
- - `coding/backend/cache-invalidation.md`
@@ -1,32 +0,0 @@
1
- # Backend Database Rules
2
-
3
- ## 默认做法
4
-
5
- - Prefer lambda-style queries and updates.
6
- - Keep repository access thin and predictable.
7
- - Make entity, mapper, or repository changes easy to review.
8
- - Name the persistence surface affected by the change.
9
- - State whether the issue is read-path shaping, write-path shaping, or mapping.
10
- - Keep the output tied to the smallest persistence surface that changes.
11
-
12
- ## 禁区
13
-
14
- - Do not use string column names when a lambda expression is available.
15
- - Do not let SQL details leak into higher layers.
16
- - Do not blur read and write behavior in the same explanation when one side is enough.
17
-
18
- ## 检查
19
-
20
- - Is the query type-safe?
21
- - Is the persistence change limited to the data layer?
22
- - Can a maintainer see which persistence surface changed?
23
- - Is the change understandable without opening service code?
24
- - Is this really about persistence surface selection rather than query shape?
25
-
26
- ## 回放信号
27
-
28
- - Trigger when the task touches persistence, queries, or entity mapping.
29
-
30
- ## References
31
-
32
- - `coding/backend/index.md`
@@ -1,30 +0,0 @@
1
- # Backend Feign Compatibility Rules
2
-
3
- ## 默认做法
4
-
5
- - Treat this file as a compatibility entry point, not as a second remote-contract rule.
6
- - Use `remote.md` for the main contract, failure, and behavior rules.
7
- - Use this file only when the task is specifically about Feign client usage, wiring, or compatibility notes.
8
- - Keep any Feign-specific advice short and tied to the client surface.
9
-
10
- ## 禁区
11
-
12
- - Do not duplicate `remote.md`.
13
- - Do not hide remote contract changes.
14
- - Do not leave failure handling implicit.
15
- - Do not turn Feign wiring notes into a remote contract tutorial.
16
-
17
- ## 检查
18
-
19
- - Is this actually a Feign-specific question?
20
- - Should the answer instead come from `remote.md`?
21
- - Is the client wiring note short enough to stay an entry point?
22
-
23
- ## 回放信号
24
-
25
- - Trigger when the task touches Feign client wiring or compatibility details.
26
-
27
- ## References
28
-
29
- - `coding/backend/index.md`
30
- - `coding/backend/remote.md`
@@ -1,42 +0,0 @@
1
- # Coding Backend Rules
2
-
3
- ## 默认做法
4
-
5
- - Keep backend rules focused on persistence, query shape, unit-of-work, cache policy, and remote contracts.
6
- - Reuse the smallest backend-specific rule file that covers the task.
7
- - Keep implementation details out of higher-level coding rules.
8
- - Split persistence, query, transaction, cache, and remote concerns into separate files.
9
- - Prefer a dedicated subrule when the task mentions atomicity, cache policy, remote contract handling, or persistence surface selection.
10
- - Use this file only when the backend concern spans multiple subrules.
11
-
12
- ## 禁区
13
-
14
- - Do not put product discovery into backend rules.
15
- - Do not duplicate backend details in every coding file.
16
- - Do not make a single backend file cover every concern.
17
- - Do not let `feign` duplicate `remote` behavior.
18
-
19
- ## 检查
20
-
21
- - Is the task actually backend-specific?
22
- - Is there a more precise backend rule file?
23
- - Would the answer be clearer in `database`, `query`, `transaction`, `cache`, or `remote`?
24
- - Is the question really about Feign client compatibility rather than remote behavior?
25
-
26
- ## 回放信号
27
-
28
- - Trigger when the request needs database, transaction, cache, or Feign-specific behavior.
29
- - Trigger when the task crosses query, write, consistency, or remote integration boundaries.
30
-
31
- ## References
32
-
33
- - `coding/backend/database.md`
34
- - `coding/backend/transaction.md`
35
- - `coding/backend/cache.md`
36
- - `coding/backend/feign.md`
37
- - `coding/backend/query.md`
38
- - `coding/backend/remote.md`
39
- - `coding/backend/transaction-boundary.md`
40
- - `coding/backend/transaction-rollback.md`
41
- - `coding/backend/cache-keying.md`
42
- - `coding/backend/cache-invalidation.md`
@@ -1,32 +0,0 @@
1
- # Backend Query Rules
2
-
3
- ## 默认做法
4
-
5
- - Use type-safe query construction.
6
- - Keep query intent readable and close to the domain terms.
7
- - Make pagination and filtering explicit.
8
- - Call out the main selector, sort, and paging behavior when they matter.
9
- - Prefer one query shape per request unless the task asks for alternatives.
10
- - Use this file for query shape, not persistence mapping.
11
-
12
- ## 禁区
13
-
14
- - Do not use string column names when a type-safe form exists.
15
- - Do not hide pagination or filter semantics.
16
- - Do not merge unrelated filters into one vague explanation.
17
- - Do not turn this file into a persistence or transaction rule.
18
-
19
- ## 检查
20
-
21
- - Is the query easy to review?
22
- - Are filter and paging rules explicit?
23
- - Can the reader tell which field controls the result set?
24
- - Is this a query-shape question rather than a data-layer question?
25
-
26
- ## 回放信号
27
-
28
- - Trigger when the task touches entity queries, filtering, or pagination.
29
-
30
- ## References
31
-
32
- - `coding/backend/index.md`
@@ -1,33 +0,0 @@
1
- # Backend Remote Rules
2
-
3
- ## 默认做法
4
-
5
- - Keep remote contracts explicit and version-aware.
6
- - Make timeout, fallback, and error handling visible.
7
- - Separate remote-call risk from local data logic.
8
- - Name the remote side, request shape, response shape, and failure policy.
9
- - State whether the risk is contract drift, transport failure, or downstream behavior.
10
- - Use this file for remote behavior, not Feign client wiring.
11
-
12
- ## 禁区
13
-
14
- - Do not hide remote contract changes.
15
- - Do not leave failure handling implicit.
16
- - Do not treat remote behavior as if it were local code.
17
- - Do not duplicate Feign compatibility notes here.
18
-
19
- ## 检查
20
-
21
- - Is the remote contract clear?
22
- - Are failures handled in the right place?
23
- - Can the reader tell what happens on timeout, retry, or non-200 response?
24
- - Is this a remote-behavior question rather than a client-wiring question?
25
-
26
- ## 回放信号
27
-
28
- - Trigger when the task touches Feign clients or remote service integration.
29
-
30
- ## References
31
-
32
- - `coding/backend/index.md`
33
- - `coding/backend/feign.md`
@@ -1,30 +0,0 @@
1
- # Backend Transaction Boundary Rules
2
-
3
- ## 默认做法
4
-
5
- - Keep the transaction boundary at the service layer.
6
- - Make the boundary narrow and explicit.
7
- - Align the boundary with one business operation.
8
- - Identify the service method that owns the boundary.
9
- - Prefer a single commit point for the smallest complete business action.
10
-
11
- ## 禁区
12
-
13
- - Do not start transactions in controllers.
14
- - Do not make one transaction cover unrelated work.
15
- - Do not spread one business action across multiple ambiguous boundaries.
16
-
17
- ## 检查
18
-
19
- - Is the boundary obvious?
20
- - Does the transaction match one business action?
21
- - Can the reader see the exact method where the unit of work starts and ends?
22
-
23
- ## 回放信号
24
-
25
- - Trigger when the task needs a transactional boundary decision.
26
-
27
- ## References
28
-
29
- - `coding/backend/index.md`
30
- - `coding/backend/transaction.md`