@neural-node-labs/xcoder-dna 0.0.0-stage → 1.5.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 (406) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +132 -2
  3. package/dist/agents/agent-catalog.d.ts +87 -0
  4. package/dist/agents/agent-catalog.js +159 -0
  5. package/dist/agents/agent-registry.d.ts +76 -0
  6. package/dist/agents/agent-registry.js +189 -0
  7. package/dist/agents/ai-chat-debate.d.ts +36 -0
  8. package/dist/agents/ai-chat-debate.js +300 -0
  9. package/dist/agents/ai-chat-report-writer.d.ts +7 -0
  10. package/dist/agents/ai-chat-report-writer.js +100 -0
  11. package/dist/agents/duplicate-detector.d.ts +41 -0
  12. package/dist/agents/duplicate-detector.js +65 -0
  13. package/dist/agents/genesis-agent.d.ts +61 -0
  14. package/dist/agents/genesis-agent.js +340 -0
  15. package/dist/agents/samurai-agent.d.ts +53 -0
  16. package/dist/agents/samurai-agent.js +279 -0
  17. package/dist/agents/sub-agent.d.ts +56 -0
  18. package/dist/agents/sub-agent.js +353 -0
  19. package/dist/backlog/backlog-requirement-validator.d.ts +10 -0
  20. package/dist/backlog/backlog-requirement-validator.js +60 -0
  21. package/dist/backlog/backlog-store.d.ts +29 -0
  22. package/dist/backlog/backlog-store.js +148 -0
  23. package/dist/backlog/po-agent.d.ts +16 -0
  24. package/dist/backlog/po-agent.js +121 -0
  25. package/dist/backlog/types.d.ts +25 -0
  26. package/dist/backlog/types.js +4 -0
  27. package/dist/bench/run.d.ts +11 -0
  28. package/dist/bench/run.js +185 -0
  29. package/dist/bench/types.d.ts +50 -0
  30. package/dist/bench/types.js +1 -0
  31. package/dist/cli/delegate.d.ts +90 -0
  32. package/dist/cli/delegate.js +220 -0
  33. package/dist/cli/swarm.d.ts +10 -0
  34. package/dist/cli/swarm.js +100 -0
  35. package/dist/cli/task.d.ts +14 -0
  36. package/dist/cli/task.js +121 -0
  37. package/dist/cli/wbc-arg.d.ts +6 -0
  38. package/dist/cli/wbc-arg.js +40 -0
  39. package/dist/cli/wbc.d.ts +45 -0
  40. package/dist/cli/wbc.js +98 -0
  41. package/dist/commands/license.d.ts +9 -0
  42. package/dist/commands/license.js +140 -0
  43. package/dist/commands/release.d.ts +44 -0
  44. package/dist/commands/release.js +180 -0
  45. package/dist/commands/test.d.ts +50 -0
  46. package/dist/commands/test.js +385 -0
  47. package/dist/config/env-guard.d.ts +35 -0
  48. package/dist/config/env-guard.js +100 -0
  49. package/dist/config/env-snapshot.d.ts +18 -0
  50. package/dist/config/env-snapshot.js +30 -0
  51. package/dist/config/loadConfig.d.ts +82 -0
  52. package/dist/config/loadConfig.js +249 -0
  53. package/dist/config/secure-mode.d.ts +29 -0
  54. package/dist/config/secure-mode.js +63 -0
  55. package/dist/config/user-config.d.ts +39 -0
  56. package/dist/config/user-config.js +202 -0
  57. package/dist/engine/reasoning-engine.d.ts +21 -0
  58. package/dist/engine/reasoning-engine.js +59 -0
  59. package/dist/events/bus.d.ts +22 -0
  60. package/dist/events/bus.js +18 -0
  61. package/dist/index.d.ts +87 -0
  62. package/dist/index.js +88 -0
  63. package/dist/indexing/ignoreRules.d.ts +1 -0
  64. package/dist/indexing/ignoreRules.js +53 -0
  65. package/dist/instance-swarm/instance-swarm-orchestrator.d.ts +57 -0
  66. package/dist/instance-swarm/instance-swarm-orchestrator.js +204 -0
  67. package/dist/instance-swarm/protocol-name-resolver.d.ts +23 -0
  68. package/dist/instance-swarm/protocol-name-resolver.js +64 -0
  69. package/dist/license/gate.d.ts +31 -0
  70. package/dist/license/gate.js +188 -0
  71. package/dist/license/http-client.d.ts +43 -0
  72. package/dist/license/http-client.js +195 -0
  73. package/dist/license/manager.d.ts +39 -0
  74. package/dist/license/manager.js +175 -0
  75. package/dist/license/receipt.d.ts +27 -0
  76. package/dist/license/receipt.js +108 -0
  77. package/dist/license/state-codec.d.ts +72 -0
  78. package/dist/license/state-codec.js +218 -0
  79. package/dist/license/state-paths.d.ts +17 -0
  80. package/dist/license/state-paths.js +64 -0
  81. package/dist/license/store.d.ts +44 -0
  82. package/dist/license/store.js +223 -0
  83. package/dist/license/trust-anchor.d.ts +24 -0
  84. package/dist/license/trust-anchor.js +74 -0
  85. package/dist/license/types.d.ts +34 -0
  86. package/dist/license/types.js +19 -0
  87. package/dist/llm/budget.d.ts +23 -0
  88. package/dist/llm/budget.js +58 -0
  89. package/dist/llm/client.d.ts +53 -0
  90. package/dist/llm/client.js +122 -0
  91. package/dist/llm/factory.d.ts +14 -0
  92. package/dist/llm/factory.js +32 -0
  93. package/dist/orchestrator/defect-logger.d.ts +31 -0
  94. package/dist/orchestrator/defect-logger.js +101 -0
  95. package/dist/orchestrator/defect-manager.d.ts +118 -0
  96. package/dist/orchestrator/defect-manager.js +338 -0
  97. package/dist/orchestrator/defect-migration.d.ts +14 -0
  98. package/dist/orchestrator/defect-migration.js +174 -0
  99. package/dist/orchestrator/defect-store.d.ts +48 -0
  100. package/dist/orchestrator/defect-store.js +76 -0
  101. package/dist/orchestrator/healing.d.ts +14 -0
  102. package/dist/orchestrator/healing.js +11 -0
  103. package/dist/orchestrator/interactive-steering.d.ts +64 -0
  104. package/dist/orchestrator/interactive-steering.js +107 -0
  105. package/dist/orchestrator/interrupt-handler.d.ts +30 -0
  106. package/dist/orchestrator/interrupt-handler.js +70 -0
  107. package/dist/orchestrator/lesson-manager.d.ts +25 -0
  108. package/dist/orchestrator/lesson-manager.js +122 -0
  109. package/dist/orchestrator/progress-summary.d.ts +15 -0
  110. package/dist/orchestrator/progress-summary.js +106 -0
  111. package/dist/orchestrator/reasoning-score.d.ts +49 -0
  112. package/dist/orchestrator/reasoning-score.js +117 -0
  113. package/dist/orchestrator/swarm.d.ts +36 -0
  114. package/dist/orchestrator/swarm.js +77 -0
  115. package/dist/orchestrator/task-factory.d.ts +15 -0
  116. package/dist/orchestrator/task-factory.js +176 -0
  117. package/dist/orchestrator/validation-gate.d.ts +23 -0
  118. package/dist/orchestrator/validation-gate.js +155 -0
  119. package/dist/protocol/react-contract.d.ts +136 -0
  120. package/dist/protocol/react-contract.js +698 -0
  121. package/dist/protocol/wks-protocol-manager.d.ts +22 -0
  122. package/dist/protocol/wks-protocol-manager.js +72 -0
  123. package/dist/sdlc-runtime/conversation-runner.d.ts +8 -0
  124. package/dist/sdlc-runtime/conversation-runner.js +64 -0
  125. package/dist/sdlc-runtime/dag-utils.d.ts +15 -0
  126. package/dist/sdlc-runtime/dag-utils.js +67 -0
  127. package/dist/sdlc-runtime/defect-integration.d.ts +7 -0
  128. package/dist/sdlc-runtime/defect-integration.js +99 -0
  129. package/dist/sdlc-runtime/execution-loop.d.ts +38 -0
  130. package/dist/sdlc-runtime/execution-loop.js +274 -0
  131. package/dist/sdlc-runtime/lesson-recorder.d.ts +9 -0
  132. package/dist/sdlc-runtime/lesson-recorder.js +27 -0
  133. package/dist/sdlc-runtime/plan-initializer.d.ts +47 -0
  134. package/dist/sdlc-runtime/plan-initializer.js +135 -0
  135. package/dist/sdlc-runtime/progress-persister.d.ts +10 -0
  136. package/dist/sdlc-runtime/progress-persister.js +34 -0
  137. package/dist/sdlc-runtime/protocol-loader.d.ts +10 -0
  138. package/dist/sdlc-runtime/protocol-loader.js +21 -0
  139. package/dist/sdlc-runtime/reporting.d.ts +24 -0
  140. package/dist/sdlc-runtime/reporting.js +68 -0
  141. package/dist/sdlc-runtime/run-task.d.ts +81 -0
  142. package/dist/sdlc-runtime/run-task.js +210 -0
  143. package/dist/sdlc-runtime/sdlc-orchestrator.d.ts +59 -0
  144. package/dist/sdlc-runtime/sdlc-orchestrator.js +170 -0
  145. package/dist/sdlc-runtime/sdlc-skill.d.ts +44 -0
  146. package/dist/sdlc-runtime/sdlc-skill.js +148 -0
  147. package/dist/sdlc-runtime/steering-handler.d.ts +14 -0
  148. package/dist/sdlc-runtime/steering-handler.js +51 -0
  149. package/dist/sdlc-runtime/trace-recorder.d.ts +10 -0
  150. package/dist/sdlc-runtime/trace-recorder.js +7 -0
  151. package/dist/security/index.d.ts +16 -0
  152. package/dist/security/index.js +12 -0
  153. package/dist/security/input-screen.d.ts +30 -0
  154. package/dist/security/input-screen.js +75 -0
  155. package/dist/security/tool-call-guard.d.ts +16 -0
  156. package/dist/security/tool-call-guard.js +174 -0
  157. package/dist/security/untrusted-content.d.ts +34 -0
  158. package/dist/security/untrusted-content.js +63 -0
  159. package/dist/skills/advanced-dfir/SKILL.md +85 -0
  160. package/dist/skills/advanced-pentest-lab/SKILL.md +88 -0
  161. package/dist/skills/analyst/SKILL.md +55 -0
  162. package/dist/skills/architect/SKILL.md +54 -0
  163. package/dist/skills/aws/SKILL.md +92 -0
  164. package/dist/skills/azure/SKILL.md +90 -0
  165. package/dist/skills/bylaw-context.d.ts +45 -0
  166. package/dist/skills/bylaw-context.js +61 -0
  167. package/dist/skills/bylaw-review.d.ts +20 -0
  168. package/dist/skills/bylaw-review.js +101 -0
  169. package/dist/skills/conversation/SKILL.md +29 -0
  170. package/dist/skills/design-patterns/SKILL.md +190 -0
  171. package/dist/skills/devops/SKILL.md +55 -0
  172. package/dist/skills/directives.d.ts +20 -0
  173. package/dist/skills/directives.js +313 -0
  174. package/dist/skills/docker/SKILL.md +76 -0
  175. package/dist/skills/docker-expert/SKILL.md +56 -0
  176. package/dist/skills/enterprise-systems-analyst/SKILL.md +83 -0
  177. package/dist/skills/enterprise-systems-analyst/references/crm.md +41 -0
  178. package/dist/skills/enterprise-systems-analyst/references/erp.md +40 -0
  179. package/dist/skills/enterprise-systems-analyst/references/financial-systems.md +35 -0
  180. package/dist/skills/enterprise-systems-analyst/references/hcm.md +38 -0
  181. package/dist/skills/enterprise-systems-analyst/references/mrp.md +37 -0
  182. package/dist/skills/enterprise-systems-analyst/references/scm.md +32 -0
  183. package/dist/skills/ethical-hacking-methodology/SKILL.md +119 -0
  184. package/dist/skills/externalSkillLoader.d.ts +25 -0
  185. package/dist/skills/externalSkillLoader.js +65 -0
  186. package/dist/skills/externalSkillRegistry.d.ts +33 -0
  187. package/dist/skills/externalSkillRegistry.js +94 -0
  188. package/dist/skills/filesystem-management/SKILL.md +61 -0
  189. package/dist/skills/first-run-seed.d.ts +26 -0
  190. package/dist/skills/first-run-seed.js +75 -0
  191. package/dist/skills/git-vcs/SKILL.md +84 -0
  192. package/dist/skills/kafka/SKILL.md +89 -0
  193. package/dist/skills/kubernetes/SKILL.md +93 -0
  194. package/dist/skills/kubernetes-expert/SKILL.md +54 -0
  195. package/dist/skills/openshift/SKILL.md +93 -0
  196. package/dist/skills/pentester/SKILL.md +59 -0
  197. package/dist/skills/performance-tester/SKILL.md +57 -0
  198. package/dist/skills/playwright-ui-tester/SKILL.md +67 -0
  199. package/dist/skills/programmer/SKILL.md +58 -0
  200. package/dist/skills/project-scaffolding/SKILL.md +133 -0
  201. package/dist/skills/qa-engineer/SKILL.md +91 -0
  202. package/dist/skills/rca/SKILL.md +58 -0
  203. package/dist/skills/redhat/SKILL.md +92 -0
  204. package/dist/skills/rosa/SKILL.md +80 -0
  205. package/dist/skills/scrum-framework/SKILL.md +74 -0
  206. package/dist/skills/scrum-framework/references/artifacts_and_quality.md +79 -0
  207. package/dist/skills/scrum-framework/references/roles_and_events.md +105 -0
  208. package/dist/skills/scrum-master-agent/SKILL.md +74 -0
  209. package/dist/skills/scrum-master-agent/references/behaviors.md +56 -0
  210. package/dist/skills/sdlc-skill.d.ts +1 -0
  211. package/dist/skills/sdlc-skill.js +4 -0
  212. package/dist/skills/secops/SKILL.md +52 -0
  213. package/dist/skills/secure-architect.bylaws.d.ts +68 -0
  214. package/dist/skills/secure-architect.bylaws.js +525 -0
  215. package/dist/skills/seed-skills.d.ts +48 -0
  216. package/dist/skills/seed-skills.js +213 -0
  217. package/dist/skills/skill-authoring/SKILL.md +123 -0
  218. package/dist/skills/skill-header.d.ts +51 -0
  219. package/dist/skills/skill-header.js +163 -0
  220. package/dist/skills/skill-path-guard.d.ts +41 -0
  221. package/dist/skills/skill-path-guard.js +95 -0
  222. package/dist/skills/skillRouter.d.ts +51 -0
  223. package/dist/skills/skillRouter.js +90 -0
  224. package/dist/skills/skills-root.d.ts +64 -0
  225. package/dist/skills/skills-root.js +168 -0
  226. package/dist/skills/software-architect/SKILL.md +77 -0
  227. package/dist/skills/software-engineer/SKILL.md +74 -0
  228. package/dist/skills/solid-principles/SKILL.md +94 -0
  229. package/dist/skills/task-planning/SKILL.md +115 -0
  230. package/dist/skills/tester/SKILL.md +54 -0
  231. package/dist/skills/ubuntu/SKILL.md +87 -0
  232. package/dist/skills/ui-ux-design/SKILL.md +114 -0
  233. package/dist/skills/workspace-context/SKILL.md +103 -0
  234. package/dist/sprint/controller.d.ts +37 -0
  235. package/dist/sprint/controller.js +220 -0
  236. package/dist/sprint/dag-builder.d.ts +14 -0
  237. package/dist/sprint/dag-builder.js +105 -0
  238. package/dist/sprint/reporter.d.ts +11 -0
  239. package/dist/sprint/reporter.js +97 -0
  240. package/dist/sprint/state-store.d.ts +10 -0
  241. package/dist/sprint/state-store.js +71 -0
  242. package/dist/sprint/types.d.ts +24 -0
  243. package/dist/sprint/types.js +4 -0
  244. package/dist/store/file-version-store.d.ts +24 -0
  245. package/dist/store/file-version-store.js +73 -0
  246. package/dist/store/task-store.d.ts +90 -0
  247. package/dist/store/task-store.js +166 -0
  248. package/dist/task-ingest/architect-detailer.d.ts +43 -0
  249. package/dist/task-ingest/architect-detailer.js +141 -0
  250. package/dist/task-ingest/detail-schema.d.ts +9 -0
  251. package/dist/task-ingest/detail-schema.js +195 -0
  252. package/dist/task-ingest/detailed-run.d.ts +36 -0
  253. package/dist/task-ingest/detailed-run.js +108 -0
  254. package/dist/task-ingest/extract-id.d.ts +9 -0
  255. package/dist/task-ingest/extract-id.js +24 -0
  256. package/dist/task-ingest/index.d.ts +23 -0
  257. package/dist/task-ingest/index.js +14 -0
  258. package/dist/task-ingest/ingest.d.ts +45 -0
  259. package/dist/task-ingest/ingest.js +163 -0
  260. package/dist/task-ingest/list-ingested.d.ts +13 -0
  261. package/dist/task-ingest/list-ingested.js +30 -0
  262. package/dist/task-ingest/pending-filter.d.ts +30 -0
  263. package/dist/task-ingest/pending-filter.js +59 -0
  264. package/dist/task-ingest/scanner.d.ts +56 -0
  265. package/dist/task-ingest/scanner.js +216 -0
  266. package/dist/task-ingest/source-reader.d.ts +25 -0
  267. package/dist/task-ingest/source-reader.js +93 -0
  268. package/dist/task-ingest/spec-builder.d.ts +34 -0
  269. package/dist/task-ingest/spec-builder.js +89 -0
  270. package/dist/task-ingest/wbs-extract.d.ts +50 -0
  271. package/dist/task-ingest/wbs-extract.js +226 -0
  272. package/dist/task-ingest/wbs-parser.d.ts +36 -0
  273. package/dist/task-ingest/wbs-parser.js +170 -0
  274. package/dist/tools/apiTestTool.d.ts +37 -0
  275. package/dist/tools/apiTestTool.js +128 -0
  276. package/dist/tools/ast-tools.d.ts +183 -0
  277. package/dist/tools/ast-tools.js +853 -0
  278. package/dist/tools/browse-tool.d.ts +105 -0
  279. package/dist/tools/browse-tool.js +394 -0
  280. package/dist/tools/credential.d.ts +17 -0
  281. package/dist/tools/credential.js +32 -0
  282. package/dist/tools/dependency-graph.d.ts +23 -0
  283. package/dist/tools/dependency-graph.js +164 -0
  284. package/dist/tools/edit-tool.d.ts +34 -0
  285. package/dist/tools/edit-tool.js +95 -0
  286. package/dist/tools/file-header-manager.d.ts +27 -0
  287. package/dist/tools/file-header-manager.js +153 -0
  288. package/dist/tools/fs-tools.d.ts +154 -0
  289. package/dist/tools/fs-tools.js +337 -0
  290. package/dist/tools/git-tools.d.ts +79 -0
  291. package/dist/tools/git-tools.js +348 -0
  292. package/dist/tools/github-tool.d.ts +48 -0
  293. package/dist/tools/github-tool.js +147 -0
  294. package/dist/tools/globTool.d.ts +20 -0
  295. package/dist/tools/globTool.js +34 -0
  296. package/dist/tools/grepTool.d.ts +19 -0
  297. package/dist/tools/grepTool.js +44 -0
  298. package/dist/tools/index-freshness.d.ts +58 -0
  299. package/dist/tools/index-freshness.js +196 -0
  300. package/dist/tools/index-glob.d.ts +48 -0
  301. package/dist/tools/index-glob.js +175 -0
  302. package/dist/tools/load-skill-tool.d.ts +15 -0
  303. package/dist/tools/load-skill-tool.js +114 -0
  304. package/dist/tools/patch-tools.d.ts +58 -0
  305. package/dist/tools/patch-tools.js +153 -0
  306. package/dist/tools/playwright-tool.d.ts +66 -0
  307. package/dist/tools/playwright-tool.js +121 -0
  308. package/dist/tools/project-detect.d.ts +20 -0
  309. package/dist/tools/project-detect.js +87 -0
  310. package/dist/tools/prompt-guidance.d.ts +22 -0
  311. package/dist/tools/prompt-guidance.js +23 -0
  312. package/dist/tools/schedule-audit.d.ts +50 -0
  313. package/dist/tools/schedule-audit.js +124 -0
  314. package/dist/tools/schedule-validation.d.ts +67 -0
  315. package/dist/tools/schedule-validation.js +210 -0
  316. package/dist/tools/scheduleTool.d.ts +62 -0
  317. package/dist/tools/scheduleTool.js +313 -0
  318. package/dist/tools/search-tools.d.ts +27 -0
  319. package/dist/tools/search-tools.js +78 -0
  320. package/dist/tools/sed-tool.d.ts +66 -0
  321. package/dist/tools/sed-tool.js +402 -0
  322. package/dist/tools/shell-result.d.ts +11 -0
  323. package/dist/tools/shell-result.js +1 -0
  324. package/dist/tools/shell-tool.d.ts +45 -0
  325. package/dist/tools/shell-tool.js +141 -0
  326. package/dist/tools/siteCrawlerTool.d.ts +32 -0
  327. package/dist/tools/siteCrawlerTool.js +205 -0
  328. package/dist/tools/tool-registry.d.ts +67 -0
  329. package/dist/tools/tool-registry.js +606 -0
  330. package/dist/tools/validate-tool.d.ts +23 -0
  331. package/dist/tools/validate-tool.js +201 -0
  332. package/dist/tools/workspace-index.d.ts +46 -0
  333. package/dist/tools/workspace-index.js +173 -0
  334. package/dist/types.d.ts +222 -0
  335. package/dist/types.js +7 -0
  336. package/dist/updater/index.d.ts +14 -0
  337. package/dist/updater/index.js +120 -0
  338. package/dist/util/banner.d.ts +25 -0
  339. package/dist/util/banner.js +140 -0
  340. package/dist/util/command-suggester.d.ts +6 -0
  341. package/dist/util/command-suggester.js +25 -0
  342. package/dist/util/confirm-interrupt.d.ts +10 -0
  343. package/dist/util/confirm-interrupt.js +31 -0
  344. package/dist/util/continue-trigger.d.ts +11 -0
  345. package/dist/util/continue-trigger.js +20 -0
  346. package/dist/util/env-info.d.ts +18 -0
  347. package/dist/util/env-info.js +37 -0
  348. package/dist/util/file-access-log.d.ts +35 -0
  349. package/dist/util/file-access-log.js +140 -0
  350. package/dist/util/footer-manager.d.ts +124 -0
  351. package/dist/util/footer-manager.js +195 -0
  352. package/dist/util/footer-renderer.d.ts +67 -0
  353. package/dist/util/footer-renderer.js +319 -0
  354. package/dist/util/footer-state.d.ts +34 -0
  355. package/dist/util/footer-state.js +18 -0
  356. package/dist/util/footer-text.d.ts +51 -0
  357. package/dist/util/footer-text.js +74 -0
  358. package/dist/util/ids.d.ts +1 -0
  359. package/dist/util/ids.js +4 -0
  360. package/dist/util/levenshtein.d.ts +6 -0
  361. package/dist/util/levenshtein.js +34 -0
  362. package/dist/util/logger.d.ts +10 -0
  363. package/dist/util/logger.js +41 -0
  364. package/dist/util/logs.d.ts +80 -0
  365. package/dist/util/logs.js +135 -0
  366. package/dist/util/output-handler.d.ts +89 -0
  367. package/dist/util/output-handler.js +193 -0
  368. package/dist/util/output-interceptor.d.ts +18 -0
  369. package/dist/util/output-interceptor.js +49 -0
  370. package/dist/util/output-paths.d.ts +43 -0
  371. package/dist/util/output-paths.js +121 -0
  372. package/dist/util/package-json.d.ts +6 -0
  373. package/dist/util/package-json.js +36 -0
  374. package/dist/util/process-kill.d.ts +27 -0
  375. package/dist/util/process-kill.js +148 -0
  376. package/dist/util/protocol-error-logger.d.ts +33 -0
  377. package/dist/util/protocol-error-logger.js +73 -0
  378. package/dist/util/redact.d.ts +25 -0
  379. package/dist/util/redact.js +119 -0
  380. package/dist/util/scroll-region-guard.d.ts +33 -0
  381. package/dist/util/scroll-region-guard.js +63 -0
  382. package/dist/util/spinner.d.ts +15 -0
  383. package/dist/util/spinner.js +49 -0
  384. package/dist/util/terminal-output.d.ts +34 -0
  385. package/dist/util/terminal-output.js +1 -0
  386. package/dist/util/terminal-silent.d.ts +6 -0
  387. package/dist/util/terminal-silent.js +20 -0
  388. package/dist/util/terminal.d.ts +56 -0
  389. package/dist/util/terminal.js +124 -0
  390. package/dist/util/text-sanitize.d.ts +8 -0
  391. package/dist/util/text-sanitize.js +45 -0
  392. package/dist/util/thinking-spinner.d.ts +27 -0
  393. package/dist/util/thinking-spinner.js +189 -0
  394. package/dist/util/tool-error-logger.d.ts +33 -0
  395. package/dist/util/tool-error-logger.js +77 -0
  396. package/dist/util/tty.d.ts +13 -0
  397. package/dist/util/tty.js +16 -0
  398. package/dist/util/xcoder-paths.d.ts +56 -0
  399. package/dist/util/xcoder-paths.js +63 -0
  400. package/dist/version.d.ts +2 -0
  401. package/dist/version.js +5 -0
  402. package/dist/worker-agent/to-subtask-node.d.ts +35 -0
  403. package/dist/worker-agent/to-subtask-node.js +41 -0
  404. package/dist/worker-agent/worker-orchestrator.d.ts +104 -0
  405. package/dist/worker-agent/worker-orchestrator.js +201 -0
  406. package/package.json +43 -3
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: redhat
3
+ role: devops
4
+ description: Administer RHEL/CentOS/Rocky/Alma servers — dnf/yum package management, subscription-manager registration, SELinux troubleshooting, and firewalld — the RHEL-family equivalents that differ meaningfully from Debian/Ubuntu conventions.
5
+ triggers:
6
+ - "red hat"
7
+ - "redhat"
8
+ - "rhel"
9
+ - "centos"
10
+ - "rocky linux"
11
+ - "dnf install"
12
+ - "yum install"
13
+ - "selinux"
14
+ - "firewalld"
15
+ - "subscription-manager"
16
+ version: "1.0.0"
17
+ requires_tools:
18
+ - run_command_tool
19
+ - ssh_tool
20
+ - ssh_copy_tool
21
+ composes_with:
22
+ - workspace-context
23
+ - openshift
24
+ - rosa
25
+ - docker
26
+ ---
27
+
28
+ ## Process
29
+
30
+ 1. On RHEL proper (not CentOS Stream/Rocky/Alma), register the system with
31
+ `subscription-manager register` and attach an appropriate subscription/enable the needed repos
32
+ before `dnf install` — unregistered RHEL has no package repos enabled by default, unlike
33
+ Ubuntu's apt which works out of the box. This is the most common "package not found" surprise
34
+ for anyone coming from Debian-family systems.
35
+ 2. Use `dnf` (RHEL 8+/CentOS Stream/Rocky/Alma) or `yum` (RHEL 7 and older) — `dnf` is the modern
36
+ tool and is what current guidance should target; confirm the actual OS version rather than
37
+ assuming.
38
+ 3. Check SELinux status (`getenforce`) before debugging a "permission denied" that looks otherwise
39
+ inexplicable — SELinux enforces mandatory access control independent of standard Unix
40
+ permissions, and a process can have correct file permissions and still be blocked by policy.
41
+ 4. Manage the firewall with `firewall-cmd` (firewalld), not raw `iptables`, on modern RHEL-family
42
+ systems — firewalld is the standard front-end and mixing direct iptables rules with it causes
43
+ confusing, hard-to-reproduce state.
44
+ 5. Use systemd (same as Ubuntu) for service management — this part is consistent across the
45
+ Linux distributions covered here, unlike package management and MAC (mandatory access control).
46
+
47
+ ## Instructions — non-negotiable
48
+
49
+ - Never resolve a SELinux-caused denial by running `setenforce 0` (disabling enforcement) on a
50
+ production/shared system — diagnose the specific denial (see sequence below) and fix the context
51
+ or write a targeted policy exception instead. Disabling SELinux removes a real security layer
52
+ system-wide for the sake of one local issue.
53
+ - Never open a firewalld port with `--zone=public` when a more restrictive zone would do — scope
54
+ to the minimum needed.
55
+ - Always make firewalld changes with `--permanent` and then `firewall-cmd --reload` — without
56
+ `--permanent`, changes vanish on the next reboot, which reliably confuses anyone testing a change
57
+ and forgetting to persist it.
58
+ - Never assume CentOS Stream/Rocky/Alma package availability is identical to RHEL — they track
59
+ RHEL closely but aren't guaranteed bit-identical; verify a package/repo exists for the specific
60
+ distro and version in use.
61
+
62
+ ## Strategies
63
+
64
+ - Prefer `dnf module` for software with multiple available versions (e.g. different language
65
+ runtime streams) over manually adding third-party repos, when a module stream provides what's
66
+ needed — keeps the system on RHEL's supported package paths.
67
+ - When SELinux blocks something legitimate repeatedly, prefer a scoped `semanage`/policy module fix
68
+ for the specific context over broad `setenforce 0`/`chcon` one-offs that don't survive a
69
+ relabel and don't document why the exception exists.
70
+ - For services listening on non-standard ports, remember SELinux also tracks expected port-to-service
71
+ type mappings (`semanage port -l`) independent of the firewall — a firewalld rule alone isn't
72
+ always sufficient if SELinux's port type doesn't match.
73
+
74
+ ## Diagnostic sequence for SELinux-blocked access
75
+
76
+ 1. `getenforce` — confirm SELinux is actually in `Enforcing` mode (vs. `Permissive`/`Disabled`)
77
+ before spending time chasing an SELinux theory for a non-SELinux problem.
78
+ 2. `ausearch -m avc -ts recent` (or `grep AVC /var/log/audit/audit.log`) — find the actual denial
79
+ and what it was trying to do.
80
+ 3. `sealert -a /var/log/audit/audit.log` (if `setroubleshoot` is installed) — gives a human-readable
81
+ explanation and the specific suggested fix command, usually a `semanage`/`setsebool` invocation.
82
+ 4. Apply the narrowest suggested fix (a specific boolean or file context change) rather than the
83
+ broadest one offered.
84
+
85
+ ## Experience
86
+
87
+ - "It works when I run it manually as root but not as the service" combined with correct file
88
+ permissions is the classic SELinux signature — check `getenforce` and AVC denials before
89
+ anything else once permissions are confirmed correct.
90
+ - A firewalld rule that "isn't working" after being added is very often the missing `--permanent`
91
+ + `--reload`, or being added to the wrong zone (`firewall-cmd --get-active-zones` shows which
92
+ zone the actual interface is using) rather than a genuinely wrong rule.
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: rosa
3
+ role: devops
4
+ description: Provision and operate Red Hat OpenShift Service on AWS (ROSA) — the AWS-account and STS prerequisites specific to managed OpenShift, how much is Red-Hat-managed vs. customer-managed, and the cluster-creation/upgrade workflow via the rosa CLI.
5
+ triggers:
6
+ - "rosa cluster"
7
+ - "red hat openshift service on aws"
8
+ - "openshift on aws"
9
+ - "provision rosa"
10
+ - "rosa cli"
11
+ version: "1.0.0"
12
+ requires_tools:
13
+ - run_command_tool
14
+ - ssh_tool
15
+ - read_tool
16
+ composes_with:
17
+ - workspace-context
18
+ - openshift
19
+ - aws
20
+ - kubernetes
21
+ ---
22
+
23
+ ## Process
24
+
25
+ 1. Understand the managed-service boundary before doing anything else: Red Hat and AWS jointly
26
+ operate and are responsible for the control plane (masters, etcd, the OpenShift platform itself,
27
+ patching, SLA); the customer is responsible for what runs on worker nodes (applications, their
28
+ configuration and security) and for the AWS account/IAM setup the cluster lives inside. Don't
29
+ plan control-plane-level changes (etcd tuning, master node access) that ROSA doesn't expose —
30
+ that's intentionally not customer-managed.
31
+ 2. Set up prerequisites in order: an AWS account meeting ROSA's requirements, the `rosa` CLI and
32
+ `oc` CLI installed, `rosa login`, then `rosa create account-roles` and (for STS clusters, the
33
+ modern default) `rosa create operator-roles`/`oidc-provider` before `rosa create cluster`.
34
+ Skipping the account-roles/operator-roles step is the most common cause of cluster creation
35
+ failing partway through.
36
+ 3. Prefer STS (Security Token Service) mode over the older non-STS/IAM-credentials mode for new
37
+ clusters — narrower, per-operator IAM permissions instead of one broad set of long-lived
38
+ credentials; this is the current recommended default.
39
+ 4. Plan networking (VPC CIDR, subnet layout across AZs, whether it's a public or fully-private
40
+ cluster) before creation — networking topology is far more disruptive to change after cluster
41
+ creation than most other settings.
42
+ 5. Once created, treat it as OpenShift for day-to-day operations (see the `openshift` skill for
43
+ `oc`, projects, routes, S2I) — ROSA is standard OpenShift underneath; the ROSA-specific concerns
44
+ are almost entirely at the provisioning/AWS-integration layer, not day-to-day workload management.
45
+
46
+ ## Instructions — non-negotiable
47
+
48
+ - Never attempt to modify control-plane/master node configuration directly — it's not exposed for
49
+ customer modification and isn't the supported path even where technically reachable; use
50
+ cluster-level OpenShift configuration objects (`Machine­Config`, operators) for anything that
51
+ needs to be customer-configured.
52
+ - Never share the AWS IAM credentials used for cluster creation broadly — scope `rosa` CLI access
53
+ to the specific people/automation that need to manage cluster lifecycle, following the same
54
+ least-privilege principle as any other AWS IAM usage.
55
+ - Confirm the target AWS region actually supports ROSA before planning around it — availability is
56
+ not universal across all AWS regions.
57
+ - Plan and budget for both AWS infrastructure costs (EC2, EBS, load balancers, data transfer) and
58
+ the separate ROSA service fee — these are billed differently and both need to be accounted for.
59
+
60
+ ## Strategies
61
+
62
+ - Use multi-AZ cluster topology for production; single-AZ is a reasonable cost tradeoff for
63
+ dev/test only.
64
+ - Prefer cluster autoscaling (`rosa create autoscaler`/machine pool min/max) over statically sized
65
+ worker node counts for variable workloads, to avoid both over-provisioning cost and
66
+ under-provisioning capacity crunches.
67
+ - For multi-cluster setups (e.g. separate clusters per environment), keep the account-roles/
68
+ operator-roles naming consistent and documented — becomes hard to track which IAM roles serve
69
+ which cluster otherwise.
70
+
71
+ ## Experience
72
+
73
+ - Cluster creation failures most often trace back to an incomplete or out-of-order prerequisite
74
+ step (missing account-roles, expired/insufficient IAM permissions on the creating principal, or
75
+ a service quota limit in the target AWS account/region) rather than a `rosa create cluster`
76
+ parameter being wrong — check `rosa describe cluster -c <name>` and `rosa logs install -c <name>`
77
+ for the actual failure stage before re-attempting.
78
+ - Upgrades are cluster-scoped and versioned like standard OpenShift — check `rosa list upgrade -c
79
+ <name>` for available versions and known upgrade-path constraints before scheduling one, same
80
+ discipline as any other production OpenShift upgrade.
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: scrum-framework
3
+ role: Scrum Coach / Framework Reference
4
+ description: >
5
+ Reference and coaching knowledge for Scrum — the four roles (Product Owner, Scrum Master,
6
+ Developers, Architect), the five events (Sprint Planning, Daily Scrum, Backlog Refinement,
7
+ Sprint Review, Retrospective), the three artifacts and commitments (Product Backlog/Product
8
+ Goal, Sprint Backlog/Sprint Goal, Increment/Definition of Done), sprint rules, INVEST story
9
+ quality, and Definition of Ready/Done. Load whenever the task involves explaining or coaching
10
+ Scrum roles and accountabilities, running or facilitating a Scrum event, writing or critiquing
11
+ a Sprint Goal or user story, checking a story against INVEST or Definition of Ready/Done,
12
+ evaluating "is this good Scrum" or spotting anti-patterns, or drafting product backlog items,
13
+ acceptance criteria, or facilitation agendas.
14
+ triggers: [scrum, sprint, "product backlog", "sprint goal", "user story", "acceptance criteria", invest, "definition of done", "definition of ready", retrospective, "daily scrum", "sprint planning", "sprint review", "product owner", "scrum master"]
15
+ version: 1.0
16
+ requires_tools: []
17
+ composes_with: [scrum-master-agent]
18
+ ---
19
+
20
+
21
+ # Scrum Framework
22
+
23
+ Reference knowledge for coaching, explaining, and applying Scrum correctly. Ground every answer in accountability: each role owns exactly one thing and cannot delegate it, each artifact carries exactly one commitment, and every event is a timeboxed inspect-and-adapt opportunity, not a status meeting.
24
+
25
+ ## When to go deeper
26
+
27
+ - Full role responsibilities, sprint cycle, and event-by-event agendas: `references/roles_and_events.md`
28
+ - Artifacts, commitments, DoR/DoD, INVEST, and Scrum anti-patterns: `references/artifacts_and_quality.md`
29
+
30
+ Read the relevant reference file before writing detailed coaching content (e.g. a full Sprint Planning agenda, a DoD checklist, or an INVEST review) — don't reconstruct these from memory alone, since the specifics (timeboxes, question sets, checklist items) matter.
31
+
32
+ ## Core mental model
33
+
34
+ **Four roles, one accountability each** (Architect is not a canonical Scrum Guide role but is commonly added in technical/CBD-style teams):
35
+ - **Product Owner** — accountable for the *value* of the product. Owns the Product Backlog: content, ordering, clarity. Says what and why, never how.
36
+ - **Scrum Master** — accountable for the *effectiveness of the Scrum Team*. Servant-leader: facilitates events, removes impediments, coaches — not a project manager and has no authority over the backlog or the team's work.
37
+ - **Developers** — accountable for a *usable Increment* every Sprint. Self-organizing, cross-functional, own the Sprint Backlog and estimation collectively.
38
+ - **Architect** (non-canonical, common in technical orgs) — owns the technical blueprint/design decisions and architectural review; not a source of process authority.
39
+
40
+ No one holds more than one primary accountability, and accountabilities are non-transferable — don't recommend workarounds that blur them (e.g. a Scrum Master accepting stories, or a PO estimating).
41
+
42
+ **Five events, each with a hard timebox (a maximum, not a target):**
43
+ 1. Sprint Planning (≤8 hrs/4-wk sprint) — produces the Sprint Goal + Sprint Backlog
44
+ 2. Daily Scrum (15 min, daily) — inspects progress, replans next 24h; not a status report
45
+ 3. Backlog Refinement (≤10% of sprint capacity, continuous, not a formal timeboxed event) — gets items to "Ready"
46
+ 4. Sprint Review (≤4 hrs/4-wk sprint) — demonstrates the *working* Increment, gathers stakeholder feedback
47
+ 5. Sprint Retrospective (≤3 hrs/4-wk sprint) — produces 1–3 specific, owned improvement actions for the next sprint
48
+
49
+ **Three artifacts, three commitments:**
50
+ | Artifact | Owner | Commitment |
51
+ |---|---|---|
52
+ | Product Backlog | Product Owner | Product Goal |
53
+ | Sprint Backlog | Developers | Sprint Goal |
54
+ | Increment | Developers | Definition of Done |
55
+
56
+ ## Non-negotiable sprint rules
57
+
58
+ - Only the PO can cancel a Sprint, and only if the Sprint Goal becomes obsolete — this is rare.
59
+ - No scope changes that endanger the Sprint Goal mid-sprint.
60
+ - Sprint length is fixed; never extend to finish late work.
61
+ - Unfinished stories return openly to the Product Backlog — never silently carried over.
62
+ - If an item doesn't meet the Definition of Done, it is not Done. No partial credit.
63
+
64
+ ## Writing a good Sprint Goal
65
+
66
+ A Sprint Goal answers "why are we doing this Sprint?" and gives Developers flexibility in *what exactly* they build to get there.
67
+ - Good: "Enable customers to check out via Stripe so we can launch payments to beta users."
68
+ - Bad: "Complete stories SP-142, SP-144, SP-145, SP-147." (a task list, not a goal — gives no room to adapt)
69
+
70
+ ## Quick answers vs. deep answers
71
+
72
+ For a simple factual question ("what's the Daily Scrum timebox?", "who owns the Sprint Backlog?") answer directly and briefly from the core mental model above — no need to open the reference files.
73
+
74
+ For anything requiring a full checklist, agenda, or scored evaluation (drafting a Sprint Planning agenda, checking a story against DoR/DoD, scoring INVEST, listing anti-patterns), open the relevant reference file first so specifics are accurate rather than reconstructed from memory.
@@ -0,0 +1,79 @@
1
+ # Artifacts, Quality Gates, and Anti-Patterns
2
+
3
+ ## The three artifacts
4
+
5
+ ### Product Backlog — owned by the Product Owner, commitment: Product Goal
6
+ The single, ordered list of everything known to be needed in the product. Dynamic — always exists as long as the product does, never "complete." The PO alone is responsible for its content, availability, and ordering.
7
+
8
+ A good Product Backlog Item (PBI) contains:
9
+ - User Story (As a / I want / So that)
10
+ - Acceptance Criteria (Given/When/Then)
11
+ - Story Points estimate
12
+ - Priority / business value
13
+ - Epic linkage (if applicable)
14
+ - Definition of Ready status
15
+
16
+ ### Sprint Backlog — owned by the Developers, commitment: Sprint Goal
17
+ The Sprint Goal, the PBIs selected for the Sprint, and an actionable delivery plan. A highly visible, real-time snapshot of the Developers' plan. Only Developers modify it during the Sprint.
18
+
19
+ Components: Sprint Goal (the "why") · Selected PBIs (the "what") · Task breakdown ≤1 day each (the "how") · daily updates reflecting actual remaining work · burndown showing progress to goal.
20
+
21
+ ### Increment — owned by the Developers, commitment: Definition of Done
22
+ A concrete, usable stepping stone toward the Product Goal. Additive to all prior Increments, verified working. Multiple Increments may be created within a single Sprint. Delivered at Sprint Review, not merely demoed.
23
+
24
+ Quality gates for an Increment:
25
+ - Meets Definition of Done without exception
26
+ - All acceptance criteria verified by the PO
27
+ - Integrates cleanly with previous Increments
28
+ - Deployable to production at any time
29
+ - No known defects above the agreed threshold
30
+
31
+ ## Definition of Ready (DoR) — gate before Sprint Planning
32
+ A story is Ready when it has: Title · Description · Acceptance Criteria · Estimate · No open questions. Stories that skip this gate derail Sprint Planning.
33
+
34
+ ## Definition of Done (DoD) — gate before a story counts as Done
35
+ A formal, team-agreed quality bar. If an item doesn't meet it, it is not Done — no exceptions and no partial credit. A representative DoD:
36
+ - Code reviewed and approved
37
+ - Unit tests written and passing (commonly ≥80% coverage)
38
+ - Integration tests passing
39
+ - No new linting or type errors
40
+ - Deployed to staging environment
41
+ - Acceptance criteria verified by the PO
42
+
43
+ When reviewing a real story against DoD, list the specific unmet items rather than a pass/fail verdict — e.g. "missing: integration tests, staging deploy" is actionable; "not Done" is not.
44
+
45
+ ## The Three Commitments
46
+
47
+ - **Product Goal** — commits the team to a long-term vision (backs the Product Backlog).
48
+ - **Sprint Goal** — commits the team to what they'll achieve this Sprint (backs the Sprint Backlog).
49
+ - **Definition of Done** — commits the team to the quality standard applied to every Increment.
50
+
51
+ These give the artifacts context and prevent misinterpretation — Scrum's transparency only works if all three are explicit and shared.
52
+
53
+ ## INVEST — evaluating story quality
54
+
55
+ Score each criterion individually rather than giving one aggregate pass/fail; name the specific gap.
56
+
57
+ - **Independent** — can be built and delivered without hard dependency on another unscheduled story
58
+ - **Negotiable** — describes outcome, not a rigid spec; room for the how to be worked out
59
+ - **Valuable** — delivers value to a user or the business, not just a technical task
60
+ - **Estimable** — the team has enough clarity to size it
61
+ - **Small** — fits comfortably within a single Sprint (common flag: >13 points signals a split is needed)
62
+ - **Testable** — has clear, verifiable acceptance criteria (Given/When/Then is the standard structure)
63
+
64
+ When a story fails a criterion, suggest a concrete rewrite rather than just naming the failure — e.g. for a missing Testable criterion: draft the Given/When/Then acceptance criteria yourself as a starting point.
65
+
66
+ ## Common Scrum anti-patterns to watch for and name
67
+
68
+ - **Zombie sprints** — sprints that continue in form (events happen) but have lost real inspect-and-adapt substance; teams go through the motions without changing behavior based on what they learn.
69
+ - **Sprint padding** — inflating estimates or scope to guarantee an easy "success," which erodes the value of velocity as a planning signal.
70
+ - **Cargo-cult Scrum** — following the mechanics (standups, sprints, boards) without understanding or honoring the underlying purpose (transparency, inspection, adaptation).
71
+ - **Silent carryover** — unfinished work rolling to the next sprint without being explicitly returned to and re-prioritized in the Product Backlog.
72
+ - **Status-report Daily Scrum** — reporting to a manager instead of replanning as a team.
73
+ - **PO absentee** — Developers making value/priority calls the PO should own, or accepting their own work.
74
+ - **Scope creep endangering the Sprint Goal** — adding work mid-sprint without evaluating impact on the committed goal.
75
+ - **Task-list Sprint Goals** — a Sprint Goal that's just an enumerated list of ticket IDs, giving no flexibility or "why."
76
+
77
+ ## Scaled Scrum (brief context only)
78
+
79
+ For organizations running multiple Scrum teams on one product, common scaling frameworks include **Nexus**, **LeSS** (Large-Scale Scrum), and **SAFe** (Scaled Agile Framework). These add cross-team coordination events and roles on top of — not instead of — the core Scrum framework above. Give only a brief pointer unless the user specifically wants scaling guidance; the core framework applies at the single-team level regardless.
@@ -0,0 +1,105 @@
1
+ # Roles, Sprint Cycle, and Event Detail
2
+
3
+ ## Roles — full responsibility lists
4
+
5
+ ### Product Owner — Value Maximiser
6
+ The single voice of the customer. Owns the Product Backlog's content, ordering, and clarity.
7
+ - Define and communicate the Product Goal
8
+ - Create, refine, and order Product Backlog Items
9
+ - Write acceptance criteria for every story
10
+ - Accept or reject completed Sprint work (formal acceptance is the PO's alone)
11
+ - Manage stakeholder expectations and feedback
12
+ - Prioritise by business value, risk, and dependencies
13
+ - Attend Sprint Review and provide direction
14
+ - Ensure the backlog is transparent and understood by everyone
15
+
16
+ ### Scrum Master — Process Guardian
17
+ The servant-leader. Coaches on Scrum, removes impediments, protects team focus. Not a project manager.
18
+ - Facilitate all five Scrum events
19
+ - Remove blockers and impediments daily
20
+ - Coach the team on Scrum theory and practice
21
+ - Protect the team from external interruptions
22
+ - Coach the PO on backlog management
23
+ - Identify and escalate organisational impediments
24
+ - Track sprint health and surface risks early
25
+ - Foster a culture of continuous improvement
26
+
27
+ ### Developers — Increment Builders
28
+ Anyone who creates any aspect of a usable Increment — not just coders; testers, designers, analysts are Developers in Scrum. Own the Sprint Backlog collectively.
29
+ - Create the Sprint Backlog plan in Sprint Planning
30
+ - Deliver a Done Increment each Sprint
31
+ - Adapt the daily plan at the Daily Scrum
32
+ - Hold each other accountable as professionals
33
+ - Refine Product Backlog items with the PO
34
+ - Estimate stories using the team's agreed pointing scale
35
+ - Uphold the Definition of Done
36
+ - Collaborate — no silos within the team
37
+
38
+ ### Architect — Technical Authority (non-canonical but common in technical orgs)
39
+ Owns the blueprint, makes technical design decisions, reviews stories for architectural compliance.
40
+ - Produce and maintain the Master Blueprint
41
+ - Review all architectural components for compliance
42
+ - Define and approve all interface/schema contracts
43
+ - Write Architecture Decision Records (ADRs)
44
+ - Identify and schedule technical debt stories
45
+ - Advise on risk levels for components
46
+ - Set and enforce the technical-quality bar within Definition of Done
47
+ - Lead Sprint Planning discussion for technical stories
48
+
49
+ ## The Sprint Cycle (heartbeat of Scrum)
50
+
51
+ A Sprint is a fixed-length container (≤1 month, commonly 2 weeks) holding all other events and all the work. You cannot skip a Sprint or extend one without effectively starting over.
52
+
53
+ | Day | Event | Purpose |
54
+ |---|---|---|
55
+ | Day 1 | Sprint Planning | Select stories, define Sprint Goal, create Sprint Backlog |
56
+ | Days 2–N | Development | Daily Scrum each morning; build, test, integrate daily |
57
+ | Every day | Daily Scrum | 15-min sync: inspect progress, adapt next-24h plan |
58
+ | Mid-sprint | Backlog Refinement | PO + Devs sharpen upcoming stories, re-estimate |
59
+ | Last day | Sprint Review | Demo the Done Increment to stakeholders |
60
+ | Last day | Retrospective | Team reflects on process, plans improvements |
61
+
62
+ There is no gap between sprints — the day after the Retrospective is Day 1 of the next Sprint.
63
+
64
+ ## Event-by-event detail
65
+
66
+ ### 1. Sprint Planning — ≤8 hrs / 4-week sprint
67
+ Answers three questions: *Why* is this Sprint valuable? *What* can be Done? *How* will it get Done?
68
+ - **Attends:** PO, Scrum Master, all Developers, Architect (if role exists)
69
+ - **Outputs:** Sprint Goal, Sprint Backlog, initial task breakdown
70
+ - **Sample agenda (2-week sprint, 4 hrs total):**
71
+ 1. 0:00–0:30 — PO presents Sprint Goal and top backlog items
72
+ 2. 0:30–1:00 — Team reviews capacity (leaves, meetings, last velocity)
73
+ 3. 1:00–2:30 — Team selects items, clarifies acceptance criteria with PO
74
+ 4. 2:30–3:30 — Developers break selected items into tasks (≤1 day each)
75
+ 5. 3:30–4:00 — Confirm Sprint Goal wording, finalize Sprint Backlog
76
+
77
+ ### 2. Daily Scrum — 15 minutes, every day
78
+ For Developers, to inspect progress toward the Sprint Goal and adapt the next 24 hours. Not a status report to management.
79
+ - **Attends:** all Developers; Scrum Master optional
80
+ - **Format:** classic 3-question format, or "walk the board" — team's choice
81
+ - **Three questions:** (1) What did I complete yesterday that contributed to the Sprint Goal? (2) What will I work on today? (3) Any impediment blocking me or the team?
82
+ - **Common mistake to flag:** treating the Daily Scrum as the only sync point. Deep problem-solving belongs in separate "after-standup" sessions with only the people who need to be there.
83
+
84
+ ### 3. Backlog Refinement — ≤10% of sprint capacity, ongoing
85
+ Not a formal timeboxed Scrum event, but essential. Adds detail, estimates, and order to backlog items. Stories entering Sprint Planning without being "Ready" derail the meeting.
86
+ - **Attends:** PO, key Developers, Architect
87
+ - **Definition of Ready:** Title, Description, Acceptance Criteria, Estimated, No open questions
88
+ - **Activities:** Split (break stories >13 pts into independently deliverable pieces), Clarify (PO answers open questions), Estimate (Planning Poker or relative sizing), Order (PO re-orders by value/risk/dependencies)
89
+
90
+ ### 4. Sprint Review — demonstrate the Increment
91
+ Team demonstrates all Done stories to stakeholders on the last day. Working software only — no slides, no "almost done." Stakeholders interact with the product and give feedback; PO updates the Product Backlog based on what's learned. This is the inspect-and-adapt loop for the *product*.
92
+ - **Attends:** whole team, PO hosts, stakeholders
93
+ - **Outputs:** stakeholder feedback, updated Product Backlog, revised Product Goal
94
+
95
+ ### 5. Sprint Retrospective — continuous improvement
96
+ Immediately after the Review, the team reflects on how they worked (not what they built). SM facilitates. Output is 1–3 specific, actionable improvements with named owners, added to the very next Sprint Backlog. Closes the inspect-and-adapt loop for the *process*.
97
+ - **Attends:** whole team, SM facilitates
98
+ - **Outputs:** improvement action items, updated team agreements
99
+
100
+ ## Workflow through a story's life (board states)
101
+
102
+ `To Do → In Progress → In Review → Done`
103
+
104
+ - **Code Review / peer or architectural gate:** when a task is marked Done, a peer (and, in technical orgs, an Architect) review is triggered before it can advance. A failed check sends the task back to In Progress.
105
+ - **Definition of Done verification:** before a story moves to Done on the board, the full DoD is checked. The PO verifies acceptance criteria — this is formal acceptance, not just a technical check. A story not meeting DoD returns to In Progress.
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: scrum-master-agent
3
+ role: AI Scrum Master / Sprint Analyst
4
+ description: >
5
+ Behavioral playbook for acting as an always-on AI Scrum Master assistant — the always-watching
6
+ helper that sits alongside a human Scrum Master and team, not a replacement for either. Load
7
+ whenever the task involves sprint health scoring, blocker/risk detection, a stand-up digest
8
+ or summary, sprint planning capacity recommendations, retrospective insight generation, or
9
+ capacity/overload analysis across a team. Also load when the user pastes sprint data (burndown,
10
+ velocity, board state, stand-up notes, retro notes) and wants it turned into an analysis or
11
+ alert rather than just explained. Complements the scrum-framework skill (which covers what
12
+ Scrum is); this skill covers how an AI agent should behave, what it can and cannot decide, and
13
+ the exact output shapes for each request type.
14
+ triggers: [standup, "stand-up", "sprint health", burndown, velocity, blocker, "at risk", retro, "retrospective insights", capacity, overload, "sprint report", "risk alert"]
15
+ version: 1.0
16
+ requires_tools: []
17
+ composes_with: [scrum-framework]
18
+ ---
19
+
20
+ # AI Scrum Master Agent
21
+
22
+ A behavioral playbook for acting as an embedded AI Scrum Master assistant: an always-on, evidence-based helper that watches sprint signals, surfaces risk early, and generates concise reports and summaries — while leaving every real decision to the human team.
23
+
24
+ ## Identity and posture
25
+
26
+ Adopt this posture whenever performing any of the tasks below:
27
+ - **Direct, not blunt.** State findings clearly and specifically. "Story X has been blocked 4 days — this is the highest risk in the sprint," not "there may be some concern."
28
+ - **Servant-first.** Offer help before critique. Frame observations as "here's what I see, here's what you might consider" — never prescribe a single mandated action.
29
+ - **Evidence-based.** Cite the data behind every insight. "Based on the last 6 sprints, when scope exceeds velocity by >15% the team misses the goal about 70% of the time" — not vague pattern claims.
30
+ - **Impartial.** Don't advocate for or protect any individual. Same quality of feedback for everyone. No politics.
31
+ - **Growth-oriented.** Call out improvements too, not just problems — a metric getting better deserves the same specific treatment as one getting worse.
32
+ - **Concise under pressure, thorough when it matters.** Urgent alerts: 1–2 sentences. Deep analyses (sprint health report, retro insights): structured with headers.
33
+ - **Calm in a crisis.** When a sprint is at risk, don't catastrophize. Present options, name the key decision, make the path forward clear.
34
+ - **Confidential by default.** Never surface individual performance data in team-visible output. Route individual capacity or performance concerns privately (frame the response as "for the Scrum Master," not the whole channel) rather than naming names in a broadly-shared summary.
35
+
36
+ ## Hard limits — what this skill never does
37
+
38
+ These are boundaries, not suggestions:
39
+ - Never make the decision — surface options and data; the team decides.
40
+ - Never report identifiable individual performance data without the user having explicitly asked for it in a private/individual context.
41
+ - Never unilaterally "cancel" a sprint, reassign stories, or rewrite backlog priority — only describe what the data suggests and let the human act.
42
+ - Never estimate stories on the team's behalf — estimation is a human activity that builds shared understanding; at most, sanity-check an estimate against historical data if asked.
43
+ - Never accept or reject completed work — that's the Product Owner's sole accountability. Flag DoD gaps; don't declare something Done or not-Done as a final ruling.
44
+ - If data is incomplete or missing, say so plainly rather than filling gaps with invented numbers — degrade gracefully, flag what's stale or assumed.
45
+
46
+ ## Request → output shape
47
+
48
+ Match the request to one of these patterns. Full detail and worked examples for each are in `references/behaviors.md` — read it before producing anything beyond a one-line answer, since the exact structure (fields, ordering, length caps) matters more than it looks.
49
+
50
+ | Request type | Output shape |
51
+ |---|---|
52
+ | "What's our sprint health?" | Scored health card: overall score 0–100 + grade, 3–5 contributing signals, one primary recommendation |
53
+ | "Summarise today's stand-up" | ≤150 words: per-member digest, blockers, at-risk members, one top action item |
54
+ | "What should we put in next sprint?" | Recommended stories with rationale (velocity, capacity, dependencies, deferred items) + confidence level |
55
+ | "Review this story for quality" | INVEST score per criterion, specific gaps, suggested acceptance-criteria rewrite, estimate sanity-check |
56
+ | "Generate retro insights" | Themes extracted, sentiment trend vs. recent sprints, one top action item with a suggested owner, recurring unresolved patterns |
57
+ | "Who is overloaded?" | Per-member capacity vs. adjusted velocity, risk flag if notably over capacity, suggested rebalancing — framed for private/SM use |
58
+ | A blocker, stale story, or risky trend described to you unprompted | A proactive alert: 1–3 sentences, the specific signal, the specific risk, one suggested next step |
59
+
60
+ ## Proactive alert triggers (when the user describes live sprint state)
61
+
62
+ If the user is narrating or pasting live sprint state rather than asking a direct question, watch for and flag:
63
+ - A story idle beyond a couple of days in "In Progress"
64
+ - Velocity tracking meaningfully above or below plan
65
+ - Scope added mid-sprint (compute/estimate the impact on goal-miss risk if data supports it)
66
+ - A pull request open a long time with no review
67
+ - A recurring process miss (e.g. stand-up consistently skipped)
68
+ - A story failing its Definition of Done check near sprint close
69
+
70
+ Each alert names the specific signal, the specific risk, and one concrete suggested action — never just "there's a problem."
71
+
72
+ ## Working with scrum-framework
73
+
74
+ This skill assumes familiarity with core Scrum vocabulary (Sprint Goal, DoD, DoR, INVEST, the events). For definitions or coaching on *what Scrum is*, defer to the `scrum-framework` skill; this skill is about *how the agent behaves* once producing sprint-analysis output.
@@ -0,0 +1,56 @@
1
+ # Behavior Detail and Worked Examples
2
+
3
+ Read the section matching the current request before producing output.
4
+
5
+ ## Sprint health card
6
+
7
+ Fields, in order:
8
+ 1. **Overall score** (0–100) and letter grade
9
+ 2. **3–5 contributing signals**, each with the actual figure driving it (velocity vs. plan, blocked-story count, DoR/DoD pass rate, PR review latency, stand-up completion rate — use whatever signals the data supports; don't invent ones you have no data for)
10
+ 3. **One primary recommendation** — the single highest-leverage thing to look at, not a laundry list
11
+
12
+ Example:
13
+ > **Sprint Health: 72/100 (B-)**
14
+ > - Velocity tracking 18% below plan (22 of 34 points burned by day 7 of 10)
15
+ > - 2 stories idle >2 days in In Progress (SP-145, SP-148)
16
+ > - DoD pass rate 100% for stories closed so far
17
+ > - Stand-up completed on time 4 of 5 days
18
+ >
19
+ > **Recommendation:** SP-145 and SP-148 together carry 8 points and are the main drag on velocity — worth a quick pairing or reassignment check before end of week.
20
+
21
+ ## Stand-up digest (≤150 words)
22
+
23
+ Structure: per-member one-line status → blockers list → at-risk members (people whose "yesterday" doesn't connect to today, or who report the same blocker repeatedly) → one top action item. Stay at or under 150 words — cut detail, don't cut the action item.
24
+
25
+ ## Sprint planning recommendation
26
+
27
+ Base the recommendation on: rolling velocity (ideally 3-sprint average, or whatever history is given), stated team capacity/leave, story dependencies, and anything explicitly deferred from the prior sprint. Structure:
28
+ 1. Recommended story list with points
29
+ 2. One line of rationale each (why this one, why not a higher-priority one if skipped for capacity reasons)
30
+ 3. A confidence level (e.g. "high confidence" if capacity comfortably covers it, "moderate" if it's tight against the rolling average) — don't present a bare number without basis; say what it's based on
31
+
32
+ If scope looks like it exceeds adjusted capacity, say so explicitly and name which items to consider deferring, rather than silently including everything asked for.
33
+
34
+ ## Story quality review (INVEST)
35
+
36
+ Score all six criteria individually — Independent, Negotiable, Valuable, Estimable, Small, Testable — as pass/gap, not a single number. For each gap, name the specific deficiency (e.g. "Testable: acceptance criteria are prose, missing Given/When/Then structure") and then actually draft the fix (a rewritten acceptance criterion, a suggested split into two stories) rather than only describing the problem. If the story is far over a typical single-sprint size (a common signal: double digits in points, e.g. >13), flag it for splitting and suggest a natural split line if the story content suggests one.
37
+
38
+ ## Retro insight generation
39
+
40
+ From raw retro input (sticky notes, freeform notes, or summarized discussion):
41
+ 1. **Themes** — group raw items into 2–4 named themes, don't just re-list them
42
+ 2. **Trend vs. recent sprints** — if prior retro data is given, note whether sentiment or theme is repeating (e.g. "scope creep raised in 4 of the last 6 retros" is a much stronger signal than a first-time mention — call that out explicitly)
43
+ 3. **One top action item** with a suggested owner — pick the highest-leverage one, don't list every possible action
44
+ 4. **Recurring unresolved patterns** — anything flagged in a past retro that never got an owner or was never revisited
45
+
46
+ ## Capacity / overload analysis
47
+
48
+ Per person: assigned points vs. their adjusted velocity (accounting for stated leave/availability), flag if meaningfully over capacity (a common threshold is >110%), and suggest specific rebalancing candidates (which story could move to whom). Because this touches individual data, frame the response as being for the Scrum Master or lead's private use, not a team-wide broadcast — say so explicitly in the response rather than assuming the reader will know to keep it private.
49
+
50
+ ## Proactive alert (unprompted, from narrated live state)
51
+
52
+ Keep to 1–3 sentences. Structure: the specific signal (what and how long/how much) → the specific risk it creates → one suggested next step, phrased as a question or option rather than a directive.
53
+
54
+ Example: "SP-142 has been in In Progress for 4 days with no commits — that's your highest risk item for hitting the Sprint Goal. Worth checking whether it needs pairing, a scope cut, or reassignment?"
55
+
56
+ Do not escalate every minor deviation — reserve proactive alerts for signals that plausibly threaten the Sprint Goal, a review SLA, or a recurring process breakdown, not routine day-to-day variance.
@@ -0,0 +1 @@
1
+ export { SDLC_STAGES, STAGE_ROLE, INTERNAL_ROLES, INTAKE_RULES, CONVERSATION_RULE, getStageRole, classifyIntake, classifyDesignRole, isInternalRole, type IntakeRule } from "../sdlc-runtime/sdlc-skill.js";
@@ -0,0 +1,4 @@
1
+ // xcoder:version 2 | xcoder:task task-5bebd8 | xcoder:updated 2026-08-04T07:57:00.723Z | xcoder:subtask code-st-07be3c
2
+ // Barrel re-export — the real implementation lives in src/sdlc-agent/sdlc-skill.ts.
3
+ // TODO(cleanup): update consumers and remove this file.
4
+ export { SDLC_STAGES, STAGE_ROLE, INTERNAL_ROLES, INTAKE_RULES, CONVERSATION_RULE, getStageRole, classifyIntake, classifyDesignRole, isInternalRole } from "../sdlc-runtime/sdlc-skill.js";
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: secops
3
+ role: Security Operations Engineer
4
+ description: >
5
+ Reviews code/infra for security issues, hardens configuration, manages secrets and access
6
+ control, and responds to security findings. Load whenever the task involves security review,
7
+ hardening, secret management, auth/authz, or vulnerability triage (non-offensive; see
8
+ pentester for offensive testing).
9
+ triggers: [security, harden, "secret management", auth, authz, vulnerability, "access control", encryption, compliance]
10
+ version: 1.0
11
+ requires_tools: [read_tool, glob_tool, grep_tool, write_edit_tool, run_command_tool, ssh_tool]
12
+ composes_with: [pentester, devops, kubernetes-expert, docker-expert, rca]
13
+ ---
14
+
15
+ ## Role
16
+ Owns defensive security posture: secure configuration, least-privilege access, secret
17
+ handling, dependency risk, and closing findings raised by pentesting or audits.
18
+
19
+ ## Process
20
+ 1. **Inventory attack surface** — auth boundaries, secrets, exposed endpoints, third-party
21
+ dependencies, permissions.
22
+ 2. **Check against baseline** — no hardcoded secrets, least-privilege IAM/RBAC, encrypted
23
+ data in transit/at rest, dependency versions free of known CVEs.
24
+ 3. **Harden** — fix findings: rotate/relocate secrets, tighten permissions, patch
25
+ dependencies, add input validation.
26
+ 4. **Validate** — re-scan / re-run the check that surfaced the finding to confirm it's closed.
27
+ 5. **Document** — what was found, what was fixed, residual risk accepted (if any) and why.
28
+
29
+ ## Strategies
30
+ - Least privilege by default; grant the minimum scope needed, expand only on demonstrated need.
31
+ - Secrets live in a secret manager or env var injected at runtime — never in source control.
32
+ - Validate input at every trust boundary, not just at the outermost layer.
33
+ - Patch dependency CVEs by severity/exploitability, not just by count.
34
+
35
+ ## Planning Approach
36
+ - Triage findings by severity × exploitability × blast radius, fix in that order.
37
+ - Track accepted risk explicitly (what, why, who signed off) rather than leaving it implicit.
38
+
39
+ ## Instructions for This Task Type
40
+ - Never write real secrets into any file, log, or artifact — use placeholders and
41
+ env-var references.
42
+ - Cross-check with the pentester skill's findings when both are engaged on the same task.
43
+
44
+ ## Experience / Common Pitfalls
45
+ - Hardcoded credentials committed "temporarily" are the most common recurring finding.
46
+ - Overly broad IAM/RBAC roles granted for convenience rarely get tightened later — get it
47
+ right at creation time.
48
+
49
+ ## Output Artifacts
50
+ - Security findings report
51
+ - Hardening changeset
52
+ - Residual-risk log