ma-agents 2.20.2 → 2.21.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 (148) hide show
  1. package/.opencode/skills/.ma-agents.json +241 -0
  2. package/.opencode/skills/MANIFEST.yaml +254 -0
  3. package/.opencode/skills/ai-audit-trail/SKILL.md +23 -0
  4. package/.opencode/skills/auto-bug-detection/SKILL.md +169 -0
  5. package/.opencode/skills/cmake-best-practices/SKILL.md +64 -0
  6. package/.opencode/skills/cmake-best-practices/examples/cmake.md +59 -0
  7. package/.opencode/skills/code-documentation/SKILL.md +57 -0
  8. package/.opencode/skills/code-documentation/examples/cpp.md +29 -0
  9. package/.opencode/skills/code-documentation/examples/csharp.md +28 -0
  10. package/.opencode/skills/code-documentation/examples/javascript_typescript.md +28 -0
  11. package/.opencode/skills/code-documentation/examples/python.md +57 -0
  12. package/.opencode/skills/code-review/SKILL.md +43 -0
  13. package/.opencode/skills/commit-message/SKILL.md +79 -0
  14. package/.opencode/skills/cpp-best-practices/SKILL.md +234 -0
  15. package/.opencode/skills/cpp-best-practices/examples/modern-idioms.md +189 -0
  16. package/.opencode/skills/cpp-best-practices/examples/naming-and-organization.md +102 -0
  17. package/.opencode/skills/cpp-concurrency-safety/SKILL.md +60 -0
  18. package/.opencode/skills/cpp-concurrency-safety/examples/concurrency.md +73 -0
  19. package/.opencode/skills/cpp-const-correctness/SKILL.md +63 -0
  20. package/.opencode/skills/cpp-const-correctness/examples/const_correctness.md +54 -0
  21. package/.opencode/skills/cpp-memory-handling/SKILL.md +42 -0
  22. package/.opencode/skills/cpp-memory-handling/examples/modern-cpp.md +49 -0
  23. package/.opencode/skills/cpp-memory-handling/examples/smart-pointers.md +46 -0
  24. package/.opencode/skills/cpp-modern-composition/SKILL.md +64 -0
  25. package/.opencode/skills/cpp-modern-composition/examples/composition.md +51 -0
  26. package/.opencode/skills/cpp-robust-interfaces/SKILL.md +55 -0
  27. package/.opencode/skills/cpp-robust-interfaces/examples/interfaces.md +56 -0
  28. package/.opencode/skills/create-hardened-docker-skill/SKILL.md +637 -0
  29. package/.opencode/skills/create-hardened-docker-skill/scripts/create-all.sh +489 -0
  30. package/.opencode/skills/csharp-best-practices/SKILL.md +278 -0
  31. package/.opencode/skills/docker-hardening-verification/SKILL.md +28 -0
  32. package/.opencode/skills/docker-hardening-verification/scripts/verify-hardening.sh +39 -0
  33. package/.opencode/skills/docker-image-signing/SKILL.md +28 -0
  34. package/.opencode/skills/docker-image-signing/scripts/sign-image.sh +33 -0
  35. package/.opencode/skills/document-revision-history/SKILL.md +104 -0
  36. package/.opencode/skills/git-workflow-skill/SKILL.md +194 -0
  37. package/.opencode/skills/git-workflow-skill/hooks/commit-msg +61 -0
  38. package/.opencode/skills/git-workflow-skill/hooks/pre-commit +38 -0
  39. package/.opencode/skills/git-workflow-skill/hooks/prepare-commit-msg +56 -0
  40. package/.opencode/skills/git-workflow-skill/scripts/finish-feature.sh +192 -0
  41. package/.opencode/skills/git-workflow-skill/scripts/install-hooks.sh +55 -0
  42. package/.opencode/skills/git-workflow-skill/scripts/start-feature.sh +110 -0
  43. package/.opencode/skills/git-workflow-skill/scripts/validate-workflow.sh +229 -0
  44. package/.opencode/skills/js-ts-dependency-mgmt/SKILL.md +49 -0
  45. package/.opencode/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +60 -0
  46. package/.opencode/skills/js-ts-security-skill/SKILL.md +64 -0
  47. package/.opencode/skills/js-ts-security-skill/scripts/verify-security.sh +136 -0
  48. package/.opencode/skills/logging-best-practices/SKILL.md +50 -0
  49. package/.opencode/skills/logging-best-practices/examples/cpp.md +36 -0
  50. package/.opencode/skills/logging-best-practices/examples/csharp.md +49 -0
  51. package/.opencode/skills/logging-best-practices/examples/javascript.md +77 -0
  52. package/.opencode/skills/logging-best-practices/examples/python.md +57 -0
  53. package/.opencode/skills/logging-best-practices/references/logging-standards.md +29 -0
  54. package/.opencode/skills/open-presentation/SKILL.md +35 -0
  55. package/.opencode/skills/opentelemetry-best-practices/SKILL.md +34 -0
  56. package/.opencode/skills/opentelemetry-best-practices/examples/go.md +32 -0
  57. package/.opencode/skills/opentelemetry-best-practices/examples/javascript.md +58 -0
  58. package/.opencode/skills/opentelemetry-best-practices/examples/python.md +37 -0
  59. package/.opencode/skills/opentelemetry-best-practices/references/otel-standards.md +37 -0
  60. package/.opencode/skills/python-best-practices/SKILL.md +385 -0
  61. package/.opencode/skills/python-dependency-mgmt/SKILL.md +42 -0
  62. package/.opencode/skills/python-dependency-mgmt/examples/dependency_mgmt.md +67 -0
  63. package/.opencode/skills/python-security-skill/SKILL.md +56 -0
  64. package/.opencode/skills/python-security-skill/examples/security.md +56 -0
  65. package/.opencode/skills/self-signed-cert/SKILL.md +42 -0
  66. package/.opencode/skills/self-signed-cert/scripts/generate-cert.ps1 +45 -0
  67. package/.opencode/skills/self-signed-cert/scripts/generate-cert.sh +43 -0
  68. package/.opencode/skills/skill-creator/SKILL.md +196 -0
  69. package/.opencode/skills/skill-creator/references/output-patterns.md +82 -0
  70. package/.opencode/skills/skill-creator/references/workflows.md +28 -0
  71. package/.opencode/skills/skill-creator/scripts/init_skill.py +208 -0
  72. package/.opencode/skills/skill-creator/scripts/package_skill.py +99 -0
  73. package/.opencode/skills/skill-creator/scripts/quick_validate.py +113 -0
  74. package/.opencode/skills/story-status-lookup/SKILL.md +78 -0
  75. package/.opencode/skills/test-accompanied-development/SKILL.md +50 -0
  76. package/.opencode/skills/test-generator/SKILL.md +65 -0
  77. package/.opencode/skills/vercel-react-best-practices/SKILL.md +109 -0
  78. package/.opencode/skills/verify-hardened-docker-skill/SKILL.md +442 -0
  79. package/.opencode/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +439 -0
  80. package/AiAudit.md +5 -0
  81. package/QUICK_START.md +11 -5
  82. package/README.md +52 -1
  83. package/bin/cli.js +31 -4
  84. package/docs/BMAD_AI_Development_Training.pptx +0 -0
  85. package/docs/technical-notes/context-persistence-research.md +434 -0
  86. package/docs/technical-notes/enforcement-hooks-research.md +415 -0
  87. package/lib/agents.js +34 -0
  88. package/lib/bmad-extension/agents/bmm-architect.customize.yaml +5 -0
  89. package/lib/bmad-extension/agents/bmm-bmad-master.customize.yaml +5 -0
  90. package/lib/bmad-extension/agents/bmm-cyber.customize.yaml +30 -0
  91. package/lib/bmad-extension/agents/bmm-dev.customize.yaml +5 -0
  92. package/lib/bmad-extension/agents/bmm-devops.customize.yaml +30 -0
  93. package/lib/bmad-extension/agents/bmm-mil498.customize.yaml +42 -0
  94. package/lib/bmad-extension/agents/bmm-pm.customize.yaml +5 -0
  95. package/lib/bmad-extension/agents/bmm-qa.customize.yaml +5 -0
  96. package/lib/bmad-extension/agents/bmm-sm.customize.yaml +5 -0
  97. package/lib/bmad-extension/agents/bmm-sre.customize.yaml +30 -0
  98. package/lib/bmad-extension/agents/bmm-tech-writer.customize.yaml +5 -0
  99. package/lib/bmad-extension/agents/bmm-ux-designer.customize.yaml +5 -0
  100. package/lib/bmad-extension/module-help.csv +7 -0
  101. package/lib/bmad-extension/module.yaml +3 -0
  102. package/lib/bmad-extension/workflows/add-sprint/workflow.md +112 -0
  103. package/lib/bmad-extension/workflows/add-to-sprint/workflow.md +206 -0
  104. package/lib/bmad-extension/workflows/create-bug-story/workflow.md +186 -0
  105. package/lib/bmad-extension/workflows/modify-sprint/workflow.md +250 -0
  106. package/lib/bmad-extension/workflows/project-context-expansion/workflow.md +229 -0
  107. package/lib/bmad-extension/workflows/sprint-status-view/workflow.md +193 -0
  108. package/lib/bmad.js +84 -6
  109. package/lib/hooks/claude-code/verify-manifest.js +56 -0
  110. package/lib/installer.js +282 -1
  111. package/lib/methodology/BMAD_AI_Development_Training.pptx +0 -0
  112. package/lib/methodology/version.json +7 -0
  113. package/lib/skill-authoring.js +732 -0
  114. package/lib/templates/project-context.template.md +47 -0
  115. package/opencode.json +8 -0
  116. package/package.json +2 -2
  117. package/skills/auto-bug-detection/SKILL.md +165 -0
  118. package/skills/auto-bug-detection/skill.json +8 -0
  119. package/skills/code-review/SKILL.md +40 -0
  120. package/skills/cpp-best-practices/SKILL.md +230 -0
  121. package/skills/cpp-best-practices/examples/modern-idioms.md +189 -0
  122. package/skills/cpp-best-practices/examples/naming-and-organization.md +102 -0
  123. package/skills/cpp-best-practices/skill.json +25 -0
  124. package/skills/csharp-best-practices/SKILL.md +274 -0
  125. package/skills/csharp-best-practices/skill.json +23 -0
  126. package/skills/git-workflow-skill/skill.json +1 -1
  127. package/skills/open-presentation/SKILL.md +31 -0
  128. package/skills/open-presentation/skill.json +11 -0
  129. package/skills/python-best-practices/SKILL.md +381 -0
  130. package/skills/python-best-practices/skill.json +26 -0
  131. package/skills/story-status-lookup/SKILL.md +74 -0
  132. package/skills/story-status-lookup/skill.json +8 -0
  133. package/test/agent-injection-strategy.test.js +13 -7
  134. package/test/bmad-extension.test.js +237 -0
  135. package/test/bmad-output-policy.test.js +119 -0
  136. package/test/create-agent.test.js +232 -0
  137. package/test/enforcement-hooks.test.js +324 -0
  138. package/test/generate-project-context.test.js +337 -0
  139. package/test/integration-verification.test.js +402 -0
  140. package/test/opencode-agent.test.js +150 -0
  141. package/test/opencode-json-error.test.js +260 -0
  142. package/test/opencode-json-injection.test.js +256 -0
  143. package/test/opencode-json-merge.test.js +299 -0
  144. package/test/skill-authoring.test.js +272 -0
  145. package/test/skill-customize-agent.test.js +253 -0
  146. package/test/skill-mandatory.test.js +235 -0
  147. package/test/skill-validation.test.js +378 -0
  148. package/test/yes-flag.test.js +1 -1
@@ -0,0 +1,241 @@
1
+ {
2
+ "manifestVersion": "1.1.0",
3
+ "agent": "opencode",
4
+ "agents": [
5
+ "opencode"
6
+ ],
7
+ "scope": "project",
8
+ "skills": {
9
+ "ai-audit-trail": {
10
+ "version": "1.0.0",
11
+ "installedAt": "2026-03-23T12:19:19.149Z",
12
+ "updatedAt": "2026-03-23T12:19:19.149Z",
13
+ "installerVersion": "2.20.3",
14
+ "agentVersion": "1.0.0"
15
+ },
16
+ "auto-bug-detection": {
17
+ "version": "1.0.0",
18
+ "installedAt": "2026-03-23T12:19:19.319Z",
19
+ "updatedAt": "2026-03-23T12:19:19.319Z",
20
+ "installerVersion": "2.20.3",
21
+ "agentVersion": "1.0.0"
22
+ },
23
+ "cmake-best-practices": {
24
+ "version": "1.0.0",
25
+ "installedAt": "2026-03-23T12:19:19.584Z",
26
+ "updatedAt": "2026-03-23T12:19:19.584Z",
27
+ "installerVersion": "2.20.3",
28
+ "agentVersion": "1.0.0"
29
+ },
30
+ "code-documentation": {
31
+ "version": "1.0.0",
32
+ "installedAt": "2026-03-23T12:19:20.028Z",
33
+ "updatedAt": "2026-03-23T12:19:20.028Z",
34
+ "installerVersion": "2.20.3",
35
+ "agentVersion": "1.0.0"
36
+ },
37
+ "code-review": {
38
+ "version": "1.0.0",
39
+ "installedAt": "2026-03-23T12:19:20.260Z",
40
+ "updatedAt": "2026-03-23T12:19:20.260Z",
41
+ "installerVersion": "2.20.3",
42
+ "agentVersion": "1.0.0"
43
+ },
44
+ "commit-message": {
45
+ "version": "1.0.0",
46
+ "installedAt": "2026-03-23T12:19:20.490Z",
47
+ "updatedAt": "2026-03-23T12:19:20.490Z",
48
+ "installerVersion": "2.20.3",
49
+ "agentVersion": "1.0.0"
50
+ },
51
+ "cpp-best-practices": {
52
+ "version": "1.0.0",
53
+ "installedAt": "2026-03-23T12:19:20.829Z",
54
+ "updatedAt": "2026-03-23T12:19:20.829Z",
55
+ "installerVersion": "2.20.3",
56
+ "agentVersion": "1.0.0"
57
+ },
58
+ "cpp-concurrency-safety": {
59
+ "version": "1.0.0",
60
+ "installedAt": "2026-03-23T12:19:21.100Z",
61
+ "updatedAt": "2026-03-23T12:19:21.100Z",
62
+ "installerVersion": "2.20.3",
63
+ "agentVersion": "1.0.0"
64
+ },
65
+ "cpp-const-correctness": {
66
+ "version": "1.0.0",
67
+ "installedAt": "2026-03-23T12:19:21.369Z",
68
+ "updatedAt": "2026-03-23T12:19:21.369Z",
69
+ "installerVersion": "2.20.3",
70
+ "agentVersion": "1.0.0"
71
+ },
72
+ "cpp-memory-handling": {
73
+ "version": "1.0.0",
74
+ "installedAt": "2026-03-23T12:19:21.542Z",
75
+ "updatedAt": "2026-03-23T12:19:21.542Z",
76
+ "installerVersion": "2.20.3",
77
+ "agentVersion": "1.0.0"
78
+ },
79
+ "cpp-modern-composition": {
80
+ "version": "1.0.0",
81
+ "installedAt": "2026-03-23T12:19:21.854Z",
82
+ "updatedAt": "2026-03-23T12:19:21.854Z",
83
+ "installerVersion": "2.20.3",
84
+ "agentVersion": "1.0.0"
85
+ },
86
+ "cpp-robust-interfaces": {
87
+ "version": "1.0.0",
88
+ "installedAt": "2026-03-23T12:19:22.369Z",
89
+ "updatedAt": "2026-03-23T12:19:22.369Z",
90
+ "installerVersion": "2.20.3",
91
+ "agentVersion": "1.0.0"
92
+ },
93
+ "create-hardened-docker-skill": {
94
+ "version": "1.0.0",
95
+ "installedAt": "2026-03-23T12:19:22.631Z",
96
+ "updatedAt": "2026-03-23T12:19:22.631Z",
97
+ "installerVersion": "2.20.3",
98
+ "agentVersion": "1.0.0"
99
+ },
100
+ "csharp-best-practices": {
101
+ "version": "1.0.0",
102
+ "installedAt": "2026-03-23T12:19:22.901Z",
103
+ "updatedAt": "2026-03-23T12:19:22.901Z",
104
+ "installerVersion": "2.20.3",
105
+ "agentVersion": "1.0.0"
106
+ },
107
+ "docker-hardening-verification": {
108
+ "version": "1.0.0",
109
+ "installedAt": "2026-03-23T12:19:23.173Z",
110
+ "updatedAt": "2026-03-23T12:19:23.173Z",
111
+ "installerVersion": "2.20.3",
112
+ "agentVersion": "1.0.0"
113
+ },
114
+ "docker-image-signing": {
115
+ "version": "1.0.0",
116
+ "installedAt": "2026-03-23T12:19:23.700Z",
117
+ "updatedAt": "2026-03-23T12:19:23.700Z",
118
+ "installerVersion": "2.20.3",
119
+ "agentVersion": "1.0.0"
120
+ },
121
+ "document-revision-history": {
122
+ "version": "1.0.0",
123
+ "installedAt": "2026-03-23T12:19:23.854Z",
124
+ "updatedAt": "2026-03-23T12:19:23.854Z",
125
+ "installerVersion": "2.20.3",
126
+ "agentVersion": "1.0.0"
127
+ },
128
+ "git-workflow-skill": {
129
+ "version": "2.1.0",
130
+ "installedAt": "2026-03-23T12:19:24.284Z",
131
+ "updatedAt": "2026-03-23T12:19:24.284Z",
132
+ "installerVersion": "2.20.3",
133
+ "agentVersion": "1.0.0"
134
+ },
135
+ "js-ts-dependency-mgmt": {
136
+ "version": "1.0.0",
137
+ "installedAt": "2026-03-23T12:19:24.578Z",
138
+ "updatedAt": "2026-03-23T12:19:24.578Z",
139
+ "installerVersion": "2.20.3",
140
+ "agentVersion": "1.0.0"
141
+ },
142
+ "js-ts-security-skill": {
143
+ "version": "1.0.0",
144
+ "installedAt": "2026-03-23T12:19:24.843Z",
145
+ "updatedAt": "2026-03-23T12:19:24.843Z",
146
+ "installerVersion": "2.20.3",
147
+ "agentVersion": "1.0.0"
148
+ },
149
+ "logging-best-practices": {
150
+ "version": "1.0.0",
151
+ "installedAt": "2026-03-23T12:19:25.185Z",
152
+ "updatedAt": "2026-03-23T12:19:25.185Z",
153
+ "installerVersion": "2.20.3",
154
+ "agentVersion": "1.0.0"
155
+ },
156
+ "open-presentation": {
157
+ "version": "1.0.0",
158
+ "installedAt": "2026-03-23T12:19:25.380Z",
159
+ "updatedAt": "2026-03-23T12:19:25.380Z",
160
+ "installerVersion": "2.20.3",
161
+ "agentVersion": "1.0.0"
162
+ },
163
+ "opentelemetry-best-practices": {
164
+ "version": "1.0.0",
165
+ "installedAt": "2026-03-23T12:19:25.652Z",
166
+ "updatedAt": "2026-03-23T12:19:25.652Z",
167
+ "installerVersion": "2.20.3",
168
+ "agentVersion": "1.0.0"
169
+ },
170
+ "python-best-practices": {
171
+ "version": "1.0.0",
172
+ "installedAt": "2026-03-23T12:19:25.865Z",
173
+ "updatedAt": "2026-03-23T12:19:25.865Z",
174
+ "installerVersion": "2.20.3",
175
+ "agentVersion": "1.0.0"
176
+ },
177
+ "python-dependency-mgmt": {
178
+ "version": "1.0.0",
179
+ "installedAt": "2026-03-23T12:19:26.189Z",
180
+ "updatedAt": "2026-03-23T12:19:26.189Z",
181
+ "installerVersion": "2.20.3",
182
+ "agentVersion": "1.0.0"
183
+ },
184
+ "python-security-skill": {
185
+ "version": "1.0.0",
186
+ "installedAt": "2026-03-23T12:19:26.439Z",
187
+ "updatedAt": "2026-03-23T12:19:26.439Z",
188
+ "installerVersion": "2.20.3",
189
+ "agentVersion": "1.0.0"
190
+ },
191
+ "self-signed-cert": {
192
+ "version": "1.0.0",
193
+ "installedAt": "2026-03-23T12:19:26.597Z",
194
+ "updatedAt": "2026-03-23T12:19:26.597Z",
195
+ "installerVersion": "2.20.3",
196
+ "agentVersion": "1.0.0"
197
+ },
198
+ "skill-creator": {
199
+ "version": "1.0.0",
200
+ "installedAt": "2026-03-23T12:19:26.879Z",
201
+ "updatedAt": "2026-03-23T12:19:26.879Z",
202
+ "installerVersion": "2.20.3",
203
+ "agentVersion": "1.0.0"
204
+ },
205
+ "story-status-lookup": {
206
+ "version": "1.0.0",
207
+ "installedAt": "2026-03-23T12:19:27.066Z",
208
+ "updatedAt": "2026-03-23T12:19:27.066Z",
209
+ "installerVersion": "2.20.3",
210
+ "agentVersion": "1.0.0"
211
+ },
212
+ "test-accompanied-development": {
213
+ "version": "1.0.0",
214
+ "installedAt": "2026-03-23T12:19:27.198Z",
215
+ "updatedAt": "2026-03-23T12:19:27.198Z",
216
+ "installerVersion": "2.20.3",
217
+ "agentVersion": "1.0.0"
218
+ },
219
+ "test-generator": {
220
+ "version": "1.0.0",
221
+ "installedAt": "2026-03-23T12:19:27.401Z",
222
+ "updatedAt": "2026-03-23T12:19:27.401Z",
223
+ "installerVersion": "2.20.3",
224
+ "agentVersion": "1.0.0"
225
+ },
226
+ "vercel-react-best-practices": {
227
+ "version": "1.0.0",
228
+ "installedAt": "2026-03-23T12:19:27.536Z",
229
+ "updatedAt": "2026-03-23T12:19:27.536Z",
230
+ "installerVersion": "2.20.3",
231
+ "agentVersion": "1.0.0"
232
+ },
233
+ "verify-hardened-docker-skill": {
234
+ "version": "1.0.0",
235
+ "installedAt": "2026-03-23T12:19:27.724Z",
236
+ "updatedAt": "2026-03-23T12:19:27.724Z",
237
+ "installerVersion": "2.20.3",
238
+ "agentVersion": "1.0.0"
239
+ }
240
+ }
241
+ }
@@ -0,0 +1,254 @@
1
+ # MANIFEST.yaml
2
+
3
+ skills:
4
+ - id: ai-audit-trail
5
+ file: ai-audit-trail/SKILL.md
6
+ description: Tracks AI agent session activity, time spent, and token usage in a project-level AiAudit.md log file.
7
+ applies_when:
8
+ - starting a new agent task or workflow
9
+ - completing a document generation session
10
+ - finishing any multi-step agent workflow
11
+ always_load: true
12
+
13
+ - id: auto-bug-detection
14
+ file: auto-bug-detection/SKILL.md
15
+ description: Instructs agents to identify and report defects in already-delivered code
16
+
17
+ - id: cmake-best-practices
18
+ file: cmake-best-practices/SKILL.md
19
+ description: Enforce target-based, property-oriented CMake patterns (CMake 3.0+).
20
+ applies_when:
21
+ - creating or modifying CMakeLists.txt files
22
+ - managing C++ project dependencies via CMake
23
+ - defining C++ build configurations
24
+ always_load: true
25
+
26
+ - id: code-documentation
27
+ file: code-documentation/SKILL.md
28
+ description: Standardize file headers and method documentation across C++, C#, JS, TS, and Python.
29
+ applies_when:
30
+ - creating or modifying source code files
31
+ - defining new functions, methods, or classes
32
+ - refactoring code logic
33
+ - documenting APIs
34
+ always_load: true
35
+
36
+ - id: code-review
37
+ file: code-review/SKILL.md
38
+ description: Performs comprehensive code reviews with best practices
39
+
40
+ - id: commit-message
41
+ file: commit-message/SKILL.md
42
+ description: Generates conventional commit messages from code changes
43
+
44
+ - id: cpp-best-practices
45
+ file: cpp-best-practices/SKILL.md
46
+ description: Comprehensive C++ coding standards covering naming conventions, modern C++ idioms (C++17/20/23), error handling, and build guidelines. Cross-references domain-specific C++ skills for deep-dives.
47
+ applies_when:
48
+ - writing c++ code
49
+ - modifying c++ code
50
+ - creating new c++ files or classes
51
+ - reviewing c++ code style or conventions
52
+ - refactoring c++ code
53
+ - setting up a c++ project
54
+ always_load: true
55
+
56
+ - id: cpp-concurrency-safety
57
+ file: cpp-concurrency-safety/SKILL.md
58
+ description: Enforce safe multi-threading patterns using RAII locking and task-based parallelism (C++14+).
59
+ applies_when:
60
+ - working with C++ threads
61
+ - using C++ mutexes or locking primitives
62
+ - performing C++ asynchronous operations
63
+ - designing multi-threaded C++ systems
64
+
65
+ - id: cpp-const-correctness
66
+ file: cpp-const-correctness/SKILL.md
67
+ description: Enforce immutability-by-default and push logic to compile-time using constexpr (C++14+).
68
+ applies_when:
69
+ - declaring C++ variables
70
+ - defining C++ member functions
71
+ - performing C++ compile-time calculations
72
+ - optimizing C++ logic
73
+
74
+ - id: cpp-memory-handling
75
+ file: cpp-memory-handling/SKILL.md
76
+ description: Enforces Modern C++ practices (RAII, Smart Pointers) to prevent memory leaks, dangling pointers, and buffer overflows.
77
+ applies_when:
78
+ - writing c++ code
79
+ - modifying memory-intensive C++ logic
80
+ - debugging memory leaks in c++
81
+ - implementing new c++ classes
82
+
83
+ - id: cpp-modern-composition
84
+ file: cpp-modern-composition/SKILL.md
85
+ description: Replace legacy C patterns with STL, Ranges, and modern C++ abstractions (C++14+).
86
+ applies_when:
87
+ - writing C++ logic or algorithms
88
+ - performing C++ refactoring
89
+ - handling C++ data transformations
90
+ - working with C++ collections
91
+ always_load: true
92
+
93
+ - id: cpp-robust-interfaces
94
+ file: cpp-robust-interfaces/SKILL.md
95
+ description: Enforce contract-based design and strong typing in C++ interfaces (C++14+).
96
+ applies_when:
97
+ - creating or modifying C++ header files
98
+ - designing C++ function signatures
99
+ - defining C++ APIs or public interfaces
100
+
101
+ - id: create-hardened-docker-skill
102
+ file: create-hardened-docker-skill/SKILL.md
103
+ description: Creates production-ready hardened Docker configurations following CIS, OWASP, and NIST standards
104
+
105
+ - id: csharp-best-practices
106
+ file: csharp-best-practices/SKILL.md
107
+ description: Comprehensive C# coding standards covering modern C# (C# 10-12), async/await, LINQ, dependency injection basics, nullable reference types, and testing conventions.
108
+ applies_when:
109
+ - writing c# code
110
+ - creating new c# files or classes
111
+ - reviewing c# code style or conventions
112
+ - working with .net projects
113
+ - setting up a c# project
114
+ always_load: true
115
+
116
+ - id: docker-hardening-verification
117
+ file: docker-hardening-verification/SKILL.md
118
+ description: Audits Docker images for security best practices, least privilege, and OpenShift compliance.
119
+
120
+ - id: docker-image-signing
121
+ file: docker-image-signing/SKILL.md
122
+ description: Automates the signing of Docker images using certificates and Cosign/Notary.
123
+
124
+ - id: document-revision-history
125
+ file: document-revision-history/SKILL.md
126
+ description: Manages a revision history table at the beginning of generated documents, tracking changes per version.
127
+ applies_when:
128
+ - generating or updating planning documents
129
+ - creating specification or design documents
130
+ - modifying existing markdown documents that have a revision history table
131
+
132
+ - id: git-workflow-skill
133
+ file: git-workflow-skill/SKILL.md
134
+ description: MANDATORY worktree-based workflow for ALL file-changing activities. Enforces isolated feature branches, conventional commits, and PR-based merging.
135
+ applies_when:
136
+ - committing changes
137
+ - creating branches or PRs
138
+ - any code writing or modification task
139
+ always_load: true
140
+
141
+ - id: js-ts-dependency-mgmt
142
+ file: js-ts-dependency-mgmt/SKILL.md
143
+ description: Standardize package management and security across NPM, Yarn, and PNPM.
144
+ applies_when:
145
+ - managing JavaScript or TypeScript project dependencies
146
+ - configuring package.json, npmrc, or lockfiles
147
+ - updating NPM/Yarn/PNPM packages
148
+ - auditing JS/TS supply chain security
149
+ always_load: true
150
+
151
+ - id: js-ts-security-skill
152
+ file: js-ts-security-skill/SKILL.md
153
+ description: Verify security of JavaScript and TypeScript codebases against OWASP Top 10 2025 standards
154
+ applies_when:
155
+ - writing or reviewing security-critical code
156
+ - analyzing third-party dependencies
157
+ - performing security audits
158
+
159
+ - id: logging-best-practices
160
+ file: logging-best-practices/SKILL.md
161
+ description: Standardizes structured logging across Backend, Frontend, Realtime, and Algorithmic domains with mandatory exception handling.
162
+ applies_when:
163
+ - writing new service classes
164
+ - reviewing or modifying existing log statements
165
+ - adding error handling
166
+
167
+ - id: open-presentation
168
+ file: open-presentation/SKILL.md
169
+ description: Opens the BMAD-METHOD AI Development Training presentation from _bmad-output/methodology/
170
+ applies_when:
171
+ - user types /open-presentation
172
+ - user asks to open the methodology presentation or training slides
173
+
174
+ - id: opentelemetry-best-practices
175
+ file: opentelemetry-best-practices/SKILL.md
176
+ description: Standardizes distributed tracing, metrics, and semantic conventions for high-quality system observability.
177
+ applies_when:
178
+ - implementing api endpoints
179
+ - handling distributed requests
180
+ - optimizing performance
181
+ - adding monitoring
182
+
183
+ - id: python-best-practices
184
+ file: python-best-practices/SKILL.md
185
+ description: Comprehensive Python coding standards covering PEP 8 conventions, type hinting (3.10+), modern patterns (match/case, exception groups), async, and packaging best practices. Cross-references security-focused Python skills.
186
+ applies_when:
187
+ - writing python code
188
+ - modifying python code
189
+ - creating new python files or modules
190
+ - reviewing python code style or conventions
191
+ - refactoring python code
192
+ - setting up a python project
193
+
194
+ - id: python-dependency-mgmt
195
+ file: python-dependency-mgmt/SKILL.md
196
+ description: Standardize Python dependency handling using uv and pip (requirements.txt).
197
+ applies_when:
198
+ - managing Python project dependencies
199
+ - configuring Python build systems
200
+ - updating requirements.txt or uv.lock
201
+ - setting up Python development environments
202
+ always_load: true
203
+
204
+ - id: python-security-skill
205
+ file: python-security-skill/SKILL.md
206
+ description: Enforce secure Python coding standards following OWASP Top 10 2025.
207
+ applies_when:
208
+ - writing or reviewing Python code
209
+ - managing Python dependencies
210
+ - configuring Python application environments
211
+ - handling sensitive data in Python
212
+ always_load: true
213
+
214
+ - id: self-signed-cert
215
+ file: self-signed-cert/SKILL.md
216
+ description: Generates secure self-signed certificates and Root CAs using OpenSSL.
217
+
218
+ - id: skill-creator
219
+ file: skill-creator/SKILL.md
220
+ description: Guide for creating effective skills that extend Claude's capabilities with specialized knowledge, workflows, and tool integrations
221
+
222
+ - id: story-status-lookup
223
+ file: story-status-lookup/SKILL.md
224
+ description: Looks up the current status of a story to classify code as delivered or work-in-progress. Supports file-system backend now; Jira backend reserved for future configuration.
225
+ always_load: true
226
+
227
+ - id: test-accompanied-development
228
+ file: test-accompanied-development/SKILL.md
229
+ description: Enforces writing unit tests for every new public method created by the agent.
230
+ applies_when:
231
+ - writing or reviewing public APIs
232
+ - adding new public methods to a class
233
+ - code review tasks
234
+
235
+ - id: test-generator
236
+ file: test-generator/SKILL.md
237
+ description: Generates comprehensive unit and integration tests
238
+ applies_when:
239
+ - creating new code files
240
+ - adding complex logic
241
+ - refactoring existing code
242
+
243
+ - id: vercel-react-best-practices
244
+ file: vercel-react-best-practices/SKILL.md
245
+ description: Performance optimization framework for React and Next.js projects with 57 actionable rules across 8 categories
246
+ applies_when:
247
+ - working on React or Next.js components
248
+ - optimizing page performance
249
+ - reviewing frontend code architecture
250
+
251
+ - id: verify-hardened-docker-skill
252
+ file: verify-hardened-docker-skill/SKILL.md
253
+ description: Comprehensive security verification for Docker configurations against CIS, OWASP, and NIST standards
254
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: AI Audit Trail
3
+ description: Tracks AI agent session activity, time spent, and token usage in a project-level AiAudit.md log file.
4
+ ---
5
+ # AI Audit Trail
6
+
7
+ At the end of every significant agent session, append an entry to `{project_root}/AiAudit.md`. If the file does not exist, create it with a `# AI Audit Trail` header first.
8
+
9
+ ## Entry Format
10
+
11
+ ```markdown
12
+ | Date | Task | Tokens (est.) |
13
+ |------|------|---------------|
14
+ | YYYY-MM-DD | Brief task description | In: ~X / Out: ~Y |
15
+ ```
16
+
17
+ ## Rules
18
+
19
+ - **Append only** — never delete or modify previous entries
20
+ - **One row per session** — combine multiple tasks in the same session into one entry
21
+ - **Estimate tokens** — round to nearest thousand, prefix with `~`. Write `N/A` if unknown
22
+ - Write the entry as the **last action** before presenting results to the user
23
+ - Skip trivial interactions (single-question answers, quick lookups)
@@ -0,0 +1,169 @@
1
+ ---
2
+ name: auto-bug-detection
3
+ description: Instructs agents to identify and report defects in already-delivered code
4
+ ---
5
+ # Auto Bug Detection
6
+
7
+ Proactively identify and report defects found in already-delivered code during all agent sessions.
8
+
9
+ ## Purpose
10
+
11
+ When you encounter code that has already been delivered (story/task marked done), you must scan for defects
12
+ and report them using the structured format below. Do not silently ignore bugs in delivered code.
13
+
14
+ ## Detection Scope
15
+
16
+ ### Delivered Code (MUST scan and report bugs)
17
+
18
+ - Code whose associated story/task is marked **done** or **completed**, regardless of branch.
19
+ - Committed code on `main` or release branches.
20
+ - Committed code on feature branches whose **parent story is completed**.
21
+
22
+ ### Work-in-Progress (DO NOT flag as bugs)
23
+
24
+ - Uncommitted changes in the working tree.
25
+ - Committed code on a branch whose associated story is still **in-progress** or **not-started**.
26
+ - `TODO` / `FIXME` markers in code added as part of the **current story under review**.
27
+ - Incomplete implementations explicitly tied to an active story.
28
+
29
+ ### Ambiguous Boundary — Feature Branches
30
+
31
+ Committed code on a feature branch where the story status is **unknown** must be treated as WIP.
32
+
33
+ To resolve the status, use the `story-status-lookup` skill — it defines how to identify the story slug,
34
+ which file to read, and how to map status values to delivered vs WIP. Follow its fallback rule:
35
+ when status cannot be determined, **default to WIP and do NOT flag as a bug**.
36
+
37
+ ---
38
+
39
+ ## Detection Criteria
40
+
41
+ Scan delivered code for the following categories of defects. Each category includes examples of what qualifies.
42
+
43
+ ### 1. Logic Errors
44
+
45
+ Incorrect computational logic, wrong conditionals, or inverted boolean expressions that cause the code
46
+ to produce incorrect results.
47
+
48
+ **Examples:**
49
+ - Using `>` instead of `>=` in a boundary check, silently excluding a valid edge value.
50
+ - An accumulator initialized to `1` instead of `0`, skewing totals.
51
+ - A loop that iterates one too many or one too few times (off-by-one error).
52
+
53
+ ### 2. Unhandled Edge Cases
54
+
55
+ Inputs or states that the code does not handle, leading to incorrect behavior or crashes.
56
+
57
+ **Examples:**
58
+ - A function that accepts a list but does not handle an empty list, throwing an index error.
59
+ - A parser that crashes on a valid but empty string input.
60
+ - Division without a zero-check on the divisor.
61
+
62
+ ### 3. Missing Error Handling
63
+
64
+ Absence of error handling for operations that can fail, causing unhandled exceptions or silent failures.
65
+
66
+ **Examples:**
67
+ - File I/O calls with no try/catch, crashing the process on a missing file.
68
+ - Network requests with no timeout or error callback.
69
+ - A database query whose rejection is swallowed without logging or recovery.
70
+
71
+ ### 4. Broken Contracts
72
+
73
+ Code that violates the API contract it published: wrong return types, missing required fields in
74
+ responses, or side effects not documented in the interface.
75
+
76
+ **Examples:**
77
+ - A function documented to return `string | null` but sometimes returns `undefined`.
78
+ - A REST endpoint returning HTTP 200 for a failed operation instead of the correct 4xx/5xx code.
79
+ - A class method mutating shared state that is not documented as a side effect.
80
+
81
+ ### 5. Regressions
82
+
83
+ Previously working behavior that is now broken, typically introduced by a change in a related component.
84
+
85
+ **Examples:**
86
+ - A utility function refactored to accept a new parameter that broke all existing callers that pass no argument.
87
+ - A config key renamed in one place but not updated in all consumers, causing silent runtime failures.
88
+ - A test that was green before a dependency upgrade and now fails due to an incompatible API change.
89
+
90
+ ### 6. Security Vulnerabilities
91
+
92
+ Code patterns that introduce exploitable security weaknesses in existing, delivered functionality.
93
+
94
+ **Examples:**
95
+ - User-supplied input passed directly into a shell command without sanitization (command injection).
96
+ - Secrets or API keys hard-coded in source files committed to the repository.
97
+ - SQL queries constructed via string concatenation with unsanitized user input (SQL injection).
98
+ - Sensitive data (passwords, tokens) logged at INFO level in production code.
99
+
100
+ ---
101
+
102
+ ## Reporting Format
103
+
104
+ When a defect is detected in delivered code, report it using this structured template:
105
+
106
+ ```
107
+ ## Bug Report
108
+
109
+ **Title:** [Short, descriptive title]
110
+ **Severity:** [critical | high | medium | low]
111
+ **Category:** [logic-error | unhandled-edge-case | missing-error-handling | broken-contract | regression | security-vulnerability]
112
+ **Affected Component:** [Module, file, or system area]
113
+
114
+ **Reproduction Steps:**
115
+ 1. [Step 1]
116
+ 2. [Step 2]
117
+
118
+ **Expected Behavior:**
119
+ [What should happen]
120
+
121
+ **Actual Behavior:**
122
+ [What actually happens]
123
+
124
+ **Affected Files:**
125
+ - path/to/file.ext (line N)
126
+ ```
127
+
128
+ **Severity Guidelines:**
129
+ - `critical` — Data loss, security breach, or system crash in normal usage.
130
+ - `high` — Core feature broken or serious security risk; blocks users.
131
+ - `medium` — Feature partially broken or degraded; workaround exists.
132
+ - `low` — Minor issue, cosmetic defect, or edge case with minimal user impact.
133
+
134
+ ---
135
+
136
+ ## What NOT to Flag
137
+
138
+ Do **not** report the following as bugs:
139
+
140
+ - **Work-in-progress code** — Uncommitted changes or code on a branch with an active story.
141
+ - **TODO / FIXME comments** in code added as part of the **current story** being reviewed.
142
+ - **Incomplete implementations** explicitly tied to an active or not-yet-started story.
143
+ - **Style preferences** — Naming conventions, formatting, or architectural opinions not related to correctness.
144
+ - **Speculative issues** — Theoretical attack scenarios or failure modes with no demonstrable code path in the current codebase (e.g., an attack vector that requires filesystem access the process can never obtain).
145
+
146
+ ---
147
+
148
+ ## Required Action on Detection
149
+
150
+ The required action depends on severity:
151
+
152
+ ### critical or high severity
153
+
154
+ **Immediately run `/create-bug-story`** without waiting for user confirmation. These defects represent
155
+ broken core functionality or security risks that must not be left untracked. Inform the user as you act:
156
+
157
+ > "I found a **[severity]** bug in delivered code — running `create-bug-story` now to ensure it is tracked."
158
+
159
+ Do not ask permission. Do not proceed with other tasks until the bug story is created.
160
+
161
+ ### medium or low severity
162
+
163
+ **Recommend** that the user create a formal bug story, but do not act without their confirmation:
164
+
165
+ > "I found a **[severity]** bug in delivered code. Would you like me to run `create-bug-story` to log it
166
+ > formally so it can be scheduled in the sprint?"
167
+
168
+ If the user declines or does not respond, note the finding in your response and continue. The bug report
169
+ remains visible in the conversation but is not written to a file.