@jaimevalasek/aioson 1.3.0 → 1.4.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 (213) hide show
  1. package/README.md +19 -2
  2. package/docs/pt/README.md +62 -2
  3. package/docs/pt/advisor-spec.md +5 -5
  4. package/docs/pt/agentes-customizados.md +670 -0
  5. package/docs/pt/agentes.md +111 -13
  6. package/docs/pt/automacao-squads.md +407 -0
  7. package/docs/pt/cenarios.md +3 -3
  8. package/docs/pt/clientes-ai.md +62 -0
  9. package/docs/pt/comandos-cli.md +167 -17
  10. package/docs/pt/deyvin.md +115 -0
  11. package/docs/pt/genome-3.0-spec.md +11 -11
  12. package/docs/pt/inicio-rapido.md +45 -0
  13. package/docs/pt/memoria-contexto.md +255 -0
  14. package/docs/pt/output-strategy-delivery.md +655 -0
  15. package/docs/pt/profiler-system.md +17 -17
  16. package/docs/pt/runtime-observability.md +5 -1
  17. package/docs/pt/skills.md +175 -0
  18. package/docs/pt/{squad-genoma.md → squad-genome.md} +81 -75
  19. package/docs/testing/genome-2.0-rollout.md +1 -1
  20. package/package.json +3 -3
  21. package/src/agents.js +21 -5
  22. package/src/backup-provider.js +303 -0
  23. package/src/cli.js +178 -2
  24. package/src/commands/agents.js +22 -4
  25. package/src/commands/backup.js +533 -0
  26. package/src/commands/cloud.js +17 -17
  27. package/src/commands/context-pack.js +45 -0
  28. package/src/commands/implementation-plan.js +340 -0
  29. package/src/commands/learning.js +134 -0
  30. package/src/commands/live.js +1583 -0
  31. package/src/commands/runtime.js +833 -2
  32. package/src/commands/scan-project.js +288 -24
  33. package/src/commands/setup-context.js +23 -0
  34. package/src/commands/skill.js +558 -0
  35. package/src/commands/squad-agent-create.js +788 -0
  36. package/src/commands/squad-doctor.js +51 -1
  37. package/src/commands/squad-investigate.js +261 -0
  38. package/src/commands/squad-learning.js +209 -0
  39. package/src/commands/squad-pipeline.js +247 -1
  40. package/src/commands/squad-plan.js +329 -0
  41. package/src/commands/squad-status.js +1 -1
  42. package/src/commands/squad-validate.js +57 -1
  43. package/src/commands/test-agents.js +6 -1
  44. package/src/commands/workflow-next.js +8 -1
  45. package/src/commands/workflow-status.js +250 -0
  46. package/src/constants.js +80 -16
  47. package/src/context-memory.js +837 -0
  48. package/src/context-writer.js +2 -0
  49. package/src/delivery-runner.js +319 -0
  50. package/src/genome-files.js +1 -1
  51. package/src/genome-format.js +1 -1
  52. package/src/i18n/messages/en.js +206 -7
  53. package/src/i18n/messages/es.js +123 -6
  54. package/src/i18n/messages/fr.js +122 -5
  55. package/src/i18n/messages/pt-BR.js +205 -12
  56. package/src/installer.js +30 -2
  57. package/src/lib/genomes/compat.js +1 -1
  58. package/src/runtime-store.js +780 -42
  59. package/src/session-handoff.js +77 -0
  60. package/template/.aioson/agents/analyst.md +36 -9
  61. package/template/.aioson/agents/architect.md +20 -5
  62. package/template/.aioson/agents/dev.md +135 -15
  63. package/template/.aioson/agents/deyvin.md +166 -0
  64. package/template/.aioson/agents/discovery-design-doc.md +25 -1
  65. package/template/.aioson/agents/{genoma.md → genome.md} +20 -20
  66. package/template/.aioson/agents/orache.md +371 -0
  67. package/template/.aioson/agents/orchestrator.md +37 -2
  68. package/template/.aioson/agents/pair.md +5 -0
  69. package/template/.aioson/agents/pm.md +17 -5
  70. package/template/.aioson/agents/product.md +58 -22
  71. package/template/.aioson/agents/profiler-enricher.md +1 -1
  72. package/template/.aioson/agents/profiler-forge.md +9 -9
  73. package/template/.aioson/agents/profiler-researcher.md +1 -1
  74. package/template/.aioson/agents/qa.md +17 -5
  75. package/template/.aioson/agents/setup.md +81 -5
  76. package/template/.aioson/agents/squad.md +675 -28
  77. package/template/.aioson/agents/ux-ui.md +277 -34
  78. package/template/.aioson/config.md +175 -0
  79. package/template/.aioson/context/spec.md.template +17 -0
  80. package/template/.aioson/genomes/.gitkeep +0 -0
  81. package/template/.aioson/installed-skills/.gitkeep +0 -0
  82. package/template/.aioson/locales/en/agents/analyst.md +26 -4
  83. package/template/.aioson/locales/en/agents/architect.md +10 -0
  84. package/template/.aioson/locales/en/agents/dev.md +89 -4
  85. package/template/.aioson/locales/en/agents/deyvin.md +129 -0
  86. package/template/.aioson/locales/en/agents/{genoma.md → genome.md} +14 -14
  87. package/template/.aioson/locales/en/agents/orchestrator.md +36 -2
  88. package/template/.aioson/locales/en/agents/pair.md +5 -0
  89. package/template/.aioson/locales/en/agents/pm.md +7 -0
  90. package/template/.aioson/locales/en/agents/product.md +35 -17
  91. package/template/.aioson/locales/en/agents/qa.md +7 -0
  92. package/template/.aioson/locales/en/agents/setup.md +51 -5
  93. package/template/.aioson/locales/en/agents/squad.md +203 -15
  94. package/template/.aioson/locales/en/agents/ux-ui.md +375 -35
  95. package/template/.aioson/locales/es/agents/analyst.md +16 -4
  96. package/template/.aioson/locales/es/agents/architect.md +10 -0
  97. package/template/.aioson/locales/es/agents/dev.md +70 -2
  98. package/template/.aioson/locales/es/agents/deyvin.md +89 -0
  99. package/template/.aioson/locales/es/agents/{genoma.md → genome.md} +13 -13
  100. package/template/.aioson/locales/es/agents/orache.md +103 -0
  101. package/template/.aioson/locales/es/agents/orchestrator.md +36 -2
  102. package/template/.aioson/locales/es/agents/pair.md +5 -0
  103. package/template/.aioson/locales/es/agents/pm.md +7 -0
  104. package/template/.aioson/locales/es/agents/product.md +13 -3
  105. package/template/.aioson/locales/es/agents/qa.md +7 -0
  106. package/template/.aioson/locales/es/agents/setup.md +28 -5
  107. package/template/.aioson/locales/es/agents/squad.md +221 -15
  108. package/template/.aioson/locales/es/agents/ux-ui.md +26 -25
  109. package/template/.aioson/locales/fr/agents/analyst.md +16 -4
  110. package/template/.aioson/locales/fr/agents/architect.md +10 -0
  111. package/template/.aioson/locales/fr/agents/dev.md +70 -2
  112. package/template/.aioson/locales/fr/agents/deyvin.md +89 -0
  113. package/template/.aioson/locales/fr/agents/{genoma.md → genome.md} +7 -7
  114. package/template/.aioson/locales/fr/agents/orache.md +104 -0
  115. package/template/.aioson/locales/fr/agents/orchestrator.md +36 -2
  116. package/template/.aioson/locales/fr/agents/pair.md +5 -0
  117. package/template/.aioson/locales/fr/agents/pm.md +7 -0
  118. package/template/.aioson/locales/fr/agents/product.md +13 -3
  119. package/template/.aioson/locales/fr/agents/qa.md +7 -0
  120. package/template/.aioson/locales/fr/agents/setup.md +28 -5
  121. package/template/.aioson/locales/fr/agents/squad.md +216 -10
  122. package/template/.aioson/locales/fr/agents/ux-ui.md +26 -25
  123. package/template/.aioson/locales/pt-BR/agents/analyst.md +26 -4
  124. package/template/.aioson/locales/pt-BR/agents/architect.md +10 -0
  125. package/template/.aioson/locales/pt-BR/agents/dev.md +93 -4
  126. package/template/.aioson/locales/pt-BR/agents/deyvin.md +129 -0
  127. package/template/.aioson/locales/pt-BR/agents/{genoma.md → genome.md} +49 -49
  128. package/template/.aioson/locales/pt-BR/agents/orache.md +137 -0
  129. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +36 -2
  130. package/template/.aioson/locales/pt-BR/agents/pair.md +5 -0
  131. package/template/.aioson/locales/pt-BR/agents/pm.md +7 -0
  132. package/template/.aioson/locales/pt-BR/agents/product.md +35 -17
  133. package/template/.aioson/locales/pt-BR/agents/qa.md +7 -0
  134. package/template/.aioson/locales/pt-BR/agents/setup.md +51 -5
  135. package/template/.aioson/locales/pt-BR/agents/squad.md +486 -47
  136. package/template/.aioson/locales/pt-BR/agents/ux-ui.md +361 -22
  137. package/template/.aioson/my-agents/.gitkeep +0 -0
  138. package/template/.aioson/rules/.gitkeep +0 -0
  139. package/template/.aioson/rules/squad/.gitkeep +0 -0
  140. package/template/.aioson/rules/squad/README.md +50 -0
  141. package/template/.aioson/schemas/genome-meta.schema.json +1 -1
  142. package/template/.aioson/schemas/genome.schema.json +1 -1
  143. package/template/.aioson/schemas/squad-blueprint.schema.json +11 -0
  144. package/template/.aioson/schemas/squad-manifest.schema.json +257 -1
  145. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +157 -0
  146. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +407 -0
  147. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +172 -0
  148. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +490 -0
  149. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +237 -0
  150. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +289 -0
  151. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +350 -0
  152. package/template/.aioson/skills/design/interface-design/SKILL.md +47 -0
  153. package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -0
  154. package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -0
  155. package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +71 -0
  156. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -0
  157. package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -0
  158. package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +62 -0
  159. package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -0
  160. package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -0
  161. package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -0
  162. package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -0
  163. package/template/.aioson/skills/design-system/SKILL.md +92 -0
  164. package/template/.aioson/skills/design-system/cognitive-core-ui.skill +0 -0
  165. package/template/.aioson/skills/design-system/components/SKILL.md +274 -0
  166. package/template/.aioson/skills/design-system/components/SKILL.md:Zone.Identifier +0 -0
  167. package/template/.aioson/skills/design-system/dashboards/SKILL.md +184 -0
  168. package/template/.aioson/skills/design-system/dashboards/SKILL.md:Zone.Identifier +0 -0
  169. package/template/.aioson/skills/design-system/foundations/SKILL.md +250 -0
  170. package/template/.aioson/skills/design-system/foundations/SKILL.md:Zone.Identifier +0 -0
  171. package/template/.aioson/skills/design-system/motion/SKILL.md +197 -0
  172. package/template/.aioson/skills/design-system/motion/SKILL.md:Zone.Identifier +0 -0
  173. package/template/.aioson/skills/design-system/patterns/SKILL.md +231 -0
  174. package/template/.aioson/skills/design-system/patterns/SKILL.md:Zone.Identifier +0 -0
  175. package/template/.aioson/skills/squad/SKILL.md +58 -0
  176. package/template/.aioson/skills/squad/domains/.gitkeep +0 -0
  177. package/template/.aioson/skills/squad/formats/.gitkeep +0 -0
  178. package/template/.aioson/skills/squad/patterns/.gitkeep +0 -0
  179. package/template/.aioson/skills/squad/references/.gitkeep +0 -0
  180. package/template/.aioson/tasks/implementation-plan.md +288 -0
  181. package/template/.aioson/tasks/squad-create.md +1 -1
  182. package/template/.aioson/tasks/squad-execution-plan.md +279 -0
  183. package/template/.aioson/tasks/squad-export.md +1 -1
  184. package/template/.aioson/tasks/squad-investigate.md +44 -0
  185. package/template/.aioson/tasks/squad-learning-review.md +44 -0
  186. package/template/.aioson/tasks/squad-output-config.md +177 -0
  187. package/template/.aioson/tasks/squad-validate.md +1 -1
  188. package/template/.claude/commands/aioson/agent/deyvin.md +5 -0
  189. package/template/.claude/commands/aioson/agent/discovery-design-doc.md +5 -0
  190. package/template/.claude/commands/aioson/agent/genome.md +5 -0
  191. package/template/.claude/commands/aioson/agent/product.md +5 -0
  192. package/template/.claude/commands/aioson/agent/profiler-enricher.md +5 -0
  193. package/template/.claude/commands/aioson/agent/profiler-forge.md +5 -0
  194. package/template/.claude/commands/aioson/agent/profiler-researcher.md +5 -0
  195. package/template/.claude/commands/aioson/agent/squad.md +5 -0
  196. package/template/.gemini/GEMINI.md +2 -0
  197. package/template/.gemini/commands/aios-deyvin.toml +6 -0
  198. package/template/.gemini/commands/aios-pair.toml +6 -0
  199. package/template/AGENTS.md +34 -6
  200. package/template/CLAUDE.md +31 -4
  201. package/template/OPENCODE.md +6 -2
  202. package/template/squad-searches/.gitkeep +0 -0
  203. package/template/.aioson/skills/static/interface-design.md +0 -372
  204. package/template/.aioson/skills/static/premium-command-center-ui.md +0 -190
  205. /package/template/.aioson/{genomas → docs}/.gitkeep +0 -0
  206. /package/template/.claude/commands/aioson/{analyst.md → agent/analyst.md} +0 -0
  207. /package/template/.claude/commands/aioson/{architect.md → agent/architect.md} +0 -0
  208. /package/template/.claude/commands/aioson/{dev.md → agent/dev.md} +0 -0
  209. /package/template/.claude/commands/aioson/{orchestrator.md → agent/orchestrator.md} +0 -0
  210. /package/template/.claude/commands/aioson/{pm.md → agent/pm.md} +0 -0
  211. /package/template/.claude/commands/aioson/{qa.md → agent/qa.md} +0 -0
  212. /package/template/.claude/commands/aioson/{setup.md → agent/setup.md} +0 -0
  213. /package/template/.claude/commands/aioson/{ux-ui.md → agent/ux-ui.md} +0 -0
@@ -38,6 +38,15 @@
38
38
  "enum": ["private", "public"],
39
39
  "default": "private"
40
40
  },
41
+ "ephemeral": {
42
+ "type": "boolean",
43
+ "default": false,
44
+ "description": "Temporary squad — created ad-hoc for a one-off task, no persistence. Auto-cleaned after session ends."
45
+ },
46
+ "ttl": {
47
+ "type": "string",
48
+ "description": "Time-to-live for ephemeral squads (e.g. '24h', '7d'). After TTL, squad files are eligible for cleanup."
49
+ },
41
50
  "aiosLiteCompatibility": { "type": "string" },
42
51
  "storagePolicy": {
43
52
  "type": "object",
@@ -59,6 +68,9 @@
59
68
  "properties": {
60
69
  "rootDir": { "type": "string" },
61
70
  "agentsDir": { "type": "string" },
71
+ "workersDir": { "type": "string", "description": "Directory for deterministic worker scripts (no LLM)" },
72
+ "workflowsDir": { "type": "string", "description": "Directory for workflow .md files with phases and handoffs" },
73
+ "checklistsDir": { "type": "string", "description": "Directory for quality checklist .md files" },
62
74
  "skillsDir": { "type": "string" },
63
75
  "templatesDir": { "type": "string" },
64
76
  "docsDir": { "type": "string" }
@@ -80,12 +92,95 @@
80
92
  "type": "array",
81
93
  "items": {
82
94
  "type": "object",
83
- "required": ["slug", "role", "file"],
95
+ "required": ["slug", "role"],
84
96
  "properties": {
85
97
  "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
86
98
  "title": { "type": "string" },
99
+ "type": {
100
+ "type": "string",
101
+ "enum": ["worker", "agent", "clone", "assistant", "human-gate"],
102
+ "default": "agent",
103
+ "description": "Executor type: worker (deterministic script, no LLM), agent (LLM with defined role), clone (cognitive replica of real person), assistant (domain specialist with behavioral profile), human-gate (human approval checkpoint)"
104
+ },
87
105
  "role": { "type": "string" },
88
106
  "file": { "type": "string" },
107
+ "deterministic": {
108
+ "type": "boolean",
109
+ "description": "Whether the executor always produces the same output for the same input"
110
+ },
111
+ "usesLLM": {
112
+ "type": "boolean",
113
+ "description": "Whether the executor uses an LLM (false = zero LLM cost)"
114
+ },
115
+ "runtime": {
116
+ "type": "string",
117
+ "enum": ["python", "bash", "node", "other"],
118
+ "description": "Runtime for worker executors"
119
+ },
120
+ "entrypoint": {
121
+ "type": "string",
122
+ "description": "Script path for worker executors"
123
+ },
124
+ "domain": {
125
+ "type": "string",
126
+ "description": "Specialized domain for assistant executors"
127
+ },
128
+ "behavioralProfile": {
129
+ "type": "string",
130
+ "enum": [
131
+ "dominant-driver",
132
+ "influential-expressive",
133
+ "steady-amiable",
134
+ "compliant-analytical",
135
+ "dominant-influential",
136
+ "influential-steady",
137
+ "steady-compliant",
138
+ "compliant-dominant"
139
+ ],
140
+ "description": "DISC-based behavioral profile for assistant executors. Primary-secondary pattern: D=results-driven, I=people-oriented, S=stability-focused, C=precision-oriented"
141
+ },
142
+ "genomeSource": {
143
+ "type": "string",
144
+ "description": "Path to genome file for clone executors"
145
+ },
146
+ "fidelityScore": {
147
+ "type": "number",
148
+ "minimum": 0,
149
+ "maximum": 1,
150
+ "description": "Cognitive fidelity score for clone executors (0-1)"
151
+ },
152
+ "personReal": {
153
+ "type": "boolean",
154
+ "description": "Whether the clone is based on a real person"
155
+ },
156
+ "trigger": {
157
+ "type": "string",
158
+ "description": "Condition that activates a human-gate executor"
159
+ },
160
+ "escalation": {
161
+ "type": "object",
162
+ "description": "Graduated escalation rules for human-gate executors",
163
+ "properties": {
164
+ "rules": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "object",
168
+ "properties": {
169
+ "condition": { "type": "string" },
170
+ "action": {
171
+ "type": "string",
172
+ "enum": ["auto", "consult", "approve", "block"]
173
+ },
174
+ "consultAgent": { "type": "string" },
175
+ "notifyVia": {
176
+ "type": "array",
177
+ "items": { "type": "string" }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ },
89
184
  "skills": { "type": "array", "items": { "type": "string" } },
90
185
  "genomes": {
91
186
  "type": "array",
@@ -208,6 +303,99 @@
208
303
  }
209
304
  ]
210
305
  },
306
+ "checklists": {
307
+ "type": "array",
308
+ "description": "Quality checklists for post-execution validation",
309
+ "items": {
310
+ "type": "object",
311
+ "required": ["slug", "file"],
312
+ "properties": {
313
+ "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
314
+ "title": { "type": "string" },
315
+ "file": { "type": "string", "description": "Path to the checklist .md file" },
316
+ "scope": {
317
+ "type": "string",
318
+ "enum": ["squad", "workflow", "phase", "executor"],
319
+ "default": "squad",
320
+ "description": "When this checklist applies"
321
+ },
322
+ "appliesTo": {
323
+ "type": "string",
324
+ "description": "Slug of the workflow, phase, or executor this checklist validates"
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "workflows": {
330
+ "type": "array",
331
+ "description": "Pipelines with phases, executors, handoffs, and execution modes",
332
+ "items": {
333
+ "type": "object",
334
+ "required": ["slug", "title"],
335
+ "properties": {
336
+ "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
337
+ "title": { "type": "string" },
338
+ "trigger": { "type": "string", "description": "Condition or user action that starts this workflow" },
339
+ "executionMode": {
340
+ "type": "string",
341
+ "enum": ["sequential", "parallel", "mixed"],
342
+ "default": "sequential",
343
+ "description": "How phases run: sequential (each waits for previous), parallel (all at once), mixed (phases declare their own mode)"
344
+ },
345
+ "estimatedDuration": { "type": "string", "description": "Human-readable estimate, e.g. '30-60min'" },
346
+ "file": { "type": "string", "description": "Path to the workflow .md file" },
347
+ "phases": {
348
+ "type": "array",
349
+ "items": {
350
+ "type": "object",
351
+ "required": ["id", "title", "executor"],
352
+ "properties": {
353
+ "id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
354
+ "title": { "type": "string" },
355
+ "executor": {
356
+ "oneOf": [
357
+ { "type": "string" },
358
+ { "type": "array", "items": { "type": "string" } }
359
+ ],
360
+ "description": "Executor slug(s) responsible for this phase"
361
+ },
362
+ "executorType": {
363
+ "type": "string",
364
+ "enum": ["worker", "agent", "clone", "assistant", "human-gate"]
365
+ },
366
+ "dependsOn": {
367
+ "type": "array",
368
+ "items": { "type": "string" },
369
+ "description": "Phase IDs that must complete before this phase starts"
370
+ },
371
+ "parallel": {
372
+ "type": "boolean",
373
+ "default": false,
374
+ "description": "Whether this phase can run in parallel with siblings"
375
+ },
376
+ "input": { "type": "string", "description": "Expected input description or source" },
377
+ "output": { "type": "string", "description": "Expected output artifact or description" },
378
+ "humanGate": {
379
+ "type": "object",
380
+ "description": "Optional human approval checkpoint within this phase",
381
+ "properties": {
382
+ "condition": { "type": "string", "description": "Expression that triggers the gate" },
383
+ "action": {
384
+ "type": "string",
385
+ "enum": ["auto", "consult", "approve", "block"]
386
+ },
387
+ "consultAgent": { "type": "string" },
388
+ "notifyVia": { "type": "array", "items": { "type": "string" } },
389
+ "reason": { "type": "string" }
390
+ }
391
+ },
392
+ "checklist": { "type": "string", "description": "Path to quality checklist for this phase" }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ },
211
399
  "contentBlueprints": {
212
400
  "type": "array",
213
401
  "items": {
@@ -240,6 +428,74 @@
240
428
  }
241
429
  }
242
430
  },
431
+ "outputStrategy": {
432
+ "type": "object",
433
+ "description": "How the squad routes, stores and delivers its outputs",
434
+ "properties": {
435
+ "mode": {
436
+ "type": "string",
437
+ "enum": ["files", "sqlite", "hybrid"],
438
+ "default": "hybrid",
439
+ "description": "Primary output strategy: files (physical output only), sqlite (database only), hybrid (both)"
440
+ },
441
+ "fileOutput": {
442
+ "type": "object",
443
+ "properties": {
444
+ "enabled": { "type": "boolean", "default": true },
445
+ "dir": { "type": "string", "description": "Output directory path" },
446
+ "formats": {
447
+ "type": "array",
448
+ "items": { "type": "string", "enum": ["html", "md", "json", "pdf", "csv"] },
449
+ "description": "Enabled export formats"
450
+ }
451
+ }
452
+ },
453
+ "dataOutput": {
454
+ "type": "object",
455
+ "properties": {
456
+ "enabled": { "type": "boolean", "default": true },
457
+ "storage": { "type": "string", "enum": ["sqlite"], "default": "sqlite" },
458
+ "table": { "type": "string", "default": "content_items" },
459
+ "contentItems": { "type": "boolean", "default": true, "description": "Use the content_items model for structured data" }
460
+ }
461
+ },
462
+ "delivery": {
463
+ "type": "object",
464
+ "properties": {
465
+ "webhooks": {
466
+ "type": "array",
467
+ "items": {
468
+ "type": "object",
469
+ "required": ["slug", "trigger"],
470
+ "properties": {
471
+ "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
472
+ "url": { "type": "string", "description": "Webhook URL or {{ENV:VAR}} placeholder" },
473
+ "trigger": {
474
+ "type": "string",
475
+ "enum": ["on-publish", "on-create", "manual"],
476
+ "default": "on-publish",
477
+ "description": "When to fire the webhook"
478
+ },
479
+ "format": {
480
+ "type": "string",
481
+ "enum": ["json", "form-data"],
482
+ "default": "json"
483
+ },
484
+ "headers": {
485
+ "type": "object",
486
+ "additionalProperties": { "type": "string" },
487
+ "description": "Custom headers (supports {{ENV:VAR}} placeholders)"
488
+ },
489
+ "worker": { "type": "string", "description": "Path to delivery worker script" }
490
+ }
491
+ }
492
+ },
493
+ "cloudPublish": { "type": "boolean", "default": false, "description": "Publish to aioson.com cloud" },
494
+ "autoPublish": { "type": "boolean", "default": false, "description": "Auto-publish on content creation (opt-in)" }
495
+ }
496
+ }
497
+ }
498
+ },
243
499
  "ports": {
244
500
  "type": "object",
245
501
  "description": "Declaração de inputs e outputs para conexão inter-squad",
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: cognitive-core-ui
3
+ description: Cognitive Core UI is the visual identity system for premium, command-center-style interfaces inspired by the Mentes Sintéticas platform. Use it when `design_skill: cognitive-core-ui` is set in project.context.md OR when the user explicitly asks for "cognitive core", "mentes sintéticas layout", "cognitive core style", "aquele layout escuro", "dark dashboard command center", or similar. Supports dashboards, admin panels, detail/profile pages, landing pages, and websites — all with dark (default) and light themes via a single toggle. Do NOT use this skill unless explicitly selected.
4
+ ---
5
+
6
+ # Cognitive Core UI
7
+
8
+ The Cognitive Core system sits at the intersection of **military-grade data dashboard** and **refined SaaS UI** — dense, structured, and polished. This is the visual identity of the Mentes Sintéticas platform.
9
+
10
+ **This is one visual system.** Never combine it with another design skill.
11
+
12
+ ## Package structure
13
+
14
+ ```text
15
+ .aioson/skills/design/cognitive-core-ui/
16
+ SKILL.md ← you are here (load this first)
17
+ references/
18
+ design-tokens.md ← CSS variables dark + light, typography, token scope guardrails
19
+ components.md ← All reusable components (nav, stat card, badges, table, modal, DNA panel, etc.)
20
+ patterns.md ← Page layouts: dashboard shell, detail/profile, settings, auth, list-detail
21
+ dashboards.md ← Dashboard presets: inventory, control center, analytics, ops cockpit, CRM
22
+ websites.md ← Landing page, frontpage, institutional layouts + anti-patterns
23
+ motion.md ← Animations: keyframes, entrance sequences, scroll reveal, loading states
24
+ ```
25
+
26
+ ## Activation rules
27
+
28
+ - Apply this package **only** when `project.context.md` contains `design_skill: "cognitive-core-ui"` or the user explicitly chooses it.
29
+ - If another design skill is selected, do **not** load this package.
30
+ - Never auto-select this skill — always require explicit confirmation.
31
+ - If no skill is set yet, the active agent must ask or confirm before applying.
32
+
33
+ ## Responsibility boundary
34
+
35
+ This skill defines:
36
+ - Visual direction and aesthetic DNA
37
+ - Design tokens (colors, typography, spacing, radius, shadows)
38
+ - Component vocabulary and anatomy
39
+ - Page composition patterns
40
+ - Theme switching behavior (dark/light)
41
+
42
+ This skill does **not** decide:
43
+ - Stack (React, Vue, Blade, HTML, etc.)
44
+ - Output format (single file, multi-file, CSS modules, Tailwind, etc.)
45
+ - Icon library choice
46
+ - Whether a theme toggle exists in the product (the agent decides)
47
+
48
+ ## Loading guide
49
+
50
+ Always load only what the current task needs:
51
+
52
+ | Task | Load |
53
+ |---|---|
54
+ | Any UI work | `references/design-tokens.md` |
55
+ | Reusable components | `references/design-tokens.md` + `references/components.md` |
56
+ | Dashboard or admin panel | `references/design-tokens.md` + `references/components.md` + `references/patterns.md` + `references/dashboards.md` |
57
+ | Detail / profile page | `references/design-tokens.md` + `references/components.md` + `references/patterns.md` |
58
+ | Landing page or website | `references/design-tokens.md` + `references/components.md` + `references/websites.md` |
59
+ | Motion / animation | add `references/motion.md` when animation materially improves the result |
60
+ | Full UI build | all six reference files |
61
+
62
+ ## Visual signature — three pillars
63
+
64
+ 1. **Command-center authority** — Dense information when the product is operational. Monospaced uppercase labels on every section. Large numeric stat readouts. Everything feels like a mission control panel.
65
+ 2. **Premium refinement** — Three depth levels minimum (void → base → surface → elevated). Subtle borders (`rgba(255,255,255,0.06)` in dark). Teal/cyan as the only accent — used for active states, borders, glow effects. Never harsh contrasts.
66
+ 3. **Structured rhythm** — Tab navigation, sidebar trees, card grids, section headers with icons. Information is organized into labeled zones. One focal block per viewport.
67
+
68
+ ## Theme system
69
+
70
+ ```html
71
+ <div data-theme="dark"> <!-- or data-theme="light" -->
72
+ ```
73
+
74
+ - **Dark (default)**: Dashboards, monitoring, analytics, dev tools, anything data-heavy or operational
75
+ - **Light**: Client-facing apps, content-heavy pages, e-commerce admin, institutional websites
76
+ - **Both with toggle**: When the user asks, or when the target audience varies
77
+
78
+ If the user does not specify: default to **dark with a theme toggle** in the top bar.
79
+
80
+ ## Visual DNA (from reference screenshots)
81
+
82
+ ### Colors — dark theme
83
+ - Background void: `#060910`
84
+ - Background base: `#0B0F15` (main app background)
85
+ - Surface: `#111827` (cards)
86
+ - Elevated: `#1A2332` (hover, nested)
87
+ - Primary accent: `#22D3EE` (teal/cyan) — active tabs, badges, glow, borders
88
+ - Text heading: `#F9FAFB`
89
+ - Text primary: `#E5E7EB`
90
+ - Text secondary: `#9CA3AF`
91
+ - Text muted: `#6B7280`
92
+
93
+ ### Colors — light theme
94
+ - Background void: `#F1F5F9`
95
+ - Background base: `#F8FAFC`
96
+ - Surface: `#FFFFFF`
97
+ - Primary accent: `#0891B2` (deeper teal for legibility)
98
+ - Text heading: `#0F172A`
99
+ - Text primary: `#334155`
100
+
101
+ ### Typography
102
+ - Headings: `Inter`, `weight-black (900)`, `letter-spacing: -0.02em`
103
+ - Body: `Inter`, `weight-normal (400)`, `line-height: 1.6`
104
+ - Labels (most distinctive): `JetBrains Mono`, `weight-semibold`, `uppercase`, `letter-spacing: 0.15em`, `font-size: 0.675rem`
105
+ - Stats: `Inter`, `weight-bold (700)`, `font-size: 2.75rem`
106
+
107
+ ### Layout structure (dashboards)
108
+ ```
109
+ ┌──────────────────────────────────────────────────────────┐
110
+ │ TOP BAR: [Logo + Name] [Tab Nav (center)] [Actions] │
111
+ ├──────────────────────────────────────────────────────────┤
112
+ │ [Optional: breadcrumbs] │
113
+ │ PROFILE/HEADER ZONE: avatar + name + badges + stat cards│
114
+ ├──────────────────────────────────────────────────────────┤
115
+ │ TAB NAVIGATION (full width) │
116
+ ├───────────┬──────────────────────────────────────────────┤
117
+ │ SIDEBAR │ CONTENT │
118
+ │ 200px │ SECTION HEADER (mono label + icon) │
119
+ │ tree nav │ CARD GRID (2-4 col, auto-fill) │
120
+ │ │ SECTION HEADER │
121
+ │ │ CARD GRID │
122
+ └───────────┴──────────────────────────────────────────────┘
123
+ ```
124
+
125
+ ### Signature details
126
+ - Monospace uppercase labels on every section (never skip this)
127
+ - Badge chips with teal/cyan glow in dark mode
128
+ - Progress bars with colored semantic fills (green/red/amber/purple)
129
+ - Featured quote blocks: italic large text + mono attribution
130
+ - Cards with `1px` border + subtle hover glow (never box shadows only)
131
+ - Active tab: teal bottom border `3px` + teal text
132
+ - Sidebar active item: `border-left: 3px solid var(--accent)` + `bg-elevated`
133
+ - Theme transition: `250ms ease` on background, color, border-color, box-shadow
134
+
135
+ ## Application rules
136
+
137
+ - Treat `references/design-tokens.md` as the source of truth for ALL tokens.
138
+ - Resolve the page variant before composing: dashboard uses dense operational rhythm; website/landing page uses more whitespace, hero typography, and narrative hierarchy.
139
+ - Never combine this package with `interface-design`, `premium-command-center-ui`, or any other design skill in the same task.
140
+ - Reuse the project's component library if one exists — map Cognitive Core tokens onto it instead of rebuilding primitives.
141
+ - Adapt code examples to the active stack. Reference snippets are design specifications, not copy-paste code.
142
+ - Accessibility, responsiveness, and production semantics are the agent's responsibility (not this skill).
143
+
144
+ ## Delivery modes
145
+
146
+ ### Greenfield
147
+ 1. Choose page variant (dashboard, detail, settings, landing, institutional)
148
+ 2. Load relevant references
149
+ 3. Apply token scope from `design-tokens.md`
150
+ 4. Compose layout from `patterns.md` or `websites.md`
151
+ 5. Build components from `components.md`
152
+
153
+ ### Brownfield
154
+ 1. Audit existing UI before rewriting
155
+ 2. Map Cognitive Core tokens onto the existing component library
156
+ 3. Fix token scope issues (font/color variables must be on the correct container)
157
+ 4. Prefer targeted upgrades over full rewrites unless the user asks for a redesign