@ccoalm/ccl-skills 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (561) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +49 -0
  3. package/dist/assets/marketplace/.agents/plugins/marketplace.json +12 -0
  4. package/dist/assets/marketplace/.claude-plugin/marketplace.json +13 -0
  5. package/dist/assets/marketplace/marketplace-manifest.json +12 -0
  6. package/dist/assets/marketplace/plugins/ccl-skills/.claude-plugin/marketplace.json +16 -0
  7. package/dist/assets/marketplace/plugins/ccl-skills/.claude-plugin/plugin.json +5 -0
  8. package/dist/assets/marketplace/plugins/ccl-skills/.codex-plugin/plugin.json +5 -0
  9. package/dist/assets/marketplace/plugins/ccl-skills/.worktree-only +3 -0
  10. package/dist/assets/marketplace/plugins/ccl-skills/agent-context/session-start.md +45 -0
  11. package/dist/assets/marketplace/plugins/ccl-skills/agent-context/subagent-start.md +12 -0
  12. package/dist/assets/marketplace/plugins/ccl-skills/hooks/AGENTS.md +19 -0
  13. package/dist/assets/marketplace/plugins/ccl-skills/hooks/guard-delegation-owner.sh +125 -0
  14. package/dist/assets/marketplace/plugins/ccl-skills/hooks/guard-edit-isolation.sh +102 -0
  15. package/dist/assets/marketplace/plugins/ccl-skills/hooks/guard-merge-authorization.sh +1156 -0
  16. package/dist/assets/marketplace/plugins/ccl-skills/hooks/hooks.json +131 -0
  17. package/dist/assets/marketplace/plugins/ccl-skills/hooks/merge-authorization-prompt.sh +142 -0
  18. package/dist/assets/marketplace/plugins/ccl-skills/hooks/owner-dispatch-guard.sh +12 -0
  19. package/dist/assets/marketplace/plugins/ccl-skills/hooks/owner-dispatch-stop.sh +13 -0
  20. package/dist/assets/marketplace/plugins/ccl-skills/hooks/remind-post-merge-cleanup.sh +144 -0
  21. package/dist/assets/marketplace/plugins/ccl-skills/hooks/session-context.sh +87 -0
  22. package/dist/assets/marketplace/plugins/ccl-skills/hooks/session-start.sh +86 -0
  23. package/dist/assets/marketplace/plugins/ccl-skills/hooks/skill-extraction-gate-stop.sh +69 -0
  24. package/dist/assets/marketplace/plugins/ccl-skills/hooks/subagent-start.sh +26 -0
  25. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_guard_delegation_owner.sh +329 -0
  26. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_guard_edit_isolation.sh +322 -0
  27. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_guard_merge_authorization.sh +902 -0
  28. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_merge_authorization_prompt.sh +178 -0
  29. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_remind_post_merge_cleanup.sh +121 -0
  30. package/dist/assets/marketplace/plugins/ccl-skills/hooks/test_session_start.sh +170 -0
  31. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/AGENTS.md +17 -0
  32. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/ccl-skills.ts +564 -0
  33. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/commands/ccl-install-skills.md +14 -0
  34. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/commands/ccl-update-skills.md +44 -0
  35. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/commands/ccl-verify-skills.md +109 -0
  36. package/dist/assets/marketplace/plugins/ccl-skills/packages/opencode-plugin/commands/ccl-worktree-check.md +36 -0
  37. package/dist/assets/marketplace/plugins/ccl-skills/scripts/owner-dispatch/AGENTS.md +28 -0
  38. package/dist/assets/marketplace/plugins/ccl-skills/scripts/owner-dispatch/README.md +276 -0
  39. package/dist/assets/marketplace/plugins/ccl-skills/scripts/owner-dispatch/owner-dispatch.example.json +10 -0
  40. package/dist/assets/marketplace/plugins/ccl-skills/scripts/owner-dispatch/owner-dispatch.sh +1307 -0
  41. package/dist/assets/marketplace/plugins/ccl-skills/scripts/owner-dispatch/test.sh +941 -0
  42. package/dist/assets/marketplace/plugins/ccl-skills/skills/agents-file-coverage-gate/SKILL.md +45 -0
  43. package/dist/assets/marketplace/plugins/ccl-skills/skills/agents-file-coverage-gate/agents/openai.yaml +4 -0
  44. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/SKILL.md +188 -0
  45. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/agents/openai.yaml +4 -0
  46. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/android-dev.md +92 -0
  47. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/flutter-dev.md +80 -0
  48. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/ios-dev.md +72 -0
  49. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/kotlin-multiplatform.md +93 -0
  50. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/mobile-platform-boundaries.md +77 -0
  51. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/mobile-quality-release.md +77 -0
  52. package/dist/assets/marketplace/plugins/ccl-skills/skills/app-cross-platform-dev/references/source-evidence-map.md +64 -0
  53. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/SKILL.md +353 -0
  54. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/agents/openai.yaml +4 -0
  55. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/references/client-routing.md +419 -0
  56. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/references/manual-invocation-and-prompts.md +126 -0
  57. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/references/staged-review-contract.md +197 -0
  58. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/references/timeout-auth-and-capabilities.md +179 -0
  59. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/AGENTS.md +98 -0
  60. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/classify_envelope.py +93 -0
  61. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/classify_timeout_exit.sh +15 -0
  62. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/claude_review.sh +1438 -0
  63. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/codex_review.sh +324 -0
  64. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/concern_excerpt.py +295 -0
  65. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/egress_schema.py +214 -0
  66. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/init_policy_matrix.py +642 -0
  67. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/kimi_packet_mcp.py +181 -0
  68. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/kimi_review.sh +1165 -0
  69. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/opencode_review.sh +1190 -0
  70. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/parse_cli_review.py +946 -0
  71. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/parse_opencode_review.py +474 -0
  72. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/parse_probe_result.py +1899 -0
  73. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/parse_review_json.py +200 -0
  74. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/review_gate.py +2845 -0
  75. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/review_gate.sh +6 -0
  76. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/run_claude_capture.py +71 -0
  77. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/runtime-surface-verification-design.md +53 -0
  78. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_classify_envelope.sh +68 -0
  79. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_claude_review_probe.sh +2311 -0
  80. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_cli_review_wrappers.sh +1832 -0
  81. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_code_review_identity.sh +73 -0
  82. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_concern_excerpt.sh +245 -0
  83. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_egress_schema.sh +177 -0
  84. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_init_policy_matrix.sh +272 -0
  85. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_kimi_packet_mcp.py +195 -0
  86. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_opencode_review_concurrency.sh +120 -0
  87. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_opencode_review_retry.sh +1005 -0
  88. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_parse_opencode_review.sh +258 -0
  89. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_parse_probe_result.sh +574 -0
  90. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_parse_review_json.sh +349 -0
  91. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_review_client_compat.py +434 -0
  92. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_review_client_order.sh +264 -0
  93. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/test_review_gate.sh +2412 -0
  94. package/dist/assets/marketplace/plugins/ccl-skills/skills/code-review/scripts/verify_native_skill_binding.py +123 -0
  95. package/dist/assets/marketplace/plugins/ccl-skills/skills/defect-diagnosis/SKILL.md +153 -0
  96. package/dist/assets/marketplace/plugins/ccl-skills/skills/defect-diagnosis/agents/openai.yaml +4 -0
  97. package/dist/assets/marketplace/plugins/ccl-skills/skills/defect-diagnosis/references/diagnosis-playbook.md +54 -0
  98. package/dist/assets/marketplace/plugins/ccl-skills/skills/defect-diagnosis/references/prevention-routing.md +36 -0
  99. package/dist/assets/marketplace/plugins/ccl-skills/skills/feature-risk-router/SKILL.md +69 -0
  100. package/dist/assets/marketplace/plugins/ccl-skills/skills/feature-risk-router/agents/openai.yaml +4 -0
  101. package/dist/assets/marketplace/plugins/ccl-skills/skills/feature-risk-router/references/security-review-gate.md +41 -0
  102. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/SKILL.md +165 -0
  103. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/agents/openai.yaml +4 -0
  104. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/api-security-boundaries.md +47 -0
  105. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/architecture-playbook.md +160 -0
  106. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/artifact-generation-architecture.md +37 -0
  107. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/audit-history-architecture.md +29 -0
  108. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/bulk-workflow-architecture.md +33 -0
  109. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/config-rule-routing-architecture.md +34 -0
  110. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/cross-cutting-concerns.md +72 -0
  111. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/data-modeling-and-migrations.md +79 -0
  112. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/data-platform-architecture.md +210 -0
  113. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/dependency-platform.md +105 -0
  114. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/developer-tooling-architecture.md +38 -0
  115. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/error-contract-architecture.md +36 -0
  116. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/event-driven-architecture.md +260 -0
  117. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/http-gateway-architecture.md +74 -0
  118. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/mq-consumer-architecture.md +38 -0
  119. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/multi-tenant-isolation.md +275 -0
  120. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/notification-architecture.md +25 -0
  121. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/ops-checklist.md +57 -0
  122. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/performance-capacity-architecture.md +38 -0
  123. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/protobuf-contract-architecture.md +119 -0
  124. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/redis-cache-coordination.md +93 -0
  125. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/release-runtime-readiness.md +65 -0
  126. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/replay-comparison-architecture.md +26 -0
  127. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/runtime-observability.md +94 -0
  128. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/service-scaffold.md +76 -0
  129. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/source-evidence-map.md +55 -0
  130. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-architecture/references/workflow-state-architecture.md +38 -0
  131. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/SKILL.md +159 -0
  132. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/agents/openai.yaml +4 -0
  133. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/artifact-generation-patterns.md +37 -0
  134. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/audit-history-patterns.md +28 -0
  135. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/bulk-import-export-patterns.md +56 -0
  136. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/config-rule-routing-patterns.md +38 -0
  137. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/data-access-patterns.md +55 -0
  138. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/db-schema-and-dal-patterns.md +109 -0
  139. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/dependency-client-patterns.md +130 -0
  140. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/developer-tooling-patterns.md +70 -0
  141. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/domain-feature-patterns.md +78 -0
  142. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/engineering-patterns.md +119 -0
  143. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/error-contract-patterns.md +55 -0
  144. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/feature-playbook.md +61 -0
  145. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/http-gateway-client-patterns.md +76 -0
  146. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/mq-consumer-patterns.md +55 -0
  147. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/notification-patterns.md +42 -0
  148. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/observability-implementation-patterns.md +101 -0
  149. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/performance-capacity-patterns.md +44 -0
  150. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/protobuf-contract-patterns.md +72 -0
  151. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/public-api-integration-patterns.md +56 -0
  152. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/quality-and-testing-patterns.md +91 -0
  153. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/redis-cache-lock-patterns.md +123 -0
  154. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/release-ops-patterns.md +112 -0
  155. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/reliability-patterns.md +83 -0
  156. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/replay-comparison-patterns.md +32 -0
  157. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/scaffold-and-codegen.md +86 -0
  158. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/source-evidence-map.md +54 -0
  159. package/dist/assets/marketplace/plugins/ccl-skills/skills/go-microservice-dev/references/state-machine-task-patterns.md +45 -0
  160. package/dist/assets/marketplace/plugins/ccl-skills/skills/grill-me/SKILL.md +80 -0
  161. package/dist/assets/marketplace/plugins/ccl-skills/skills/grill-me/agents/openai.yaml +4 -0
  162. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/SKILL.md +117 -0
  163. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/agents/openai.yaml +4 -0
  164. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-approval-auto-reviewer.md +106 -0
  165. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-command-sandbox.md +441 -0
  166. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-context-freshness.md +47 -0
  167. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-credentials-auth.md +13 -0
  168. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-extensions-skills.md +13 -0
  169. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-file-edit-protocol.md +129 -0
  170. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-ide-integration.md +5 -0
  171. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-input-ingestion.md +13 -0
  172. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-instruction-composition.md +13 -0
  173. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-lifecycle-hooks.md +92 -0
  174. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-messaging.md +5 -0
  175. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-runtime-bootstrap.md +5 -0
  176. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-session-persistence.md +448 -0
  177. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-task-orchestration.md +13 -0
  178. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-tool-dispatch.md +123 -0
  179. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/agent-turn-lifecycle.md +131 -0
  180. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/inference-capacity-operations.md +162 -0
  181. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/llm-client-gateway.md +156 -0
  182. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/model-prompt-evaluation.md +146 -0
  183. package/dist/assets/marketplace/plugins/ccl-skills/skills/llm-inference-integration/references/retrieval-agent-safety.md +273 -0
  184. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/SKILL.md +202 -0
  185. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/agents/openai.yaml +4 -0
  186. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/contracts-and-state.md +62 -0
  187. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/cross-stack-alignment.md +94 -0
  188. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/framework-choice.md +76 -0
  189. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/online-practice-uptake.md +56 -0
  190. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/platform-capabilities.md +91 -0
  191. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/product-page-checklist.md +40 -0
  192. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/qa-release.md +72 -0
  193. package/dist/assets/marketplace/plugins/ccl-skills/skills/miniapp-product-dev/references/source-evidence-map.md +82 -0
  194. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-agent-delegation/SKILL.md +103 -0
  195. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-agent-delegation/agents/openai.yaml +5 -0
  196. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-agent-delegation/references/multi-agent-delegation-playbook.md +100 -0
  197. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/SKILL.md +70 -0
  198. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/agents/openai.yaml +4 -0
  199. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/references/public-data-acquisition.md +549 -0
  200. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/references/public-disclosure-channels.md +97 -0
  201. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/references/research-prompts.md +66 -0
  202. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/scripts/AGENTS.md +32 -0
  203. package/dist/assets/marketplace/plugins/ccl-skills/skills/multi-perspective-research/scripts/test-public-data-acquisition-recipes.sh +379 -0
  204. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/SKILL.md +244 -0
  205. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/agents/openai.yaml +4 -0
  206. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/alerting-and-on-call.md +76 -0
  207. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/framework-middleware-checklist.md +142 -0
  208. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/infra-component-deployment.md +268 -0
  209. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/log-correlation-recipe.md +124 -0
  210. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/log-schema-canonical.md +208 -0
  211. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/metrics-conventions.md +105 -0
  212. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/obs-stack-architecture.md +107 -0
  213. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/sli-slo-design.md +95 -0
  214. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-observability/references/source-register.md +11 -0
  215. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/SKILL.md +303 -0
  216. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/agents/openai.yaml +4 -0
  217. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/canary-and-rollout-strategy.md +163 -0
  218. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/config-center-via-etcd.md +245 -0
  219. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/custom-control-plane-boundary.md +298 -0
  220. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/deploy-cli-concrete-recipe.md +312 -0
  221. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/deploy-pipeline.md +165 -0
  222. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/env-and-lane-matrix.md +126 -0
  223. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/lane-orchestration-control-plane.md +383 -0
  224. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/multi-region-and-cluster.md +135 -0
  225. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/promotion-gate-and-review.md +149 -0
  226. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/python-package-registry-release.md +462 -0
  227. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/rollback-playbook.md +123 -0
  228. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/secret-and-config-management.md +231 -0
  229. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-release-engineering/references/version-authority-and-deprecation.md +21 -0
  230. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/SKILL.md +276 -0
  231. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/agents/openai.yaml +4 -0
  232. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/dual-sidecar-and-traffic-config-center.md +127 -0
  233. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/framework-middleware.md +143 -0
  234. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/grpc-authority-workaround.md +90 -0
  235. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/http-response-envelope-contract.md +24 -0
  236. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/mesh-architecture.md +127 -0
  237. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/multi-env-routing.md +192 -0
  238. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/protobuf-http-contract-signals.md +64 -0
  239. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/retry-timeout-circuit-breaker.md +124 -0
  240. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/rpc-framework-recipe.md +494 -0
  241. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/service-discovery-choice.md +113 -0
  242. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/service-discovery-migration-playbook.md +231 -0
  243. package/dist/assets/marketplace/plugins/ccl-skills/skills/platform-service-connectivity/references/service-discovery-recipe.md +131 -0
  244. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/SKILL.md +235 -0
  245. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/agents/openai.yaml +4 -0
  246. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/adr-convention.md +146 -0
  247. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/algorithm-launch-checklist.md +30 -0
  248. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/algorithm-launch-evaluation-report-template.md +25 -0
  249. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/algorithm-launch-execution-spec.md +108 -0
  250. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/algorithm-launch-sop.md +457 -0
  251. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/algorithm-launch-templates.md +24 -0
  252. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/artifact-egress-confidentiality.md +58 -0
  253. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/code-review-checklist.md +86 -0
  254. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/cross-repo-coordination.md +46 -0
  255. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/delivery-lifecycle.md +192 -0
  256. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/design-review-gate-mechanics.md +62 -0
  257. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/design-routing-and-readiness.md +45 -0
  258. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/diagnostic-spec-match-gate.md +36 -0
  259. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/dispatch-owner-skills.md +35 -0
  260. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/dormant-code-activation.md +47 -0
  261. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/existing-project-assessment-report.md +223 -0
  262. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/external-skill-augmentation.md +46 -0
  263. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/feature-deprecation-cascade.md +15 -0
  264. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/high-risk-resilience-gates.md +73 -0
  265. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/implementation-completeness-and-minimality.md +120 -0
  266. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/implementation-entry-reentry-gate.md +122 -0
  267. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/modular-monolith-heuristic.md +105 -0
  268. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/pre-final-continuation-gate.md +115 -0
  269. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/problem-resolution-and-learning.md +62 -0
  270. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/quality-attributes.md +112 -0
  271. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/quality-remediation-program.md +88 -0
  272. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/rd-standards-doc-family-checklist.md +27 -0
  273. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/refactoring-discipline.md +52 -0
  274. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/review-reception.md +34 -0
  275. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/shared-gate-artifact-classification.md +76 -0
  276. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/source-evidence-map.md +31 -0
  277. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/status-tracker-sync.md +77 -0
  278. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/sync-spec-repo-contract.md +25 -0
  279. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/verify-developer-experience.md +34 -0
  280. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/references/worktree-mechanics.md +55 -0
  281. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/scripts/AGENTS.md +18 -0
  282. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-rd-workflow/scripts/check-agent-contract-coverage.sh +213 -0
  283. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/SKILL.md +136 -0
  284. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/agents/openai.yaml +9 -0
  285. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/analytics-visualization-interactions.md +206 -0
  286. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/behavioral-aesthetic-logic.md +108 -0
  287. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/complex-creation-interactions.md +194 -0
  288. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/design-execution-checklist.md +214 -0
  289. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/design-impl-naming-and-versioning.md +53 -0
  290. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/design-intake-and-acceptance.md +129 -0
  291. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/design-system-source-of-truth.md +97 -0
  292. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/external-ui-ux-quality-benchmarks.md +79 -0
  293. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/frontend-code-evidence-map.md +63 -0
  294. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/interaction-design-patterns.md +146 -0
  295. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/layout-recipes-and-screenshot-acceptance.md +250 -0
  296. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/multi-project-token-consistency.md +237 -0
  297. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/multi-stack-strategy.md +65 -0
  298. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/operational-processing-workflows.md +237 -0
  299. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/platform-mobile-patterns.md +324 -0
  300. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/platform-web-desktop-patterns.md +456 -0
  301. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/product-lifecycle-acceptance-and-iteration.md +114 -0
  302. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/product-surface-patterns.md +79 -0
  303. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/resource-management-interactions.md +113 -0
  304. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/scenario-community-patterns.md +133 -0
  305. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/source-map.md +130 -0
  306. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/tokens-and-components.md +47 -0
  307. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/trust-sensitive-ai-and-data-patterns.md +96 -0
  308. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/ui-ux-audit.md +106 -0
  309. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/ui-ux-design-development.md +176 -0
  310. package/dist/assets/marketplace/plugins/ccl-skills/skills/product-ui-ux-design/references/visual-craft.md +111 -0
  311. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/SKILL.md +157 -0
  312. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/agents/openai.yaml +4 -0
  313. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/ai-service-integration-boundaries.md +57 -0
  314. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/api-contract-and-schema.md +62 -0
  315. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/api-security-boundaries.md +39 -0
  316. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/architecture-playbook.md +46 -0
  317. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/async-execution-model.md +24 -0
  318. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/background-jobs-and-scheduling.md +18 -0
  319. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/batch-and-pipeline-architecture.md +11 -0
  320. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/config-secrets-runtime.md +22 -0
  321. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/data-modeling-and-migrations.md +64 -0
  322. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/data-platform-architecture.md +211 -0
  323. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/event-driven-architecture.md +263 -0
  324. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/multi-tenant-isolation.md +281 -0
  325. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/observability-and-ops.md +26 -0
  326. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/packaging-runtime-readiness.md +20 -0
  327. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/redis-cache-coordination.md +41 -0
  328. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/reliability-and-error-contract.md +17 -0
  329. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/source-evidence-map.md +55 -0
  330. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-architecture/references/web-framework-boundaries.md +26 -0
  331. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/SKILL.md +143 -0
  332. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/agents/openai.yaml +4 -0
  333. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/ai-service-wiring-patterns.md +16 -0
  334. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/async-and-worker-patterns.md +24 -0
  335. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/background-job-patterns.md +18 -0
  336. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/batch-and-artifact-patterns.md +13 -0
  337. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/dependency-client-patterns.md +39 -0
  338. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/error-handling-patterns.md +26 -0
  339. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/feature-playbook.md +43 -0
  340. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/observability-implementation-patterns.md +31 -0
  341. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/project-structure-and-tooling.md +24 -0
  342. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/public-api-security-patterns.md +52 -0
  343. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/redis-cache-lock-patterns.md +78 -0
  344. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/schema-and-validation-patterns.md +23 -0
  345. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/source-evidence-map.md +56 -0
  346. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/sqlalchemy-and-migrations-patterns.md +99 -0
  347. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/testing-and-quality-patterns.md +61 -0
  348. package/dist/assets/marketplace/plugins/ccl-skills/skills/python-service-dev/references/web-framework-patterns.md +35 -0
  349. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/SKILL.md +91 -0
  350. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/agents/openai.yaml +4 -0
  351. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/config-runtime-readback.md +20 -0
  352. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/mr-merge-authorization.md +31 -0
  353. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/post-release-env-reset.md +31 -0
  354. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/release-closeout-evidence.md +20 -0
  355. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/release-scope-confirmation.md +21 -0
  356. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/tag-and-prod-pipeline-gate.md +20 -0
  357. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/test-scope-prompt.md +24 -0
  358. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-coordination/references/watcher-discipline.md +14 -0
  359. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-doc-writer/SKILL.md +64 -0
  360. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-doc-writer/agents/openai.yaml +4 -0
  361. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-doc-writer/references/comment-safe-release-doc.md +19 -0
  362. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-doc-writer/references/release-evidence-workflow.md +23 -0
  363. package/dist/assets/marketplace/plugins/ccl-skills/skills/release-doc-writer/references/release-testing-scope-section.md +15 -0
  364. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-baseline/SKILL.md +87 -0
  365. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-baseline/agents/openai.yaml +4 -0
  366. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-doc-writer/SKILL.md +130 -0
  367. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-doc-writer/agents/openai.yaml +4 -0
  368. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-doc-writer/references/prd-composition-contract.md +35 -0
  369. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-doc-writer/references/requirement-closure-contract.md +86 -0
  370. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-doc-writer/references/security-four-questions.md +38 -0
  371. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-intent/SKILL.md +91 -0
  372. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-intent/agents/openai.yaml +4 -0
  373. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-scope/SKILL.md +88 -0
  374. package/dist/assets/marketplace/plugins/ccl-skills/skills/requirement-scope/agents/openai.yaml +4 -0
  375. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/SKILL.md +337 -0
  376. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/agents/openai.yaml +4 -0
  377. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/analysis-parse-fix-test-challenge-replay.md +47 -0
  378. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/attribution-verification.md +69 -0
  379. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/bootstrap-slim-c3-obligation-table.md +112 -0
  380. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/coverage-exhaustion-traps.md +45 -0
  381. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/description-authoring.md +162 -0
  382. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/dual-track-review-gate.md +507 -0
  383. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/eval-routing.md +86 -0
  384. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/evidence-card-template.md +51 -0
  385. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/example-domain-preselect.md +79 -0
  386. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/external-practice-controls.md +57 -0
  387. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/extraction-lifecycle-handoff.md +65 -0
  388. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/extraction-quickstart.md +194 -0
  389. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/firing-point-placement.md +75 -0
  390. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/harness-patterns-and-eval.md +286 -0
  391. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/incident-postmortem-extraction.md +190 -0
  392. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/l0-l1-l2-routing.md +114 -0
  393. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/online-skill-review.md +47 -0
  394. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/parallel-stack-references-pattern.md +164 -0
  395. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/r0-leakage-audit.md +90 -0
  396. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/recurring-anti-patterns-checklist.md +320 -0
  397. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/resume-paused-delivery.md +16 -0
  398. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/review-feedback-mining.md +33 -0
  399. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/review-finding-standards.md +57 -0
  400. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/review-rubric.md +40 -0
  401. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/rule-consolidation.md +118 -0
  402. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/skill-listing-budget.md +19 -0
  403. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/source-register.md +254 -0
  404. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/source-to-skill-extraction.md +658 -0
  405. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/two-source-extraction-pattern.md +167 -0
  406. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/uiux-judgment-extraction.md +179 -0
  407. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/uiux-routing-map.md +51 -0
  408. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/references/validation-and-landing.md +180 -0
  409. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/AGENTS.md +18 -0
  410. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/check-ccl-skills.sh +1452 -0
  411. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/check-evidence-card-leak.sh +491 -0
  412. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/check-mr-target-freshness.sh +173 -0
  413. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/check-size-budget.sh +488 -0
  414. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/check-sync-pointers.sh +419 -0
  415. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/eval-golden-trace.rb +197 -0
  416. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/eval-health.rb +327 -0
  417. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/eval-routing-bank.rb +401 -0
  418. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/eval-routing.rb +248 -0
  419. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/generic-r0-leak-scan.sh +282 -0
  420. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/governing-chain-diff.py +321 -0
  421. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/impact-chain-gate.rb +964 -0
  422. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/register-firing-path-resolution.rb +708 -0
  423. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/skill-behavior-eval.py +540 -0
  424. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/source-register-lifecycle.rb +51 -0
  425. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/source-register-pending-status.rb +55 -0
  426. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_ai_coding_implementation_gates.sh +829 -0
  427. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_impact_chain_refscripts.sh +1203 -0
  428. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_r0_status.sh +75 -0
  429. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_register_pending_exclusion.sh +137 -0
  430. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_regressions.sh +173 -0
  431. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_route_drift.sh +377 -0
  432. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_size_budget.sh +833 -0
  433. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_skill_catalog.sh +491 -0
  434. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_ccl_source_register_lifecycle.sh +114 -0
  435. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_mr_target_freshness.sh +261 -0
  436. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_check_sync_pointers.sh +538 -0
  437. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_controlled_escalation_pins.sh +154 -0
  438. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_eval_routing_bank_grader_diagnostics.sh +190 -0
  439. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_eval_routing_bank_surface_binding.sh +178 -0
  440. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_eval_routing_prose_target.sh +86 -0
  441. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_generic_r0_leak_scan.sh +131 -0
  442. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_git_identity_predicate_gate.sh +243 -0
  443. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_governing_chain_diff.sh +419 -0
  444. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_impact_chain_gate_dateless_host.sh +120 -0
  445. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_register_firing_path_resolution.sh +724 -0
  446. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_register_firing_path_wiring.sh +414 -0
  447. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_regression_runner_registration.sh +34 -0
  448. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_routing_bank_integrity.sh +205 -0
  449. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_routing_pointer_integrity.sh +194 -0
  450. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_validate_skill_credential_cwd.sh +61 -0
  451. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_validate_skill_cross_refs.sh +111 -0
  452. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/test_validate_skill_root_depth.sh +53 -0
  453. package/dist/assets/marketplace/plugins/ccl-skills/skills/skill-extraction-workflow/scripts/validate-skill.sh +257 -0
  454. package/dist/assets/marketplace/plugins/ccl-skills/skills/terminal-cli-dev/SKILL.md +98 -0
  455. package/dist/assets/marketplace/plugins/ccl-skills/skills/terminal-cli-dev/agents/openai.yaml +4 -0
  456. package/dist/assets/marketplace/plugins/ccl-skills/skills/terminal-cli-dev/references/input-state-machines.md +36 -0
  457. package/dist/assets/marketplace/plugins/ccl-skills/skills/terminal-cli-dev/references/streaming-rich-output.md +130 -0
  458. package/dist/assets/marketplace/plugins/ccl-skills/skills/terminal-cli-dev/references/terminal-side-channels.md +96 -0
  459. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/SKILL.md +408 -0
  460. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/agents/openai.yaml +4 -0
  461. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/AGENTS.md +18 -0
  462. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/bitable-setup.md +573 -0
  463. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/ci_templates/README.md +120 -0
  464. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/ci_templates/github-actions.yml +119 -0
  465. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/ci_templates/gitlab-ci.yml +76 -0
  466. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/ci_templates/jenkins.Jenkinsfile +106 -0
  467. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/classical-test-design-techniques.md +279 -0
  468. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/gen_report.py +2807 -0
  469. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/makefile-template.md +200 -0
  470. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/report-config-schema.md +272 -0
  471. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/run_pytestless.py +475 -0
  472. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/source-to-case-workflows.md +258 -0
  473. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc-marker-conventions.md +316 -0
  474. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc-review-and-prioritization.md +145 -0
  475. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc_helpers/AGENTS.md +16 -0
  476. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc_helpers/tc.dart +129 -0
  477. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc_helpers/tc.go +197 -0
  478. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc_helpers/tc.py +135 -0
  479. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/tc_helpers/tc.ts +285 -0
  480. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/test_gen_report.py +2144 -0
  481. package/dist/assets/marketplace/plugins/ccl-skills/skills/test-artifact-management/references/update-lifecycle.md +62 -0
  482. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/SKILL.md +212 -0
  483. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/agents/openai.yaml +4 -0
  484. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/ci-fixtures-and-flake-control.md +75 -0
  485. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/client-runtime-test-matrices.md +50 -0
  486. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/data-and-workflow-testing.md +34 -0
  487. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/design-closed-contract-oracles.md +31 -0
  488. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/e2e-real-flow-testing.md +71 -0
  489. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/fitness-functions.md +240 -0
  490. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/integration-contract-testing.md +235 -0
  491. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/non-functional-specialized-scenarios.md +296 -0
  492. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/rd-testing-standard-template.md +126 -0
  493. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/run-killing-mutation-walk.md +43 -0
  494. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/scenario-testing.md +136 -0
  495. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/source-evidence-map.md +59 -0
  496. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/structured-tc-input-translation.md +67 -0
  497. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/test-code-authoring-patterns.md +392 -0
  498. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/test-data-and-determinism.md +39 -0
  499. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/test-topology-and-commands.md +92 -0
  500. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/unit-testing.md +46 -0
  501. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/vendored-contract-drift-checklist.md +64 -0
  502. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/references/verify-enforcement-mechanisms.md +18 -0
  503. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/AGENTS.md +17 -0
  504. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/client-terminal-ansi-check.py +140 -0
  505. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/client-terminal-ansi-check.test.sh +75 -0
  506. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/lang-basics-ast-check.py +170 -0
  507. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/lang-basics-ast-check.test.sh +87 -0
  508. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/lang-basics-go-check.go +198 -0
  509. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/lang-basics-go-check.test.sh +109 -0
  510. package/dist/assets/marketplace/plugins/ccl-skills/skills/testing-strategy/scripts/test_mutation_backup_recipe.sh +237 -0
  511. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/SKILL.md +184 -0
  512. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/agents/openai.yaml +4 -0
  513. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/references/comment-safe-feishu.md +93 -0
  514. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/references/cross-model-co-review.md +3 -0
  515. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/references/delivery-face-closeout.md +60 -0
  516. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/references/doc-charter-first.md +17 -0
  517. package/dist/assets/marketplace/plugins/ccl-skills/skills/tighten-doc/references/session-vantage-leakage.md +58 -0
  518. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/SKILL.md +126 -0
  519. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/agents/openai.yaml +4 -0
  520. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/complex-workspace-patterns.md +47 -0
  521. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/embedded-h5-in-host.md +87 -0
  522. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/react-architecture.md +194 -0
  523. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/source-evidence-map.md +60 -0
  524. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/web-quality-release.md +190 -0
  525. package/dist/assets/marketplace/plugins/ccl-skills/skills/web-react-dev/references/web-ui-quality.md +83 -0
  526. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/SKILL.md +179 -0
  527. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/agents/openai.yaml +4 -0
  528. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/references/shared-branch-rebase.md +25 -0
  529. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/scripts/AGENTS.md +23 -0
  530. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/scripts/test_worktree_status.sh +207 -0
  531. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/scripts/test_worktree_sweep.sh +481 -0
  532. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/scripts/worktree-status.sh +325 -0
  533. package/dist/assets/marketplace/plugins/ccl-skills/skills/worktree-isolation/scripts/worktree-sweep.sh +245 -0
  534. package/dist/assets/release.json +2797 -0
  535. package/dist/claude-adapter.d.ts +9 -0
  536. package/dist/claude-adapter.js +240 -0
  537. package/dist/cli-worker.d.ts +1 -0
  538. package/dist/cli-worker.js +32 -0
  539. package/dist/cli.d.ts +22 -0
  540. package/dist/cli.js +214 -0
  541. package/dist/codex-host.d.ts +30 -0
  542. package/dist/codex-host.js +162 -0
  543. package/dist/fs-safe.d.ts +21 -0
  544. package/dist/fs-safe.js +241 -0
  545. package/dist/index.d.ts +2 -0
  546. package/dist/index.js +1 -0
  547. package/dist/manifest.d.ts +8 -0
  548. package/dist/manifest.js +135 -0
  549. package/dist/opencode-adapter.d.ts +10 -0
  550. package/dist/opencode-adapter.js +416 -0
  551. package/dist/operations.d.ts +3 -0
  552. package/dist/operations.js +956 -0
  553. package/dist/paths.d.ts +20 -0
  554. package/dist/paths.js +4 -0
  555. package/dist/types.d.ts +58 -0
  556. package/dist/types.js +1 -0
  557. package/dist/unified.d.ts +4 -0
  558. package/dist/unified.js +64 -0
  559. package/dist/version.d.ts +2 -0
  560. package/dist/version.js +5 -0
  561. package/package.json +35 -0
@@ -0,0 +1,76 @@
1
+ # HTTP Gateway And Client Patterns
2
+
3
+ Use this when implementing HTTP handlers, generated routes, middleware, API docs, or generated HTTP clients.
4
+
5
+ ## Generated Route Files
6
+
7
+ - Keep generated route registration files marked as generated and do not hand-edit them.
8
+ - Use generator-supported insertion points or separate custom registration functions for custom routes.
9
+ - Regenerate routes after IDL path, method, handler path, or middleware annotations change.
10
+ - If generator output contains placeholder handler bodies, replace behavior in preserved handler files or application services, not in overwritten files.
11
+ - Route tests should assert method, path, middleware presence, and auth bypass behavior for changed endpoints.
12
+
13
+ ## Handler Implementation
14
+
15
+ - Bind and validate request structs at the transport boundary.
16
+ - Authenticate and resolve authorization context before domain-side effects.
17
+ - Convert path/query/header/body fields into a command/query object instead of passing raw HTTP context into application logic.
18
+ - Return responses through one response builder or canonical envelope.
19
+ - Map validation failures, auth failures, dependency failures, and domain failures through the canonical error mapping.
20
+ - Keep generated documentation comments synchronized with the source contract; do not maintain duplicate route tables by hand.
21
+
22
+ ## Middleware Hooks
23
+
24
+ - Middleware factory functions should return stable ordered lists and be easy to test.
25
+ - Keep no-op middleware hooks explicit when the generator requires them.
26
+ - Do not capture per-request mutable state in package-level middleware variables.
27
+ - Middleware should add typed context values for trace/log id, auth subject, authorization scope, lane/environment, and request deadline when needed.
28
+ - Recovery middleware should convert panics into canonical errors and preserve trace/log id in logs.
29
+
30
+ ## Generated HTTP Client
31
+
32
+ - Build requests through a typed builder that supports context, path params, query params, headers, body, form fields, files, and request options.
33
+ - Escape path parameters and encode repeated query parameters predictably.
34
+ - Detect or set content type before serializing body payloads.
35
+ - Do not send body payloads for HTTP methods where the client or gateway does not support them.
36
+ - Handle gzip or other negotiated compression before unmarshalling.
37
+ - Decode successful response bodies into typed responses and error bodies into typed errors when the server provides them.
38
+ - Let callers override the response-success policy when HTTP status alone is not enough.
39
+ - Return raw response metadata where callers need status, headers, or request diagnostics.
40
+
41
+ ## IDL-First Hertz Layout
42
+
43
+ When the HTTP gateway uses an IDL-driven generator (Hertz `hz`, gateway-style tools, etc.), the resulting layout has three intentional tiers:
44
+
45
+ - `<hertz_gen>/router/<domain>/`: generator output binding IDL methods to URL paths and HTTP verbs. Treat as generated code; do not hand-edit. Regenerate when IDL changes.
46
+ - `api_methods/`: thin handwritten stub per IDL method. Its job is exactly three things: declare the typed request struct, call `c.BindAndValidate(&req)`, then dispatch to the business handler. Stubs may be initially generated and then frozen with a "do not edit" header; subsequent edits go through the generator only when the IDL changes.
47
+ - `handler/<domain>/`: the actual business logic — application service calls, cross-RPC calls, response mapping. Domain code never appears in `api_methods/` and validation logic never appears in `handler/`.
48
+
49
+ This separation makes IDL evolution cheap (regenerate `router/`, untouched `api_methods/`, business handler unchanged) and keeps each tier reviewable in isolation.
50
+
51
+ ## Double-Layer Middleware Composition
52
+
53
+ - Framework-default middleware (recovery, ctx injection, metrics, tenant info, tracing) is registered inside the server-construction wrapper. Business-level middleware (CORS, auth/login, logging, custom ctx) is appended in the service's `main()`.
54
+ - Document both layers and the resulting order so reviewers can see which step happens before which. A typical merged order: `CtxInject → Recovery → Metrics → TenantInfo` (framework) then `CORS → UserAuth → Login → RequestLog → CustomCtx` (business).
55
+ - Do not let two middleware do the same job in different layers (e.g., two recovery wrappers, two metrics counters) — duplicate metrics inflate counters and double-handling of panic obscures the stack trace.
56
+ - Recovery middleware must sanitize the response: return a stable error code (`coderr.ServerPanic` or equivalent) and a generic message; never put the panic value, stack trace, or internal error chain in the response body. The stack trace belongs in the log and the trace, not in the JSON.
57
+ - Route-level middleware stubs that exist but have empty bodies are dead code; either implement them or delete them. Empty stubs invite future engineers to assume coverage that does not exist.
58
+ - The same risk applies to **scaffold-generated VALIDATION GATES that ship with placeholder content** — distinct from generator-required no-op middleware hooks and extension hooks, which are explicitly allowed empty per the rules above (`http-gateway-architecture.md` Route And Middleware Design "generated middleware hooks should default to no-op", and the "Keep no-op middleware hooks explicit when the generator requires them" rule in the Middleware Hooks section above). A validation gate is identified by **scaffold naming convention** (`check<HandlerName>`, `validate<X>`, `precondition<X>`) — i.e. functions whose name the scaffold uses to signal "this is a validation gate". Defining the gate by call-site position is not enforceable because the lint cannot reliably read intent; the naming convention is the contract between scaffold and reviewer. The scaffold template MUST use the conventional gate name when emitting a validation-gate function — emitting a gate under a non-conventional name (e.g. a generic `hook<X>` that downstream code treats as validation) is itself the bug; fix the scaffold template, not the lint. A gate function body of `// your codes...\nreturn nil` (or any equivalent placeholder comment + bare success return) is a "validation passed" claim that the validation in fact never ran. Required: the build/CI lint fails on a gate-named function whose body lacks an error-returning path. The AST check is "the function has at least one statement that can return a non-nil error (`return ...err...`, `return errdef.X`, `return fmt.Errorf(...)`)" — adding logging, metrics, or a dummy expression without an error path does NOT satisfy the lint. Detection by grep on the placeholder comment is a minimal floor; the AST/error-path check is the real defense.
59
+
60
+ ## API Documentation Generation
61
+
62
+ - Use the framework's IDL-driven doc generator (Hertz `hz` doc, swag/swaggo, protoc-gen-doc) and expose the docs endpoint only in non-production environments or behind explicit auth.
63
+ - Doc generation should run from the same Makefile target as code generation so docs and binding rules never drift.
64
+
65
+ ## Tests
66
+
67
+ - Test binding for path, query, header, body, form, repeated fields, and enum values when used.
68
+ - Test invalid input, missing auth context, canonical error mapping, empty responses, compressed responses, and non-JSON error bodies.
69
+ - Test generated clients with a fake Doer/client instead of live network by default.
70
+ - Keep generated-code snapshots or clean-generation checks only where generator churn is controlled.
71
+ - For IDL-first layouts, include a smoke test that proves a fresh regeneration of `router/` plus untouched `api_methods/` and `handler/` still compiles and routes correctly. This catches the case where the generator changes its emitted shape.
72
+ - For recovery middleware, assert that a panic produces a stable error code and a sanitized message, and that the stack trace appears only in the log capture, not in the response body.
73
+
74
+ ## stdlib net/http As Option
75
+
76
+ - **Go 1.22+ `net/http.ServeMux` got enhanced routing** — pattern syntax now supports method matching (`"GET /users/{id}"`), path wildcards (`{id}`, `{path...}` trailing wildcard), and host matching. Per the net/http docs, route precedence is based on specificity (most-specific pattern wins), and `r.PathValue("id")` reads the matched wildcard. Use stdlib `http.ServeMux` when (a) the service is a small internal tool / admin endpoint / health-probe shim where pulling Hertz/Kitex is over-engineering, (b) the binary needs to be importable as a library and avoid the framework's transitive dependency, (c) the team is writing a sidecar / sidecar-helper / migration utility. For the team's main product services, Hertz remains the default (richer middleware, observability adapters, codegen integration); stdlib ServeMux is an intentional alternative for narrow scope, not a Hertz replacement. **Do NOT mix stdlib `ServeMux` mid-service inside a Hertz application for "just one admin endpoint"**: the stdlib handler runs outside Hertz's middleware chain, so observability (request log, metrics, tracing), auth, rate limiting, panic recovery, and ctx propagation that Hertz attaches to other routes will silently bypass the stdlib-handled endpoint. Either route the admin endpoint through Hertz with its own middleware subset, or use Hertz's v0.10+ `http.Handler` adapter to wrap the stdlib handler so Hertz middleware still applies — never let two HTTP routers serve the same binary's port without an explicit boundary review.
@@ -0,0 +1,55 @@
1
+ # MQ Consumer Patterns
2
+
3
+ Use this when implementing MQ consumers, producers, event handlers, delayed tasks, or async side effects.
4
+
5
+ ## Constructor And Startup
6
+
7
+ - Create one small consumer struct per topic/group responsibility; inject service logic, repositories, and dependency clients.
8
+ - Load topic, consumer group, credentials, worker count, retry count, filters, and activation gates from typed config.
9
+ - If the queue supports vendor-specific features, such as message tags, server-side selectors, table-change filters, ordered or broadcast delivery, delayed delivery, lane metadata, or log/trace properties, model them as typed config or producer/consumer wrapper behavior rather than inline literals.
10
+ - Producers should inject trace/log and lane/environment metadata into outgoing messages when the platform supports it; consumers should restore that context before calling application logic.
11
+ - Build all consumers through DI and expose an aggregate starter only at the application boundary.
12
+ - Startup should return errors to the main runtime; fail fast for required consumers and skip cleanly for disabled optional consumers.
13
+ - Do not create consumers with nil handlers or missing group config.
14
+ - If a durable outbox relay is needed, implement it as an infrastructure/platform worker with typed config, lifecycle ownership, readiness/metrics, and a repository/publisher boundary. Do not duplicate outbox scan, retry, publish, and status-transition loops in each business feature.
15
+
16
+ ## Handler Flow
17
+
18
+ - Handler shape should be: create/receive context, decode typed payload, validate, pre-handle/drop, call application logic, map result to ack/retry.
19
+ - Do not let raw message bodies leak past the consumer boundary.
20
+ - Treat malformed payloads as permanent failures: log safe context, alert if needed, and acknowledge or dead-letter according to policy.
21
+ - Return retryable errors for transient dependency failures.
22
+ - Return success for irrelevant or intentionally skipped events after logging the reason.
23
+ - Add idempotency around every side effect that can be repeated by duplicate delivery.
24
+ - If ordering is configured, keep worker count or partitioning consistent with the ordering key; if ordering is not configured, re-read current state before every side effect that depends on sequence.
25
+ - Handler return values must intentionally map to queue ack/retry/drop behavior. Do not let an incidental error type decide whether the message is retried.
26
+
27
+ ## Durable Outbox Relay
28
+
29
+ - Store the event before or in the same transaction as the state change that requires publication.
30
+ - Relay workers should claim rows with a bounded batch size, lease timeout, retry threshold, next-attempt timestamp, poll interval, and optional jitter; all knobs belong in typed config.
31
+ - Lock ownership must be unique across container replicas and process restarts. Prefer service plus pod or host identity plus process id or random instance id; service plus pid alone is not enough in containerized runtimes.
32
+ - Do not assume a relay preserves emit order once retries, batching, or multiple replicas are involved. Consumers must tolerate reordering, or the relay must enforce ordering by an explicit partition or ordering key.
33
+ - Publish success should transition the outbox row to a terminal published state. Publish failure should persist a safe truncated error, increment attempts, apply bounded backoff, and move to a terminal failed state after the threshold.
34
+ - Expired processing leases should be repaired by a bounded release step before claiming new work.
35
+ - Relay publish payloads should preserve the same envelope shape as synchronous publishers so consumers do not need separate handling paths.
36
+ - Tests should cover claim ordering, duplicate or missing ownership, success transition, retry transition, terminal failure threshold, expired lease repair, and publisher payload shape.
37
+
38
+ ## Dynamic Activation
39
+
40
+ - Check environment/lane or feature-gate activation before starting the consumer, not inside every message unless the policy must change live.
41
+ - If live activation changes are required, keep the active snapshot atomic and define what happens to in-flight messages.
42
+ - Log skipped startup with consumer group, topic, current environment/lane, and selected config version.
43
+
44
+ ## Latency And Alerting
45
+
46
+ - Measure each message handler duration.
47
+ - Emit metrics for received, decoded, dropped, succeeded, retried, failed, and slow messages.
48
+ - Slow-message alerts should include event type, event id or safe resource id, consumer group, topic, and trace/log id.
49
+ - Redact or truncate payloads in alerts; never send raw secret-bearing bodies.
50
+
51
+ ## Tests
52
+
53
+ - Unit-test decode failure, validation failure, skip/drop, retryable dependency error, idempotent duplicate, slow handler alert, and disabled startup.
54
+ - Use fake queue clients and fake service logic by default.
55
+ - Integration tests with real queue infrastructure should be opt-in and isolated from the fast test target.
@@ -0,0 +1,42 @@
1
+ # Notification Patterns
2
+
3
+ Use this when implementing notification clients, webhooks, operator alerts, callbacks, or delivery jobs.
4
+
5
+ For durable delivery state, retries, and terminal-state behavior, also apply `state-machine-task-patterns.md`.
6
+
7
+ ## Client
8
+
9
+ - Wrap each delivery provider behind an interface with `Send(ctx, message) error`.
10
+ - Build requests with context deadlines, content type, status-code validation, and response body size limits.
11
+ - Treat empty message batches as no-op.
12
+ - Do not use package-level mutable clients unless construction is deterministic and test substitution is available.
13
+ - Parse provider responses into canonical success, retryable error, and permanent error.
14
+
15
+ ## Message Shape
16
+
17
+ - Include notification type, recipient or endpoint reference, template id/version, actor or service identity, trace/log id, safe summary, and dedupe key.
18
+ - Render templates through typed variables, not string concatenation of raw objects.
19
+ - Redact secrets, credentials, tokens, signatures, and large payloads.
20
+ - Add environment and service metadata from a safe allowlist.
21
+
22
+ ## Async Delivery
23
+
24
+ - Critical delivery should use an outbox table or durable queue with retry count, next retry time, terminal status, and last error.
25
+ - Best-effort alerts may run asynchronously, but must recover panic and emit logs or metrics on failure.
26
+ - Use bounded concurrency and backoff.
27
+ - Group or throttle repeated alerts by stable fingerprint.
28
+ - Flush or drain delivery workers during graceful shutdown when messages are critical.
29
+
30
+ ## Realtime Client Channels
31
+
32
+ - For WebSocket or similar realtime notification channels, authenticate and resolve app, tenant, and user context before upgrading the connection.
33
+ - Keep connection identity in a concurrency-safe registry keyed by the smallest delivery scope, and remove the client in `defer` on disconnect.
34
+ - Rebuild initial client state from the durable store when a user connects for the first time or when cache state is absent.
35
+ - Maintain cached unread/count state with explicit TTL refresh and atomic increment semantics; do not let a missing realtime cache create a durable-count side effect.
36
+ - Queue consumers should treat disconnected clients as a no-op delivery outcome after durable storage succeeds.
37
+ - Send a snapshot after connect, then send deltas or latest-message payloads; both payload shapes should be versioned or typed enough for clients to distinguish.
38
+
39
+ ## Tests
40
+
41
+ - Test empty batch, timeout, non-2xx response, malformed response, retryable vs permanent errors, redaction, template rendering, dedupe key, throttling, and shutdown drain.
42
+ - Test realtime connect, duplicate connection, disconnect cleanup, cache-miss bootstrap, unread increment, disconnected delivery no-op, malformed payload, and websocket write failure.
@@ -0,0 +1,101 @@
1
+ # Observability Implementation Patterns
2
+
3
+ Use this when implementing middleware, context propagation, service discovery clients, logs, metrics, tracing, or runtime introspection in a Go microservice.
4
+
5
+ ## Context Injection
6
+
7
+ - At the inbound edge, create or accept a trace/log id and put it into context once.
8
+ - Put environment/lane, service name, caller identity, auth subject, and authorization/resource scope into typed context helpers instead of passing ad hoc maps.
9
+ - Keep workload/service identity separate from end-user subject and client application identity.
10
+ - Return trace/log id in HTTP headers or response metadata when the protocol supports it.
11
+ - For RPC clients, write trace/log id and lane into outgoing metadata.
12
+ - For RPC servers, read trace/log id and lane from metadata, then normalize into context for application code.
13
+ - For async producers, copy trace/log id and lane into message headers or payload metadata.
14
+ - For async consumers, restore metadata into context and create a new log id only when none exists.
15
+
16
+ ## Request Logging Middleware
17
+
18
+ - Log request start and finish in one middleware.
19
+ - Include method, route or method name, caller, service, lane, app/client id when safe, trace/log id, status, canonical error code, and latency.
20
+ - Request and response bodies must be opt-in by config/environment and size-limited.
21
+ - Redact tokens, cookies, signatures, passwords, secrets, and raw authorization headers.
22
+ - Do not log request bodies for upload, streaming, large batch, or sensitive callback endpoints by default.
23
+ - Recovery middleware should log panic stack with trace/log id and return a canonical internal/panic error.
24
+
25
+ ## Metrics Middleware
26
+
27
+ - Record request count at entry and latency at exit.
28
+ - Record success and error counts after response/error mapping.
29
+ - Add canonical error code as a label for failures.
30
+ - Use histograms for latency and gauges for current queue lag, active workers, and in-flight requests.
31
+ - Heartbeat/progress metrics are useful for long-running requests and jobs, but should have a configurable interval to avoid excessive metric volume.
32
+ - Build metrics clients with bounded async buffers. Dropped metrics should not block request handling.
33
+
34
+ ## Tracing Implementation
35
+
36
+ - Initialize the tracer provider once during server startup and close it during graceful shutdown.
37
+ - Add resource attributes for service name, environment/lane, pod/host id, and process metadata.
38
+ - Use server-side tracing middleware for inbound HTTP/RPC and client-side tracing middleware for outbound calls.
39
+ - Record dependency operation names as spans: DB query, Redis command, RPC method, HTTP endpoint, MQ publish/consume, and scheduled job.
40
+ - Add span events for important state transitions, not every log line.
41
+ - Set span status and record errors at the boundary where errors are classified.
42
+
43
+ ## Service Discovery Clients
44
+
45
+ - Construct internal clients with a resolver/discovery abstraction.
46
+ - Register server instances with service name, address, weight, and low-cardinality tags.
47
+ - Attach workload identity, mTLS config, or signed service-token credentials according to the chosen internal trust model.
48
+ - For local development, support an explicit proxy or local resolver path rather than changing production resolution behavior.
49
+ - Implement same-lane lookup before baseline fallback when the product uses lane-based routing.
50
+ - Fail fast when no healthy instance remains; do not silently call a random host.
51
+ - Client timeout, retry, circuit breaker, and error handling should be set alongside the resolver.
52
+
53
+ ## Runtime Endpoints
54
+
55
+ - Add `/_health` or equivalent for liveness.
56
+ - Add readiness if serving correctly depends on external dependencies.
57
+ - Add a ping/introspection endpoint only when useful; include service, lane/environment, instance, caller address, and status.
58
+ - Register debug/profiling endpoints only on internal listeners or behind environment/auth gates.
59
+ - Generated docs endpoints should be disabled or protected in production unless intentionally public.
60
+
61
+ ## Sidecar Health And Registration
62
+
63
+ - If a sidecar owns service registration, validate service name, port, pod or host IP, and lane/environment before registering; fail fast when identity is missing.
64
+ - Register only after the main workload is expected to serve traffic, and deregister during graceful shutdown.
65
+ - Bound registration retries and log every failed attempt with service identity, endpoint, and retry count.
66
+ - Local health probes should use short timeouts, a failure threshold, and a fixed interval; after threshold failure, emit metrics and capture safe recent logs when available.
67
+ - Sidecar stop paths need a bounded timeout, idempotent start/stop state, and tests for duplicate start, stop-before-start, registration failure, health failure, and deregistration failure.
68
+
69
+ ## Shutdown And Closers
70
+
71
+ - Server constructors should return both the server and a cleanup function or closer list.
72
+ - Graceful shutdown should close tracing/metrics providers, log writers, MQ consumers/producers, DB pools, Redis clients, and background workers.
73
+ - Cleanup should flush logs and metrics after stopping traffic.
74
+ - Use panic-safe cleanup around server exit paths.
75
+
76
+ ## Verification
77
+
78
+ - Test middleware with fake requests and assert context values, response headers, logging controls, and error mapping.
79
+ - Test RPC metadata propagation on client and server sides when the transport supports it.
80
+ - Test metrics label sets for cardinality regressions.
81
+ - Test discovery fallback behavior: same lane, baseline fallback, no healthy instance, and local development mode.
82
+ - Test debug endpoint exposure rules by environment/auth state.
83
+
84
+ ## Metric Naming And Standard Label Set
85
+
86
+ Metric naming is a service-wide contract — once a name pattern is wrong it is expensive to migrate downstream dashboards and alerts.
87
+
88
+ - Use snake_case with a `{category}_{operation}_{suffix}` shape: category names the surface (`kitex_server`, `kitex_client`, `hertz_server`, `mq_consumer`, `db_dal`), operation names what is happening (`method`, `invoke`, `request`), suffix names what the metric measures (`qps`, `latency`, `err_qps`, `success_rate`).
89
+ - Define metric names in a single central file (e.g., `metrics_name.go`) per service or platform package; do not let metric names appear as inline string literals throughout the code.
90
+ - Standardize a base label set for every RPC metric so dashboards can join across services without renaming: `caller`, `caller_cluster`, `caller_env`, `caller_method`, `callee`, `callee_cluster`, `callee_env`, `method`, `err_code`. Add domain-specific labels sparingly — every new label multiplies cardinality.
91
+ - Refuse to attach user-id, tenant-id, request-id, or any high-cardinality identifier as a metric label. These belong in traces and logs.
92
+ - For latency, decide histogram boundaries (or summary quantiles) at the platform layer and reuse across services; ad-hoc per-service buckets defeat cross-service comparison.
93
+
94
+ ## Logger Adapter Surface And Trace Linkage
95
+
96
+ - Pick one structured logger and wrap it with per-framework adapters: Kitex `klog.FullLogger`, Hertz logger, GORM logger, MQ/RocketMQ logger. The adapter is responsible for matching the framework's interface while emitting the same JSON shape and the same field names.
97
+ - **`log/slog` (Go stdlib, stable since Go 1.21) is the current default-recommendation for a new service's primary structured logger** — same `Logger` / `Handler` shape as zap/zerolog, JSON or text handlers built-in, attribute groups, context-aware logging via `slog.Logger.With(...)`, replaceable via `slog.SetDefault()`. Zap remains a valid choice when (a) the team already has zap-based adapters across Kitex/Hertz/GORM and the migration cost is not justified, (b) zap's lower-allocation hot-path matters on a profiled workload (slog has slightly higher allocation in its general case). Zerolog stays the niche choice for "minimal-allocation at all costs" production logging. For new greenfield services on Go 1.21+, prefer slog and wrap it for the framework adapters; for existing zap-based services, schedule the migration only when adapter rewrites are justified — do not mix slog and zap in the same service (two structured-log JSON shapes will fork log parsers and break correlation). **Framework-adapter migration is the load-bearing risk, not the application call sites**: Kitex `klog.FullLogger`, Hertz logger, GORM logger, MQ adapters historically wrap zap and emit zap's JSON field shape (e.g. zap uses `ts`/`level`/`msg`/`caller`; slog defaults differ). If the application code switches to slog while framework adapters still write zap-shape JSON, the service emits two structured-log schemas and downstream log parsers, alerts, SLO queries, and correlation joins fork silently. **Treat the schema-drift risk as P1 when logs feed alerts or SLOs**; the migration plan must include rewriting each framework adapter to a slog-backed implementation in the same slice as the application switch (or using `slog.NewLogLogger` shim + a custom Handler that normalizes field names), with a post-migration log-parser validation step that confirms every framework's output still matches the platform's expected schema.
98
+ - The application-facing logger must accept `ctx` and read trace identity from it. Emit `_trace_id`, `_span_id`, `_trace_flags`, and `_logid` (or the project's equivalent four fields) automatically; do not require callers to pass them as args.
99
+ - When the OTel SDK is present, the logger should also call `span.AddEvent(message, attributes)` on the active span so logs and traces correlate in the backend without manual join. Set the span status from the log level only at logical error boundaries — do not let every warn-log flip the span to error.
100
+ - Use the framework's built-in OTel instrumentation where available: Kitex server suite, Hertz tracing middleware, GORM tracing plugin. Configure the OTel provider with stable resource attributes (`service.name`, `service.namespace`, `service.version`, `lane`, `pod.ip`, `pod.name`) once at process start.
101
+ - For long-running coroutines, SSE/websocket handlers, and consumer loops, end the per-message span instead of letting one giant span span the whole connection.
@@ -0,0 +1,44 @@
1
+ # Performance And Capacity Patterns
2
+
3
+ Use this when implementing Go backend capacity controls, batch jobs, replay/shadow workers, or DB performance guards.
4
+
5
+ ## Bounded Concurrency
6
+
7
+ - Use semaphores, worker pools, or queue consumers to cap concurrent external calls and heavy CPU work.
8
+ - Derive default concurrency from config, not only CPU count; CPU-based defaults are a fallback.
9
+ - Always release semaphore slots with `defer` or structured scope; structure each successful acquire to have exactly one release, and guard the release (e.g. `sync.Once`) only where it can genuinely race or double-fire — test the double-release path rather than letting a wrapper silently absorb the bug. For a request-admission limiter without a designed bounded queue, prefer a non-blocking acquire that rejects fast under overload and pre-checks `ctx.Done()` before admitting; where a bounded queue is intended, use `Acquire(ctx)` with a defined max wait and cancellation instead.
10
+ - Pass `context.Context` through every bounded task and stop dispatching when the context is canceled.
11
+
12
+ ## Batch Jobs
13
+
14
+ Implement batch jobs with:
15
+
16
+ - CLI/config options for `batch_size`, `concurrency`, `limit`, `dry_run`, timeout, and report output;
17
+ - cursor or checkpoint rather than unbounded scans;
18
+ - per-row outcome with success/failure/skipped status;
19
+ - bounded error samples;
20
+ - final report containing processed count, success count, failure count, duration, and next resume point.
21
+
22
+ Do not let batch jobs rely on invisible process logs only.
23
+
24
+ ## Replay And Shadow Workers
25
+
26
+ - Persist replay task status: pending, running, completed, failed, canceled.
27
+ - Store total, processed, success, failed, start/end timestamps, and metadata.
28
+ - Use a task registry or lock to prevent duplicate in-process execution.
29
+ - Scheduled replay needs a distributed lock and explicit timeout.
30
+ - Compare candidate and baseline responses with predeclared thresholds and retain diffs for review.
31
+
32
+ ## Database Guards
33
+
34
+ - Configure DB max open/idle connections and connection lifetime according to service concurrency.
35
+ - Add focused tests or non-production hooks that catch missing indexes for known large queries.
36
+ - Prefer generated or typed DAL methods with explicit filters, pagination, and ordering.
37
+ - Avoid production-only query surprises by checking explain plans during development and staging.
38
+
39
+ ## Timeout And Repair
40
+
41
+ - Every async task should have a timeout threshold per state.
42
+ - Stuck tasks should transition to retryable state until retry budget is exhausted, then terminal failure.
43
+ - Repair jobs should log both the stuck duration and retry count.
44
+ - Retried jobs must be idempotent or guarded by a domain idempotency key.
@@ -0,0 +1,72 @@
1
+ # Protobuf Contract Patterns
2
+
3
+ Use this when editing `.proto`, generated stubs, Kitex/Hertz/gRPC generation, or handlers bound to generated contracts.
4
+
5
+ ## Edit Workflow
6
+
7
+ - Edit source `.proto` first, then regenerate outputs.
8
+ - Locate include root, target IDL file, generated output root, package mapping, and generator command before changing code.
9
+ - Commit source proto and generated output together.
10
+ - Do not hand-edit generated `.pb.go`, gateway, or service stub files.
11
+ - Prefer `new` only for initial scaffolding and `update` for existing services.
12
+ - Keep generator commands repo-relative or configurable through environment variables and Makefile variables.
13
+ - Avoid post-generation `mv` or `sed` import rewriting; prefer generator options for package and output mapping. If rewriting is unavoidable, isolate it in a documented script and verify imports.
14
+
15
+ ## Field Rules
16
+
17
+ - Choose field numbers deliberately; leave gaps for future groups.
18
+ - Never reuse field numbers; add `reserved` for removed numbers and names.
19
+ - Adding an optional field is compatible only when "field absent" remains an accepted state forever; the moment a service starts to reject requests with the field absent, it is a breaking change for older clients regardless of what the IDL says. New required semantics need a versioned method/message OR a staged compatibility gate (server accepts both for a deprecation window, clients upgrade, then server enforces).
20
+ - Use explicit units in field names or comments for timestamps, durations, and sizes.
21
+ - Use `int64` for IDs and timestamps when range matters; document JSON/string behavior for HTTP clients if needed.
22
+ - Use `optional` only when presence matters; otherwise rely on proto3 defaults and validation.
23
+ - Add comments for non-obvious validation: max size, required-by-application, ordering, uniqueness, units, and lifecycle.
24
+
25
+ ## Request/Response Patterns
26
+
27
+ - Use `MethodRequest` and `MethodResponse` names or one consistent local convention.
28
+ - Response should include canonical error/envelope fields or embed a shared response once; do not mix multiple envelope styles in one service.
29
+ - Follow the repo's current envelope convention; for new services, define the envelope field name and number intentionally instead of copying a legacy framework convention.
30
+ - Data payload should be in typed fields, not JSON strings, unless the API intentionally carries opaque data.
31
+ - Batch requests need max item count, idempotency behavior, partial-failure semantics, and per-item result shape.
32
+ - List responses need items, pagination cursor/total policy, and stable sort definition.
33
+
34
+ ## Enum Patterns
35
+
36
+ - First value is unknown/unspecified zero.
37
+ - Prefix enum values with enum name or stable short prefix.
38
+ - Do not rename generated enum values after clients import them.
39
+ - Treat unknown enum values as validation errors at write boundaries and as safe fallback at read boundaries.
40
+ - Avoid generic values like `Pending` or `Finished` in shared packages because generated Go names can collide.
41
+
42
+ ## Service And HTTP Mapping
43
+
44
+ - Keep service methods cohesive; split large services by capability or stability boundary.
45
+ - Put HTTP annotations near methods and field binding annotations near fields.
46
+ - Path/query/body/header bindings should be explicit and tested.
47
+ - Empty request/response messages are acceptable when the method truly has no payload, but keep them named for future evolution.
48
+ - Streaming methods require explicit message size, cancellation, backpressure, and retry semantics.
49
+
50
+ ## Generation And Tests
51
+
52
+ - Keep Kitex, Hertz, gRPC, protoc, and DI generation commands in Makefile targets or scripts.
53
+ - Use `protoc --go_opt=paths=source_relative` or an equivalent explicit mapping when generated file layout should mirror source layout.
54
+ - Run formatting and compile checks after generation.
55
+ - Add contract tests for default values, optional presence, unknown enum handling, field binding, error envelope, pagination, and backward compatibility.
56
+ - Add generated-code clean checks in CI when proto inputs change.
57
+ - If generator version changes, review generated diff separately from contract changes.
58
+
59
+ ## IDL Repo Organization
60
+
61
+ - For multi-service portfolios, prefer one or more dedicated IDL repos (proto, thrift, http-thrift each may be its own repo) over inlining IDL into business repos. Each IDL repo carries its own CI to run codegen, format, and pre-commit checks; business repos consume the published generated artifacts.
62
+ - When the IDL repo is independent, the standard CI shape is a single docker image (e.g., `idlgen:v1.0.0`) plus a branch-aware `docker run` that rebuilds generated outputs and either commits them back or publishes a module. Tag the image; do not float `:latest` for production codegen.
63
+ - Inside one IDL repo, organize sources by three intentional tiers: `base` for shared structs and the canonical error/code enum, `api` for gateway-facing contracts that cross the trust boundary, and `<domain>` (one bounded context per directory, e.g. `<product-line>`, `<platform-layer>`) for internal RPC by business domain. Use the same tiering in the generated output tree.
64
+ - Reserve an explicit numeric range for the shared `Code` enum (for example `[0, 11999]`) and document per-tier sub-ranges so downstream services can allocate biz codes without colliding with platform codes.
65
+ - Pre-commit hooks in IDL repos at minimum: protoc / thrift compile, formatter (clang-format for proto, thriftfmt for thrift). Add a breaking-change check (`buf breaking`, `kitex check`, or equivalent) when the IDL is consumed by more than one team or has external clients.
66
+ - Generated output directories must be excluded from any reformatter the business repo runs; if `reformat.sh` exists, it should carry an explicit skip list (`! -path "./kitex_gen/*" ! -path "./hertz_gen/*"`).
67
+
68
+ ## Multi-Language Codegen
69
+
70
+ - When the same IDL produces clients for multiple language families (Go, Python, Java, TypeScript), drive each language's codegen from its own dedicated script (one shell script per target language) rather than a single mega-script. Each script lives next to the IDL and is the canonical command — Makefile targets and CI jobs both delegate to it.
71
+ - Cross-language codegen scripts that auto-commit and push generated artifacts should: pin tool versions (grpcio-tools, protoc-gen-go-grpc, etc.); use a known build-and-publish flow (poetry / npm publish / go module tag); skip on no-op diffs; emit a clear final status.
72
+ - Document which language is the canonical source of behavior expectations when only one language has integration tests against the IDL. Other-language clients inherit the contract but may not catch protocol-level regressions.
@@ -0,0 +1,56 @@
1
+ # Public API Integration Patterns
2
+
3
+ ## Auth Middleware
4
+
5
+ - Keep the bypass path list explicit and small.
6
+ - Extract application/user identity first, then load auth configuration, then validate signature/token, then resolve authorization/resource scope.
7
+ - Do not parse domain request bodies before authentication unless signature verification requires canonical body bytes.
8
+ - Return stable canonical auth errors; log detailed causes with safe identifiers.
9
+ - Never mutate global auth settings per request.
10
+
11
+ ## App Credential Model
12
+
13
+ - Store app id, secret/key reference, allowed source restrictions, allowed authorization/resource scopes, integration/source identity, status, and rotation metadata.
14
+ - Generate secrets with cryptographic randomness.
15
+ - Keep secret values out of logs, code, test fixtures, and generated docs.
16
+ - Support disabled apps and rotated credentials.
17
+ - If auth config is dynamic, cache briefly and fail closed for unknown app ids or malformed config.
18
+
19
+ ## Signature Verification
20
+
21
+ - Canonicalize the signed data before verification.
22
+ - Include timestamp and nonce/request id.
23
+ - Enforce a short timestamp window appropriate to the integration.
24
+ - Store nonce/request id for replay protection when the provider can retry.
25
+ - Use constant-time comparison for MAC/signature checks where applicable.
26
+ - Avoid weak hash-only signing for new integrations; prefer HMAC or asymmetric signatures.
27
+
28
+ ## Authorization And Integration Scope
29
+
30
+ - Treat request scope id as a claimed scope.
31
+ - Confirm the authenticated app/user is allowed to operate on that resource scope.
32
+ - Treat identity, ownership, actor, tenant, creator, account, and permission fields in headers, query parameters, request bodies, and downstream RPC requests as claims until resolved from authenticated context or an authoritative service.
33
+ - For write paths, use the resolved authenticated identity as the source of truth. Either overwrite client-supplied owner/creator fields or reject mismatches; never use authenticated identity only as a fallback after trusting a client field.
34
+ - When fixing an auth or permission bug, search every ingress and propagation point for the same trust class: headers, body fields, query params, path params, generated RPC requests, service defaults, and downstream repository inputs.
35
+ - Put resolved authorization scope and integration source into typed request context for downstream logic.
36
+ - Include resolved scope/source in cache keys, idempotency keys, rate limits, logs, and audit records.
37
+ - Only allow scope-check bypass for specific integrations with explicit config and audit logging.
38
+
39
+ ## Callback Handler
40
+
41
+ - Validate signature/token, timestamp, event type, resource id, and payload shape before side effects.
42
+ - Convert provider event codes into internal event enums at the boundary.
43
+ - Deduplicate by provider event id, request id, or stable resource-event-time key.
44
+ - Persist a callback receipt before expensive work when retries are expected.
45
+ - Treat empty payloads, unknown event types, and malformed signatures as permanent failures.
46
+ - Make retry behavior explicit in the response contract expected by the provider.
47
+
48
+ ## Integration Tests
49
+
50
+ - Unit-test signature canonicalization, timestamp expiry, replay handling, and authorization-scope checks.
51
+ - Add spoofing tests for identity/owner/creator fields in every accepted client input surface, and assert the downstream service receives the resolved identity or the request is rejected.
52
+ - Add fail-closed tests for auth, permission, capability, and profile-resolution errors before downstream side effects.
53
+ - Use fixtures with fake secrets, never production-like secrets.
54
+ - Add callback duplicate-delivery tests.
55
+ - Add malformed payload and unknown event tests.
56
+ - Keep provider sandbox or live-callback tests out of the default fast test target.
@@ -0,0 +1,91 @@
1
+ # Quality And Testing Patterns
2
+
3
+ Use this when adding tests, fixing brittle tests, setting CI targets, validating codegen, or building traffic replay/regression checks.
4
+
5
+ ## Test Target Split
6
+
7
+ - Keep the default test target fast, deterministic, and runnable without live DB, Redis, MQ, service discovery, cloud credentials, or network-only dependencies.
8
+ - Put infrastructure-dependent tests behind an explicit target, tag, environment variable, or separate package path.
9
+ - Mark long-running tests clearly. Do not leave unbounded sleeps, watch loops, or manual inspection tests in the default path.
10
+ - Generated output tests should compare structured objects or golden files, not rely on developers manually opening emitted files.
11
+ - If a test writes files, write under a temp directory and clean up through `t.Cleanup`.
12
+
13
+ ## Unit Tests
14
+
15
+ - Prefer table-driven tests for validation, domain rules, key builders, config parsing, route matching, retry decisions, and error mapping.
16
+ - Unit tests should assert behavior, not log output. Use `t.Fatalf` or assertions for required outcomes.
17
+ - For finite domain values, tests should use the domain constant/type names or boundary conversion helpers instead of repeating raw literals. Raw literals are acceptable only inside boundary conversion tests that prove specific external wire/storage values map to domain symbols. Those tests must be machine-findable by BOTH a file/test name containing `boundary`, `conversion`, `wire`, or `storage` AND a sentinel comment `finite-value boundary conversion tests only`; there is no unmarked "dedicated converter file" exception. The sentinel comment is invalid unless the project's lint, grep panel, or required review checklist for import isolation is active and passing for that file; for a repo without that enforcement yet, the same PR must add the checklist/check or link a tracked enforcement task before claiming the sentinel exception. Boundary conversion test files must contain no assertions on business-rule inputs or application state; shared setup/helpers are allowed only when they do not assert application state. Any mixed assertion file is non-compliant regardless of sentinel presence. A project lint, grep panel, or required review checklist MUST fail/block when sentinel boundary files import or call application service, repository, or workflow layers. Cover every known wire/storage value plus at least one unknown or invalid value and the converter-level default/empty output, such as returning the domain unknown/default symbol; do not assert downstream application state in these tests. When adding a finite-value boundary module, migrate existing test raw literals for that value in the same pull request or mark each remaining use with `finite-value-debt: <task-ref> <owner> <deadline> <reason>`. Pre-existing scattered raw literals in non-boundary tests are in scope only for the same touched file/module and finite value; flag them with the same debt marker even when the current slice does not introduce a new mapper. A PR containing an in-scope non-compliant `finite-value-debt` marker, or an in-scope unmarked raw literal in a non-boundary test, must not be approved; treat it as a blocking finding equivalent to a missing test. For out-of-scope occurrences found by grep, record the tracking issue instead of expanding the current PR indefinitely.
18
+ - Exercise negative paths: missing required fields, malformed config, forbidden auth subject, resource-scope mismatch, duplicate idempotency key, and dependency timeout.
19
+ - For context-sensitive code, test shorter parent deadlines and canceled contexts.
20
+ - For concurrency code, test cancellation, duplicate starts, bounded worker count, panic recovery, and final state.
21
+
22
+ ## Fakes And Mocks
23
+
24
+ - Put external RPC/HTTP, object storage, notification, and repository boundaries behind interfaces when behavior needs testing without infrastructure.
25
+ - Prefer small handwritten fakes for domain tests. Use monkey patching only for hard legacy boundaries or when refactoring the boundary is out of scope.
26
+ - Fake clients should support:
27
+ - success.
28
+ - transport error.
29
+ - timeout.
30
+ - non-OK domain status.
31
+ - malformed response.
32
+ - slow response with context cancellation.
33
+ - Keep fake data minimal and named by domain scenario, not by copied production identifiers.
34
+
35
+ ## Component And Integration Tests
36
+
37
+ - DB wrapper tests should cover read/write routing, transactions, rollback on error, panic recovery, upsert columns, pagination, and sharding/table routing if used.
38
+ - Redis tests should cover TTL, cache miss vs infrastructure error, lock acquire failure, compare-and-delete unlock, lease expiry, and idempotency states.
39
+ - MQ tests should cover selector/filter expression, duplicate delivery, retry/skip/dead-letter behavior, ordering assumptions, and worker concurrency.
40
+ - Dynamic config tests should cover get/set/delete, cache TTL, list pagination, malformed JSON, listener callback, and listener close.
41
+ - Release-platform tests should cover manifest rendering, route patch preservation, canary report classification, approval task idempotency, and callback validation.
42
+
43
+ ## End-To-End And Real-Flow Evidence
44
+
45
+ - End-to-end tests should assert the critical user or caller outcome, not only that a button was clicked or a handler returned 200.
46
+ - Prefer structured snapshots or stable selectors for UI automation, then re-read state after every action that should change the page or workflow.
47
+ - Use isolated browser/session contexts for different users or roles; save/load authenticated state only when the test is not about login itself.
48
+ - Wait for explicit conditions such as visible text, URL transition, network idle, emitted event, or persisted state instead of fixed sleeps.
49
+ - For UI-backed workflows, collect browser-visible state plus console errors, failed network requests, and backend logs for each critical step.
50
+ - For API/backend workflows, collect response envelope, canonical error code, trace/log id, dependency call result, and persisted state or emitted event when relevant.
51
+ - Real dependency tests should be explicit and isolated from the default fast target; use them for critical paths where mocks hide contract, credential, data-shape, or runtime integration failures.
52
+ - For scenario tests, use `testing-strategy` to build the scenario matrix first; in Go services, map scenarios to table-driven unit tests, handler/service tests, protobuf/HTTP contract tests, DB/Redis/MQ integration tests, replay checks, or opt-in real-flow tests based on the risk.
53
+ - If a real-flow test fails, route through `defect-diagnosis`; do not replace it with a thinner mock-only assertion unless the original scenario is invalid.
54
+ - Keep screenshots, payload samples, log snippets, or trace ids only as evidence pointers; tests should still assert deterministic conditions.
55
+
56
+ ## Traffic Replay And Regression Checks
57
+
58
+ - Treat traffic replay as a regression tool, not a substitute for unit tests.
59
+ - A replay task should record batch id, config, status, start/end time, total count, processed count, success/failure count, and result summary.
60
+ - Bound replay concurrency with a semaphore or worker pool.
61
+ - Replay must support filters, mock rules, timeout, rate limit, environment tags, and variable mapping.
62
+ - Diff results should include original response, replay response, field path, diff type, similarity, ignored fields, and representative samples.
63
+ - Reports should include success rate, diff rate, average latency, original latency, performance change, sample diffs, and error summary.
64
+ - Cancellation and cleanup must be explicit and should not delete results for a running task.
65
+
66
+ ## Codegen And Template Tests
67
+
68
+ - Test manifest/template generation from typed inputs.
69
+ - Validate required deployment/config inputs before rendering.
70
+ - Compare generated YAML/JSON through parsers when possible; avoid brittle raw string snapshots for unordered fields.
71
+ - For protobuf or API generation, add compile checks and contract tests for default values, enum unknowns, error envelope, and HTTP path mapping.
72
+ - For DI generation, compile the service and run a smoke constructor test after provider changes.
73
+ - Generated-file churn should trigger inspection of generator version, input files, and command arguments.
74
+
75
+ ## CI Quality Gates
76
+
77
+ - Minimum useful gates for backend changes:
78
+ - formatting.
79
+ - static checks or lint if available.
80
+ - compile for changed modules.
81
+ - focused fast tests.
82
+ - `go test -race` on the fast target for any goroutine-spawning service (goleak on key packages optional) — baseline hygiene, not an advanced gate.
83
+ - codegen clean check when IDL, DDL, routes, or DI providers changed.
84
+ - Add integration gates only where the environment is reliable; otherwise keep them opt-in and document how to run them.
85
+ - CI should fail on generated output drift when generation is deterministic.
86
+ - Do not require external secrets for ordinary pull-request tests.
87
+ - Audit precision gates and baseline hygiene together. Failure shape: a repo builds elaborate custom gates (attestation, drift checks) while its CI never runs `-race` — the missing piece is usually the boring baseline, not another bespoke gate.
88
+
89
+ ## Testing Time And Concurrency
90
+
91
+ - **`testing/synctest` (Go stdlib, stable since Go 1.25) is the default-recommendation for testing time-sensitive or concurrent code** — replaces hand-rolled fake clocks (`github.com/benbjohnson/clock` and similar) and the "sprinkle `time.Sleep(50*time.Millisecond)` and hope" pattern. Per Go blog, `synctest.Test(t, func(t *testing.T) { ... })` runs the test in an isolated "bubble" where time is virtualized: `time.Sleep`, `time.NewTimer`, `time.AfterFunc`, `context.WithTimeout` advance instantaneously when all goroutines in the bubble are blocked. Use for: retry-backoff verification, timeout handling, periodic loop pacing, expiry / lease / TTL behavior, multi-goroutine choreography. Do NOT use for tests that genuinely need wall-clock interaction (real DB query latency, real network call cancellation timing — those stay in integration tests). For services on Go 1.24 or older, `synctest` is available behind `GOEXPERIMENT=synctest` in Go 1.24 only; do not depend on it cross-version without a build tag.