@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
@@ -0,0 +1,17 @@
1
+ # security-review References
2
+
3
+ This directory is local to the skill and is the only reference entry point for this skill.
4
+
5
+ ## Contents
6
+
7
+ - `../skill-spec.json`: design source for regenerating this skill
8
+ - `prompt-template.md`: reusable prompt wording for this skill
9
+ - `cases.md`: human-readable replay case for this skill
10
+ - `../assets/golden-prompt-suite.current.js`: machine-readable local case fixture
11
+
12
+ ## Guidance
13
+
14
+ - Keep skill-specific explanation here instead of pushing it into a stage-level shared library.
15
+ - Keep shared hard constraints in `../../../rules/index.md`.
16
+ - Keep canonical names unchanged.
17
+ - Skill summary: Review changes for authorization, data exposure, secrets, and abuse risk.
@@ -0,0 +1,26 @@
1
+ # security-review
2
+
3
+ ## Replay Case
4
+
5
+ - Case: `security-risk-check`
6
+ - First skill: `security-review`
7
+
8
+ ### Prompt
9
+
10
+ ```text
11
+ Check whether this change introduces auth, injection, or data exposure risks.
12
+ ```
13
+
14
+ ### Expected Output
15
+
16
+ - security findings
17
+ - risk level
18
+ - mitigation
19
+
20
+ ### Stop Rule
21
+
22
+ - Do not rewrite code.
23
+
24
+ ### Handoff
25
+
26
+ - regression-check
@@ -0,0 +1,18 @@
1
+ # security-review
2
+
3
+ ## Prompt Template
4
+
5
+ ```text
6
+ You are handling the security-review skill.
7
+ Goal: Review changes for authorization, data exposure, secrets, and abuse risk
8
+ Inputs: the request, supporting evidence, constraints, and existing repository facts.
9
+ Output contract: security findings, risk level, mitigation.
10
+ Stop rule: Do not rewrite code.
11
+ Handoff: regression-check.
12
+ Keep the response scoped to this stage and do not absorb the work of the next stage.
13
+ ```
14
+
15
+ ## Notes
16
+
17
+ - Keep the template aligned with the local replay case and local assets.
18
+ - Read `cases.md` for the matching replay example.
@@ -0,0 +1,25 @@
1
+ {
2
+ "group": "04-validation",
3
+ "name": "security-review",
4
+ "description": "Review changes for authorization, data exposure, secrets, and abuse risk.",
5
+ "title": "Security Review",
6
+ "purpose": "Find security weaknesses and recommend the smallest safe mitigation.",
7
+ "whenToUse": [
8
+ "The change touches auth, secrets, data access, user input, or trust boundaries.",
9
+ "You need a security-specific review.",
10
+ "The risk is about exposure, privilege, or abuse rather than correctness alone."
11
+ ],
12
+ "how": [
13
+ "Check auth, data exposure, input handling, and trust boundaries before merge.",
14
+ "Trace how untrusted input reaches sensitive operations or secrets.",
15
+ "State the attack path, impacted asset, and minimum fix needed to close it.",
16
+ "Keep findings focused on concrete exploitability or exposure."
17
+ ],
18
+ "whenToAvoid": [
19
+ "You still need design or implementation work.",
20
+ "The task is about a different validation subtype.",
21
+ "You need to rewrite code instead of reviewing it."
22
+ ],
23
+ "caseId": "security-risk-check",
24
+ "source": "bootstrap-from-skill-md"
25
+ }
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: unit-test
3
+ description: Add or update focused tests that prove local behavior and guard regressions.
4
+ ---
5
+
6
+ # Unit Test
7
+
8
+ ## Purpose
9
+
10
+ Create small, deterministic tests that verify a change at the narrowest useful scope.
11
+
12
+ ## When to Use
13
+
14
+ - The implementation needs automated proof.
15
+ - You need fast feedback on a local behavior.
16
+ - A regression should fail fast without running the whole stack.
17
+
18
+ ## How
19
+
20
+ - Derive focused test cases from the behavior and cover the important edges first.
21
+ - Prefer one behavior per test so failures point to one cause.
22
+ - Include the boundary, error, and edge cases that protect the fix.
23
+ - Keep fixtures and mocks as small as possible.
24
+
25
+ ## When to Avoid
26
+
27
+ - You still need design or implementation work.
28
+ - The task is about a different validation subtype.
29
+ - You need to rewrite code instead of reviewing it.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ module.exports = {
4
+ "name": "unit-test.golden-prompt-suite.current",
5
+ "skill": "unit-test",
6
+ "description": "Add or update focused tests that prove local behavior and guard regressions.",
7
+ "cases": [
8
+ {
9
+ "id": "unit-test-behavior-coverage",
10
+ "prompt": "This behavior needs tests. Design unit tests that cover the expected behavior.",
11
+ "expectedFirstSkill": "unit-test",
12
+ "expectedOutput": [
13
+ "test cases",
14
+ "assertions",
15
+ "edge cases"
16
+ ],
17
+ "expectedStop": "Do not modify production code.",
18
+ "expectedHandoff": "code-review"
19
+ }
20
+ ]
21
+ };
22
+
@@ -0,0 +1,17 @@
1
+ # unit-test References
2
+
3
+ This directory is local to the skill and is the only reference entry point for this skill.
4
+
5
+ ## Contents
6
+
7
+ - `../skill-spec.json`: design source for regenerating this skill
8
+ - `prompt-template.md`: reusable prompt wording for this skill
9
+ - `cases.md`: human-readable replay case for this skill
10
+ - `../assets/golden-prompt-suite.current.js`: machine-readable local case fixture
11
+
12
+ ## Guidance
13
+
14
+ - Keep skill-specific explanation here instead of pushing it into a stage-level shared library.
15
+ - Keep shared hard constraints in `../../../rules/index.md`.
16
+ - Keep canonical names unchanged.
17
+ - Skill summary: Add or update focused tests that prove local behavior and guard regressions.
@@ -0,0 +1,26 @@
1
+ # unit-test
2
+
3
+ ## Replay Case
4
+
5
+ - Case: `unit-test-behavior-coverage`
6
+ - First skill: `unit-test`
7
+
8
+ ### Prompt
9
+
10
+ ```text
11
+ This behavior needs tests. Design unit tests that cover the expected behavior.
12
+ ```
13
+
14
+ ### Expected Output
15
+
16
+ - test cases
17
+ - assertions
18
+ - edge cases
19
+
20
+ ### Stop Rule
21
+
22
+ - Do not modify production code.
23
+
24
+ ### Handoff
25
+
26
+ - code-review
@@ -0,0 +1,18 @@
1
+ # unit-test
2
+
3
+ ## Prompt Template
4
+
5
+ ```text
6
+ You are handling the unit-test skill.
7
+ Goal: Add or update focused tests that prove local behavior and guard regressions
8
+ Inputs: the request, supporting evidence, constraints, and existing repository facts.
9
+ Output contract: test cases, assertions, edge cases.
10
+ Stop rule: Do not modify production code.
11
+ Handoff: code-review.
12
+ Keep the response scoped to this stage and do not absorb the work of the next stage.
13
+ ```
14
+
15
+ ## Notes
16
+
17
+ - Keep the template aligned with the local replay case and local assets.
18
+ - Read `cases.md` for the matching replay example.
@@ -0,0 +1,25 @@
1
+ {
2
+ "group": "04-validation",
3
+ "name": "unit-test",
4
+ "description": "Add or update focused tests that prove local behavior and guard regressions.",
5
+ "title": "Unit Test",
6
+ "purpose": "Create small, deterministic tests that verify a change at the narrowest useful scope.",
7
+ "whenToUse": [
8
+ "The implementation needs automated proof.",
9
+ "You need fast feedback on a local behavior.",
10
+ "A regression should fail fast without running the whole stack."
11
+ ],
12
+ "how": [
13
+ "Derive focused test cases from the behavior and cover the important edges first.",
14
+ "Prefer one behavior per test so failures point to one cause.",
15
+ "Include the boundary, error, and edge cases that protect the fix.",
16
+ "Keep fixtures and mocks as small as possible."
17
+ ],
18
+ "whenToAvoid": [
19
+ "You still need design or implementation work.",
20
+ "The task is about a different validation subtype.",
21
+ "You need to rewrite code instead of reviewing it."
22
+ ],
23
+ "caseId": "unit-test-behavior-coverage",
24
+ "source": "bootstrap-from-skill-md"
25
+ }
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: change-log
3
+ description: Record what changed, why, and what evidence or follow-up matters.
4
+ ---
5
+
6
+ # Change Log
7
+
8
+ ## Purpose
9
+
10
+ Capture the important facts of a change for future review and handoff.
11
+
12
+ ## When to Use
13
+
14
+ - You need a concise change summary.
15
+ - The work should be traceable later.
16
+ - Future readers need the why, not just the what.
17
+
18
+ ## How
19
+
20
+ - Summarize what changed, why it changed, and what downstream readers need to know.
21
+ - Record the impact, risk, and any validation evidence worth preserving.
22
+ - Keep it short enough to scan but specific enough to reuse.
23
+ - Add follow-up notes only when they affect future work.
24
+
25
+ ## When to Avoid
26
+
27
+ - The delivery is not ready yet.
28
+ - You need to change code rather than document release steps.
29
+ - The request is only a short change summary.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ module.exports = {
4
+ "name": "change-log.golden-prompt-suite.current",
5
+ "skill": "change-log",
6
+ "description": "Record what changed, why, and what evidence or follow-up matters.",
7
+ "cases": [
8
+ {
9
+ "id": "changelog-summary",
10
+ "prompt": "Summarize this change into a clear changelog entry.",
11
+ "expectedFirstSkill": "change-log",
12
+ "expectedOutput": [
13
+ "change summary",
14
+ "impact",
15
+ "notes"
16
+ ],
17
+ "expectedStop": "Do not rewrite implementation details.",
18
+ "expectedHandoff": "deployment-guide"
19
+ }
20
+ ]
21
+ };
22
+
@@ -0,0 +1,17 @@
1
+ # change-log References
2
+
3
+ This directory is local to the skill and is the only reference entry point for this skill.
4
+
5
+ ## Contents
6
+
7
+ - `../skill-spec.json`: design source for regenerating this skill
8
+ - `prompt-template.md`: reusable prompt wording for this skill
9
+ - `cases.md`: human-readable replay case for this skill
10
+ - `../assets/golden-prompt-suite.current.js`: machine-readable local case fixture
11
+
12
+ ## Guidance
13
+
14
+ - Keep skill-specific explanation here instead of pushing it into a stage-level shared library.
15
+ - Keep shared hard constraints in `../../../rules/index.md`.
16
+ - Keep canonical names unchanged.
17
+ - Skill summary: Record what changed, why, and what evidence or follow-up matters.
@@ -0,0 +1,26 @@
1
+ # change-log
2
+
3
+ ## Replay Case
4
+
5
+ - Case: `changelog-summary`
6
+ - First skill: `change-log`
7
+
8
+ ### Prompt
9
+
10
+ ```text
11
+ Summarize this change into a clear changelog entry.
12
+ ```
13
+
14
+ ### Expected Output
15
+
16
+ - change summary
17
+ - impact
18
+ - notes
19
+
20
+ ### Stop Rule
21
+
22
+ - Do not rewrite implementation details.
23
+
24
+ ### Handoff
25
+
26
+ - deployment-guide
@@ -0,0 +1,18 @@
1
+ # change-log
2
+
3
+ ## Prompt Template
4
+
5
+ ```text
6
+ You are handling the change-log skill.
7
+ Goal: Record what changed, why, and what evidence or follow-up matters
8
+ Inputs: the request, supporting evidence, constraints, and existing repository facts.
9
+ Output contract: change summary, impact, notes.
10
+ Stop rule: Do not rewrite implementation details.
11
+ Handoff: deployment-guide.
12
+ Keep the response scoped to this stage and do not absorb the work of the next stage.
13
+ ```
14
+
15
+ ## Notes
16
+
17
+ - Keep the template aligned with the local replay case and local assets.
18
+ - Read `cases.md` for the matching replay example.
@@ -0,0 +1,25 @@
1
+ {
2
+ "group": "05-delivery",
3
+ "name": "change-log",
4
+ "description": "Record what changed, why, and what evidence or follow-up matters.",
5
+ "title": "Change Log",
6
+ "purpose": "Capture the important facts of a change for future review and handoff.",
7
+ "whenToUse": [
8
+ "You need a concise change summary.",
9
+ "The work should be traceable later.",
10
+ "Future readers need the why, not just the what."
11
+ ],
12
+ "how": [
13
+ "Summarize what changed, why it changed, and what downstream readers need to know.",
14
+ "Record the impact, risk, and any validation evidence worth preserving.",
15
+ "Keep it short enough to scan but specific enough to reuse.",
16
+ "Add follow-up notes only when they affect future work."
17
+ ],
18
+ "whenToAvoid": [
19
+ "The delivery is not ready yet.",
20
+ "You need to change code rather than document release steps.",
21
+ "The request is only a short change summary."
22
+ ],
23
+ "caseId": "changelog-summary",
24
+ "source": "bootstrap-from-skill-md"
25
+ }
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: deployment-guide
3
+ description: Document how to deploy, verify, or roll back a delivered change.
4
+ ---
5
+
6
+ # Deployment Guide
7
+
8
+ ## Purpose
9
+
10
+ Provide actionable deployment and rollback guidance for the current delivery.
11
+
12
+ ## When to Use
13
+
14
+ - Someone needs to operate or hand off the release.
15
+ - The deployment process needs a clear reference.
16
+ - Startup, verification, troubleshooting, or rollback steps are required.
17
+
18
+ ## How
19
+
20
+ - Capture startup, verify, troubleshoot, and recover steps for the delivered change.
21
+ - Make the guide executable: prerequisites, commands, checks, and recovery steps.
22
+ - Note anything that must be observed during rollout or immediately after it.
23
+ - Keep the instructions tied to the current delivered artifact.
24
+
25
+ ## When to Avoid
26
+
27
+ - The delivery is not ready yet.
28
+ - You need to change code rather than document release steps.
29
+ - The request is only a short change summary.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ module.exports = {
4
+ "name": "deployment-guide.golden-prompt-suite.current",
5
+ "skill": "deployment-guide",
6
+ "description": "Document how to deploy, verify, or roll back a delivered change.",
7
+ "cases": [
8
+ {
9
+ "id": "deployment-runbook",
10
+ "prompt": "Write the deployment and startup guide for this capability.",
11
+ "expectedFirstSkill": "deployment-guide",
12
+ "expectedOutput": [
13
+ "startup",
14
+ "verify",
15
+ "recover"
16
+ ],
17
+ "expectedStop": "Do not change product scope.",
18
+ "expectedHandoff": "codebase-learning"
19
+ }
20
+ ]
21
+ };
22
+
@@ -0,0 +1,17 @@
1
+ # deployment-guide References
2
+
3
+ This directory is local to the skill and is the only reference entry point for this skill.
4
+
5
+ ## Contents
6
+
7
+ - `../skill-spec.json`: design source for regenerating this skill
8
+ - `prompt-template.md`: reusable prompt wording for this skill
9
+ - `cases.md`: human-readable replay case for this skill
10
+ - `../assets/golden-prompt-suite.current.js`: machine-readable local case fixture
11
+
12
+ ## Guidance
13
+
14
+ - Keep skill-specific explanation here instead of pushing it into a stage-level shared library.
15
+ - Keep shared hard constraints in `../../../rules/index.md`.
16
+ - Keep canonical names unchanged.
17
+ - Skill summary: Document how to deploy, verify, or roll back a delivered change.
@@ -0,0 +1,26 @@
1
+ # deployment-guide
2
+
3
+ ## Replay Case
4
+
5
+ - Case: `deployment-runbook`
6
+ - First skill: `deployment-guide`
7
+
8
+ ### Prompt
9
+
10
+ ```text
11
+ Write the deployment and startup guide for this capability.
12
+ ```
13
+
14
+ ### Expected Output
15
+
16
+ - startup
17
+ - verify
18
+ - recover
19
+
20
+ ### Stop Rule
21
+
22
+ - Do not change product scope.
23
+
24
+ ### Handoff
25
+
26
+ - codebase-learning
@@ -0,0 +1,18 @@
1
+ # deployment-guide
2
+
3
+ ## Prompt Template
4
+
5
+ ```text
6
+ You are handling the deployment-guide skill.
7
+ Goal: Document how to deploy, verify, or roll back a delivered change
8
+ Inputs: the request, supporting evidence, constraints, and existing repository facts.
9
+ Output contract: startup, verify, recover.
10
+ Stop rule: Do not change product scope.
11
+ Handoff: codebase-learning.
12
+ Keep the response scoped to this stage and do not absorb the work of the next stage.
13
+ ```
14
+
15
+ ## Notes
16
+
17
+ - Keep the template aligned with the local replay case and local assets.
18
+ - Read `cases.md` for the matching replay example.
@@ -0,0 +1,25 @@
1
+ {
2
+ "group": "05-delivery",
3
+ "name": "deployment-guide",
4
+ "description": "Document how to deploy, verify, or roll back a delivered change.",
5
+ "title": "Deployment Guide",
6
+ "purpose": "Provide actionable deployment and rollback guidance for the current delivery.",
7
+ "whenToUse": [
8
+ "Someone needs to operate or hand off the release.",
9
+ "The deployment process needs a clear reference.",
10
+ "Startup, verification, troubleshooting, or rollback steps are required."
11
+ ],
12
+ "how": [
13
+ "Capture startup, verify, troubleshoot, and recover steps for the delivered change.",
14
+ "Make the guide executable: prerequisites, commands, checks, and recovery steps.",
15
+ "Note anything that must be observed during rollout or immediately after it.",
16
+ "Keep the instructions tied to the current delivered artifact."
17
+ ],
18
+ "whenToAvoid": [
19
+ "The delivery is not ready yet.",
20
+ "You need to change code rather than document release steps.",
21
+ "The request is only a short change summary."
22
+ ],
23
+ "caseId": "deployment-runbook",
24
+ "source": "bootstrap-from-skill-md"
25
+ }
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: release-check
3
+ description: Confirm a change is ready for release with the required gates and evidence.
4
+ ---
5
+
6
+ # Release Check
7
+
8
+ ## Purpose
9
+
10
+ Verify the change is release-ready from scope, risk, and evidence perspectives.
11
+
12
+ ## When to Use
13
+
14
+ - A change is about to be merged or shipped.
15
+ - You need a release readiness gate.
16
+ - Scope, validation, rollback, or documentation still needs a final pass.
17
+
18
+ ## How
19
+
20
+ - Verify readiness, blockers, and handoff items before the release is approved.
21
+ - Confirm the change scope, test evidence, and rollout notes are aligned.
22
+ - Call out any missing rollback, monitoring, or ownership detail.
23
+ - Keep the result focused on release readiness, not implementation rewrites.
24
+
25
+ ## When to Avoid
26
+
27
+ - The delivery is not ready yet.
28
+ - You need to change code rather than document release steps.
29
+ - The request is only a short change summary.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ module.exports = {
4
+ "name": "release-check.golden-prompt-suite.current",
5
+ "skill": "release-check",
6
+ "description": "Confirm a change is ready for release with the required gates and evidence.",
7
+ "cases": [
8
+ {
9
+ "id": "release-readiness-check",
10
+ "prompt": "Before release, check readiness and blockers.",
11
+ "expectedFirstSkill": "release-check",
12
+ "expectedOutput": [
13
+ "release readiness",
14
+ "blockers",
15
+ "next actions"
16
+ ],
17
+ "expectedStop": "Do not start new feature work.",
18
+ "expectedHandoff": "release-validation"
19
+ }
20
+ ]
21
+ };
22
+
@@ -0,0 +1,17 @@
1
+ # release-check References
2
+
3
+ This directory is local to the skill and is the only reference entry point for this skill.
4
+
5
+ ## Contents
6
+
7
+ - `../skill-spec.json`: design source for regenerating this skill
8
+ - `prompt-template.md`: reusable prompt wording for this skill
9
+ - `cases.md`: human-readable replay case for this skill
10
+ - `../assets/golden-prompt-suite.current.js`: machine-readable local case fixture
11
+
12
+ ## Guidance
13
+
14
+ - Keep skill-specific explanation here instead of pushing it into a stage-level shared library.
15
+ - Keep shared hard constraints in `../../../rules/index.md`.
16
+ - Keep canonical names unchanged.
17
+ - Skill summary: Confirm a change is ready for release with the required gates and evidence.
@@ -0,0 +1,26 @@
1
+ # release-check
2
+
3
+ ## Replay Case
4
+
5
+ - Case: `release-readiness-check`
6
+ - First skill: `release-check`
7
+
8
+ ### Prompt
9
+
10
+ ```text
11
+ Before release, check readiness and blockers.
12
+ ```
13
+
14
+ ### Expected Output
15
+
16
+ - release readiness
17
+ - blockers
18
+ - next actions
19
+
20
+ ### Stop Rule
21
+
22
+ - Do not start new feature work.
23
+
24
+ ### Handoff
25
+
26
+ - release-validation
@@ -0,0 +1,18 @@
1
+ # release-check
2
+
3
+ ## Prompt Template
4
+
5
+ ```text
6
+ You are handling the release-check skill.
7
+ Goal: Confirm a change is ready for release with the required gates and evidence
8
+ Inputs: the request, supporting evidence, constraints, and existing repository facts.
9
+ Output contract: release readiness, blockers, next actions.
10
+ Stop rule: Do not start new feature work.
11
+ Handoff: release-validation.
12
+ Keep the response scoped to this stage and do not absorb the work of the next stage.
13
+ ```
14
+
15
+ ## Notes
16
+
17
+ - Keep the template aligned with the local replay case and local assets.
18
+ - Read `cases.md` for the matching replay example.
@@ -0,0 +1,25 @@
1
+ {
2
+ "group": "05-delivery",
3
+ "name": "release-check",
4
+ "description": "Confirm a change is ready for release with the required gates and evidence.",
5
+ "title": "Release Check",
6
+ "purpose": "Verify the change is release-ready from scope, risk, and evidence perspectives.",
7
+ "whenToUse": [
8
+ "A change is about to be merged or shipped.",
9
+ "You need a release readiness gate.",
10
+ "Scope, validation, rollback, or documentation still needs a final pass."
11
+ ],
12
+ "how": [
13
+ "Verify readiness, blockers, and handoff items before the release is approved.",
14
+ "Confirm the change scope, test evidence, and rollout notes are aligned.",
15
+ "Call out any missing rollback, monitoring, or ownership detail.",
16
+ "Keep the result focused on release readiness, not implementation rewrites."
17
+ ],
18
+ "whenToAvoid": [
19
+ "The delivery is not ready yet.",
20
+ "You need to change code rather than document release steps.",
21
+ "The request is only a short change summary."
22
+ ],
23
+ "caseId": "release-readiness-check",
24
+ "source": "bootstrap-from-skill-md"
25
+ }