ma-agents 2.20.0 → 2.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/README.md +55 -1
  2. package/lib/agents.js +22 -11
  3. package/lib/bmad-cache/bmb/_git_preserved/HEAD +1 -0
  4. package/lib/bmad-cache/bmb/_git_preserved/config +13 -0
  5. package/lib/bmad-cache/bmb/_git_preserved/description +1 -0
  6. package/lib/bmad-cache/bmb/_git_preserved/hooks/applypatch-msg.sample +15 -0
  7. package/lib/bmad-cache/bmb/_git_preserved/hooks/commit-msg.sample +24 -0
  8. package/lib/bmad-cache/bmb/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  9. package/lib/bmad-cache/bmb/_git_preserved/hooks/post-update.sample +8 -0
  10. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-applypatch.sample +14 -0
  11. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-commit.sample +49 -0
  12. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  13. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-push.sample +53 -0
  14. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-rebase.sample +169 -0
  15. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-receive.sample +24 -0
  16. package/lib/bmad-cache/bmb/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  17. package/lib/bmad-cache/bmb/_git_preserved/hooks/push-to-checkout.sample +78 -0
  18. package/lib/bmad-cache/bmb/_git_preserved/hooks/sendemail-validate.sample +77 -0
  19. package/lib/bmad-cache/bmb/_git_preserved/hooks/update.sample +128 -0
  20. package/lib/bmad-cache/bmb/_git_preserved/index +0 -0
  21. package/lib/bmad-cache/bmb/_git_preserved/info/exclude +6 -0
  22. package/lib/bmad-cache/bmb/_git_preserved/logs/HEAD +1 -0
  23. package/lib/bmad-cache/bmb/_git_preserved/logs/refs/heads/main +1 -0
  24. package/lib/bmad-cache/bmb/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  25. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.idx +0 -0
  26. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.pack +0 -0
  27. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.rev +0 -0
  28. package/lib/bmad-cache/bmb/_git_preserved/packed-refs +2 -0
  29. package/lib/bmad-cache/bmb/_git_preserved/refs/heads/main +1 -0
  30. package/lib/bmad-cache/bmb/_git_preserved/refs/remotes/origin/HEAD +1 -0
  31. package/lib/bmad-cache/bmb/_git_preserved/shallow +1 -0
  32. package/lib/bmad-cache/cache-manifest.json +6 -6
  33. package/lib/bmad-cache/cis/_git_preserved/HEAD +1 -0
  34. package/lib/bmad-cache/cis/_git_preserved/config +13 -0
  35. package/lib/bmad-cache/cis/_git_preserved/description +1 -0
  36. package/lib/bmad-cache/cis/_git_preserved/hooks/applypatch-msg.sample +15 -0
  37. package/lib/bmad-cache/cis/_git_preserved/hooks/commit-msg.sample +24 -0
  38. package/lib/bmad-cache/cis/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  39. package/lib/bmad-cache/cis/_git_preserved/hooks/post-update.sample +8 -0
  40. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-applypatch.sample +14 -0
  41. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-commit.sample +49 -0
  42. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  43. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-push.sample +53 -0
  44. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-rebase.sample +169 -0
  45. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-receive.sample +24 -0
  46. package/lib/bmad-cache/cis/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  47. package/lib/bmad-cache/cis/_git_preserved/hooks/push-to-checkout.sample +78 -0
  48. package/lib/bmad-cache/cis/_git_preserved/hooks/sendemail-validate.sample +77 -0
  49. package/lib/bmad-cache/cis/_git_preserved/hooks/update.sample +128 -0
  50. package/lib/bmad-cache/cis/_git_preserved/index +0 -0
  51. package/lib/bmad-cache/cis/_git_preserved/info/exclude +6 -0
  52. package/lib/bmad-cache/cis/_git_preserved/logs/HEAD +1 -0
  53. package/lib/bmad-cache/cis/_git_preserved/logs/refs/heads/main +1 -0
  54. package/lib/bmad-cache/cis/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  55. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.idx +0 -0
  56. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.pack +0 -0
  57. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.rev +0 -0
  58. package/lib/bmad-cache/cis/_git_preserved/packed-refs +2 -0
  59. package/lib/bmad-cache/cis/_git_preserved/refs/heads/main +1 -0
  60. package/lib/bmad-cache/cis/_git_preserved/refs/remotes/origin/HEAD +1 -0
  61. package/lib/bmad-cache/cis/_git_preserved/shallow +1 -0
  62. package/lib/bmad-cache/gds/_git_preserved/HEAD +1 -0
  63. package/lib/bmad-cache/gds/_git_preserved/config +13 -0
  64. package/lib/bmad-cache/gds/_git_preserved/description +1 -0
  65. package/lib/bmad-cache/gds/_git_preserved/hooks/applypatch-msg.sample +15 -0
  66. package/lib/bmad-cache/gds/_git_preserved/hooks/commit-msg.sample +24 -0
  67. package/lib/bmad-cache/gds/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  68. package/lib/bmad-cache/gds/_git_preserved/hooks/post-update.sample +8 -0
  69. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-applypatch.sample +14 -0
  70. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-commit.sample +49 -0
  71. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  72. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-push.sample +53 -0
  73. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-rebase.sample +169 -0
  74. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-receive.sample +24 -0
  75. package/lib/bmad-cache/gds/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  76. package/lib/bmad-cache/gds/_git_preserved/hooks/push-to-checkout.sample +78 -0
  77. package/lib/bmad-cache/gds/_git_preserved/hooks/sendemail-validate.sample +77 -0
  78. package/lib/bmad-cache/gds/_git_preserved/hooks/update.sample +128 -0
  79. package/lib/bmad-cache/gds/_git_preserved/index +0 -0
  80. package/lib/bmad-cache/gds/_git_preserved/info/exclude +6 -0
  81. package/lib/bmad-cache/gds/_git_preserved/logs/HEAD +1 -0
  82. package/lib/bmad-cache/gds/_git_preserved/logs/refs/heads/main +1 -0
  83. package/lib/bmad-cache/gds/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  84. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.idx +0 -0
  85. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.pack +0 -0
  86. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.rev +0 -0
  87. package/lib/bmad-cache/gds/_git_preserved/packed-refs +2 -0
  88. package/lib/bmad-cache/gds/_git_preserved/refs/heads/main +1 -0
  89. package/lib/bmad-cache/gds/_git_preserved/refs/remotes/origin/HEAD +1 -0
  90. package/lib/bmad-cache/gds/_git_preserved/refs/tags/v0.2.2 +1 -0
  91. package/lib/bmad-cache/gds/_git_preserved/shallow +1 -0
  92. package/lib/bmad-cache/gds/package.json +2 -4
  93. package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/bmad-skill-manifest.yaml +11 -0
  94. package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/bmad-skill-manifest.yaml +11 -0
  95. package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/bmad-skill-manifest.yaml +11 -0
  96. package/lib/bmad-cache/gds/src/agents/gds-agent-game-qa/bmad-skill-manifest.yaml +11 -0
  97. package/lib/bmad-cache/gds/src/agents/gds-agent-game-scrum-master/bmad-skill-manifest.yaml +11 -0
  98. package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/bmad-skill-manifest.yaml +11 -0
  99. package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/bmad-skill-manifest.yaml +11 -0
  100. package/lib/bmad-cache/gds/src/module-help.csv +28 -28
  101. package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/bmad-skill-manifest.yaml +1 -0
  102. package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/bmad-skill-manifest.yaml +1 -0
  103. package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/bmad-skill-manifest.yaml +1 -0
  104. package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/bmad-skill-manifest.yaml +1 -0
  105. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/bmad-skill-manifest.yaml +1 -0
  106. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/bmad-skill-manifest.yaml +1 -0
  107. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/bmad-skill-manifest.yaml +1 -0
  108. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/bmad-skill-manifest.yaml +1 -0
  109. package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/bmad-skill-manifest.yaml +1 -0
  110. package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/bmad-skill-manifest.yaml +1 -0
  111. package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/bmad-skill-manifest.yaml +1 -0
  112. package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/bmad-skill-manifest.yaml +1 -0
  113. package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/bmad-skill-manifest.yaml +1 -0
  114. package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/bmad-skill-manifest.yaml +1 -0
  115. package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/bmad-skill-manifest.yaml +1 -0
  116. package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/bmad-skill-manifest.yaml +1 -0
  117. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/bmad-skill-manifest.yaml +1 -0
  118. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/bmad-skill-manifest.yaml +1 -0
  119. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/bmad-skill-manifest.yaml +1 -0
  120. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/bmad-skill-manifest.yaml +1 -0
  121. package/lib/bmad-cache/gds/src/workflows/gds-document-project/bmad-skill-manifest.yaml +1 -0
  122. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/bmad-skill-manifest.yaml +1 -4
  123. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev-new-preview/bmad-skill-manifest.yaml +1 -4
  124. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-spec/bmad-skill-manifest.yaml +1 -0
  125. package/lib/bmad-cache/tea/_git_preserved/HEAD +1 -0
  126. package/lib/bmad-cache/tea/_git_preserved/config +13 -0
  127. package/lib/bmad-cache/tea/_git_preserved/description +1 -0
  128. package/lib/bmad-cache/tea/_git_preserved/hooks/applypatch-msg.sample +15 -0
  129. package/lib/bmad-cache/tea/_git_preserved/hooks/commit-msg.sample +24 -0
  130. package/lib/bmad-cache/tea/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  131. package/lib/bmad-cache/tea/_git_preserved/hooks/post-update.sample +8 -0
  132. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-applypatch.sample +14 -0
  133. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-commit.sample +49 -0
  134. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  135. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-push.sample +53 -0
  136. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-rebase.sample +169 -0
  137. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-receive.sample +24 -0
  138. package/lib/bmad-cache/tea/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  139. package/lib/bmad-cache/tea/_git_preserved/hooks/push-to-checkout.sample +78 -0
  140. package/lib/bmad-cache/tea/_git_preserved/hooks/sendemail-validate.sample +77 -0
  141. package/lib/bmad-cache/tea/_git_preserved/hooks/update.sample +128 -0
  142. package/lib/bmad-cache/tea/_git_preserved/index +0 -0
  143. package/lib/bmad-cache/tea/_git_preserved/info/exclude +6 -0
  144. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.idx +0 -0
  145. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.pack +0 -0
  146. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.rev +0 -0
  147. package/lib/bmad-cache/tea/_git_preserved/packed-refs +2 -0
  148. package/lib/bmad-cache/tea/_git_preserved/refs/heads/main +1 -0
  149. package/lib/bmad-cache/tea/_git_preserved/refs/remotes/origin/HEAD +1 -0
  150. package/lib/bmad-cache/tea/_git_preserved/refs/tags/v1.7.0 +1 -0
  151. package/lib/bmad-cache/tea/_git_preserved/shallow +1 -0
  152. package/lib/bmad.js +33 -0
  153. package/lib/installer.js +60 -3
  154. package/package.json +1 -1
  155. package/scripts/build-bmad-cache.js +6 -3
  156. package/test/agent-injection-strategy.test.js +123 -0
  157. package/test/instruction-injection.test.js +336 -0
  158. package/.cline/clinerules.md +0 -14
  159. package/.cline/skills/.ma-agents.json +0 -199
  160. package/.cline/skills/MANIFEST.yaml +0 -204
  161. package/.cline/skills/ai-audit-trail/SKILL.md +0 -23
  162. package/.cline/skills/cmake-best-practices/SKILL.md +0 -64
  163. package/.cline/skills/cmake-best-practices/examples/cmake.md +0 -59
  164. package/.cline/skills/code-documentation/SKILL.md +0 -57
  165. package/.cline/skills/code-documentation/examples/cpp.md +0 -29
  166. package/.cline/skills/code-documentation/examples/csharp.md +0 -28
  167. package/.cline/skills/code-documentation/examples/javascript_typescript.md +0 -28
  168. package/.cline/skills/code-documentation/examples/python.md +0 -57
  169. package/.cline/skills/code-review/SKILL.md +0 -59
  170. package/.cline/skills/commit-message/SKILL.md +0 -79
  171. package/.cline/skills/cpp-concurrency-safety/SKILL.md +0 -60
  172. package/.cline/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
  173. package/.cline/skills/cpp-const-correctness/SKILL.md +0 -63
  174. package/.cline/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
  175. package/.cline/skills/cpp-memory-handling/SKILL.md +0 -42
  176. package/.cline/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
  177. package/.cline/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
  178. package/.cline/skills/cpp-modern-composition/SKILL.md +0 -64
  179. package/.cline/skills/cpp-modern-composition/examples/composition.md +0 -51
  180. package/.cline/skills/cpp-robust-interfaces/SKILL.md +0 -55
  181. package/.cline/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
  182. package/.cline/skills/create-hardened-docker-skill/SKILL.md +0 -637
  183. package/.cline/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
  184. package/.cline/skills/docker-hardening-verification/SKILL.md +0 -28
  185. package/.cline/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
  186. package/.cline/skills/docker-image-signing/SKILL.md +0 -28
  187. package/.cline/skills/docker-image-signing/scripts/sign-image.sh +0 -33
  188. package/.cline/skills/document-revision-history/SKILL.md +0 -104
  189. package/.cline/skills/git-workflow-skill/SKILL.md +0 -194
  190. package/.cline/skills/git-workflow-skill/hooks/commit-msg +0 -61
  191. package/.cline/skills/git-workflow-skill/hooks/pre-commit +0 -38
  192. package/.cline/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
  193. package/.cline/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
  194. package/.cline/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
  195. package/.cline/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
  196. package/.cline/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
  197. package/.cline/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
  198. package/.cline/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
  199. package/.cline/skills/js-ts-security-skill/SKILL.md +0 -64
  200. package/.cline/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
  201. package/.cline/skills/logging-best-practices/SKILL.md +0 -50
  202. package/.cline/skills/logging-best-practices/docs/logging-standards.md +0 -29
  203. package/.cline/skills/logging-best-practices/examples/cpp.md +0 -36
  204. package/.cline/skills/logging-best-practices/examples/csharp.md +0 -49
  205. package/.cline/skills/logging-best-practices/examples/javascript.md +0 -77
  206. package/.cline/skills/logging-best-practices/examples/python.md +0 -57
  207. package/.cline/skills/opentelemetry-best-practices/SKILL.md +0 -34
  208. package/.cline/skills/opentelemetry-best-practices/docs/otel-standards.md +0 -37
  209. package/.cline/skills/opentelemetry-best-practices/examples/go.md +0 -32
  210. package/.cline/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
  211. package/.cline/skills/opentelemetry-best-practices/examples/python.md +0 -37
  212. package/.cline/skills/python-dependency-mgmt/SKILL.md +0 -42
  213. package/.cline/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
  214. package/.cline/skills/python-security-skill/SKILL.md +0 -56
  215. package/.cline/skills/python-security-skill/examples/security.md +0 -56
  216. package/.cline/skills/self-signed-cert/SKILL.md +0 -42
  217. package/.cline/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
  218. package/.cline/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
  219. package/.cline/skills/skill-creator/SKILL.md +0 -196
  220. package/.cline/skills/skill-creator/docs/output-patterns.md +0 -82
  221. package/.cline/skills/skill-creator/docs/workflows.md +0 -28
  222. package/.cline/skills/skill-creator/scripts/init_skill.py +0 -208
  223. package/.cline/skills/skill-creator/scripts/package_skill.py +0 -99
  224. package/.cline/skills/skill-creator/scripts/quick_validate.py +0 -113
  225. package/.cline/skills/test-accompanied-development/SKILL.md +0 -50
  226. package/.cline/skills/test-generator/SKILL.md +0 -73
  227. package/.cline/skills/vercel-react-best-practices/SKILL.md +0 -109
  228. package/.cline/skills/verify-hardened-docker-skill/SKILL.md +0 -442
  229. package/.cline/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
  230. package/.clinerules +0 -14
  231. package/.cursor/cursor.md +0 -14
  232. package/.cursor/skills/.ma-agents.json +0 -199
  233. package/.cursor/skills/MANIFEST.yaml +0 -204
  234. package/.cursor/skills/ai-audit-trail/SKILL.md +0 -23
  235. package/.cursor/skills/cmake-best-practices/SKILL.md +0 -64
  236. package/.cursor/skills/cmake-best-practices/examples/cmake.md +0 -59
  237. package/.cursor/skills/code-documentation/SKILL.md +0 -57
  238. package/.cursor/skills/code-documentation/examples/cpp.md +0 -29
  239. package/.cursor/skills/code-documentation/examples/csharp.md +0 -28
  240. package/.cursor/skills/code-documentation/examples/javascript_typescript.md +0 -28
  241. package/.cursor/skills/code-documentation/examples/python.md +0 -57
  242. package/.cursor/skills/code-review/SKILL.md +0 -43
  243. package/.cursor/skills/commit-message/SKILL.md +0 -79
  244. package/.cursor/skills/cpp-concurrency-safety/SKILL.md +0 -60
  245. package/.cursor/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
  246. package/.cursor/skills/cpp-const-correctness/SKILL.md +0 -63
  247. package/.cursor/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
  248. package/.cursor/skills/cpp-memory-handling/SKILL.md +0 -42
  249. package/.cursor/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
  250. package/.cursor/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
  251. package/.cursor/skills/cpp-modern-composition/SKILL.md +0 -64
  252. package/.cursor/skills/cpp-modern-composition/examples/composition.md +0 -51
  253. package/.cursor/skills/cpp-robust-interfaces/SKILL.md +0 -55
  254. package/.cursor/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
  255. package/.cursor/skills/create-hardened-docker-skill/SKILL.md +0 -637
  256. package/.cursor/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
  257. package/.cursor/skills/docker-hardening-verification/SKILL.md +0 -28
  258. package/.cursor/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
  259. package/.cursor/skills/docker-image-signing/SKILL.md +0 -28
  260. package/.cursor/skills/docker-image-signing/scripts/sign-image.sh +0 -33
  261. package/.cursor/skills/document-revision-history/SKILL.md +0 -104
  262. package/.cursor/skills/git-workflow-skill/SKILL.md +0 -194
  263. package/.cursor/skills/git-workflow-skill/hooks/commit-msg +0 -61
  264. package/.cursor/skills/git-workflow-skill/hooks/pre-commit +0 -38
  265. package/.cursor/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
  266. package/.cursor/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
  267. package/.cursor/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
  268. package/.cursor/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
  269. package/.cursor/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
  270. package/.cursor/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
  271. package/.cursor/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
  272. package/.cursor/skills/js-ts-security-skill/SKILL.md +0 -64
  273. package/.cursor/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
  274. package/.cursor/skills/logging-best-practices/SKILL.md +0 -50
  275. package/.cursor/skills/logging-best-practices/examples/cpp.md +0 -36
  276. package/.cursor/skills/logging-best-practices/examples/csharp.md +0 -49
  277. package/.cursor/skills/logging-best-practices/examples/javascript.md +0 -77
  278. package/.cursor/skills/logging-best-practices/examples/python.md +0 -57
  279. package/.cursor/skills/logging-best-practices/references/logging-standards.md +0 -29
  280. package/.cursor/skills/opentelemetry-best-practices/SKILL.md +0 -34
  281. package/.cursor/skills/opentelemetry-best-practices/examples/go.md +0 -32
  282. package/.cursor/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
  283. package/.cursor/skills/opentelemetry-best-practices/examples/python.md +0 -37
  284. package/.cursor/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
  285. package/.cursor/skills/python-dependency-mgmt/SKILL.md +0 -42
  286. package/.cursor/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
  287. package/.cursor/skills/python-security-skill/SKILL.md +0 -56
  288. package/.cursor/skills/python-security-skill/examples/security.md +0 -56
  289. package/.cursor/skills/self-signed-cert/SKILL.md +0 -42
  290. package/.cursor/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
  291. package/.cursor/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
  292. package/.cursor/skills/skill-creator/SKILL.md +0 -196
  293. package/.cursor/skills/skill-creator/references/output-patterns.md +0 -82
  294. package/.cursor/skills/skill-creator/references/workflows.md +0 -28
  295. package/.cursor/skills/skill-creator/scripts/init_skill.py +0 -208
  296. package/.cursor/skills/skill-creator/scripts/package_skill.py +0 -99
  297. package/.cursor/skills/skill-creator/scripts/quick_validate.py +0 -113
  298. package/.cursor/skills/test-accompanied-development/SKILL.md +0 -50
  299. package/.cursor/skills/test-generator/SKILL.md +0 -65
  300. package/.cursor/skills/vercel-react-best-practices/SKILL.md +0 -109
  301. package/.cursor/skills/verify-hardened-docker-skill/SKILL.md +0 -442
  302. package/.cursor/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
  303. package/.gemini/gemini.md +0 -14
  304. package/.gemini/skills/.ma-agents.json +0 -199
  305. package/.gemini/skills/MANIFEST.yaml +0 -204
  306. package/.gemini/skills/ai-audit-trail/SKILL.md +0 -23
  307. package/.gemini/skills/cmake-best-practices/SKILL.md +0 -64
  308. package/.gemini/skills/cmake-best-practices/examples/cmake.md +0 -59
  309. package/.gemini/skills/code-documentation/SKILL.md +0 -57
  310. package/.gemini/skills/code-documentation/examples/cpp.md +0 -29
  311. package/.gemini/skills/code-documentation/examples/csharp.md +0 -28
  312. package/.gemini/skills/code-documentation/examples/javascript_typescript.md +0 -28
  313. package/.gemini/skills/code-documentation/examples/python.md +0 -57
  314. package/.gemini/skills/code-review/SKILL.md +0 -43
  315. package/.gemini/skills/commit-message/SKILL.md +0 -79
  316. package/.gemini/skills/cpp-concurrency-safety/SKILL.md +0 -60
  317. package/.gemini/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
  318. package/.gemini/skills/cpp-const-correctness/SKILL.md +0 -63
  319. package/.gemini/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
  320. package/.gemini/skills/cpp-memory-handling/SKILL.md +0 -42
  321. package/.gemini/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
  322. package/.gemini/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
  323. package/.gemini/skills/cpp-modern-composition/SKILL.md +0 -64
  324. package/.gemini/skills/cpp-modern-composition/examples/composition.md +0 -51
  325. package/.gemini/skills/cpp-robust-interfaces/SKILL.md +0 -55
  326. package/.gemini/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
  327. package/.gemini/skills/create-hardened-docker-skill/SKILL.md +0 -637
  328. package/.gemini/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
  329. package/.gemini/skills/docker-hardening-verification/SKILL.md +0 -28
  330. package/.gemini/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
  331. package/.gemini/skills/docker-image-signing/SKILL.md +0 -28
  332. package/.gemini/skills/docker-image-signing/scripts/sign-image.sh +0 -33
  333. package/.gemini/skills/document-revision-history/SKILL.md +0 -104
  334. package/.gemini/skills/git-workflow-skill/SKILL.md +0 -194
  335. package/.gemini/skills/git-workflow-skill/hooks/commit-msg +0 -61
  336. package/.gemini/skills/git-workflow-skill/hooks/pre-commit +0 -38
  337. package/.gemini/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
  338. package/.gemini/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
  339. package/.gemini/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
  340. package/.gemini/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
  341. package/.gemini/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
  342. package/.gemini/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
  343. package/.gemini/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
  344. package/.gemini/skills/js-ts-security-skill/SKILL.md +0 -64
  345. package/.gemini/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
  346. package/.gemini/skills/logging-best-practices/SKILL.md +0 -50
  347. package/.gemini/skills/logging-best-practices/examples/cpp.md +0 -36
  348. package/.gemini/skills/logging-best-practices/examples/csharp.md +0 -49
  349. package/.gemini/skills/logging-best-practices/examples/javascript.md +0 -77
  350. package/.gemini/skills/logging-best-practices/examples/python.md +0 -57
  351. package/.gemini/skills/logging-best-practices/references/logging-standards.md +0 -29
  352. package/.gemini/skills/opentelemetry-best-practices/SKILL.md +0 -34
  353. package/.gemini/skills/opentelemetry-best-practices/examples/go.md +0 -32
  354. package/.gemini/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
  355. package/.gemini/skills/opentelemetry-best-practices/examples/python.md +0 -37
  356. package/.gemini/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
  357. package/.gemini/skills/python-dependency-mgmt/SKILL.md +0 -42
  358. package/.gemini/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
  359. package/.gemini/skills/python-security-skill/SKILL.md +0 -56
  360. package/.gemini/skills/python-security-skill/examples/security.md +0 -56
  361. package/.gemini/skills/self-signed-cert/SKILL.md +0 -42
  362. package/.gemini/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
  363. package/.gemini/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
  364. package/.gemini/skills/skill-creator/SKILL.md +0 -196
  365. package/.gemini/skills/skill-creator/references/output-patterns.md +0 -82
  366. package/.gemini/skills/skill-creator/references/workflows.md +0 -28
  367. package/.gemini/skills/skill-creator/scripts/init_skill.py +0 -208
  368. package/.gemini/skills/skill-creator/scripts/package_skill.py +0 -99
  369. package/.gemini/skills/skill-creator/scripts/quick_validate.py +0 -113
  370. package/.gemini/skills/test-accompanied-development/SKILL.md +0 -50
  371. package/.gemini/skills/test-generator/SKILL.md +0 -65
  372. package/.gemini/skills/vercel-react-best-practices/SKILL.md +0 -109
  373. package/.gemini/skills/verify-hardened-docker-skill/SKILL.md +0 -442
  374. package/.gemini/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
  375. package/.github/copilot/copilot.md +0 -14
  376. package/.github/copilot/skills/.ma-agents.json +0 -199
  377. package/.github/copilot/skills/MANIFEST.yaml +0 -204
  378. package/.github/copilot/skills/ai-audit-trail/SKILL.md +0 -23
  379. package/.github/copilot/skills/cmake-best-practices/SKILL.md +0 -64
  380. package/.github/copilot/skills/cmake-best-practices/examples/cmake.md +0 -59
  381. package/.github/copilot/skills/code-documentation/SKILL.md +0 -57
  382. package/.github/copilot/skills/code-documentation/examples/cpp.md +0 -29
  383. package/.github/copilot/skills/code-documentation/examples/csharp.md +0 -28
  384. package/.github/copilot/skills/code-documentation/examples/javascript_typescript.md +0 -28
  385. package/.github/copilot/skills/code-documentation/examples/python.md +0 -57
  386. package/.github/copilot/skills/code-review/SKILL.md +0 -43
  387. package/.github/copilot/skills/commit-message/SKILL.md +0 -79
  388. package/.github/copilot/skills/cpp-concurrency-safety/SKILL.md +0 -60
  389. package/.github/copilot/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
  390. package/.github/copilot/skills/cpp-const-correctness/SKILL.md +0 -63
  391. package/.github/copilot/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
  392. package/.github/copilot/skills/cpp-memory-handling/SKILL.md +0 -42
  393. package/.github/copilot/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
  394. package/.github/copilot/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
  395. package/.github/copilot/skills/cpp-modern-composition/SKILL.md +0 -64
  396. package/.github/copilot/skills/cpp-modern-composition/examples/composition.md +0 -51
  397. package/.github/copilot/skills/cpp-robust-interfaces/SKILL.md +0 -55
  398. package/.github/copilot/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
  399. package/.github/copilot/skills/create-hardened-docker-skill/SKILL.md +0 -637
  400. package/.github/copilot/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
  401. package/.github/copilot/skills/docker-hardening-verification/SKILL.md +0 -28
  402. package/.github/copilot/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
  403. package/.github/copilot/skills/docker-image-signing/SKILL.md +0 -28
  404. package/.github/copilot/skills/docker-image-signing/scripts/sign-image.sh +0 -33
  405. package/.github/copilot/skills/document-revision-history/SKILL.md +0 -104
  406. package/.github/copilot/skills/git-workflow-skill/SKILL.md +0 -194
  407. package/.github/copilot/skills/git-workflow-skill/hooks/commit-msg +0 -61
  408. package/.github/copilot/skills/git-workflow-skill/hooks/pre-commit +0 -38
  409. package/.github/copilot/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
  410. package/.github/copilot/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
  411. package/.github/copilot/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
  412. package/.github/copilot/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
  413. package/.github/copilot/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
  414. package/.github/copilot/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
  415. package/.github/copilot/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
  416. package/.github/copilot/skills/js-ts-security-skill/SKILL.md +0 -64
  417. package/.github/copilot/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
  418. package/.github/copilot/skills/logging-best-practices/SKILL.md +0 -50
  419. package/.github/copilot/skills/logging-best-practices/examples/cpp.md +0 -36
  420. package/.github/copilot/skills/logging-best-practices/examples/csharp.md +0 -49
  421. package/.github/copilot/skills/logging-best-practices/examples/javascript.md +0 -77
  422. package/.github/copilot/skills/logging-best-practices/examples/python.md +0 -57
  423. package/.github/copilot/skills/logging-best-practices/references/logging-standards.md +0 -29
  424. package/.github/copilot/skills/opentelemetry-best-practices/SKILL.md +0 -34
  425. package/.github/copilot/skills/opentelemetry-best-practices/examples/go.md +0 -32
  426. package/.github/copilot/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
  427. package/.github/copilot/skills/opentelemetry-best-practices/examples/python.md +0 -37
  428. package/.github/copilot/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
  429. package/.github/copilot/skills/python-dependency-mgmt/SKILL.md +0 -42
  430. package/.github/copilot/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
  431. package/.github/copilot/skills/python-security-skill/SKILL.md +0 -56
  432. package/.github/copilot/skills/python-security-skill/examples/security.md +0 -56
  433. package/.github/copilot/skills/self-signed-cert/SKILL.md +0 -42
  434. package/.github/copilot/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
  435. package/.github/copilot/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
  436. package/.github/copilot/skills/skill-creator/SKILL.md +0 -196
  437. package/.github/copilot/skills/skill-creator/references/output-patterns.md +0 -82
  438. package/.github/copilot/skills/skill-creator/references/workflows.md +0 -28
  439. package/.github/copilot/skills/skill-creator/scripts/init_skill.py +0 -208
  440. package/.github/copilot/skills/skill-creator/scripts/package_skill.py +0 -99
  441. package/.github/copilot/skills/skill-creator/scripts/quick_validate.py +0 -113
  442. package/.github/copilot/skills/test-accompanied-development/SKILL.md +0 -50
  443. package/.github/copilot/skills/test-generator/SKILL.md +0 -65
  444. package/.github/copilot/skills/vercel-react-best-practices/SKILL.md +0 -109
  445. package/.github/copilot/skills/verify-hardened-docker-skill/SKILL.md +0 -442
  446. package/.github/copilot/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
  447. package/.kilocode/kilocode.md +0 -14
  448. package/.kilocode/skills/.ma-agents.json +0 -199
  449. package/.kilocode/skills/MANIFEST.yaml +0 -204
  450. package/.kilocode/skills/ai-audit-trail/SKILL.md +0 -23
  451. package/.kilocode/skills/cmake-best-practices/SKILL.md +0 -64
  452. package/.kilocode/skills/cmake-best-practices/examples/cmake.md +0 -59
  453. package/.kilocode/skills/code-documentation/SKILL.md +0 -57
  454. package/.kilocode/skills/code-documentation/examples/cpp.md +0 -29
  455. package/.kilocode/skills/code-documentation/examples/csharp.md +0 -28
  456. package/.kilocode/skills/code-documentation/examples/javascript_typescript.md +0 -28
  457. package/.kilocode/skills/code-documentation/examples/python.md +0 -57
  458. package/.kilocode/skills/code-review/SKILL.md +0 -43
  459. package/.kilocode/skills/commit-message/SKILL.md +0 -79
  460. package/.kilocode/skills/cpp-concurrency-safety/SKILL.md +0 -60
  461. package/.kilocode/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
  462. package/.kilocode/skills/cpp-const-correctness/SKILL.md +0 -63
  463. package/.kilocode/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
  464. package/.kilocode/skills/cpp-memory-handling/SKILL.md +0 -42
  465. package/.kilocode/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
  466. package/.kilocode/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
  467. package/.kilocode/skills/cpp-modern-composition/SKILL.md +0 -64
  468. package/.kilocode/skills/cpp-modern-composition/examples/composition.md +0 -51
  469. package/.kilocode/skills/cpp-robust-interfaces/SKILL.md +0 -55
  470. package/.kilocode/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
  471. package/.kilocode/skills/create-hardened-docker-skill/SKILL.md +0 -637
  472. package/.kilocode/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
  473. package/.kilocode/skills/docker-hardening-verification/SKILL.md +0 -28
  474. package/.kilocode/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
  475. package/.kilocode/skills/docker-image-signing/SKILL.md +0 -28
  476. package/.kilocode/skills/docker-image-signing/scripts/sign-image.sh +0 -33
  477. package/.kilocode/skills/document-revision-history/SKILL.md +0 -104
  478. package/.kilocode/skills/git-workflow-skill/SKILL.md +0 -194
  479. package/.kilocode/skills/git-workflow-skill/hooks/commit-msg +0 -61
  480. package/.kilocode/skills/git-workflow-skill/hooks/pre-commit +0 -38
  481. package/.kilocode/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
  482. package/.kilocode/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
  483. package/.kilocode/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
  484. package/.kilocode/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
  485. package/.kilocode/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
  486. package/.kilocode/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
  487. package/.kilocode/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
  488. package/.kilocode/skills/js-ts-security-skill/SKILL.md +0 -64
  489. package/.kilocode/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
  490. package/.kilocode/skills/logging-best-practices/SKILL.md +0 -50
  491. package/.kilocode/skills/logging-best-practices/examples/cpp.md +0 -36
  492. package/.kilocode/skills/logging-best-practices/examples/csharp.md +0 -49
  493. package/.kilocode/skills/logging-best-practices/examples/javascript.md +0 -77
  494. package/.kilocode/skills/logging-best-practices/examples/python.md +0 -57
  495. package/.kilocode/skills/logging-best-practices/references/logging-standards.md +0 -29
  496. package/.kilocode/skills/opentelemetry-best-practices/SKILL.md +0 -34
  497. package/.kilocode/skills/opentelemetry-best-practices/examples/go.md +0 -32
  498. package/.kilocode/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
  499. package/.kilocode/skills/opentelemetry-best-practices/examples/python.md +0 -37
  500. package/.kilocode/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
  501. package/.kilocode/skills/python-dependency-mgmt/SKILL.md +0 -42
  502. package/.kilocode/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
  503. package/.kilocode/skills/python-security-skill/SKILL.md +0 -56
  504. package/.kilocode/skills/python-security-skill/examples/security.md +0 -56
  505. package/.kilocode/skills/self-signed-cert/SKILL.md +0 -42
  506. package/.kilocode/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
  507. package/.kilocode/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
  508. package/.kilocode/skills/skill-creator/SKILL.md +0 -196
  509. package/.kilocode/skills/skill-creator/references/output-patterns.md +0 -82
  510. package/.kilocode/skills/skill-creator/references/workflows.md +0 -28
  511. package/.kilocode/skills/skill-creator/scripts/init_skill.py +0 -208
  512. package/.kilocode/skills/skill-creator/scripts/package_skill.py +0 -99
  513. package/.kilocode/skills/skill-creator/scripts/quick_validate.py +0 -113
  514. package/.kilocode/skills/test-accompanied-development/SKILL.md +0 -50
  515. package/.kilocode/skills/test-generator/SKILL.md +0 -65
  516. package/.kilocode/skills/vercel-react-best-practices/SKILL.md +0 -109
  517. package/.kilocode/skills/verify-hardened-docker-skill/SKILL.md +0 -442
  518. package/.kilocode/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
  519. package/lib/bmad-cache/gds/src/agents/game-architect.agent.yaml +0 -44
  520. package/lib/bmad-cache/gds/src/agents/game-designer.agent.yaml +0 -45
  521. package/lib/bmad-cache/gds/src/agents/game-dev.agent.yaml +0 -49
  522. package/lib/bmad-cache/gds/src/agents/game-qa.agent.yaml +0 -63
  523. package/lib/bmad-cache/gds/src/agents/game-scrum-master.agent.yaml +0 -52
  524. package/lib/bmad-cache/gds/src/agents/game-solo-dev.agent.yaml +0 -53
  525. package/lib/bmad-cache/gds/src/agents/tech-writer/tech-writer.agent.yaml +0 -45
  526. package/lib/bmad-cache/gds/src/teams/default-party.csv +0 -12
  527. package/lib/bmad-cache/gds/src/teams/team-gamedev.yaml +0 -29
  528. package/lib/bmad-cache/gds/src/workflows/1-preproduction/brainstorm-game/bmad-skill-manifest.yaml +0 -3
  529. package/lib/bmad-cache/gds/src/workflows/1-preproduction/game-brief/bmad-skill-manifest.yaml +0 -3
  530. package/lib/bmad-cache/gds/src/workflows/2-design/gdd/bmad-skill-manifest.yaml +0 -3
  531. package/lib/bmad-cache/gds/src/workflows/2-design/narrative/bmad-skill-manifest.yaml +0 -3
  532. package/lib/bmad-cache/gds/src/workflows/3-technical/check-implementation-readiness/bmad-skill-manifest.yaml +0 -3
  533. package/lib/bmad-cache/gds/src/workflows/3-technical/create-epics-and-stories/bmad-skill-manifest.yaml +0 -3
  534. package/lib/bmad-cache/gds/src/workflows/3-technical/game-architecture/bmad-skill-manifest.yaml +0 -3
  535. package/lib/bmad-cache/gds/src/workflows/3-technical/generate-project-context/bmad-skill-manifest.yaml +0 -3
  536. package/lib/bmad-cache/gds/src/workflows/4-production/code-review/bmad-skill-manifest.yaml +0 -3
  537. package/lib/bmad-cache/gds/src/workflows/4-production/correct-course/bmad-skill-manifest.yaml +0 -3
  538. package/lib/bmad-cache/gds/src/workflows/4-production/retrospective/bmad-skill-manifest.yaml +0 -3
  539. package/lib/bmad-cache/gds/src/workflows/4-production/sprint-planning/bmad-skill-manifest.yaml +0 -3
  540. package/lib/bmad-cache/gds/src/workflows/4-production/sprint-status/bmad-skill-manifest.yaml +0 -3
  541. package/lib/bmad-cache/gds/src/workflows/document-project/bmad-skill-manifest.yaml +0 -3
  542. package/lib/bmad-cache/gds/src/workflows/gametest/automate/bmad-skill-manifest.yaml +0 -3
  543. package/lib/bmad-cache/gds/src/workflows/gametest/e2e-scaffold/bmad-skill-manifest.yaml +0 -3
  544. package/lib/bmad-cache/gds/src/workflows/gametest/performance/bmad-skill-manifest.yaml +0 -3
  545. package/lib/bmad-cache/gds/src/workflows/gametest/playtest-plan/bmad-skill-manifest.yaml +0 -3
  546. package/lib/bmad-cache/gds/src/workflows/gametest/test-design/bmad-skill-manifest.yaml +0 -3
  547. package/lib/bmad-cache/gds/src/workflows/gametest/test-framework/bmad-skill-manifest.yaml +0 -3
  548. package/lib/bmad-cache/gds/src/workflows/gametest/test-review/bmad-skill-manifest.yaml +0 -3
  549. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/quick-spec/bmad-skill-manifest.yaml +0 -3
  550. package/lib/bmad-cache/tea/.github/CODE_OF_CONDUCT.md +0 -128
  551. package/lib/bmad-cache/tea/.github/FUNDING.yaml +0 -15
  552. package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/config.yaml +0 -11
  553. package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/feature_request.md +0 -70
  554. package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/issue.md +0 -61
  555. package/lib/bmad-cache/tea/.github/workflows/docs.yaml +0 -66
  556. package/lib/bmad-cache/tea/.github/workflows/manual-release.yaml +0 -195
  557. package/lib/bmad-cache/tea/.github/workflows/quality.yaml +0 -114
  558. /package/lib/bmad-cache/gds/src/workflows/1-preproduction/{brainstorm-game → gds-brainstorm-game}/game-brain-methods.csv +0 -0
  559. /package/lib/bmad-cache/gds/src/workflows/2-design/{gdd → gds-create-gdd}/game-types.csv +0 -0
  560. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/architecture-patterns.yaml +0 -0
  561. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/decision-catalog.yaml +0 -0
  562. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/engine-mcps.yaml +0 -0
  563. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/pattern-categories.csv +0 -0
  564. /package/lib/bmad-cache/gds/src/workflows/4-production/{sprint-planning → gds-sprint-planning}/sprint-status-template.yaml +0 -0
  565. /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/documentation-requirements.csv +0 -0
  566. /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/templates/project-scan-report-schema.json +0 -0
@@ -1,60 +0,0 @@
1
- ---
2
- name: C++ Safety-First Concurrency
3
- description: Enforce safe multi-threading patterns using RAII locking and task-based parallelism (C++14+).
4
- ---
5
- # C++ Safety-First Concurrency (Core Guidelines Section CP)
6
-
7
- This skill prevents common multi-threading defects like data races, deadlocks, and shared-state corruption.
8
-
9
- ## Policies
10
-
11
- ### 1. RAII Locking Only
12
- * **Rule**: Never call `mutex.lock()` or `mutex.unlock()` manually.
13
- * **Action**:
14
- - Use `std::lock_guard` for single mutexes.
15
- - Use `std::unique_lock` if you need deferred locking or condition variables.
16
- - Use `std::scoped_lock` (C++17) for multiple mutexes to avoid deadlocks.
17
- * **Rationale**: Ensures locks are released even if an exception is thrown.
18
-
19
- ### 2. Task-Based Parallelism
20
- * **Rule**: Prefer tasks (`std::async`, `std::packaged_task`, `std::future`) over raw threads (`std::thread`).
21
- * **Action**: Use `auto result = std::async(std::launch::async, func, args...);`
22
- * **Rationale**: Automates thread management and handles value return/exception propagation naturally.
23
-
24
- ### 3. Minimize Shared Mutable State
25
- * **Rule**: Data should ideally be either "Thread-Local" or "Read-Only".
26
- * **Action**:
27
- - Pass data to threads by value where possible.
28
- - Use `const` for data shared between threads.
29
- - Group mutexes with the data they protect (e.g., in a struct).
30
- * **Rationale**: If data isn't shared or isn't mutable, it cannot have a race condition.
31
-
32
- ### 4. Never Sleep/Wait without a Condition
33
- * **Rule**: Avoid `std::this_thread::sleep_for` for synchronization.
34
- * **Action**: Use `std::condition_variable` with a predicate to wait for work.
35
- * **Rationale**: Sleeping is inefficient and bug-prone; condition variables are precise and responsive.
36
-
37
- ## Examples
38
-
39
- ### Before (Dangerous Concurrency)
40
- ```cpp
41
- std::mutex mtx;
42
- int sharedData = 0;
43
-
44
- void worker() {
45
- mtx.lock();
46
- sharedData++;
47
- mtx.unlock(); // What if an exception happened above?
48
- }
49
- ```
50
-
51
- ### After (Safe Concurrency)
52
- ```cpp
53
- std::mutex mtx;
54
- int sharedData = 0;
55
-
56
- void worker() {
57
- std::lock_guard<std::mutex> lock(mtx);
58
- sharedData++;
59
- } // Lock automatically released here
60
- ```
@@ -1,73 +0,0 @@
1
- # Concurrency Safety Examples (C++14+)
2
-
3
- ### 1. Task-Based Parallelism (Async)
4
- Avoids manual thread joining and handles return values safely.
5
-
6
- ```cpp
7
- #include <future>
8
- #include <vector>
9
- #include <numeric>
10
-
11
- int computeLargeSum(const std::vector<int>& data) {
12
- auto part1 = std::async(std::launch::async, [&data]() {
13
- return std::accumulate(data.begin(), data.begin() + data.size()/2, 0);
14
- });
15
-
16
- auto part2 = std::accumulate(data.begin() + data.size()/2, data.end(), 0);
17
-
18
- return part1.get() + part2;
19
- }
20
- ```
21
-
22
- ### 2. Multi-Lock Safety (C++17 scoped_lock)
23
- Prevents deadlocks when acquiring multiple resources.
24
-
25
- ```cpp
26
- #include <mutex>
27
-
28
- struct Account {
29
- std::mutex mtx;
30
- double balance;
31
- };
32
-
33
- void transfer(Account& from, Account& to, double amount) {
34
- // Acquire both locks simultaneously in a deadlock-free manner
35
- std::scoped_lock lock(from.mtx, to.mtx);
36
-
37
- if (from.balance >= amount) {
38
- from.balance -= amount;
39
- to.balance += amount;
40
- }
41
- }
42
- ```
43
-
44
- ### 3. Condition Variables with Predicates
45
- Always use a predicate to protect against "spurious wakeups."
46
-
47
- ```cpp
48
- #include <mutex>
49
- #include <condition_variable>
50
- #include <queue>
51
-
52
- std::queue<int> workQueue;
53
- std::mutex workMtx;
54
- std::condition_variable workCv;
55
- bool finished = false;
56
-
57
- void consumer() {
58
- while (true) {
59
- std::unique_lock<std::mutex> lock(workMtx);
60
-
61
- // Wait until there is work OR we are finished
62
- workCv.wait(lock, []{ return !workQueue.empty() || finished; });
63
-
64
- if (workQueue.empty() && finished) break;
65
-
66
- int task = workQueue.front();
67
- workQueue.pop();
68
- lock.unlock(); // Release lock before processing
69
-
70
- process(task);
71
- }
72
- }
73
- ```
@@ -1,63 +0,0 @@
1
- ---
2
- name: C++ Const-Correctness & Logic
3
- description: Enforce immutability-by-default and push logic to compile-time using constexpr (C++14+).
4
- ---
5
- # C++ Const-Correctness & Logic (Core Guidelines Section Con & ES)
6
-
7
- This skill ensures that C++ code is "immutable by default," reducing side effects and enabling better compiler optimizations.
8
-
9
- ## Policies
10
-
11
- ### 1. By Default, Make Objects Immutable
12
- * **Rule**: Declare all variables `const` unless they *must* be modified.
13
- * **Action**:
14
- - Use `const auto x = ...;` instead of `auto x = ...;`.
15
- - Use `const` for function results that won't be modified.
16
- * **Rationale**: Prevents accidental state mutation and improves code reasoning.
17
-
18
- ### 2. Const Member Functions
19
- * **Rule**: Any member function that does not modify the object's observable state must be `const`.
20
- * **Action**: Append `const` to the function signature: `T getValue() const { ... }`.
21
- * **Rationale**: Necessary for calling functions on `const` objects and `const&` parameters.
22
-
23
- ### 3. Compute at Compile-Time (`constexpr`)
24
- * **Rule**: Prefer `constexpr` for any value or simple logic that *can* be computed at compile-time.
25
- * **Action**:
26
- - Use `constexpr` for constants.
27
- - Declare mathematical or configuration functions as `constexpr` (C++14 allows complex logic in `constexpr`).
28
- * **Rationale**: Moves work from runtime to compile-time, reducing binary size and execution time.
29
-
30
- ### 4. Consistent Parameter Logic
31
- * **Rule**: Avoid passing by value for large types; avoid passing by non-const reference unless it's an "out" or "in-out" parameter.
32
- * **Action**:
33
- - **In parameters**: Pass cheap types (int, double, pointers, `string_view`) by value. Pass large types by `const&`.
34
- - **Out/In-out parameters**: Pass by `T&`.
35
- - **Sinks**: Pass by `T&&` (rvalue reference).
36
-
37
- ## Examples
38
-
39
- ### Before (Mutable/Runtime Logic)
40
- ```cpp
41
- int getMultiplier(int x) {
42
- return x * 10;
43
- }
44
-
45
- void process() {
46
- auto data = loadData();
47
- auto mult = getMultiplier(5); // mutable by accident
48
- data.apply(mult);
49
- }
50
- ```
51
-
52
- ### After (Const/Compile-time Logic)
53
- ```cpp
54
- constexpr int getMultiplier(int x) {
55
- return x * 10;
56
- }
57
-
58
- void process() {
59
- const auto data = loadData(); // data won't change
60
- constexpr auto mult = getMultiplier(5); // computed at compile time
61
- data.apply(mult);
62
- }
63
- ```
@@ -1,54 +0,0 @@
1
- # Const-Correctness Examples (C++14+)
2
-
3
- ### 1. Complex Const Initialization (Lambda)
4
- Sometimes you need to conditionally initialize a variable, but you want it to be `const` afterward.
5
-
6
- **Modern (C++14):**
7
- ```cpp
8
- const auto path = []() {
9
- if (auto env = std::getenv("APP_PATH")) {
10
- return std::string(env);
11
- }
12
- return std::string("/default/path");
13
- }(); // Immediately invoked lambda
14
- ```
15
-
16
- ### 2. Const-Correct Member Functions
17
- Ensure getters and inspectors are `const`.
18
-
19
- ```cpp
20
- class Config {
21
- int timeout = 30;
22
- public:
23
- // This is an inspector, must be const
24
- int getTimeout() const { return timeout; }
25
-
26
- // This is a mutator, cannot be const
27
- void setTimeout(int t) { timeout = t; }
28
- };
29
- ```
30
-
31
- ### 3. C++14 constexpr Logic
32
- C++14 expanded `constexpr` significantly (loops, branches allowed).
33
-
34
- ```cpp
35
- constexpr int fibonacci(int n) {
36
- if (n <= 1) return n;
37
- int a = 0, b = 1;
38
- for (int i = 2; i <= n; ++i) {
39
- int next = a + b;
40
- a = b;
41
- b = next;
42
- }
43
- return b;
44
- }
45
-
46
- // Result is computed by the compiler
47
- constexpr int fib10 = fibonacci(10);
48
- ```
49
-
50
- ### 4. Parameter Passing Guide
51
- - `void f(int)` : Fast to copy (Value)
52
- - `void f(const LargeObject&)` : Expensive to copy (Const Ref)
53
- - `void f(LargeObject&)` : I will modify this (Ref)
54
- - `void f(LargeObject&&)` : I will MOVE/OWN this (Rvalue Ref)
@@ -1,42 +0,0 @@
1
- ---
2
- name: C++ Safe Memory Handling
3
- description: Enforces Modern C++ practices (RAII, Smart Pointers) to prevent memory leaks, dangling pointers, and buffer overflows.
4
- ---
5
- # C++ Safe Memory Handling
6
-
7
- Guidelines for writing robust, memory-safe C++ code by leveraging Modern C++ features and RAII principles.
8
-
9
- ## Mandatory Policies
10
-
11
- ### 1. Smart Pointers by Default
12
- You MUST use smart pointers for all heap allocations.
13
- - Use `std::unique_ptr` for exclusive ownership. This is the preferred default.
14
- - Use `std::shared_ptr` only when multiple objects share ownership of a resource.
15
- - Use `std::weak_ptr` to break circular dependencies or for non-owning references that must be checked for validity.
16
-
17
- ### 2. Forbid raw new/delete
18
- You MUST NOT use raw `new` and `delete` operators.
19
- - Use `std::make_unique` (C++14+) or `std::make_shared` to allocate objects on the heap.
20
- - Exceptions are only allowed within low-level custom container implementations, which must be encapsulated.
21
-
22
- ### 3. Prefer Value Semantics
23
- Always prefer stack-allocated objects and value semantics over pointer-based indirection unless heap allocation is strictly necessary (e.g., polymorphism, very large objects, or dynamic lifetimes).
24
-
25
- ### 4. RAII for All Resources
26
- Every resource (file handles, sockets, mutexes, memory) MUST be managed by an object whose constructor acquires the resource and destructor releases it. Never rely on manual cleanup blocks.
27
-
28
- ### 5. Standard Containers
29
- NEVER use raw buffers or manually managed arrays.
30
- - Use `std::vector` for dynamic arrays.
31
- - Use `std::string` for text.
32
- - Use `std::array` (C++11) for fixed-size stack arrays.
33
- - Access elements using `.at()` if bounds checking is required for security-critical logic.
34
-
35
- ## Critical Rules
36
- - **No Dangling Pointers**: Never return a pointer or reference to a local stack-allocated variable.
37
- - **Rule of Zero/Five**: Follow the "Rule of Zero" (prefer components that handle their own resource management). If manual management is needed, correctly implement the "Rule of Five".
38
- - **Nullable Checks**: Always check pointers (even smart ones) for `nullptr` before dereferencing if there is any chance they could be empty.
39
-
40
- ## Resources
41
- - [Modern C++ Examples](file:///skills/cpp-memory-handling/examples/modern-cpp.md)
42
- - [Smart Pointer Reference](file:///skills/cpp-memory-handling/examples/smart-pointers.md)
@@ -1,49 +0,0 @@
1
- # Modern C++ Safe Memory Examples
2
-
3
- Demonstrating RAII and safe resource management in modern C++.
4
-
5
- ## RAII Resource Management
6
-
7
- ```cpp
8
- #include <iostream>
9
- #include <fstream>
10
- #include <vector>
11
- #include <memory>
12
-
13
- class FileHandler {
14
- public:
15
- FileHandler(const std::string& filename) : file(filename) {
16
- if (!file.is_open()) throw std::runtime_error("Could not open file");
17
- }
18
- // Destructor automatically closes the file
19
- ~FileHandler() { if (file.is_open()) file.close(); }
20
-
21
- void write(const std::string& data) { file << data; }
22
-
23
- private:
24
- std::ofstream file;
25
- };
26
-
27
- void log_data(const std::string& message) {
28
- // RAII handles lifetime. No manual close needed.
29
- FileHandler handler("app.log");
30
- handler.write(message);
31
- }
32
- ```
33
-
34
- ## Vector vs Raw Arrays
35
-
36
- ```cpp
37
- // BAD: Manual memory management
38
- void bad_array() {
39
- int* arr = new int[100];
40
- // ... logic ...
41
- delete[] arr; // Manual cleanup is error-prone
42
- }
43
-
44
- // GOOD: Automatic memory management
45
- void safe_vector() {
46
- std::vector<int> arr(100);
47
- // Vector manages its own heap memory. RAII cleans up at scope exit.
48
- }
49
- ```
@@ -1,46 +0,0 @@
1
- # C++ Smart Pointer Reference
2
-
3
- Guidelines for selecting and using smart pointers correctly.
4
-
5
- ## unique_ptr (Preferred Default)
6
- - Represents **exclusive ownership**.
7
- - Zero runtime overhead compared to raw pointers.
8
-
9
- ```cpp
10
- #include <memory>
11
-
12
- class Widget { /* ... */ };
13
-
14
- void exclusive_use() {
15
- // Use make_unique for safety and efficiency
16
- auto widget = std::make_unique<Widget>();
17
-
18
- // Ownership can be moved but not copied
19
- std::unique_ptr<Widget> other = std::move(widget);
20
- }
21
- ```
22
-
23
- ## shared_ptr (For Shared Ownership)
24
- - Use only when **multiple** owners truly exist.
25
- - Reference counting has small overhead.
26
-
27
- ```cpp
28
- void shared_use() {
29
- auto shared_widget = std::make_shared<Widget>();
30
-
31
- auto owner1 = shared_widget; // Count = 2
32
- auto owner2 = shared_widget; // Count = 3
33
- }
34
- ```
35
-
36
- ## weak_ptr (Breaking Cycles)
37
- - Non-owning reference. Must be locked before use.
38
-
39
- ```cpp
40
- void weak_use(std::weak_ptr<Widget> weak_widget) {
41
- if (auto shared = weak_widget.lock()) {
42
- // Resource is still alive
43
- shared->do_something();
44
- }
45
- }
46
- ```
@@ -1,64 +0,0 @@
1
- ---
2
- name: C++ Modern Composition
3
- description: Replace legacy C patterns with STL, Ranges, and modern C++ abstractions (C++14+).
4
- ---
5
- # C++ Modern Composition (Core Guidelines Section STL, CPL, ES)
6
-
7
- This skill forces the transition from legacy "C-style" C++ to modern, declarative, and safer C++ idioms.
8
-
9
- ## Policies
10
-
11
- ### 1. STL Algorithms over Manual Loops
12
- * **Rule**: Never write a raw `for` or `while` loop for operations supported by `<algorithm>` or `<numeric>`.
13
- * **Action**:
14
- - Use `std::any_of`, `std::all_of`, `std::find_if`, `std::transform`, `std::accumulate`.
15
- - In C++20 projects, prefer `std::ranges` versions.
16
- * **Rationale**: Reduces "off-by-one" errors and improves intent readability.
17
-
18
- ### 2. Eradicate C-style Casts and Macros
19
- * **Rule**: Ban `(type)value` and `#define` for logic/constants.
20
- * **Action**:
21
- - Use `static_cast`, `reinterpret_cast`, or `const_cast`.
22
- - Replace macros with `constexpr` variables or `inline` functions/templates.
23
- * **Rationale**: Named casts are searchable and safer; `constexpr` respects namespaces and scopes.
24
-
25
- ### 3. Universal Initialization
26
- * **Rule**: Prefer `{}` initialization to avoid the "Most Vexing Parse".
27
- * **Action**: Use `auto x = Type{args...};` or `Type x{args...};`.
28
- * **Rationale**: Prevents narrowing conversions (e.g., `int x{3.5}` is a compiler error, while `int x = 3.5` is not).
29
-
30
- ### 4. Zero Raw Memory Manipulation
31
- * **Rule**: Ban `memset`, `memcpy`, and `malloc`.
32
- * **Action**:
33
- - Use `std::fill`, `std::copy`, or `container.assign()`.
34
- - Use `std::vector` or `std::array` instead of raw arrays.
35
- * **Rationale**: Standard containers are bounds-checked (via `.at()`) and manage their own memory.
36
-
37
- ## Examples
38
-
39
- ### Before (C-style C++)
40
- ```cpp
41
- #define MAX_BUFFER 1024
42
- int arr[MAX_BUFFER];
43
- memset(arr, 0, sizeof(arr));
44
-
45
- bool found = false;
46
- for (int i = 0; i < MAX_BUFFER; ++i) {
47
- if (arr[i] == (int)someFloat) {
48
- found = true;
49
- break;
50
- }
51
- }
52
- ```
53
-
54
- ### After (Modern C++)
55
- ```cpp
56
- constexpr size_t MaxBuffer = 1024;
57
- std::array<int, MaxBuffer> arr;
58
- arr.fill(0);
59
-
60
- auto target = static_cast<int>(someFloat);
61
- bool found = std::any_of(arr.begin(), arr.end(), [target](int v) {
62
- return v == target;
63
- });
64
- ```
@@ -1,51 +0,0 @@
1
- # Modern Composition Examples (C++14+)
2
-
3
- ### 1. Data Transformation (Transform)
4
- **Legacy:**
5
- ```cpp
6
- std::vector<int> inputs = {1, 2, 3};
7
- std::vector<int> outputs;
8
- for (size_t i = 0; i < inputs.size(); ++i) {
9
- outputs.push_back(inputs[i] * 2);
10
- }
11
- ```
12
-
13
- **Modern (C++14):**
14
- ```cpp
15
- std::vector<int> inputs = {1, 2, 3};
16
- std::vector<int> outputs;
17
- outputs.reserve(inputs.size());
18
- std::transform(inputs.begin(), inputs.end(), std::back_inserter(outputs),
19
- [](int n) { return n * 2; });
20
- ```
21
-
22
- ### 2. Summation and Reduction (Accumulate)
23
- **Modern (C++14):**
24
- ```cpp
25
- #include <numeric>
26
-
27
- std::vector<double> prices = {10.5, 20.0, 5.25};
28
- double total = std::accumulate(prices.begin(), prices.end(), 0.0);
29
- ```
30
-
31
- ### 3. Safe Narrowing Protection
32
- **Logic:**
33
- ```cpp
34
- double d = 7.9;
35
- // int i{d}; // Error: narrowing conversion from 'double' to 'int'
36
- int i = static_cast<int>(d); // Explicit and safe
37
- ```
38
-
39
- ### 4. Replacing Function Macros
40
- **Legacy:**
41
- ```cpp
42
- #define SQUARE(x) ((x)*(x))
43
- ```
44
-
45
- **Modern (C++14):**
46
- ```cpp
47
- template<typename T>
48
- constexpr T square(T t) {
49
- return t * t;
50
- }
51
- ```
@@ -1,55 +0,0 @@
1
- ---
2
- name: C++ Robust Interfaces
3
- description: Enforce contract-based design and strong typing in C++ interfaces (C++14+).
4
- ---
5
- # C++ Robust Interfaces (Core Guidelines Section I & E)
6
-
7
- This skill ensures that C++ interfaces follow contract-based design principles to improve safety, clarity, and maintainability.
8
-
9
- ## Policies
10
-
11
- ### 1. Make Interfaces Explicit
12
- * **Rule**: Functions must explicitly state their requirements (pre-conditions) and guarantees (post-conditions).
13
- * **Action**: Use `Expects()` and `Ensures()` (from GSL) or standardized comments if GSL is unavailable.
14
- * **Rationale**: Detects integration bugs at the call site rather than deep in the implementation.
15
-
16
- ### 2. Strong Typing over Primitive Types
17
- * **Rule**: Avoid "Boolean Blindness" and `void*`.
18
- * **Action**:
19
- - Use `enum class` for options instead of `bool`.
20
- - Use `std::chrono` for time instead of `int`.
21
- - Use specific types/structs instead of a long list of primitive arguments.
22
-
23
- ### 3. Clear Ownership and Lifetime
24
- * **Rule**: A raw pointer (`T*`) in an interface **must never** represent ownership.
25
- * **Action**:
26
- - Use `gsl::not_null<T*>` for pointers that cannot be null.
27
- - Use `std::unique_ptr` or `std::shared_ptr` ONLY if the function is participating in ownership/lifetime management.
28
- - Prefer `T&` for arguments that must exist and aren't owned by the callee.
29
-
30
- ### 4. Sequence Safety
31
- * **Rule**: Never pass an array as a raw pointer + size.
32
- * **Action**:
33
- - Use `gsl::span<T>` (C++14/17 via GSL) or `std::span<T>` (C++20).
34
- - Use `std::string_view` for read-only strings.
35
-
36
- ## Examples
37
-
38
- ### Before (Fragile Interface)
39
- ```cpp
40
- // What does 'flag' mean? Is data allowed to be null? Is it an array?
41
- void processData(char* data, int size, bool flag);
42
- ```
43
-
44
- ### After (Robust Interface)
45
- ```cpp
46
- #include <gsl/gsl>
47
-
48
- enum class ProcessingMode { Fast, Thorough };
49
-
50
- // Explicit contract: data must not be null, size is handled by span
51
- void processData(gsl::span<const char> data, ProcessingMode mode) {
52
- Expects(!data.empty());
53
- // ...
54
- }
55
- ```
@@ -1,56 +0,0 @@
1
- # Robust Interface Examples (C++14+)
2
-
3
- ### 1. Avoiding Boolean Blindness
4
- **Incorrect:**
5
- ```cpp
6
- void setWindowVisible(bool visible, bool animate);
7
- // Call site: setWindowVisible(true, false); // What is false?
8
- ```
9
-
10
- **Correct (C++14):**
11
- ```cpp
12
- enum class Visibility { Visible, Hidden };
13
- enum class Animation { Enabled, Disabled };
14
-
15
- void setWindowVisible(Visibility v, Animation a);
16
- // Call site: setWindowVisible(Visibility::Visible, Animation::Disabled);
17
- ```
18
-
19
- ### 2. Contract-Based Validation
20
- Using GSL (Guidelines Support Library) style:
21
-
22
- ```cpp
23
- #include <gsl/gsl>
24
-
25
- class User {
26
- public:
27
- // Ensure name is never null or empty
28
- void setName(gsl::not_null<const char*> name) {
29
- Expects(std::strlen(name) > 0);
30
- this->name = name;
31
- }
32
- private:
33
- std::string name;
34
- };
35
- ```
36
-
37
- ### 3. Safe Sequences with Span
38
- Replaces pointer + length pairs which are prone to buffer overflows.
39
-
40
- ```cpp
41
- #include <gsl/gsl> // Use gsl::span in C++14
42
-
43
- float calculateAverage(gsl::span<const float> values) {
44
- Expects(!values.empty());
45
-
46
- float sum = 0.0f;
47
- for (float v : values) {
48
- sum += v;
49
- }
50
- return sum / values.size();
51
- }
52
-
53
- // Usage:
54
- // float arr[] = {1, 2, 3};
55
- // calculateAverage(arr); // Automatic conversion to span
56
- ```