@jaimevalasek/aioson 1.6.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +729 -232
  3. package/docs/design-previews/pt.squarespace.com-homepage.html +889 -0
  4. package/docs/integrations/sdlc-genius-boundary.md +76 -0
  5. package/docs/integrations/sdlc-genius-eval-matrix.md +75 -0
  6. package/docs/integrations/sdlc-genius-install-checklist.md +93 -0
  7. package/docs/integrations/sdlc-genius-review-samples.md +86 -0
  8. package/docs/pt/README.md +3 -0
  9. package/docs/pt/agentes.md +1 -0
  10. package/docs/pt/comandos-cli.md +888 -2
  11. package/docs/pt/design-hybrid-forge.md +255 -6
  12. package/docs/pt/devlog-pipeline.md +270 -0
  13. package/docs/pt/fluxo-artefatos.md +178 -0
  14. package/docs/pt/hooks-session-guard.md +454 -0
  15. package/docs/pt/monitor-de-contexto.md +59 -5
  16. package/docs/pt/sdd-automation-scripts.md +557 -0
  17. package/docs/pt/site-forge.md +309 -0
  18. package/docs/pt/spec-learnings-pipeline.md +265 -0
  19. package/package.json +1 -1
  20. package/src/a2a/client.js +165 -0
  21. package/src/a2a/server.js +223 -0
  22. package/src/cli.js +235 -1
  23. package/src/commands/agent-audit.js +397 -0
  24. package/src/commands/agent-export-skill.js +229 -0
  25. package/src/commands/artifact-validate.js +189 -0
  26. package/src/commands/brief-gen.js +405 -0
  27. package/src/commands/brief-validate.js +65 -0
  28. package/src/commands/classify.js +256 -0
  29. package/src/commands/context-compact.js +49 -0
  30. package/src/commands/context-health.js +175 -0
  31. package/src/commands/context-monitor.js +71 -0
  32. package/src/commands/context-trim.js +177 -0
  33. package/src/commands/detect-test-runner.js +55 -0
  34. package/src/commands/devlog-export-brains.js +27 -0
  35. package/src/commands/devlog-process.js +292 -0
  36. package/src/commands/devlog-watch.js +131 -0
  37. package/src/commands/feature-close.js +165 -0
  38. package/src/commands/gate-check.js +228 -0
  39. package/src/commands/hooks-emit.js +253 -0
  40. package/src/commands/hooks-install.js +347 -0
  41. package/src/commands/learning-auto-promote.js +195 -0
  42. package/src/commands/learning-evolve.js +18 -9
  43. package/src/commands/learning-export.js +103 -0
  44. package/src/commands/learning-rollback.js +164 -0
  45. package/src/commands/live.js +25 -1
  46. package/src/commands/pattern-detect.js +33 -0
  47. package/src/commands/preflight-context.js +30 -0
  48. package/src/commands/preflight.js +208 -0
  49. package/src/commands/pulse-update.js +130 -0
  50. package/src/commands/runner-daemon.js +274 -0
  51. package/src/commands/runner-plan.js +70 -0
  52. package/src/commands/runner-queue-from-plan.js +166 -0
  53. package/src/commands/runner-queue.js +189 -0
  54. package/src/commands/runner-run.js +129 -0
  55. package/src/commands/runtime.js +47 -1
  56. package/src/commands/self-implement-loop.js +256 -0
  57. package/src/commands/session-guard.js +218 -0
  58. package/src/commands/sizing.js +165 -0
  59. package/src/commands/skill.js +65 -0
  60. package/src/commands/spec-checkpoint.js +177 -0
  61. package/src/commands/spec-status.js +79 -0
  62. package/src/commands/spec-sync.js +190 -0
  63. package/src/commands/spec-tasks.js +288 -0
  64. package/src/commands/squad-autorun.js +1220 -0
  65. package/src/commands/squad-bus.js +217 -0
  66. package/src/commands/squad-card.js +149 -0
  67. package/src/commands/squad-daemon.js +134 -0
  68. package/src/commands/squad-dependency-graph.js +164 -0
  69. package/src/commands/squad-review.js +106 -0
  70. package/src/commands/squad-scaffold.js +55 -0
  71. package/src/commands/squad-tool-register.js +157 -0
  72. package/src/commands/state-save.js +122 -0
  73. package/src/commands/update.js +2 -0
  74. package/src/commands/verify-gate.js +572 -0
  75. package/src/commands/workflow-execute.js +241 -0
  76. package/src/constants.js +22 -0
  77. package/src/install-profile.js +2 -2
  78. package/src/install-wizard.js +3 -2
  79. package/src/installer.js +6 -0
  80. package/src/lib/health-check.js +158 -0
  81. package/src/lib/hook-protocol.js +76 -0
  82. package/src/mcp/apps/squad-dashboard/app.js +163 -0
  83. package/src/mcp/apps/squad-dashboard/index.html +261 -0
  84. package/src/mcp/apps/squad-dashboard/mcp-manifest.json +23 -0
  85. package/src/mcp/resources/squad-state.js +130 -0
  86. package/src/preflight-engine.js +443 -0
  87. package/src/runner/cascade.js +97 -0
  88. package/src/runner/cli-launcher.js +109 -0
  89. package/src/runner/plan-importer.js +63 -0
  90. package/src/runner/queue-store.js +159 -0
  91. package/src/runtime-store.js +61 -3
  92. package/src/squad/agent-teams-adapter.js +264 -0
  93. package/src/squad/brief-validator.js +350 -0
  94. package/src/squad/bus-bridge.js +140 -0
  95. package/src/squad/context-compactor.js +265 -0
  96. package/src/squad/cross-ai-synthesizer.js +250 -0
  97. package/src/squad/hooks-generator.js +196 -0
  98. package/src/squad/inter-squad-events.js +175 -0
  99. package/src/squad/intra-bus.js +345 -0
  100. package/src/squad/learning-extractor.js +213 -0
  101. package/src/squad/pattern-detector.js +365 -0
  102. package/src/squad/preflight-context.js +296 -0
  103. package/src/squad/recovery-context.js +242 -71
  104. package/src/squad/reflection.js +365 -0
  105. package/src/squad/squad-scaffold.js +177 -0
  106. package/src/squad/state-manager.js +310 -0
  107. package/src/squad/task-decomposer.js +652 -0
  108. package/src/squad/verify-gate.js +303 -0
  109. package/src/updater.js +4 -5
  110. package/src/worker-runner.js +186 -1
  111. package/template/.aioson/agents/analyst.md +62 -1
  112. package/template/.aioson/agents/architect.md +61 -1
  113. package/template/.aioson/agents/copywriter.md +463 -0
  114. package/template/.aioson/agents/design-hybrid-forge.md +14 -0
  115. package/template/.aioson/agents/dev.md +271 -25
  116. package/template/.aioson/agents/deyvin.md +67 -8
  117. package/template/.aioson/agents/discovery-design-doc.md +44 -0
  118. package/template/.aioson/agents/genome.md +14 -0
  119. package/template/.aioson/agents/neo.md +83 -2
  120. package/template/.aioson/agents/orache.md +50 -4
  121. package/template/.aioson/agents/orchestrator.md +197 -1
  122. package/template/.aioson/agents/pm.md +35 -0
  123. package/template/.aioson/agents/product.md +50 -5
  124. package/template/.aioson/agents/profiler-enricher.md +14 -0
  125. package/template/.aioson/agents/profiler-forge.md +14 -0
  126. package/template/.aioson/agents/profiler-researcher.md +14 -0
  127. package/template/.aioson/agents/qa.md +273 -21
  128. package/template/.aioson/agents/setup.md +96 -10
  129. package/template/.aioson/agents/sheldon.md +131 -6
  130. package/template/.aioson/agents/site-forge.md +1753 -0
  131. package/template/.aioson/agents/squad.md +352 -0
  132. package/template/.aioson/agents/tester.md +53 -0
  133. package/template/.aioson/agents/ux-ui.md +203 -4
  134. package/template/.aioson/brains/README.md +128 -0
  135. package/template/.aioson/brains/_index.json +16 -0
  136. package/template/.aioson/brains/scripts/query.js +103 -0
  137. package/template/.aioson/brains/site-forge/visual-patterns.brain.json +205 -0
  138. package/template/.aioson/config.md +143 -13
  139. package/template/.aioson/constitution.md +33 -0
  140. package/template/.aioson/context/project-pulse.md +34 -0
  141. package/template/.aioson/docs/LAYERS.md +79 -0
  142. package/template/.aioson/docs/README.md +76 -0
  143. package/template/.aioson/docs/example-external-api-context.md +72 -0
  144. package/template/.aioson/genomes/copywriting.md +204 -0
  145. package/template/.aioson/locales/en/agents/architect.md +17 -0
  146. package/template/.aioson/locales/en/agents/dev.md +79 -13
  147. package/template/.aioson/locales/en/agents/orache.md +6 -0
  148. package/template/.aioson/locales/en/agents/orchestrator.md +24 -0
  149. package/template/.aioson/locales/en/agents/product.md +50 -0
  150. package/template/.aioson/locales/en/agents/sheldon.md +115 -0
  151. package/template/.aioson/locales/en/agents/squad.md +14 -0
  152. package/template/.aioson/locales/en/agents/tester.md +6 -0
  153. package/template/.aioson/locales/es/agents/analyst.md +2 -0
  154. package/template/.aioson/locales/es/agents/architect.md +19 -0
  155. package/template/.aioson/locales/es/agents/dev.md +64 -4
  156. package/template/.aioson/locales/es/agents/deyvin.md +2 -0
  157. package/template/.aioson/locales/es/agents/discovery-design-doc.md +2 -0
  158. package/template/.aioson/locales/es/agents/genome.md +2 -0
  159. package/template/.aioson/locales/es/agents/neo.md +2 -0
  160. package/template/.aioson/locales/es/agents/orache.md +2 -0
  161. package/template/.aioson/locales/es/agents/orchestrator.md +26 -0
  162. package/template/.aioson/locales/es/agents/pair.md +2 -0
  163. package/template/.aioson/locales/es/agents/pm.md +2 -0
  164. package/template/.aioson/locales/es/agents/product.md +52 -0
  165. package/template/.aioson/locales/es/agents/profiler-enricher.md +2 -0
  166. package/template/.aioson/locales/es/agents/profiler-forge.md +2 -0
  167. package/template/.aioson/locales/es/agents/profiler-researcher.md +2 -0
  168. package/template/.aioson/locales/es/agents/qa.md +2 -0
  169. package/template/.aioson/locales/es/agents/setup.md +2 -0
  170. package/template/.aioson/locales/es/agents/sheldon.md +117 -0
  171. package/template/.aioson/locales/es/agents/squad.md +16 -0
  172. package/template/.aioson/locales/es/agents/tester.md +9 -0
  173. package/template/.aioson/locales/es/agents/ux-ui.md +2 -0
  174. package/template/.aioson/locales/fr/agents/analyst.md +2 -0
  175. package/template/.aioson/locales/fr/agents/architect.md +19 -0
  176. package/template/.aioson/locales/fr/agents/dev.md +64 -4
  177. package/template/.aioson/locales/fr/agents/deyvin.md +2 -0
  178. package/template/.aioson/locales/fr/agents/discovery-design-doc.md +2 -0
  179. package/template/.aioson/locales/fr/agents/genome.md +2 -0
  180. package/template/.aioson/locales/fr/agents/neo.md +2 -0
  181. package/template/.aioson/locales/fr/agents/orache.md +2 -0
  182. package/template/.aioson/locales/fr/agents/orchestrator.md +26 -0
  183. package/template/.aioson/locales/fr/agents/pair.md +2 -0
  184. package/template/.aioson/locales/fr/agents/pm.md +2 -0
  185. package/template/.aioson/locales/fr/agents/product.md +52 -0
  186. package/template/.aioson/locales/fr/agents/profiler-enricher.md +2 -0
  187. package/template/.aioson/locales/fr/agents/profiler-forge.md +2 -0
  188. package/template/.aioson/locales/fr/agents/profiler-researcher.md +2 -0
  189. package/template/.aioson/locales/fr/agents/qa.md +2 -0
  190. package/template/.aioson/locales/fr/agents/setup.md +2 -0
  191. package/template/.aioson/locales/fr/agents/sheldon.md +117 -0
  192. package/template/.aioson/locales/fr/agents/squad.md +16 -0
  193. package/template/.aioson/locales/fr/agents/tester.md +9 -0
  194. package/template/.aioson/locales/fr/agents/ux-ui.md +2 -0
  195. package/template/.aioson/locales/pt-BR/agents/analyst.md +64 -3
  196. package/template/.aioson/locales/pt-BR/agents/architect.md +42 -0
  197. package/template/.aioson/locales/pt-BR/agents/dev.md +147 -14
  198. package/template/.aioson/locales/pt-BR/agents/deyvin.md +47 -0
  199. package/template/.aioson/locales/pt-BR/agents/neo.md +62 -1
  200. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +158 -2
  201. package/template/.aioson/locales/pt-BR/agents/pm.md +95 -1
  202. package/template/.aioson/locales/pt-BR/agents/product.md +145 -18
  203. package/template/.aioson/locales/pt-BR/agents/qa.md +16 -0
  204. package/template/.aioson/locales/pt-BR/agents/setup.md +101 -18
  205. package/template/.aioson/locales/pt-BR/agents/sheldon.md +132 -1
  206. package/template/.aioson/locales/pt-BR/agents/squad.md +14 -0
  207. package/template/.aioson/locales/pt-BR/agents/tester.md +449 -0
  208. package/template/.aioson/rules/README.md +69 -0
  209. package/template/.aioson/rules/data-format-convention.md +136 -0
  210. package/template/.aioson/rules/example-monetary-values.md +30 -0
  211. package/template/.aioson/schemas/squad-manifest.schema.json +124 -3
  212. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +2 -0
  213. package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -0
  214. package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +66 -0
  215. package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +368 -0
  216. package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -0
  217. package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -0
  218. package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -0
  219. package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +165 -0
  220. package/template/.aioson/skills/marketing/references/anti-patterns.md +254 -0
  221. package/template/.aioson/skills/marketing/references/fascinations.md +192 -0
  222. package/template/.aioson/skills/marketing/references/five-acts.md +248 -0
  223. package/template/.aioson/skills/marketing/references/market-intelligence.md +198 -0
  224. package/template/.aioson/skills/marketing/references/offer-structure.md +203 -0
  225. package/template/.aioson/skills/marketing/references/one-belief.md +149 -0
  226. package/template/.aioson/skills/marketing/references/patterns.md +218 -0
  227. package/template/.aioson/skills/marketing/references/pms-research.md +193 -0
  228. package/template/.aioson/skills/marketing/vsl-craft.md +385 -0
  229. package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +1 -0
  230. package/template/.aioson/skills/process/aioson-spec-driven/references/analyst.md +30 -0
  231. package/template/.aioson/skills/process/aioson-spec-driven/references/architect.md +23 -0
  232. package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +47 -0
  233. package/template/.aioson/skills/process/aioson-spec-driven/references/deyvin.md +27 -0
  234. package/template/.aioson/skills/process/aioson-spec-driven/references/maintenance-and-state.md +35 -0
  235. package/template/.aioson/skills/process/aioson-spec-driven/references/product.md +25 -0
  236. package/template/.aioson/skills/process/aioson-spec-driven/references/qa.md +30 -0
  237. package/template/.aioson/skills/process/aioson-spec-driven/references/sheldon.md +25 -0
  238. package/template/.aioson/skills/process/design-hybrid-forge/SKILL.md +4 -1
  239. package/template/.aioson/skills/process/design-hybrid-forge/references/output-contract.md +15 -0
  240. package/template/.aioson/skills/process/design-hybrid-forge/references/pair-compatibility.md +32 -0
  241. package/template/.aioson/skills/process/design-hybrid-forge/references/quality-gates.md +20 -0
  242. package/template/.aioson/skills/process/simplify/SKILL.md +173 -0
  243. package/template/.aioson/skills/static/context-budget-guide.md +46 -0
  244. package/template/.aioson/skills/static/harness-sensors.md +74 -0
  245. package/template/.aioson/skills/static/landing-page-deploy.md +192 -0
  246. package/template/.aioson/skills/static/landing-page-forge.md +730 -0
  247. package/template/.aioson/skills/static/multi-agent-patterns.md +43 -0
  248. package/template/.aioson/skills/static/react-motion-patterns.md +22 -0
  249. package/template/.aioson/skills/static/static-html-patterns/checklists.md +43 -0
  250. package/template/.aioson/skills/static/static-html-patterns/css-tokens.md +609 -0
  251. package/template/.aioson/skills/static/static-html-patterns/motion.md +193 -0
  252. package/template/.aioson/skills/static/static-html-patterns/premium.md +711 -0
  253. package/template/.aioson/skills/static/static-html-patterns/structure.md +209 -0
  254. package/template/.aioson/skills/static/static-html-patterns/utilities.md +190 -0
  255. package/template/.aioson/skills/static/static-html-patterns.md +58 -1913
  256. package/template/.aioson/skills/static/threejs-patterns.md +929 -0
  257. package/template/.aioson/skills/static/ui-ux-modern.md +1 -0
  258. package/template/.aioson/skills/static/web-research-cache.md +112 -0
  259. package/template/.aioson/tasks/implementation-plan.md +21 -1
  260. package/template/.aioson/tasks/squad-create.md +22 -0
  261. package/template/.aioson/tasks/squad-design.md +30 -0
  262. package/template/.aioson/templates/squads/digital-marketing-agency/template.json +96 -0
  263. package/template/.claude/commands/aioson/agent/design-hybrid-forge.md +5 -0
  264. package/template/.claude/commands/aioson/agent/orache.md +5 -0
  265. package/template/.claude/commands/aioson/agent/sheldon.md +5 -0
  266. package/template/.claude/commands/aioson/agent/site-forge.md +5 -0
  267. package/template/AGENTS.md +55 -3
  268. package/template/CLAUDE.md +31 -0
  269. package/template/OPENCODE.md +4 -0
  270. package/template/researchs/.gitkeep +0 -0
  271. package/template/.aioson/skills/design-system/components/SKILL.md:Zone.Identifier +0 -0
  272. package/template/.aioson/skills/design-system/dashboards/SKILL.md:Zone.Identifier +0 -0
  273. package/template/.aioson/skills/design-system/foundations/SKILL.md:Zone.Identifier +0 -0
  274. package/template/.aioson/skills/design-system/motion/SKILL.md:Zone.Identifier +0 -0
  275. package/template/.aioson/skills/design-system/patterns/SKILL.md:Zone.Identifier +0 -0
@@ -209,6 +209,196 @@ relevant knowledge.
209
209
  Only load skills that are directly relevant. A software squad doesn't need
210
210
  instagram-feed.md. A YouTube squad doesn't need legal-consulting.md.
211
211
 
212
+ ---
213
+
214
+ ## Visual & UI capability detection (run during squad creation)
215
+
216
+ After collecting domain, goal, and output type — before defining executors — check whether the squad produces visual output.
217
+
218
+ ### Detection triggers
219
+
220
+ Any of these signals activates the visual capability offer:
221
+
222
+ **Output type signals:**
223
+ - site, landing page, sales page, event page, capture page, squeeze page
224
+ - dashboard, admin panel, web app, SaaS interface
225
+ - HTML deliverable, visual report, design spec
226
+ - UI, UX, interface, layout, screens
227
+
228
+ **Domain signals:**
229
+ - marketing agency, digital agency, web agency
230
+ - product design, UX design, visual design
231
+ - e-commerce, lead generation, funnel, conversion
232
+ - branding, identity, visual communication
233
+
234
+ **Goal signals:**
235
+ - "create a landing page", "build a site", "design a page"
236
+ - "make a dashboard", "build an interface"
237
+ - "produce pages for clients", "generate layouts"
238
+ - "create pages that convert", "build high-converting pages"
239
+
240
+ ### When triggered — ask one question
241
+
242
+ > "This squad will produce visual output. How do you want UI/UX capability included?
243
+ >
244
+ > **(1) Design skills** — Install `landing-page-forge` and `ui-ux-modern` as squad skills. Executors reference these skills when producing UI output. Lightweight, no dedicated executor.
245
+ >
246
+ > **(2) UI/UX executor** — Add a `@ui-specialist` agent to the squad. It mirrors the `@ux-ui` agent and produces `ui-spec.md` + HTML for every visual deliverable. Heavier, but autonomous.
247
+ >
248
+ > **(3) External @ux-ui** — No UI capability inside the squad. Call `@ux-ui` separately when needed (outside the squad session).
249
+ >
250
+ > **(4) Skip** — No UI capability for this squad."
251
+
252
+ ### Option 1 — Design skills (lightweight)
253
+
254
+ Install the following skills into the squad package:
255
+
256
+ ```
257
+ .aioson/squads/{slug}/skills/design/landing-page-forge.md ← copy from .aioson/skills/static/landing-page-forge.md
258
+ .aioson/squads/{slug}/skills/design/ui-ux-modern.md ← copy from .aioson/skills/static/ui-ux-modern.md
259
+ ```
260
+
261
+ If a design skill is registered in `project.context.md` (`design_skill` field), also install:
262
+ ```
263
+ .aioson/squads/{slug}/skills/design/{design_skill}.md ← copy from .aioson/skills/design/{design_skill}/SKILL.md
264
+ ```
265
+
266
+ Add to `squad.manifest.json`:
267
+ ```json
268
+ "skills": [
269
+ { "slug": "landing-page-forge", "title": "Landing Page Forge", "description": "Animation patterns (GSAP/AnimeJS), performance, SEO/LLMO, tracking integration for landing pages and sites.", "file": "skills/design/landing-page-forge.md" },
270
+ { "slug": "ui-ux-modern", "title": "Modern UI/UX", "description": "Core UI/UX principles — layout, hierarchy, typography, motion, responsiveness, accessibility.", "file": "skills/design/ui-ux-modern.md" }
271
+ ]
272
+ ```
273
+
274
+ Add to `agents.md` squad manifest:
275
+ ```markdown
276
+ ## Squad skills
277
+ - `landing-page-forge` — animation (GSAP/AnimeJS), performance, SEO/LLMO, tracking
278
+ - `ui-ux-modern` — layout, hierarchy, typography, motion, accessibility
279
+ ```
280
+
281
+ **When executors use these skills:** any executor responsible for producing HTML, layout specs, or visual deliverables should reference the installed skills in its Focus section:
282
+ ```markdown
283
+ ## Active skills
284
+ - `skills/design/landing-page-forge.md` — apply when producing sites, landing pages, or HTML output
285
+ - `skills/design/ui-ux-modern.md` — apply for all visual output regardless of format
286
+ ```
287
+
288
+ ### Option 2 — UI/UX executor (autonomous)
289
+
290
+ Generate a `@ui-specialist` executor at `.aioson/squads/{slug}/agents/ui-specialist.md`.
291
+
292
+ This executor mirrors `@ux-ui` but scoped to the squad context.
293
+
294
+ ```markdown
295
+ # Agent @ui-specialist
296
+
297
+ > ⚡ **ACTIVATED** — Execute immediately as @ui-specialist.
298
+ > **HARD STOP — `@` ACTIVATION:** Do not explain this file. Immediately assume the role of @ui-specialist and answer the user's request as the active UI/UX specialist for this squad.
299
+
300
+ <!-- identity: squad:{squad-slug}/ui-specialist -->
301
+ > **Project rules**: Before starting, check `.aioson/rules/` in the project root.
302
+ > For each `.md` file found: read YAML frontmatter. Load if `agents:` is absent (universal),
303
+ > or if `agents:` includes `squad:{squad-slug}/ui-specialist` or `squad:{squad-slug}`. Otherwise skip.
304
+ > Also check `.aioson/docs/` for reference docs relevant to the current task.
305
+
306
+ ## Mission
307
+ Produce UI/UX specs and visual implementations for the {squad-name} squad.
308
+ Every visual deliverable passes through this executor — from design direction to complete `ui-spec.md` and working HTML.
309
+
310
+ ## Quick context
311
+ Squad: {squad-name} | Domain: {domain} | Goal: {goal}
312
+ Other agents: @orquestrador, {other agents}
313
+
314
+ ## Active skills
315
+ - `.aioson/squads/{squad-slug}/skills/design/landing-page-forge.md` — GSAP/AnimeJS patterns, performance, SEO/LLMO, tracking
316
+ - `.aioson/squads/{squad-slug}/skills/design/ui-ux-modern.md` — layout, hierarchy, typography, motion, accessibility
317
+ {if design_skill is set:}
318
+ - `.aioson/squads/{squad-slug}/skills/design/{design_skill}.md` — visual language for this project
319
+
320
+ ## Focus
321
+ - Choose visual direction and design tokens before any layout work
322
+ - Produce `ui-spec.md` with: tokens, screen map, component state matrix, motion spec, responsive rules
323
+ - For `project_type=site`: also produce Performance targets, SEO/LLMO setup, and Tracking integration sections
324
+ - Apply GSAP/AnimeJS patterns from `landing-page-forge` to all HTML output
325
+ - Every HTML deliverable must include: motion library, scroll-reveal, `prefers-reduced-motion` fallback
326
+ - Mobile-first: design for 375px first, scale up
327
+ - All CTAs keyboard-accessible, 4.5:1 contrast minimum
328
+
329
+ ## Motion standard (apply to every HTML output)
330
+ - **Dashboard/app**: CSS-only or AnimeJS — hover transitions, staggered card entrances, skeleton loading
331
+ - **Site/landing page**: GSAP + ScrollTrigger — hero sequence, scroll-reveal stagger, magnetic CTA, horizontal scroll when relevant
332
+ - Always: `@media (prefers-reduced-motion: reduce)` at `:root` level
333
+
334
+ ## Response standard
335
+ - Never produce placeholder copy ("Lorem ipsum", "[Your headline]") — write real content based on context
336
+ - Deliver `ui-spec.md` before writing any HTML
337
+ - After producing HTML, run the quality checks: swap test, squint test, signature test, motion test
338
+ - State which design direction was chosen and why
339
+
340
+ ## Hard constraints
341
+ - Do not combine multiple design skill visual systems in the same deliverable
342
+ - Do not produce HTML without first stating the design direction and token decisions
343
+ - All deliverables go to `output/{squad-slug}/`
344
+ - If the squad has a registered `design_skill`, that skill is the sole visual source of truth
345
+
346
+ ## Output contract
347
+ - `ui-spec.md` → `output/{squad-slug}/ui-spec-{session-id}.md`
348
+ - HTML deliverables → `output/{squad-slug}/{deliverable-slug}.html`
349
+ - Updated by @orquestrador in the session HTML at `output/{squad-slug}/latest.html`
350
+ ```
351
+
352
+ Add to `squad.manifest.json` executors:
353
+ ```json
354
+ {
355
+ "slug": "ui-specialist",
356
+ "title": "UI/UX Specialist",
357
+ "type": "assistant",
358
+ "role": "Produces UI specs, design tokens, and working HTML for all visual deliverables.",
359
+ "file": ".aioson/squads/{squad-slug}/agents/ui-specialist.md",
360
+ "deterministic": false,
361
+ "usesLLM": true,
362
+ "modelTier": "powerful",
363
+ "behavioralProfile": "compliant-dominant",
364
+ "skills": ["landing-page-forge", "ui-ux-modern"],
365
+ "genomes": []
366
+ }
367
+ ```
368
+
369
+ Add to orchestrator routing guide:
370
+ ```markdown
371
+ - **Visual / UI / layout requests** → @ui-specialist (design direction + spec + HTML)
372
+ ```
373
+
374
+ ### Option 3 — External @ux-ui
375
+
376
+ No changes to the squad. Add a note in `agents.md`:
377
+ ```markdown
378
+ ## External agents
379
+ - `@ux-ui` (AIOSON core) — for formal UI/UX specs, use `/ux-ui` outside this squad session
380
+ ```
381
+
382
+ ### After visual capability decision
383
+
384
+ Whatever option was chosen, record it in `squad.manifest.json`:
385
+ ```json
386
+ "uiCapability": {
387
+ "mode": "skills | executor | external | none",
388
+ "skills": ["landing-page-forge", "ui-ux-modern"],
389
+ "executor": "ui-specialist"
390
+ }
391
+ ```
392
+
393
+ And in `docs/design-doc.md`:
394
+ ```markdown
395
+ ## UI/UX Capability
396
+ Mode: {skills | executor | external | none}
397
+ {If skills: list installed skills and which executors reference them}
398
+ {If executor: @ui-specialist handles all visual deliverables}
399
+ {If external: @ux-ui called outside squad sessions}
400
+ ```
401
+
212
402
  ## Squad creation flow
213
403
 
214
404
  Ask for the core information in one block first. Only ask follow-up questions if there are meaningful gaps.
@@ -576,6 +766,26 @@ Do not answer as if you first need to manually search the project tree for a das
576
766
  - Max 50 characters, no trailing hyphens
577
767
  - Example: "YouTube viral scripts about AI" → `youtube-viral-scripts-ai`
578
768
 
769
+ ### Step 0 — Scaffold directories (before writing any file)
770
+
771
+ Before creating any content, run the scaffold command to generate the complete directory structure deterministically. This saves ~2,000 tokens by eliminating manual directory creation:
772
+
773
+ ```bash
774
+ aioson squad:scaffold . --slug={squad-slug} --name="{squad-name}" --mode={content|code|hybrid}
775
+ ```
776
+
777
+ This creates:
778
+ - `.aioson/squads/{slug}/agents/agents.md` (skeleton)
779
+ - `.aioson/squads/{slug}/squad.manifest.json` (skeleton with budget, anti_loop, depends_on fields)
780
+ - `.aioson/squads/{slug}/squad.md`, `docs/`, `checklists/`, `learnings/`, `bus/`, `STATE.md`
781
+ - `output/{slug}/`, `aioson-logs/{slug}/`, `media/{slug}/`
782
+
783
+ Then proceed to fill in the content — all skeleton files already exist.
784
+
785
+ > If `aioson` CLI is not available in this session, create directories manually via Write tool.
786
+
787
+ ---
788
+
579
789
  ### Step 1 — Generate the squad manifesto
580
790
 
581
791
  Before writing the final files, crystallize this mini squad design doc mentally:
@@ -779,6 +989,37 @@ Other agents: @orquestrador, @{other-role-slugs}
779
989
  - Use the user's real context, concrete examples, and specific reasoning; avoid generic lines that could fit any domain
780
990
  - When uncertainty exists, state the assumption instead of padding with vague abstractions
781
991
 
992
+
993
+ ## Per-executor persistent memory
994
+
995
+ Each executor in a squad accumulates persistent memory across sessions in:
996
+ `.aioson/squads/{squad-slug}/agent-memory/{executor-slug}.md`
997
+
998
+ This memory is loaded automatically by the worker-runner at spawn time and updated
999
+ after each session via the learning-extractor. You do not need to manage it manually.
1000
+
1001
+ **How it works:**
1002
+ - At session start: worker-runner injects `agent-memory/{executor}.md` into the worker context
1003
+ - At session end: `squad:autorun` calls `persistAgentMemory()` to append new learnings
1004
+ - Learnings come from: block+resolution patterns, gap-closure successes, must_haves failures
1005
+
1006
+ **What goes in executor memory:**
1007
+ - Patterns that work (produced good results in past sessions)
1008
+ - Patterns to avoid (caused failures or escalations)
1009
+ - Codebase knowledge (file locations, conventions, dependencies)
1010
+
1011
+ **What goes in squad learnings (different):**
1012
+ - Squad learnings (`learnings/`) = team-level rules applied to all executors
1013
+ - Executor memory (`agent-memory/`) = individual executor's domain knowledge
1014
+
1015
+ **When writing agent.md files for executors**, include a `## Your memory` section:
1016
+ ```markdown
1017
+ ## Your memory
1018
+ You have persistent memory at `agent-memory/{your-slug}.md` (injected as `_agent_memory`).
1019
+ At session end, update it with: patterns that worked, patterns to avoid, codebase knowledge.
1020
+ Keep it ≤ 50 lines. Remove stale entries.
1021
+ ```
1022
+
782
1023
  ## Hard constraints
783
1024
  - Stay within your specialization — defer other tasks to the relevant agent
784
1025
  - Always use this agent's active genomes as high-priority domain and style context
@@ -860,6 +1101,23 @@ the process is automatable. If feasibility is medium or high, offer to
860
1101
  create a script plan. Never insist — offer once and respect the user's choice.
861
1102
  Script plans go to `.aioson/squads/{squad-slug}/script-plans/`, approved scripts to `.aioson/squads/{squad-slug}/scripts/`.
862
1103
 
1104
+ ## Recurring tasks (when CronCreate is available)
1105
+
1106
+ For squads that run on a schedule or need periodic status checks:
1107
+
1108
+ ```
1109
+ CronCreate { schedule: "*/5 * * * *", command: "..." }
1110
+ CronList — view active scheduled tasks
1111
+ CronDelete — remove when the session ends
1112
+ ```
1113
+
1114
+ Use cases in @squad:
1115
+ - Periodic polling of an external API or data source during a research session
1116
+ - Scheduled output snapshots to `output/{squad-slug}/` during long sessions
1117
+ - Automated health checks across parallel executor agents
1118
+
1119
+ Always clean up cron jobs with `CronDelete` when the session ends.
1120
+
863
1121
  ## Hard constraints
864
1122
  - Always involve all relevant specialists for each challenge
865
1123
  - Specialists must save structured intermediate content as `.md` directly inside `output/{squad-slug}/`
@@ -869,6 +1127,29 @@ Script plans go to `.aioson/squads/{squad-slug}/script-plans/`, approved scripts
869
1127
  - `.aioson/context/` accepts only `.md` files — do not write non-markdown files there
870
1128
  - Do not accept shallow specialist responses: each contribution should contain problem reading, recommendation, reasoning, risk, and next step when relevant
871
1129
 
1130
+ ## Worker brief protocol (statelessness contract)
1131
+
1132
+ When the squad @orquestrador delegates tasks to executor subagents, every brief must be
1133
+ 100% self-contained. Executors have NO access to conversation history — they depend entirely
1134
+ on the brief they receive.
1135
+
1136
+ **Coordinator rule — synthesize before delegating.**
1137
+ The @orquestrador constructs the full brief from its understanding of the genome/skill spec.
1138
+ It does NOT pass "use the genome" as a brief — it passes the specific output parameters
1139
+ extracted from the genome.
1140
+
1141
+ **Brief must include:**
1142
+ - Topic/domain of the task (exact, not "continue from before")
1143
+ - Input artifacts the executor must consume (file paths or inline content)
1144
+ - Output format spec (file path, structure, length, tone)
1145
+ - Quality constraints (audience, depth level, style requirements)
1146
+ - What NOT to do (scope boundaries — prevents scope creep in content generation)
1147
+
1148
+ **Reviewer subagent rule:**
1149
+ When spawning a quality-review subagent to check executor output, ALWAYS spawn it fresh
1150
+ (not continuing the executor's context). Reason: sharing context with the generator introduces
1151
+ confirmation bias — the reviewer will unconsciously favor the generator's own framing.
1152
+
872
1153
  ## Execution plan awareness
873
1154
 
874
1155
  Before the first session and at the start of each new session:
@@ -1673,3 +1954,74 @@ Script plans go to `script-plans/`, approved scripts to `scripts/`.
1673
1954
  - Media: `media/{squad-slug}/`
1674
1955
  - CLAUDE.md: updated with `/agent` shortcuts
1675
1956
  - AGENTS.md: updated with `@agent` shortcuts
1957
+
1958
+ ---
1959
+
1960
+ ## CLI integration points
1961
+
1962
+ The following AIOSON CLI commands are available to use at each phase. Prefer CLI over manual creation — it's faster, cheaper (fewer tokens), and consistent.
1963
+
1964
+ | When | Command | Purpose |
1965
+ |------|---------|---------|
1966
+ | **Before Step 1** | `aioson squad:scaffold . --slug=X --name="Y" --mode=Z` | Generate all dirs and skeleton files |
1967
+ | **Before squad:autorun** | `aioson brief:validate . --brief=<path> [--auto-fix]` | Validate executor brief completeness |
1968
+ | **Before any session** | `aioson preflight:context . --agent=<name> [--squad=X]` | Estimate context budget, detect truncation risk |
1969
+ | **After N sessions** | `aioson pattern:detect . --squad=X` | Detect automation candidates from learnings |
1970
+ | **After squad is ready** | `aioson squad:card . --squad=X` | Generate A2A Agent Card for external discovery |
1971
+ | **To share agents** | `aioson agent:export-skill . --agent=<name>` | Export agent as portable Agent Skills Standard |
1972
+ | **For long sessions** | `aioson context:compact . --agent=<name>` | Compact session context with structured handoff |
1973
+
1974
+ ### Running a squad autonomously
1975
+
1976
+ After creation, a squad can run without human intervention:
1977
+
1978
+ ```bash
1979
+ # Single run
1980
+ aioson squad:autorun . --squad={slug} --goal="your goal here"
1981
+
1982
+ # With dependency validation (inter-squad)
1983
+ aioson squad:autorun . --squad={slug} --goal="..." --wait-deps
1984
+
1985
+ # Using Claude Code Agent Teams (if available)
1986
+ aioson squad:autorun . --squad={slug} --goal="..." --engine=agent-teams
1987
+
1988
+ # Persistent background daemon
1989
+ aioson squad:daemon . --squad={slug} --persistent
1990
+ ```
1991
+
1992
+ ### Inter-squad connectivity
1993
+
1994
+ Squads in the same project can communicate via events:
1995
+
1996
+ ```bash
1997
+ # View squad dependency graph
1998
+ aioson squad:dependency-graph .
1999
+
2000
+ # Check pending inter-squad events
2001
+ aioson squad:status . --squad={slug}
2002
+ ```
2003
+
2004
+ Declare dependencies in `squad.manifest.json`:
2005
+ ```json
2006
+ {
2007
+ "depends_on": [{ "squad": "content-team", "event": "episode.created" }],
2008
+ "subscriptions": ["episode.*"]
2009
+ }
2010
+ ```
2011
+
2012
+ ---
2013
+
2014
+ ## Continuation Protocol
2015
+
2016
+ Before ending your response, always append:
2017
+
2018
+ ---
2019
+ ## ▶ Next Up
2020
+ - Next agent: `@orchestrator` (if implementation follows) or `@dev` (if immediate coding)
2021
+ - `/clear` → fresh context window before continuing
2022
+
2023
+ **Session artifacts written:**
2024
+ - [ ] `squad.manifest.json` — squad created/updated
2025
+ - [ ] `agents.md` — executor roster
2026
+ - [ ] `output/{squad-slug}/latest.html` — session HTML
2027
+ ---
@@ -15,6 +15,35 @@ These directories are **optional**. Check silently — if a directory is absent
15
15
  - If `agents:` includes `tester` → load. Otherwise skip.
16
16
  2. **`.aioson/docs/`** — Load only those whose `description` frontmatter is relevant to the current task.
17
17
 
18
+ ## Skills on demand
19
+
20
+ Before starting test work:
21
+
22
+ - if `aioson-spec-driven` exists in `.aioson/installed-skills/aioson-spec-driven/SKILL.md` OR in `.aioson/skills/process/aioson-spec-driven/SKILL.md`, load it when starting test sessions
23
+ - load `references/qa.md` from that skill — @tester shares verification criteria with @qa
24
+ - use Gate D criteria from `approval-gates.md` as the verification framework
25
+
26
+ ## Conformance contract integration
27
+
28
+ Before writing tests, check if `.aioson/context/conformance-{slug}.yaml` exists:
29
+
30
+ **If conformance contract exists (MEDIUM projects):**
31
+ - Read it as the structured test specification
32
+ - Each `acceptance_criteria` entry becomes a test case:
33
+ - `preconditions` → test setup
34
+ - `action` → test execution
35
+ - `expected` → assertions
36
+ - `negative_cases` → failure path tests
37
+ - Use `AC-{slug}-{N}` IDs in test names for traceability:
38
+ ```
39
+ test('AC-checkout-01: patient can book appointment for available slot', ...)
40
+ test('AC-checkout-01-neg-1: rejects past date', ...)
41
+ ```
42
+
43
+ **If no conformance contract (MICRO/SMALL):**
44
+ - Use `requirements-{slug}.md` acceptance criteria directly
45
+ - Follow the same `AC-{slug}-{N}` naming convention where available
46
+
18
47
  ## Required input
19
48
 
20
49
  Read before any action:
@@ -399,6 +428,16 @@ function testFuzz_transferNeverExceedsBalance(uint256 amount) public {
399
428
  ## Responsibility boundary
400
429
  @tester writes tests only. Bug fixes go to @dev (after @qa reports them). Architecture changes go to @architect.
401
430
 
431
+ ## Project pulse update (run before session registration)
432
+
433
+ Update the project pulse via CLI: `aioson pulse:update . --agent=tester --feature={slug} --action="<test results summary>" --next="@qa for formal review or @dev for fixes" 2>/dev/null || true`
434
+
435
+ If `aioson` CLI is not available, update `.aioson/context/project-pulse.md` manually:
436
+ 1. Set `updated_at`, `last_agent: tester`, `last_gate` in frontmatter
437
+ 2. Update "Active work" table with test results summary
438
+ 3. Add entry to "Recent activity" (keep last 3 only)
439
+ 4. Update "Next recommended action" — typically @qa for formal review or @dev for fixes
440
+
402
441
  ## At session end
403
442
  Register: `aioson agent:done . --agent=tester --summary="<one-line summary>" 2>/dev/null || true`
404
443
 
@@ -408,3 +447,17 @@ Register: `aioson agent:done . --agent=tester --summary="<one-line summary>" 2>/
408
447
  Ative: `/dev`
409
448
  > Recomendado: `/clear` antes — janela de contexto fresca
410
449
  ---
450
+
451
+ ## Continuation Protocol
452
+
453
+ Before ending your response, always append:
454
+
455
+ ---
456
+ ## Next Up
457
+ - Test suite delivered: [module tested]
458
+ - Next step: `@qa` (review test quality) or `@dev` (fix failing tests)
459
+ - `/clear` → fresh context window before continuing
460
+
461
+ **Session artifacts written:**
462
+ - [ ] [list each file created or modified]
463
+ ---