@jaimevalasek/aioson 1.7.2 → 1.8.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 (362) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +153 -10
  3. package/docs/en/cli-reference.md +56 -1
  4. package/docs/en/i18n.md +18 -18
  5. package/docs/en/schemas/index.json +10 -0
  6. package/docs/en/schemas/parallel-assign.schema.json +9 -0
  7. package/docs/en/schemas/parallel-doctor.schema.json +36 -0
  8. package/docs/en/schemas/parallel-guard.schema.json +63 -0
  9. package/docs/en/schemas/parallel-merge.schema.json +84 -0
  10. package/docs/en/schemas/parallel-status.schema.json +91 -1
  11. package/docs/integrations/apps-publish-marketplace.md +94 -0
  12. package/docs/pt/README.md +9 -0
  13. package/docs/pt/agentes.md +324 -3
  14. package/docs/pt/clientes-ai.md +7 -3
  15. package/docs/pt/comandos-cli.md +160 -13
  16. package/docs/pt/compress-agents.md +304 -0
  17. package/docs/pt/design-docs-governance.md +59 -0
  18. package/docs/pt/feature-archive.md +191 -0
  19. package/docs/pt/genome-3.0-spec.md +115 -4
  20. package/docs/pt/genome-distribution.md +232 -0
  21. package/docs/pt/inicio-rapido.md +1 -0
  22. package/docs/pt/motor-hardening.md +492 -0
  23. package/docs/pt/runner-system.md +113 -0
  24. package/package.json +2 -1
  25. package/src/agent-manifests.js +66 -0
  26. package/src/agents.js +27 -7
  27. package/src/autonomy-policy.js +139 -0
  28. package/src/brain-query.js +161 -0
  29. package/src/cli.js +1377 -1099
  30. package/src/commands/agents.js +102 -7
  31. package/src/commands/artifact-validate.js +33 -4
  32. package/src/commands/auth.js +272 -0
  33. package/src/commands/brain-query.js +44 -0
  34. package/src/commands/briefing.js +344 -0
  35. package/src/commands/commit-prepare.js +547 -0
  36. package/src/commands/compress-agents.js +416 -0
  37. package/src/commands/context-health.js +4 -2
  38. package/src/commands/context-trim.js +17 -11
  39. package/src/commands/design-hybrid-options.js +3 -3
  40. package/src/commands/devlog-process.js +6 -4
  41. package/src/commands/dossier.js +423 -0
  42. package/src/commands/feature-archive.js +513 -0
  43. package/src/commands/feature-close.js +123 -18
  44. package/src/commands/gate-approve.js +198 -0
  45. package/src/commands/gate-check.js +24 -5
  46. package/src/commands/genome-doctor.js +166 -9
  47. package/src/commands/git-guard.js +170 -0
  48. package/src/commands/harness.js +121 -0
  49. package/src/commands/implementation-plan.js +47 -20
  50. package/src/commands/init.js +6 -2
  51. package/src/commands/install.js +6 -2
  52. package/src/commands/live.js +497 -56
  53. package/src/commands/locale-apply.js +9 -6
  54. package/src/commands/locale-diff.js +11 -112
  55. package/src/commands/mcp-doctor.js +2 -1
  56. package/src/commands/mcp-init.js +4 -10
  57. package/src/commands/memory.js +234 -0
  58. package/src/commands/parallel-assign.js +107 -27
  59. package/src/commands/parallel-doctor.js +416 -3
  60. package/src/commands/parallel-guard.js +241 -0
  61. package/src/commands/parallel-init.js +66 -4
  62. package/src/commands/parallel-merge.js +299 -0
  63. package/src/commands/parallel-status.js +147 -3
  64. package/src/commands/preflight.js +63 -4
  65. package/src/commands/qa-init.js +10 -5
  66. package/src/commands/revision.js +235 -0
  67. package/src/commands/scaffold-complete.js +188 -0
  68. package/src/commands/security-audit.js +275 -0
  69. package/src/commands/security-scan.js +376 -0
  70. package/src/commands/self-implement-loop.js +46 -2
  71. package/src/commands/setup-context.js +11 -10
  72. package/src/commands/squad-agent-create.js +51 -9
  73. package/src/commands/squad-investigate.js +53 -0
  74. package/src/commands/squad-plan.js +33 -1
  75. package/src/commands/squad-scaffold.js +4 -3
  76. package/src/commands/squad-score.js +71 -14
  77. package/src/commands/squad-status.js +22 -1
  78. package/src/commands/squad-validate.js +93 -2
  79. package/src/commands/store-genome.js +304 -0
  80. package/src/commands/store-skill.js +247 -0
  81. package/src/commands/store-squad.js +431 -0
  82. package/src/commands/store-system.js +392 -0
  83. package/src/commands/tool-capabilities.js +63 -0
  84. package/src/commands/update.js +3 -3
  85. package/src/commands/verify-gate.js +40 -0
  86. package/src/commands/workflow-execute.js +644 -155
  87. package/src/commands/workflow-harden.js +231 -0
  88. package/src/commands/workflow-heal.js +136 -0
  89. package/src/commands/workflow-next.js +460 -22
  90. package/src/commands/workflow-status.js +328 -138
  91. package/src/commands/workspace.js +144 -0
  92. package/src/constants.js +42 -75
  93. package/src/context-memory.js +133 -4
  94. package/src/context-writer.js +2 -1
  95. package/src/context.js +32 -2
  96. package/src/doctor.js +46 -6
  97. package/src/dossier/codemap-store.js +267 -0
  98. package/src/dossier/dossier-bootstrap.js +222 -0
  99. package/src/dossier/dossier-compact.js +159 -0
  100. package/src/dossier/lock.js +128 -0
  101. package/src/dossier/revision-store.js +313 -0
  102. package/src/dossier/schema.js +155 -0
  103. package/src/dossier/store.js +400 -0
  104. package/src/execution-gateway.js +3 -0
  105. package/src/friction-scanner.js +202 -0
  106. package/src/genome-schema.js +24 -1
  107. package/src/genomes.js +33 -0
  108. package/src/handoff-contract.js +363 -0
  109. package/src/handoff-validator.js +45 -0
  110. package/src/harness/circuit-breaker.js +135 -0
  111. package/src/i18n/messages/en.js +317 -22
  112. package/src/i18n/messages/es.js +259 -18
  113. package/src/i18n/messages/fr.js +260 -18
  114. package/src/i18n/messages/pt-BR.js +313 -22
  115. package/src/install-profile.js +0 -16
  116. package/src/installer.js +70 -6
  117. package/src/lib/git-commit-guard.js +691 -0
  118. package/src/lib/security/artifact-reader.js +167 -0
  119. package/src/lib/security/exit-codes.js +51 -0
  120. package/src/lib/security/findings-writer.js +176 -0
  121. package/src/lib/security/runtime-events.js +77 -0
  122. package/src/lib/security/secrets-regex.js +115 -0
  123. package/src/lib/store/security-scan.js +173 -0
  124. package/src/lib/terminal-checkbox.js +130 -0
  125. package/src/lib/tmux-launcher.js +163 -0
  126. package/src/lib/tool-capabilities.js +102 -0
  127. package/src/locales.js +12 -8
  128. package/src/parallel-workspace.js +756 -0
  129. package/src/parser.js +8 -1
  130. package/src/path-guard.js +47 -0
  131. package/src/preflight-engine.js +237 -26
  132. package/src/self-healing.js +142 -0
  133. package/src/session-handoff.js +111 -1
  134. package/src/squad/squad-scaffold.js +183 -19
  135. package/src/test-briefing.js +226 -0
  136. package/src/updater.js +1 -1
  137. package/src/utils.js +3 -0
  138. package/src/workflow-gates.js +185 -0
  139. package/template/.aioson/agents/analyst.md +76 -130
  140. package/template/.aioson/agents/architect.md +53 -86
  141. package/template/.aioson/agents/committer.md +161 -0
  142. package/template/.aioson/agents/cypher.md +252 -0
  143. package/template/.aioson/agents/dev.md +112 -628
  144. package/template/.aioson/agents/deyvin.md +33 -236
  145. package/template/.aioson/agents/discover.md +235 -0
  146. package/template/.aioson/agents/discovery-design-doc.md +17 -252
  147. package/template/.aioson/agents/genome.md +76 -26
  148. package/template/.aioson/agents/manifests/analyst.manifest.json +26 -0
  149. package/template/.aioson/agents/manifests/architect.manifest.json +23 -0
  150. package/template/.aioson/agents/manifests/committer.manifest.json +23 -0
  151. package/template/.aioson/agents/manifests/dev.manifest.json +37 -0
  152. package/template/.aioson/agents/manifests/orchestrator.manifest.json +30 -0
  153. package/template/.aioson/agents/manifests/pentester.manifest.json +39 -0
  154. package/template/.aioson/agents/manifests/pm.manifest.json +26 -0
  155. package/template/.aioson/agents/manifests/product.manifest.json +23 -0
  156. package/template/.aioson/agents/manifests/qa.manifest.json +25 -0
  157. package/template/.aioson/agents/manifests/setup.manifest.json +20 -0
  158. package/template/.aioson/agents/manifests/ux-ui.manifest.json +24 -0
  159. package/template/.aioson/agents/neo.md +5 -7
  160. package/template/.aioson/agents/orache.md +2 -6
  161. package/template/.aioson/agents/orchestrator.md +81 -182
  162. package/template/.aioson/agents/pentester.md +235 -0
  163. package/template/.aioson/agents/pm.md +40 -104
  164. package/template/.aioson/agents/product.md +99 -344
  165. package/template/.aioson/agents/profiler-enricher.md +57 -6
  166. package/template/.aioson/agents/profiler-forge.md +17 -7
  167. package/template/.aioson/agents/profiler-researcher.md +29 -6
  168. package/template/.aioson/agents/qa.md +168 -514
  169. package/template/.aioson/agents/setup.md +52 -278
  170. package/template/.aioson/agents/sheldon.md +122 -754
  171. package/template/.aioson/agents/site-forge.md +111 -1583
  172. package/template/.aioson/agents/squad.md +139 -2010
  173. package/template/.aioson/agents/tester.md +10 -0
  174. package/template/.aioson/agents/ux-ui.md +104 -812
  175. package/template/.aioson/agents/validator.md +69 -0
  176. package/template/.aioson/brains/scripts/query.js +5 -1
  177. package/template/.aioson/config/autonomy-protocol.json +43 -0
  178. package/template/.aioson/config.md +43 -15
  179. package/template/.aioson/constitution.md +36 -33
  180. package/template/.aioson/context/design-doc.md +136 -0
  181. package/template/.aioson/context/project-map.md +57 -0
  182. package/template/.aioson/design-docs/code-reuse.md +48 -0
  183. package/template/.aioson/design-docs/componentization.md +47 -0
  184. package/template/.aioson/design-docs/file-size.md +52 -0
  185. package/template/.aioson/design-docs/folder-structure.md +51 -0
  186. package/template/.aioson/design-docs/naming.md +54 -0
  187. package/template/.aioson/docs/LAYERS.md +12 -2
  188. package/template/.aioson/docs/dev/execution-discipline.md +106 -0
  189. package/template/.aioson/docs/dev/stack-conventions.md +83 -0
  190. package/template/.aioson/docs/deyvin/continuity-recovery.md +57 -0
  191. package/template/.aioson/docs/deyvin/debugging-escalation.md +30 -0
  192. package/template/.aioson/docs/deyvin/pair-execution.md +44 -0
  193. package/template/.aioson/docs/deyvin/runtime-handoffs.md +36 -0
  194. package/template/.aioson/docs/product/conversation-playbook.md +116 -0
  195. package/template/.aioson/docs/product/prd-contract.md +107 -0
  196. package/template/.aioson/docs/product/quality-lens.md +57 -0
  197. package/template/.aioson/docs/product/research-loop.md +65 -0
  198. package/template/.aioson/docs/sheldon/enrichment-paths.md +134 -0
  199. package/template/.aioson/docs/sheldon/quality-lens.md +57 -0
  200. package/template/.aioson/docs/sheldon/research-loop.md +56 -0
  201. package/template/.aioson/docs/sheldon/web-intelligence.md +75 -0
  202. package/template/.aioson/docs/site-forge-build.md +195 -0
  203. package/template/.aioson/docs/site-forge-extraction.md +135 -0
  204. package/template/.aioson/docs/site-forge-qa.md +155 -0
  205. package/template/.aioson/docs/site-forge-recon.md +434 -0
  206. package/template/.aioson/docs/site-forge-transform.md +249 -0
  207. package/template/.aioson/docs/squad/content-output.md +91 -0
  208. package/template/.aioson/docs/squad/creation-flow.md +135 -0
  209. package/template/.aioson/docs/squad/domain-classification.md +117 -0
  210. package/template/.aioson/docs/squad/genome-bindings.md +47 -0
  211. package/template/.aioson/docs/squad/package-contract.md +234 -0
  212. package/template/.aioson/docs/squad/quality-lens.md +56 -0
  213. package/template/.aioson/docs/squad/research-loop.md +59 -0
  214. package/template/.aioson/docs/squad/session-operations.md +117 -0
  215. package/template/.aioson/docs/squad/workflow-quality.md +165 -0
  216. package/template/.aioson/docs/ux-ui/accessibility-audit.md +55 -0
  217. package/template/.aioson/docs/ux-ui/audit-mode.md +86 -0
  218. package/template/.aioson/docs/ux-ui/component-map.md +35 -0
  219. package/template/.aioson/docs/ux-ui/design-execution.md +111 -0
  220. package/template/.aioson/docs/ux-ui/design-gate.md +27 -0
  221. package/template/.aioson/docs/ux-ui/research-mode.md +39 -0
  222. package/template/.aioson/docs/ux-ui/site-delivery.md +156 -0
  223. package/template/.aioson/docs/ux-ui/token-contract.md +57 -0
  224. package/template/.aioson/genomes/copywriting.meta.json +48 -0
  225. package/template/.aioson/git-guard.json +11 -0
  226. package/template/.aioson/mcp/servers.md +0 -1
  227. package/template/.aioson/rules/agent-language-policy.md +93 -0
  228. package/template/.aioson/rules/aioson-context-boundary.md +63 -0
  229. package/template/.aioson/rules/canonical-path-contract.md +47 -0
  230. package/template/.aioson/rules/data-format-convention.md +24 -86
  231. package/template/.aioson/rules/disk-first-artifacts.md +44 -0
  232. package/template/.aioson/rules/output-brevity.md +44 -0
  233. package/template/.aioson/rules/prd-section-ownership.md +49 -0
  234. package/template/.aioson/rules/security-baseline.md +139 -0
  235. package/template/.aioson/rules/spec-level-ownership.md +61 -0
  236. package/template/.aioson/rules/squad-driver-pattern.md +81 -0
  237. package/template/.aioson/schemas/squad-blueprint.schema.json +24 -0
  238. package/template/.aioson/schemas/squad-manifest.schema.json +44 -0
  239. package/template/.aioson/skills/process/aioson-spec-driven/references/pm.md +30 -0
  240. package/template/.aioson/skills/process/secure-tdd/SKILL.md +97 -0
  241. package/template/.aioson/skills/process/secure-tdd/references/nextjs.md +81 -0
  242. package/template/.aioson/skills/process/secure-tdd/references/node-express.md +91 -0
  243. package/template/.aioson/skills/process/secure-tdd/references/planned-stacks.md +33 -0
  244. package/template/.aioson/skills/static/harness-validate/SKILL.md +46 -0
  245. package/template/.aioson/skills/static/web-research-cache.md +3 -0
  246. package/template/.aioson/tasks/squad-create.md +35 -8
  247. package/template/.aioson/tasks/squad-design.md +50 -2
  248. package/template/.aioson/tasks/squad-investigate.md +14 -1
  249. package/template/.claude/commands/aioson/agent/committer.md +5 -0
  250. package/template/.claude/commands/aioson/agent/copywriter.md +5 -0
  251. package/template/.claude/commands/aioson/agent/cypher.md +5 -0
  252. package/template/.claude/commands/aioson/agent/pair.md +5 -0
  253. package/template/.claude/commands/aioson/agent/validator.md +5 -0
  254. package/template/.gemini/commands/aios-analyst.toml +6 -3
  255. package/template/.gemini/commands/aios-architect.toml +7 -6
  256. package/template/.gemini/commands/aios-committer.toml +7 -0
  257. package/template/.gemini/commands/aios-copywriter.toml +7 -0
  258. package/template/.gemini/commands/aios-cypher.toml +7 -0
  259. package/template/.gemini/commands/aios-dev.toml +8 -7
  260. package/template/.gemini/commands/aios-deyvin.toml +6 -5
  261. package/template/.gemini/commands/aios-discovery-design-doc.toml +6 -3
  262. package/template/.gemini/commands/aios-genome.toml +7 -0
  263. package/template/.gemini/commands/aios-neo.toml +5 -3
  264. package/template/.gemini/commands/aios-orache.toml +7 -0
  265. package/template/.gemini/commands/aios-orchestrator.toml +8 -7
  266. package/template/.gemini/commands/aios-pair.toml +6 -5
  267. package/template/.gemini/commands/aios-pm.toml +8 -7
  268. package/template/.gemini/commands/aios-product.toml +5 -3
  269. package/template/.gemini/commands/aios-qa.toml +6 -5
  270. package/template/.gemini/commands/aios-setup.toml +5 -2
  271. package/template/.gemini/commands/aios-sheldon.toml +7 -0
  272. package/template/.gemini/commands/aios-site-forge.toml +7 -0
  273. package/template/.gemini/commands/aios-squad.toml +7 -0
  274. package/template/.gemini/commands/aios-tester.toml +6 -5
  275. package/template/.gemini/commands/aios-ux-ui.toml +8 -7
  276. package/template/.gemini/commands/aios-validator.toml +7 -0
  277. package/template/AGENTS.md +12 -1
  278. package/template/CLAUDE.md +5 -1
  279. package/template/.aioson/locales/en/agents/analyst.md +0 -244
  280. package/template/.aioson/locales/en/agents/architect.md +0 -245
  281. package/template/.aioson/locales/en/agents/dev.md +0 -397
  282. package/template/.aioson/locales/en/agents/deyvin.md +0 -137
  283. package/template/.aioson/locales/en/agents/discovery-design-doc.md +0 -27
  284. package/template/.aioson/locales/en/agents/genome.md +0 -212
  285. package/template/.aioson/locales/en/agents/neo.md +0 -8
  286. package/template/.aioson/locales/en/agents/orache.md +0 -6
  287. package/template/.aioson/locales/en/agents/orchestrator.md +0 -189
  288. package/template/.aioson/locales/en/agents/pair.md +0 -5
  289. package/template/.aioson/locales/en/agents/pm.md +0 -84
  290. package/template/.aioson/locales/en/agents/product.md +0 -378
  291. package/template/.aioson/locales/en/agents/profiler-enricher.md +0 -5
  292. package/template/.aioson/locales/en/agents/profiler-forge.md +0 -5
  293. package/template/.aioson/locales/en/agents/profiler-researcher.md +0 -5
  294. package/template/.aioson/locales/en/agents/qa.md +0 -270
  295. package/template/.aioson/locales/en/agents/setup.md +0 -421
  296. package/template/.aioson/locales/en/agents/sheldon.md +0 -455
  297. package/template/.aioson/locales/en/agents/squad.md +0 -449
  298. package/template/.aioson/locales/en/agents/tester.md +0 -6
  299. package/template/.aioson/locales/en/agents/ux-ui.md +0 -668
  300. package/template/.aioson/locales/es/agents/analyst.md +0 -225
  301. package/template/.aioson/locales/es/agents/architect.md +0 -245
  302. package/template/.aioson/locales/es/agents/dev.md +0 -370
  303. package/template/.aioson/locales/es/agents/deyvin.md +0 -99
  304. package/template/.aioson/locales/es/agents/discovery-design-doc.md +0 -21
  305. package/template/.aioson/locales/es/agents/genome.md +0 -104
  306. package/template/.aioson/locales/es/agents/neo.md +0 -50
  307. package/template/.aioson/locales/es/agents/orache.md +0 -105
  308. package/template/.aioson/locales/es/agents/orchestrator.md +0 -194
  309. package/template/.aioson/locales/es/agents/pair.md +0 -7
  310. package/template/.aioson/locales/es/agents/pm.md +0 -90
  311. package/template/.aioson/locales/es/agents/product.md +0 -372
  312. package/template/.aioson/locales/es/agents/profiler-enricher.md +0 -7
  313. package/template/.aioson/locales/es/agents/profiler-forge.md +0 -7
  314. package/template/.aioson/locales/es/agents/profiler-researcher.md +0 -7
  315. package/template/.aioson/locales/es/agents/qa.md +0 -198
  316. package/template/.aioson/locales/es/agents/setup.md +0 -405
  317. package/template/.aioson/locales/es/agents/sheldon.md +0 -309
  318. package/template/.aioson/locales/es/agents/squad.md +0 -532
  319. package/template/.aioson/locales/es/agents/tester.md +0 -9
  320. package/template/.aioson/locales/es/agents/ux-ui.md +0 -212
  321. package/template/.aioson/locales/fr/agents/analyst.md +0 -225
  322. package/template/.aioson/locales/fr/agents/architect.md +0 -245
  323. package/template/.aioson/locales/fr/agents/dev.md +0 -370
  324. package/template/.aioson/locales/fr/agents/deyvin.md +0 -99
  325. package/template/.aioson/locales/fr/agents/discovery-design-doc.md +0 -21
  326. package/template/.aioson/locales/fr/agents/genome.md +0 -104
  327. package/template/.aioson/locales/fr/agents/neo.md +0 -50
  328. package/template/.aioson/locales/fr/agents/orache.md +0 -106
  329. package/template/.aioson/locales/fr/agents/orchestrator.md +0 -194
  330. package/template/.aioson/locales/fr/agents/pair.md +0 -7
  331. package/template/.aioson/locales/fr/agents/pm.md +0 -90
  332. package/template/.aioson/locales/fr/agents/product.md +0 -372
  333. package/template/.aioson/locales/fr/agents/profiler-enricher.md +0 -7
  334. package/template/.aioson/locales/fr/agents/profiler-forge.md +0 -7
  335. package/template/.aioson/locales/fr/agents/profiler-researcher.md +0 -7
  336. package/template/.aioson/locales/fr/agents/qa.md +0 -198
  337. package/template/.aioson/locales/fr/agents/setup.md +0 -405
  338. package/template/.aioson/locales/fr/agents/sheldon.md +0 -309
  339. package/template/.aioson/locales/fr/agents/squad.md +0 -532
  340. package/template/.aioson/locales/fr/agents/tester.md +0 -9
  341. package/template/.aioson/locales/fr/agents/ux-ui.md +0 -212
  342. package/template/.aioson/locales/pt-BR/agents/analyst.md +0 -319
  343. package/template/.aioson/locales/pt-BR/agents/architect.md +0 -284
  344. package/template/.aioson/locales/pt-BR/agents/dev.md +0 -483
  345. package/template/.aioson/locales/pt-BR/agents/deyvin.md +0 -184
  346. package/template/.aioson/locales/pt-BR/agents/discovery-design-doc.md +0 -198
  347. package/template/.aioson/locales/pt-BR/agents/genome.md +0 -297
  348. package/template/.aioson/locales/pt-BR/agents/neo.md +0 -208
  349. package/template/.aioson/locales/pt-BR/agents/orache.md +0 -137
  350. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +0 -324
  351. package/template/.aioson/locales/pt-BR/agents/pair.md +0 -5
  352. package/template/.aioson/locales/pt-BR/agents/pm.md +0 -182
  353. package/template/.aioson/locales/pt-BR/agents/product.md +0 -466
  354. package/template/.aioson/locales/pt-BR/agents/profiler-enricher.md +0 -5
  355. package/template/.aioson/locales/pt-BR/agents/profiler-forge.md +0 -5
  356. package/template/.aioson/locales/pt-BR/agents/profiler-researcher.md +0 -5
  357. package/template/.aioson/locales/pt-BR/agents/qa.md +0 -300
  358. package/template/.aioson/locales/pt-BR/agents/setup.md +0 -533
  359. package/template/.aioson/locales/pt-BR/agents/sheldon.md +0 -323
  360. package/template/.aioson/locales/pt-BR/agents/squad.md +0 -1330
  361. package/template/.aioson/locales/pt-BR/agents/tester.md +0 -449
  362. package/template/.aioson/locales/pt-BR/agents/ux-ui.md +0 -669
@@ -0,0 +1,91 @@
1
+ ---
2
+ description: "Squad content and output rules — content blueprints, output strategy, HTML deliverables, and dashboard-facing artifact structure."
3
+ ---
4
+
5
+ # Squad Content And Output
6
+
7
+ Use this module when the squad produces recurring content packages, structured outputs, or session HTML.
8
+
9
+ ## Content blueprints
10
+
11
+ For content-heavy squads, define `contentBlueprints` in `squad.manifest.json`.
12
+ They should describe:
13
+
14
+ - `contentType`
15
+ - `layoutType`
16
+ - blueprint `sections`
17
+ - the dynamic contract of recurring deliverables
18
+
19
+ Do not hardcode domain-specific fields as framework-wide rules. The shell is fixed; the blueprint is domain-derived.
20
+
21
+ ## Preferred structured output layout
22
+
23
+ When a deliverable is more than a one-off text file:
24
+
25
+ - create a `content_key`
26
+ - save under `output/{squad-slug}/{content-key}/`
27
+ - prefer:
28
+ - `content.json`
29
+ - `index.html`
30
+
31
+ Use this especially when the squad produces multiple sibling outputs in one package.
32
+
33
+ ## Output strategy
34
+
35
+ If the domain suggests recurring data pipelines, webhooks, or storage-backed delivery:
36
+
37
+ - load `.aioson/tasks/squad-output-config.md`
38
+ - configure output explicitly
39
+
40
+ For file-first squads such as reports, landing pages, or one-off artifacts:
41
+
42
+ - default to `mode: "files"`
43
+
44
+ ## Installed skill reuse
45
+
46
+ Before inventing output structures, inspect installed squad skills under:
47
+
48
+ - `.aioson/squads/{squad-slug}/skills/`
49
+
50
+ Reuse those skills if they already imply known output patterns or blueprints.
51
+
52
+ ## Session HTML deliverable
53
+
54
+ After every productive response round, write:
55
+
56
+ - `output/{squad-slug}/{session-id}.html`
57
+ - update `output/{squad-slug}/latest.html`
58
+
59
+ The HTML should capture the actual session work:
60
+
61
+ - sober technical hero
62
+ - one section per round
63
+ - one rich block per specialist
64
+ - one synthesis block per round
65
+ - copy button per block
66
+ - copy-all button in the header
67
+
68
+ Stack:
69
+
70
+ - Tailwind CSS CDN
71
+ - Alpine.js CDN
72
+ - no build step
73
+ - no Google Fonts
74
+ - no external images
75
+
76
+ ## Design direction for session HTML
77
+
78
+ - dark, technical, premium
79
+ - not neon dashboard
80
+ - restrained accents
81
+ - comfortable reading width
82
+ - preserve rich content instead of flattening it into summaries
83
+
84
+ ## Output integrity
85
+
86
+ Never:
87
+
88
+ - overwrite another squad's output
89
+ - write HTML under `.aioson/`
90
+ - skip `latest.html`
91
+ - reduce structured content to a single blob if the domain naturally wants sections
@@ -0,0 +1,135 @@
1
+ ---
2
+ description: "Squad creation flow — entry message, project artifact detection, intake questions, autonomy, discovery mini-package, and executor classification."
3
+ ---
4
+
5
+ # Squad Creation Flow
6
+
7
+ Use this module for new squad creation, blueprint derivation, and major extension work.
8
+
9
+ ## Entry message
10
+
11
+ Do not begin with a Lite/Genome menu.
12
+ Start direct squad creation with:
13
+
14
+ > "I will assemble your specialized squad.
15
+ >
16
+ > Reply in a single block if you want:
17
+ > 1. domain or theme
18
+ > 2. main goal
19
+ > 3. expected output type
20
+ > 4. important constraints
21
+ > 5. roles you want in the squad, or I can choose"
22
+
23
+ If the user later wants genomes, route to `@genome`.
24
+
25
+ ## Project artifact detection
26
+
27
+ Before asking follow-up questions, scan `.aioson/context/` for reusable upstream artifacts:
28
+
29
+ - `implementation-plan-*.md`
30
+ - `requirements-*.md`
31
+ - `architecture.md`
32
+ - `prd.md` or `prd-*.md`
33
+
34
+ If one or more files are clearly relevant to the squad request:
35
+
36
+ 1. Read the implementation plan first when present.
37
+ 2. Extract domain, goal, expected outputs, constraints, expected behaviors, and done signals.
38
+ 3. Record the consumed file paths in blueprint `sourceDocs`.
39
+ 4. Do not ask again for information that is already explicit in those artifacts.
40
+
41
+ If multiple artifacts exist but relevance is ambiguous, ask one short disambiguation question instead of ignoring them.
42
+
43
+ ## Intake
44
+
45
+ Ask only for what is still missing after reading the project artifacts. Typical fields are:
46
+
47
+ 1. domain or theme
48
+ 2. main goal
49
+ 3. output type
50
+ 4. important constraints
51
+ 5. optional role hints
52
+
53
+ The user may respond with text, large pasted context, images, or attachments.
54
+ If attachments exist, use them before defining executors.
55
+
56
+ ## Autonomy rule
57
+
58
+ - default to high autonomy
59
+ - infer reasonable defaults before asking follow-up questions
60
+ - ask additional questions only when the answer would materially change the squad
61
+ - if the user says "keep going" or "just do it", reduce questions further and make assumptions explicit
62
+
63
+ ## Parallel squad rule
64
+
65
+ - if the user asks for a new squad, create a new squad
66
+ - do not silently reuse or merge an existing squad just because the domain looks similar
67
+ - maintenance or refactor of an existing squad only happens when the user says so explicitly
68
+
69
+ If the slug collides and the user clearly wants a new squad:
70
+
71
+ - do not silently reuse the old one
72
+ - propose a derived slug or ask which slug they prefer
73
+
74
+ ## Discovery mini-package
75
+
76
+ Before generating files, establish:
77
+
78
+ - current problem
79
+ - practical goal
80
+ - squad MVP boundary
81
+ - out of scope
82
+ - which docs and skills really need to be loaded now
83
+ - which risks or ambiguities could still change the squad composition
84
+
85
+ If readiness is low:
86
+
87
+ - ask 1 to 3 short questions, or
88
+ - proceed with explicit assumptions when the user requested autonomy
89
+
90
+ ## Executor classification
91
+
92
+ Classify every executor with this tree:
93
+
94
+ ```text
95
+ TASK / ROLE
96
+ ├── Deterministic? → worker
97
+ ├── Critical human judgment? → human-gate
98
+ ├── Replicates a real person's methodology? → clone
99
+ ├── Deep domain expertise? → assistant
100
+ └── Otherwise → agent
101
+ ```
102
+
103
+ Show the classification review to the user before the warm-up round.
104
+
105
+ ## Assistant behavioral profiles
106
+
107
+ When a role becomes `type: assistant`, assign one of:
108
+
109
+ - `dominant-driver`
110
+ - `influential-expressive`
111
+ - `steady-amiable`
112
+ - `compliant-analytical`
113
+ - `dominant-influential`
114
+ - `influential-steady`
115
+ - `steady-compliant`
116
+ - `compliant-dominant`
117
+
118
+ The chosen profile must shape communication style and decision-making.
119
+
120
+ ## Executor count
121
+
122
+ Prefer 3 to 5 specialized roles.
123
+ Do not create extra executors just to look comprehensive.
124
+
125
+ ## Creation outcome
126
+
127
+ By the end of creation, you should know:
128
+
129
+ - the squad slug
130
+ - the source artifacts that informed the design
131
+ - the executor roster
132
+ - which roles are workers vs agents vs assistants vs clones vs human gates
133
+ - whether the squad is content-first, software-first, or mixed
134
+ - whether workflows, review loops, and content blueprints are needed
135
+ - whether the squad is universal or locale-specific
@@ -0,0 +1,117 @@
1
+ ---
2
+ description: "Squad domain classification — regulated vs specialized vs common domains, mandatory investigation policy, locale_scope decision, and persistence rules."
3
+ ---
4
+
5
+ # Squad Domain Classification
6
+
7
+ Use this module before approving a new squad blueprint or materially expanding an existing squad's domain.
8
+
9
+ ## Classification gate
10
+
11
+ After the basic context is known, classify the domain before generating files or freezing the executor roster.
12
+
13
+ ### Tier 1 — Regulated domains
14
+
15
+ Typical examples:
16
+
17
+ - health and pharmacy
18
+ - legal and compliance-heavy advisory
19
+ - finance, investments, and insurance
20
+ - food and nutrition with labeling or safety obligations
21
+ - regulated education
22
+ - cybersecurity with formal compliance scope
23
+ - veterinary, agribusiness, engineering, construction, accounting, and tax
24
+
25
+ Action:
26
+
27
+ - investigation via `@orache` is mandatory
28
+ - do not finalize the blueprint, workflow, or executor roster without the report
29
+ - if the user refuses the investigation, explain that the squad cannot be safely generated yet and stop
30
+
31
+ ### Tier 2 — Specialized domains
32
+
33
+ Typical examples:
34
+
35
+ - niche gastronomy
36
+ - specialized marketing
37
+ - sports-specific training
38
+ - music production and music theory
39
+ - architecture and interior design
40
+ - non-clinical psychology or coaching
41
+ - specialized recruiting
42
+
43
+ Action:
44
+
45
+ - strongly recommend investigation
46
+ - if the user declines, continue only after recording the limitation in `assumptions` and `risks`
47
+
48
+ ### Tier 3 — Common domains
49
+
50
+ Typical examples:
51
+
52
+ - general software delivery
53
+ - general marketing
54
+ - generic content creation
55
+ - productivity and project management
56
+ - broad business operations
57
+
58
+ Action:
59
+
60
+ - proceed directly
61
+ - do not create unnecessary friction by forcing investigation
62
+
63
+ ## Ephemeral exception
64
+
65
+ Ephemeral squads default to Tier 3 operationally and may skip blocking investigation unless the user explicitly asks for regulated-domain rigor.
66
+
67
+ ## Mandatory locale decision
68
+
69
+ After tier classification, decide whether the squad is universal or locale-specific.
70
+
71
+ If `.aioson/rules/agent-language-policy.md` is present, follow it as the source of truth.
72
+
73
+ Ask:
74
+
75
+ > "Should this squad be universal or locale-specific?
76
+ >
77
+ > 1. Universal — reusable across projects, agent files in English
78
+ > 2. Locale-specific — optimized for one country/language, agent files follow that locale"
79
+
80
+ Rules:
81
+
82
+ - default to `universal` when no strong local constraint exists
83
+ - if the domain is regulated in one country, suggest the locale that matches that jurisdiction
84
+ - if the user chooses locale-specific, capture both `locale_scope` and `locale_rationale`
85
+
86
+ ## Integration with investigation
87
+
88
+ When investigation exists, do not leave it as a detached report. Apply it:
89
+
90
+ - domain vocabulary → executor mission, focus, and skill selection
91
+ - regulations and obligations → hard constraints, human gates, and review criteria
92
+ - anti-patterns → checklist items and `vetoConditions`
93
+ - benchmarks → quality checklist and warm-up expectations
94
+ - structural patterns → workflow phases and content blueprints
95
+
96
+ ## Persistence
97
+
98
+ Write the following into the blueprint:
99
+
100
+ ```json
101
+ {
102
+ "domainClassification": {
103
+ "tier": "tier-1-regulated",
104
+ "rationale": "Why this classification applies",
105
+ "regulations": ["ANVISA", "LGPD"],
106
+ "investigationPolicy": "required"
107
+ },
108
+ "locale_scope": "pt-BR",
109
+ "locale_rationale": "Brazil-only regulation and end users",
110
+ "investigation": {
111
+ "slug": "farmacia-regulada",
112
+ "path": "squad-searches/farmacia-regulada/investigation-20260414.md"
113
+ }
114
+ }
115
+ ```
116
+
117
+ Copy `domainClassification`, `locale_scope`, `locale_rationale`, `investigation`, and `sourceDocs` into the final manifest when they exist.
@@ -0,0 +1,47 @@
1
+ ---
2
+ description: "Squad genome binding rules — when to route to @genome, how to persist bindings, and how to preserve legacy compatibility."
3
+ ---
4
+
5
+ # Squad Genome Bindings
6
+
7
+ Use this module when the request mentions genomes, when the squad already has genome bindings, or when repairing binding compatibility.
8
+
9
+ ## Responsibility boundary
10
+
11
+ - `@squad` owns the squad package and its metadata
12
+ - `@genome` owns genome generation and application logic
13
+
14
+ If the user asks for a genome during a squad session:
15
+
16
+ - finish or confirm the squad package first
17
+ - then route explicitly to `@genome`
18
+
19
+ ## Binding persistence
20
+
21
+ When a genome is applied to an existing squad:
22
+
23
+ - update `.aioson/squads/{slug}/squad.md`
24
+ - if normalized bindings are present or being normalized, update `.aioson/squads/{slug}/squad.manifest.json`
25
+ - record whether the binding is squad-wide or agent-specific
26
+ - rewrite affected executor prompts in `.aioson/squads/{squad-slug}/agents/` so they include `## Active genomes`
27
+
28
+ ## Compatibility rules
29
+
30
+ When inspecting or modifying an existing squad:
31
+
32
+ - accept legacy `genomes`
33
+ - accept normalized `genomeBindings`
34
+ - if only `genomes` exists, interpret it as squad-level bindings
35
+ - if `genomeBindings` exists, treat it as the primary structure
36
+ - do not automatically delete legacy `genomes` during the migration phase
37
+
38
+ If the user asks for repair or normalize:
39
+
40
+ - materialize `genomeBindings`
41
+ - preserve old data
42
+ - keep reads compatible with both formats
43
+
44
+ ## Non-negotiable boundary
45
+
46
+ Do not modify official files in `.aioson/agents/` with user-specific genomes.
47
+ Bindings must affect only squad package files under `.aioson/squads/{slug}/`.
@@ -0,0 +1,234 @@
1
+ ---
2
+ description: "Squad package contract — required filesystem layout, manifests, executor prompts, metadata, and gateway registration."
3
+ ---
4
+
5
+ # Squad Package Contract
6
+
7
+ Use this module whenever `@squad` is creating, extending, repairing, or validating the package itself.
8
+
9
+ ## Non-negotiable package shape
10
+
11
+ Every persistent squad must be created at `.aioson/squads/{squad-slug}/` with:
12
+
13
+ - `agents/agents.md`
14
+ - `agents/`
15
+ - `workers/`
16
+ - `workflows/`
17
+ - `checklists/`
18
+ - `skills/`
19
+ - `templates/`
20
+ - `docs/design-doc.md`
21
+ - `docs/readiness.md`
22
+ - `squad.manifest.json`
23
+ - `squad.md`
24
+ - external roots: `output/{squad-slug}/`, `aioson-logs/{squad-slug}/`, `media/{squad-slug}/`
25
+
26
+ Do not collapse the squad into `agents/{slug}/`. The CLI and dashboard expect the package root under `.aioson/squads/`.
27
+
28
+ ## Package derivation checklist
29
+
30
+ Before writing executors, derive and register:
31
+
32
+ - mission
33
+ - goal
34
+ - scope and out-of-scope
35
+ - domain classification
36
+ - locale scope and rationale
37
+ - skills
38
+ - MCPs
39
+ - subagent policy
40
+ - content blueprints when relevant
41
+ - source docs when relevant
42
+ - investigation summary when relevant
43
+ - output strategy when relevant
44
+ - design-doc summary
45
+ - readiness status
46
+
47
+ Reuse installed squad skills from `.aioson/squads/{squad-slug}/skills/` before inventing new ones.
48
+
49
+ ## `agents/agents.md`
50
+
51
+ Create a short textual map at `.aioson/squads/{squad-slug}/agents/agents.md`.
52
+ Keep it concise and actionable. It should include:
53
+
54
+ - mission
55
+ - does
56
+ - does not
57
+ - permanent executors
58
+ - skills
59
+ - MCPs
60
+ - subagent policy
61
+ - outputs and review policy
62
+
63
+ Do not paste full executor prompts into this file.
64
+
65
+ ## `squad.manifest.json`
66
+
67
+ Create `.aioson/squads/{squad-slug}/squad.manifest.json`.
68
+ At minimum, include:
69
+
70
+ - `schemaVersion`
71
+ - `packageVersion`
72
+ - `slug`
73
+ - `name`
74
+ - `mode`
75
+ - `mission`
76
+ - `goal`
77
+ - `visibility`
78
+ - `locale_scope`
79
+ - `storagePolicy`
80
+ - `package.rootDir`
81
+ - `package.agentsDir`
82
+ - `package.workersDir`
83
+ - `package.workflowsDir`
84
+ - `package.checklistsDir`
85
+ - `package.skillsDir`
86
+ - `package.templatesDir`
87
+ - `package.docsDir`
88
+ - `rules.outputsDir`
89
+ - `rules.logsDir`
90
+ - `rules.mediaDir`
91
+ - `skills`
92
+ - `mcps`
93
+ - `subagents`
94
+ - `contentBlueprints`
95
+ - `executors`
96
+ - `checklists`
97
+ - `workflows`
98
+ - `genomes`
99
+
100
+ When they exist, also persist:
101
+
102
+ - `locale_rationale`
103
+ - `domainClassification`
104
+ - `investigation`
105
+ - `sourceDocs`
106
+
107
+ The manifest must mirror the real files you generated.
108
+
109
+ ## Executor generation
110
+
111
+ ### Workers
112
+
113
+ If an executor is `type: worker`:
114
+
115
+ - create `.aioson/squads/{squad-slug}/workers/{slug}.py` or `.sh`
116
+ - keep it deterministic
117
+ - mark it in the manifest with:
118
+ - `"usesLLM": false`
119
+ - `"deterministic": true`
120
+
121
+ ### Agents, clones, assistants
122
+
123
+ If an executor is `type: agent`, `clone`, or `assistant`:
124
+
125
+ - create `.aioson/squads/{squad-slug}/agents/{role-slug}.md`
126
+ - keep it concise but dense
127
+ - make the file immediately usable when invoked via `@`
128
+
129
+ Recommended structure:
130
+
131
+ - `## Mission`
132
+ - `## Quick context`
133
+ - `## Active genomes`
134
+ - `## Focus`
135
+ - `## Response pattern`
136
+ - `## Hard constraints`
137
+ - `## Output contract`
138
+
139
+ Each executor prompt should make clear:
140
+
141
+ - which squad skills it relies on
142
+ - when to delegate to another executor
143
+ - when to ask the orchestrator for a temporary subagent
144
+
145
+ Agent file language follows `.aioson/rules/agent-language-policy.md`:
146
+
147
+ - `locale_scope` absent or `universal` → prompt files in English
148
+ - locale-specific `locale_scope` declared → prompt files in the locale language
149
+ - source code identifiers remain in English in every case
150
+
151
+ ### UI specialist executor
152
+
153
+ If `uiCapability.mode = "executor"`:
154
+
155
+ - create `.aioson/squads/{squad-slug}/agents/ui-specialist.md`
156
+ - treat it as a visual specialist responsible for UI direction, layout decisions, and HTML/UI-spec deliverables
157
+ - give it `modelTier: powerful`
158
+ - if using an assistant profile, prefer `behavioralProfile: compliant-dominant`
159
+ - make the routing explicit: visual, layout, interface, landing page, and component-structure requests go to `@ui-specialist`
160
+
161
+ ## Orchestrator prompt
162
+
163
+ Create `.aioson/squads/{squad-slug}/agents/orquestrador.md`.
164
+ The orchestrator must include:
165
+
166
+ - squad mission
167
+ - members
168
+ - routing guide
169
+ - genomes
170
+ - skills
171
+ - MCPs
172
+ - subagent policy
173
+ - inter-squad awareness
174
+ - execution plan awareness
175
+ - learnings protocol
176
+ - hard constraints
177
+ - output contract
178
+
179
+ The orchestrator is responsible for the final session HTML and for synthesis across specialists.
180
+
181
+ ## Gateway registration
182
+
183
+ Register the squad in both root gateway files:
184
+
185
+ - `CLAUDE.md`
186
+ - `AGENTS.md`
187
+
188
+ Use `.aioson/squads/{squad-slug}/agents/{role}.md` paths.
189
+
190
+ Rules:
191
+
192
+ - do not remove official framework agents
193
+ - append or update only the squad section
194
+ - if the squad already exists, update only its own section
195
+
196
+ ## Squad metadata
197
+
198
+ Create `.aioson/squads/{squad-slug}/squad.md` with:
199
+
200
+ - name
201
+ - mode
202
+ - goal
203
+ - agents path
204
+ - manifest path
205
+ - output path
206
+ - logs path
207
+ - media path
208
+ - latest session path
209
+ - locale scope
210
+ - locale rationale when present
211
+ - source docs when present
212
+ - investigation path when present
213
+ - squad-level genomes
214
+ - per-agent genomes
215
+ - skills
216
+ - MCPs
217
+ - subagent policy
218
+
219
+ ## Required filesystem outputs
220
+
221
+ Persistent squad package:
222
+
223
+ - `.aioson/squads/{squad-slug}/squad.manifest.json`
224
+ - `.aioson/squads/{squad-slug}/squad.md`
225
+ - `.aioson/squads/{squad-slug}/agents/`
226
+ - `.aioson/squads/{squad-slug}/workers/`
227
+ - `.aioson/squads/{squad-slug}/workflows/`
228
+ - `.aioson/squads/{squad-slug}/checklists/`
229
+ - `.aioson/squads/{squad-slug}/skills/`
230
+ - `.aioson/squads/{squad-slug}/templates/`
231
+ - `.aioson/squads/{squad-slug}/docs/`
232
+ - `output/{squad-slug}/latest.html`
233
+ - `aioson-logs/{squad-slug}/`
234
+ - `media/{squad-slug}/`
@@ -0,0 +1,56 @@
1
+ ---
2
+ description: "Squad quality lens — patterns, anti-pattern replacements, and a compact rubric for non-generic squad packages."
3
+ ---
4
+
5
+ # Squad Quality Lens
6
+
7
+ Load this module before emitting a new or revised squad package.
8
+
9
+ ## Positive patterns
10
+
11
+ High-quality squad output usually does all of this:
12
+
13
+ - creates executors with distinct thinking roles, not just different names
14
+ - turns domain knowledge into concrete workflow and checklist changes
15
+ - maps deliverables, review gates, and artifacts to the real operating motion
16
+ - encodes constraints and anti-patterns in the package, not only in prose
17
+ - keeps the package lean enough to stay usable
18
+
19
+ ## Anti-patterns and replacements
20
+
21
+ | Anti-pattern | Replace with |
22
+ |---|---|
23
+ | Four agents that think the same way | Distinct responsibilities and quality lenses |
24
+ | Generic workflow copied from another domain | Workflow stages tied to the actual problem and deliverables |
25
+ | Manifest rich in words but weak in consequences | Package files that drive behavior, outputs, and checks |
26
+ | Adding agents to look sophisticated | The minimum executor set that covers real work |
27
+ | Domain buzzwords with no operational value | Vocabulary that changes prompts, blueprints, or quality gates |
28
+
29
+ ## Elevation moves
30
+
31
+ Before finalizing, strengthen at least one item in each area:
32
+
33
+ - role differentiation
34
+ - workflow realism
35
+ - package actionability
36
+ - domain specificity
37
+
38
+ ## Review scorecard
39
+
40
+ Score from `1-5` on:
41
+
42
+ - role differentiation
43
+ - workflow fit
44
+ - artifact completeness
45
+ - domain specificity
46
+ - operational efficiency
47
+
48
+ If any score is `3` or lower, revise the package before delivering it.
49
+
50
+ ## Final pass
51
+
52
+ Ask silently:
53
+
54
+ - Would these executors still feel distinct if their names changed?
55
+ - Does the package change how work gets done, or only how it is described?
56
+ - Is anything here ceremony without payoff?