@jaimevalasek/aioson 1.4.0 → 1.5.1

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 (199) hide show
  1. package/CHANGELOG.md +31 -1
  2. package/LICENSE +661 -21
  3. package/README.md +3 -1
  4. package/docs/en/squad-dashboard.md +372 -0
  5. package/docs/openclaw-bridge.md +308 -0
  6. package/docs/pt/agentes.md +124 -10
  7. package/docs/pt/cenarios.md +46 -2
  8. package/docs/pt/comandos-cli.md +60 -1
  9. package/docs/pt/inicio-rapido.md +18 -2
  10. package/docs/pt/squad-dashboard.md +373 -0
  11. package/docs/testing/genome-2.0-matrix.md +5 -5
  12. package/docs/testing/genome-2.0-rollout.md +9 -9
  13. package/package.json +2 -2
  14. package/src/backup-local.js +74 -0
  15. package/src/cli.js +98 -0
  16. package/src/commands/backup-local-cmd.js +25 -0
  17. package/src/commands/runtime.js +242 -0
  18. package/src/commands/setup-context.js +7 -2
  19. package/src/commands/squad-daemon.js +209 -0
  20. package/src/commands/squad-dashboard.js +39 -0
  21. package/src/commands/squad-deploy.js +64 -0
  22. package/src/commands/squad-doctor.js +52 -0
  23. package/src/commands/squad-mcp.js +270 -0
  24. package/src/commands/squad-processes.js +56 -0
  25. package/src/commands/squad-recovery.js +42 -0
  26. package/src/commands/squad-roi.js +291 -0
  27. package/src/commands/squad-score.js +250 -0
  28. package/src/commands/squad-status.js +37 -1
  29. package/src/commands/squad-validate.js +62 -1
  30. package/src/commands/squad-webhook.js +160 -0
  31. package/src/commands/squad-worker.js +191 -0
  32. package/src/commands/squad-worktrees.js +75 -0
  33. package/src/commands/web-map.js +70 -0
  34. package/src/commands/web-scrape.js +71 -0
  35. package/src/constants.js +8 -0
  36. package/src/context-writer.js +45 -1
  37. package/src/i18n/messages/en.js +127 -1
  38. package/src/i18n/messages/es.js +117 -0
  39. package/src/i18n/messages/fr.js +117 -0
  40. package/src/i18n/messages/pt-BR.js +126 -1
  41. package/src/lib/webhook-server.js +328 -0
  42. package/src/mcp-connectors/registry.js +602 -0
  43. package/src/runtime-store.js +259 -2
  44. package/src/squad/external-session.js +180 -0
  45. package/src/squad/inter-squad.js +74 -0
  46. package/src/squad/recovery-context.js +201 -0
  47. package/src/squad/worktree-manager.js +114 -0
  48. package/src/squad-daemon.js +490 -0
  49. package/src/squad-dashboard/api.js +223 -0
  50. package/src/squad-dashboard/attachment-handler.js +93 -0
  51. package/src/squad-dashboard/context-monitor.js +157 -0
  52. package/src/squad-dashboard/execution-logs.js +115 -0
  53. package/src/squad-dashboard/hunk-review.js +209 -0
  54. package/src/squad-dashboard/metrics.js +133 -0
  55. package/src/squad-dashboard/process-monitor.js +125 -0
  56. package/src/squad-dashboard/renderer.js +858 -0
  57. package/src/squad-dashboard/server.js +232 -0
  58. package/src/squad-dashboard/styles.js +525 -0
  59. package/src/squad-dashboard/token-tracker.js +99 -0
  60. package/src/web.js +284 -0
  61. package/src/worker-runner.js +339 -0
  62. package/template/.aioson/agents/analyst.md +4 -0
  63. package/template/.aioson/agents/architect.md +4 -0
  64. package/template/.aioson/agents/dev.md +120 -11
  65. package/template/.aioson/agents/deyvin.md +8 -0
  66. package/template/.aioson/agents/neo.md +152 -0
  67. package/template/.aioson/agents/orache.md +17 -0
  68. package/template/.aioson/agents/orchestrator.md +26 -0
  69. package/template/.aioson/agents/product.md +60 -12
  70. package/template/.aioson/agents/qa.md +1 -0
  71. package/template/.aioson/agents/setup.md +63 -19
  72. package/template/.aioson/agents/sheldon.md +603 -0
  73. package/template/.aioson/agents/squad.md +191 -0
  74. package/template/.aioson/agents/tester.md +254 -0
  75. package/template/.aioson/agents/ux-ui.md +12 -0
  76. package/template/.aioson/config.md +6 -0
  77. package/template/.aioson/locales/en/agents/analyst.md +8 -0
  78. package/template/.aioson/locales/en/agents/architect.md +8 -0
  79. package/template/.aioson/locales/en/agents/dev.md +66 -7
  80. package/template/.aioson/locales/en/agents/deyvin.md +8 -0
  81. package/template/.aioson/locales/en/agents/neo.md +8 -0
  82. package/template/.aioson/locales/en/agents/orchestrator.md +26 -0
  83. package/template/.aioson/locales/en/agents/qa.md +49 -0
  84. package/template/.aioson/locales/en/agents/setup.md +2 -1
  85. package/template/.aioson/locales/en/agents/sheldon.md +340 -0
  86. package/template/.aioson/locales/en/agents/ux-ui.md +8 -0
  87. package/template/.aioson/locales/es/agents/analyst.md +8 -0
  88. package/template/.aioson/locales/es/agents/architect.md +8 -0
  89. package/template/.aioson/locales/es/agents/dev.md +66 -7
  90. package/template/.aioson/locales/es/agents/deyvin.md +8 -0
  91. package/template/.aioson/locales/es/agents/neo.md +48 -0
  92. package/template/.aioson/locales/es/agents/orchestrator.md +26 -0
  93. package/template/.aioson/locales/es/agents/qa.md +26 -0
  94. package/template/.aioson/locales/es/agents/setup.md +2 -1
  95. package/template/.aioson/locales/es/agents/sheldon.md +192 -0
  96. package/template/.aioson/locales/es/agents/squad.md +63 -0
  97. package/template/.aioson/locales/es/agents/ux-ui.md +8 -0
  98. package/template/.aioson/locales/fr/agents/analyst.md +8 -0
  99. package/template/.aioson/locales/fr/agents/architect.md +8 -0
  100. package/template/.aioson/locales/fr/agents/dev.md +66 -7
  101. package/template/.aioson/locales/fr/agents/deyvin.md +8 -0
  102. package/template/.aioson/locales/fr/agents/neo.md +48 -0
  103. package/template/.aioson/locales/fr/agents/orchestrator.md +26 -0
  104. package/template/.aioson/locales/fr/agents/qa.md +26 -0
  105. package/template/.aioson/locales/fr/agents/setup.md +2 -1
  106. package/template/.aioson/locales/fr/agents/sheldon.md +192 -0
  107. package/template/.aioson/locales/fr/agents/squad.md +63 -0
  108. package/template/.aioson/locales/fr/agents/ux-ui.md +8 -0
  109. package/template/.aioson/locales/pt-BR/agents/analyst.md +19 -0
  110. package/template/.aioson/locales/pt-BR/agents/architect.md +19 -0
  111. package/template/.aioson/locales/pt-BR/agents/dev.md +75 -12
  112. package/template/.aioson/locales/pt-BR/agents/deyvin.md +8 -0
  113. package/template/.aioson/locales/pt-BR/agents/neo.md +147 -0
  114. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +26 -0
  115. package/template/.aioson/locales/pt-BR/agents/product.md +8 -3
  116. package/template/.aioson/locales/pt-BR/agents/qa.md +60 -0
  117. package/template/.aioson/locales/pt-BR/agents/setup.md +2 -1
  118. package/template/.aioson/locales/pt-BR/agents/sheldon.md +192 -0
  119. package/template/.aioson/locales/pt-BR/agents/squad.md +105 -0
  120. package/template/.aioson/locales/pt-BR/agents/ux-ui.md +8 -0
  121. package/template/.aioson/schemas/squad-blueprint.schema.json +21 -0
  122. package/template/.aioson/schemas/squad-manifest.schema.json +178 -1
  123. package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +205 -0
  124. package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -0
  125. package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -0
  126. package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -0
  127. package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -0
  128. package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -0
  129. package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -0
  130. package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -0
  131. package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +210 -0
  132. package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -0
  133. package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -0
  134. package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -0
  135. package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -0
  136. package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -0
  137. package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -0
  138. package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -0
  139. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +55 -9
  140. package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -0
  141. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +1 -1
  142. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +100 -0
  143. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +43 -9
  144. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +40 -0
  145. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +1 -1
  146. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +99 -12
  147. package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +209 -0
  148. package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -0
  149. package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -0
  150. package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -0
  151. package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -0
  152. package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -0
  153. package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -0
  154. package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -0
  155. package/template/.aioson/skills/premium-visual-design/SKILL.md +83 -0
  156. package/template/.aioson/skills/premium-visual-design/components/agent-badge.md +92 -0
  157. package/template/.aioson/skills/premium-visual-design/components/dependency-node.md +102 -0
  158. package/template/.aioson/skills/premium-visual-design/components/mention-autocomplete.md +136 -0
  159. package/template/.aioson/skills/premium-visual-design/components/notification-center.md +136 -0
  160. package/template/.aioson/skills/premium-visual-design/components/review-action-bar.md +188 -0
  161. package/template/.aioson/skills/premium-visual-design/components/team-switcher.md +131 -0
  162. package/template/.aioson/skills/premium-visual-design/patterns/agent-message-thread.md +198 -0
  163. package/template/.aioson/skills/premium-visual-design/patterns/notification-panel.md +275 -0
  164. package/template/.aioson/skills/premium-visual-design/patterns/review-workflow-ui.md +234 -0
  165. package/template/.aioson/skills/premium-visual-design/patterns/task-dependency-graph.md +147 -0
  166. package/template/.aioson/skills/premium-visual-design/tokens/status-extended.md +142 -0
  167. package/template/.aioson/skills/squad/formats/catalog.json +15 -0
  168. package/template/.aioson/skills/squad/formats/content/blog-post.md +47 -0
  169. package/template/.aioson/skills/squad/formats/content/newsletter.md +47 -0
  170. package/template/.aioson/skills/squad/formats/creative/podcast-script.md +43 -0
  171. package/template/.aioson/skills/squad/formats/creative/video-script.md +41 -0
  172. package/template/.aioson/skills/squad/formats/social/instagram-feed.md +42 -0
  173. package/template/.aioson/skills/squad/formats/social/linkedin-post.md +42 -0
  174. package/template/.aioson/skills/squad/formats/social/tiktok.md +39 -0
  175. package/template/.aioson/skills/squad/formats/social/twitter-thread.md +39 -0
  176. package/template/.aioson/skills/squad/formats/social/youtube-long.md +47 -0
  177. package/template/.aioson/skills/squad/formats/social/youtube-shorts.md +39 -0
  178. package/template/.aioson/skills/squad/patterns/multi-platform-pattern.md +108 -0
  179. package/template/.aioson/skills/squad/patterns/persona-based-pattern.md +98 -0
  180. package/template/.aioson/skills/squad/patterns/pipeline-pattern.md +106 -0
  181. package/template/.aioson/skills/squad/patterns/review-loop-pattern.md +81 -0
  182. package/template/.aioson/skills/squad/references/checklist-templates.md +122 -0
  183. package/template/.aioson/skills/squad/references/executor-archetypes.md +123 -0
  184. package/template/.aioson/skills/squad/references/workflow-templates.md +169 -0
  185. package/template/.aioson/skills/static/debugging-protocol.md +42 -0
  186. package/template/.aioson/skills/static/git-worktrees.md +36 -0
  187. package/template/.aioson/tasks/implementation-plan.md +19 -0
  188. package/template/.aioson/tasks/squad-design.md +28 -0
  189. package/template/.aioson/tasks/squad-profile.md +48 -0
  190. package/template/.aioson/tasks/squad-review.md +61 -0
  191. package/template/.aioson/tasks/squad-task-decompose.md +66 -0
  192. package/template/.claude/commands/aioson/agent/neo.md +5 -0
  193. package/template/.claude/commands/aioson/agent/tester.md +5 -0
  194. package/template/.gemini/GEMINI.md +1 -0
  195. package/template/.gemini/commands/aios-neo.toml +4 -0
  196. package/template/.gemini/commands/aios-tester.toml +6 -0
  197. package/template/AGENTS.md +3 -0
  198. package/template/CLAUDE.md +5 -2
  199. package/template/OPENCODE.md +2 -0
@@ -0,0 +1,169 @@
1
+ ---
2
+ name: workflow-templates
3
+ description: Reusable workflow templates for common squad types
4
+ version: 1.0.0
5
+ ---
6
+
7
+ # Workflow Templates
8
+
9
+ Starter workflow templates for common squad configurations. Adapt to the
10
+ specific domain — these are starting points, not rigid prescriptions.
11
+
12
+ ## Linear content workflow
13
+
14
+ Best for: single-output content squads (blog post, newsletter, video script).
15
+
16
+ ```json
17
+ {
18
+ "slug": "linear-content",
19
+ "phases": [
20
+ { "id": "research", "executor": "researcher" },
21
+ { "id": "draft", "executor": "writer" },
22
+ {
23
+ "id": "review",
24
+ "executor": "editor",
25
+ "review": {
26
+ "reviewer": "editor",
27
+ "criteria": ["clarity", "accuracy", "voice"],
28
+ "onReject": "draft",
29
+ "maxRetries": 2
30
+ }
31
+ },
32
+ { "id": "polish", "executor": "writer" },
33
+ { "id": "publish", "executor": "publisher" }
34
+ ]
35
+ }
36
+ ```
37
+
38
+ ## Parallel content workflow
39
+
40
+ Best for: multi-format or multi-platform squads producing several pieces simultaneously.
41
+
42
+ ```json
43
+ {
44
+ "slug": "parallel-content",
45
+ "phases": [
46
+ { "id": "brief", "executor": "strategist" },
47
+ {
48
+ "id": "create",
49
+ "parallel": true,
50
+ "executors": ["scriptwriter", "copywriter", "designer"]
51
+ },
52
+ {
53
+ "id": "review",
54
+ "executor": "editor",
55
+ "review": {
56
+ "reviewer": "editor",
57
+ "criteria": ["brand-consistency", "platform-fit"],
58
+ "onReject": "create",
59
+ "maxRetries": 1
60
+ }
61
+ },
62
+ { "id": "finalize", "executor": "publisher" }
63
+ ]
64
+ }
65
+ ```
66
+
67
+ ## Research-heavy workflow
68
+
69
+ Best for: squads where investigation and analysis precede creation.
70
+
71
+ ```json
72
+ {
73
+ "slug": "research-heavy",
74
+ "phases": [
75
+ { "id": "scope", "executor": "analyst" },
76
+ { "id": "investigate", "executor": "researcher" },
77
+ { "id": "synthesize", "executor": "analyst" },
78
+ {
79
+ "id": "create",
80
+ "executor": "writer",
81
+ "humanGate": true
82
+ },
83
+ { "id": "review", "executor": "fact-checker" },
84
+ { "id": "publish", "executor": "publisher" }
85
+ ]
86
+ }
87
+ ```
88
+
89
+ ## Software development workflow
90
+
91
+ Best for: software squads with design-implement-test cycle.
92
+
93
+ ```json
94
+ {
95
+ "slug": "software-dev",
96
+ "phases": [
97
+ { "id": "design", "executor": "architect" },
98
+ {
99
+ "id": "implement",
100
+ "executor": "developer",
101
+ "humanGate": true
102
+ },
103
+ { "id": "test", "executor": "qa-engineer" },
104
+ {
105
+ "id": "review",
106
+ "executor": "architect",
107
+ "review": {
108
+ "reviewer": "architect",
109
+ "criteria": ["code-quality", "architecture-fit", "test-coverage"],
110
+ "onReject": "implement",
111
+ "maxRetries": 2
112
+ }
113
+ },
114
+ { "id": "deploy", "executor": "devops" }
115
+ ]
116
+ }
117
+ ```
118
+
119
+ ## Persona-driven workflow
120
+
121
+ Best for: squads producing content in a specific person's voice.
122
+
123
+ ```json
124
+ {
125
+ "slug": "persona-driven",
126
+ "phases": [
127
+ { "id": "research", "executor": "researcher" },
128
+ { "id": "draft", "executor": "ghostwriter", "genome": "{person-slug}" },
129
+ {
130
+ "id": "voice-check",
131
+ "executor": "brand-guardian",
132
+ "genome": "{person-slug}",
133
+ "review": {
134
+ "reviewer": "brand-guardian",
135
+ "criteria": ["voice-fidelity", "methodology-alignment", "authenticity"],
136
+ "onReject": "draft",
137
+ "maxRetries": 2,
138
+ "vetoConditions": ["voice-inconsistency"]
139
+ }
140
+ },
141
+ { "id": "polish", "executor": "ghostwriter", "genome": "{person-slug}" },
142
+ { "id": "approve", "humanGate": true }
143
+ ]
144
+ }
145
+ ```
146
+
147
+ ## Choosing a workflow template
148
+
149
+ ```
150
+ What is the squad's primary mode?
151
+ ├── content
152
+ │ ├── Single output → Linear content
153
+ │ ├── Multi-platform/format → Parallel content
154
+ │ └── Persona-based → Persona-driven
155
+ ├── research
156
+ │ └── → Research-heavy
157
+ ├── software
158
+ │ └── → Software development
159
+ └── mixed
160
+ └── Start with Linear content, add parallel phases as needed
161
+ ```
162
+
163
+ ## Customization guidelines
164
+
165
+ - **Add phases** for additional quality gates or specialized steps
166
+ - **Remove phases** if the squad is lightweight (micro squad)
167
+ - **Add review blocks** to any phase that produces user-facing output
168
+ - **Add humanGate** to phases with irreversible or high-stakes decisions
169
+ - **Add vetoConditions** to review phases in regulated domains
@@ -0,0 +1,42 @@
1
+ # Debugging Protocol
2
+
3
+ > Load this when a bug cannot be resolved in one direct attempt.
4
+
5
+ ## Iron law
6
+ NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
7
+ A fix without root cause understanding is a guess. Guesses fail.
8
+
9
+ ## Phase 1 — Root Cause Investigation (before any fix)
10
+ 1. Read the full error message — completely, not a summary
11
+ 2. Reproduce consistently: if you cannot reproduce, you cannot fix
12
+ 3. Review recent changes: what changed before this broke?
13
+ 4. Add instrumentation at every system boundary to locate where it fails
14
+ 5. Document: what exactly breaks, where, and under what conditions
15
+
16
+ ## Phase 2 — Pattern Analysis
17
+ 1. Find similar code that works correctly
18
+ 2. Compare implementations completely — not just the broken line
19
+ 3. Identify every difference (types, order, configuration)
20
+ 4. Understand dependencies the broken code relies on
21
+
22
+ ## Phase 3 — Hypothesis and Testing
23
+ 1. Form one hypothesis: "The bug is X because Y"
24
+ 2. Test only that hypothesis — one variable at a time
25
+ 3. No stacked changes: never change A and B simultaneously hoping one works
26
+ 4. If hypothesis fails: form a new one. Never abandon hypothesis testing for random attempts.
27
+
28
+ ## Phase 4 — Fix
29
+ 1. Write a failing test that reproduces the bug (this is the RED)
30
+ 2. Apply one focused fix
31
+ 3. Verify with full test run (not just the new test)
32
+ 4. If still failing after 3 focused attempts: escalate to architecture review
33
+
34
+ ## Defense-in-Depth (after fixing)
35
+ When a bug is found, do not just fix the symptom. Add protection at every layer:
36
+ - **Entry point**: reject invalid input at the API/form boundary
37
+ - **Business logic**: validate that the operation makes sense for the domain
38
+ - **Data layer**: DB constraints match application rules
39
+ - **Instrumentation**: add logging that would catch this class of bug in future
40
+
41
+ Single validation: "We fixed the bug."
42
+ Multiple layers: "We made the bug impossible."
@@ -0,0 +1,36 @@
1
+ # Git Worktrees — Isolated Development
2
+
3
+ > Optional but recommended for SMALL/MEDIUM feature work.
4
+ > Keeps main branch clean while you develop.
5
+
6
+ ## When to use
7
+ - Starting implementation of a new feature branch
8
+ - When you want to be able to discard work safely
9
+ - When you need to switch context between features
10
+
11
+ ## Quick setup
12
+ ```bash
13
+ # Create worktree for feature
14
+ git worktree add ../project-feature-name -b feature/name
15
+
16
+ # Work in the worktree
17
+ cd ../project-feature-name
18
+ # ... install deps, run setup ...
19
+
20
+ # When done: merge or discard
21
+ git worktree remove ../project-feature-name
22
+ ```
23
+
24
+ ## Safety rule
25
+ The worktrees directory must be in `.gitignore`.
26
+ Add before creating:
27
+ ```bash
28
+ echo ".worktrees/" >> .gitignore
29
+ git add .gitignore && git commit -m "chore: add worktrees to gitignore"
30
+ ```
31
+
32
+ ## Finish options
33
+ 1. Merge back to main locally
34
+ 2. Push and create PR
35
+ 3. Keep branch as-is (continue later)
36
+ 4. Discard (requires typing "discard" to confirm)
@@ -255,6 +255,25 @@ Perguntar:
255
255
  Se o chat atual já consumiu muitos tokens com discovery/design:
256
256
  > "Recomendo iniciar um novo chat para a implementação — o context package está definido no plano."
257
257
 
258
+ ### Modo de execução
259
+
260
+ Após aprovação do plano, oferecer dois modos:
261
+
262
+ **Modo padrão** (recomendado para MICRO/SMALL):
263
+ > "Implementar fase por fase neste chat com `/dev`."
264
+
265
+ **Modo precisão** (recomendado para MEDIUM ou planos com 5+ fases):
266
+ > "Para cada fase, abrir um novo chat com contexto isolado.
267
+ > Isso evita contaminação de contexto entre fases e mantém cada subagent focado.
268
+ >
269
+ > Para cada fase:
270
+ > 1. Abrir novo chat
271
+ > 2. Colar o context package desta fase (definido no plano)
272
+ > 3. Executar com `/dev`
273
+ > 4. Ao terminar: atualizar `spec.md` e retornar ao plano"
274
+
275
+ Se MEDIUM e `@orchestrator` disponível: o modo precisão é feito automaticamente via Task tool.
276
+
258
277
  ## Adaptação por classificação
259
278
 
260
279
  ### MICRO
@@ -75,6 +75,34 @@ O JSON deve seguir o schema `squad-blueprint.schema.json`.
75
75
 
76
76
  Gere um UUID para o campo `id`. Use `new Date().toISOString()` para `createdAt`.
77
77
 
78
+ ### Passo 6.5 — Squad Spec Self-Review
79
+
80
+ Antes de apresentar ao usuário, revisar o blueprint como se fosse outro agente lendo pela primeira vez:
81
+
82
+ **Verificar completude:**
83
+ - [ ] Cada executor tem role único e não sobrepõe outro executor
84
+ - [ ] Cada executor tem focus com 3-5 bullets concretos (não vagos)
85
+ - [ ] Sem "TBD", "a definir", "conforme necessário" em nenhum campo
86
+ - [ ] Mission do squad é uma frase que explica o que faz E para quem
87
+
88
+ **Verificar consistência:**
89
+ - [ ] Sem contradições: tom/audiência do squad vs tone de cada executor
90
+ - [ ] Se mode=content: content blueprints cobrem os outputs esperados
91
+ - [ ] Se mode=software: executores cobrem as fases de desenvolvimento necessárias
92
+ - [ ] Squad não tem mais responsabilidades do que os executores conseguem cobrir
93
+
94
+ **Verificar scope:**
95
+ - [ ] O squad resolve o problema declarado pelo usuário — nem mais, nem menos
96
+ - [ ] Nenhum executor foi adicionado por "seria útil" sem relação com o objetivo
97
+ - [ ] Se user pediu N executores: verificar que não foram adicionados extras silenciosamente
98
+
99
+ **Calibração:** Só bloqueie se o problema causaria output fundamentalmente errado.
100
+ Preferências de estilo não bloqueiam. Lacunas de detalhe não bloqueiam.
101
+ Contradições de escopo e roles sem responsabilidade real = bloqueiam.
102
+
103
+ Se encontrar problemas: corrigir no blueprint antes de apresentar ao usuário.
104
+ Se tudo OK: prosseguir para Passo 7.
105
+
78
106
  ### Passo 7 — Apresentar resumo
79
107
  Mostre ao usuário:
80
108
  - Executores propostos com roles
@@ -0,0 +1,48 @@
1
+ # Task: Squad Profiler Integration
2
+
3
+ > Orquestra profiling dentro do flow de criação do squad.
4
+
5
+ ## Quando usar
6
+ - Automaticamente pelo @squad quando detecta persona-based squad
7
+ - `@squad design --profile` — dispara profiling antes do design
8
+
9
+ ## Detecção de persona
10
+
11
+ Heurísticas para oferecer profiling:
12
+ - Usuário menciona uma pessoa específica por nome
13
+ - O goal inclui "no estilo de", "como {pessoa}", "baseado na abordagem de {pessoa}"
14
+ - O domínio é personal branding, criação de conteúdo para um criador específico
15
+
16
+ ## Processo
17
+
18
+ ### Passo 1 — Verificar perfil existente
19
+ Checar se `.aioson/profiler-reports/{person-slug}/` já existe.
20
+ Se existir: ler o perfil enriquecido e pular para aplicação do genome.
21
+
22
+ ### Passo 2 — Executar pipeline de profiling
23
+ Se não existir perfil:
24
+ 1. @profiler-researcher → coleta de evidências
25
+ 2. @profiler-enricher → análise de padrões cognitivos
26
+ 3. @profiler-forge → geração do genome
27
+
28
+ ### Passo 3 — Aplicar genome aos executores
29
+ O genome resultante é aplicado apenas aos executores relevantes:
30
+ - Executores criativos (copywriter, scriptwriter) → SIM
31
+ - Executores de pesquisa e orquestração → NÃO (não precisam da voz da persona)
32
+
33
+ ### Passo 4 — Registrar no blueprint
34
+ ```json
35
+ "profiling": {
36
+ "person": "{name}",
37
+ "genomePath": "{path}",
38
+ "genomeSlug": "{slug}",
39
+ "evidenceMode": "verified | inferred | mixed",
40
+ "profiledAt": "{ISO-8601}"
41
+ }
42
+ ```
43
+
44
+ ## Regras
45
+ - NÃO execute profiling sem o consentimento do usuário
46
+ - NÃO aplique genome a todos os executores — apenas os que precisam da voz
47
+ - O profiling é uma SUGESTÃO, não uma obrigação
48
+ - Registre a associação profiling → squad no blueprint
@@ -0,0 +1,61 @@
1
+ # Task: Squad Review Loop
2
+
3
+ > Protocolo de review loop dentro de uma workflow phase.
4
+
5
+ ## Quando usar
6
+ - Automaticamente pelo @orquestrador quando uma phase tem `review` declarado
7
+ - O orquestrador NÃO precisa ser instruído — ele lê o manifest e segue
8
+
9
+ ## Processo
10
+
11
+ ### Passo 1 — Fase produz output
12
+ O executor da phase gera seu output normalmente.
13
+
14
+ ### Passo 2 — Checar veto conditions
15
+ Antes do review, verificar se alguma veto condition é violada:
16
+ - Se `action: block` → parar pipeline, notificar usuário
17
+ - Se `action: reject` → auto-rejeitar sem review (economiza uma rodada)
18
+ - Se `action: warn` → continuar mas marcar warning
19
+
20
+ ### Passo 3 — Invocar reviewer
21
+ O executor definido em `review.reviewer` avalia o output com base nos `criteria`.
22
+
23
+ O reviewer deve produzir:
24
+ ```
25
+ ## Review: {phase-title}
26
+
27
+ **Verdict:** accepted | rejected
28
+ **Score:** {0-10}
29
+
30
+ ### Criteria evaluation
31
+ - ✓ {criteria 1}: {assessment}
32
+ - ✗ {criteria 2}: {assessment with specific feedback}
33
+ - ✓ {criteria 3}: {assessment}
34
+
35
+ ### Feedback (if rejected)
36
+ {Specific, actionable feedback for the creator. Not vague — exact issues and suggestions.}
37
+
38
+ ### Veto check
39
+ - {veto condition 1}: passed | triggered
40
+ ```
41
+
42
+ ### Passo 4 — Se aceito
43
+ Marcar phase como completed. Seguir para a próxima.
44
+
45
+ ### Passo 5 — Se rejeitado
46
+ 1. Incrementar retry counter
47
+ 2. Se retry counter > maxRetries → escalate:
48
+ - `human`: pausar e pedir decisão humana
49
+ - `skip`: pular a fase com warning
50
+ - `fail`: falhar o pipeline
51
+ 3. Se ainda tem retries:
52
+ - `feedback` strategy: enviar feedback do reviewer ao executor original
53
+ - `fresh` strategy: re-executar sem contexto do attempt anterior
54
+ - `alternative` strategy: pedir a um executor diferente (se disponível)
55
+ 4. Voltar ao onReject phase ID
56
+
57
+ ## Regras
58
+ - NUNCA permitir mais de maxRetries iterações (hard limit)
59
+ - SEMPRE incluir o feedback do reviewer no retry
60
+ - O reviewer NUNCA deve ser o mesmo executor que criou o output
61
+ - Registrar cada retry no log: attempt number, reason, feedback
@@ -0,0 +1,66 @@
1
+ # Task: Squad Task Decomposition
2
+
3
+ > Guia de decomposição de executores em tasks granulares.
4
+
5
+ ## Quando usar
6
+ - Durante `@squad create`, ao avaliar cada executor
7
+ - `@squad extend` quando o usuário pede task decomposition retroativa
8
+
9
+ ## Formato de um task file
10
+
11
+ Salvar em `.aioson/squads/{squad-slug}/agents/{executor-slug}/tasks/{task-slug}.md`:
12
+
13
+ ```markdown
14
+ # Task: {task-name}
15
+
16
+ > Order: {1, 2, 3...}
17
+ > Executor: @{executor-slug}
18
+ > Input: {what this task receives}
19
+ > Output: {what this task produces}
20
+
21
+ ## Process
22
+ 1. {Step 1 — concrete action}
23
+ 2. {Step 2 — concrete action}
24
+ 3. {Step 3 — concrete action}
25
+
26
+ ## Output Format
27
+ {Schema or description of expected output}
28
+
29
+ ## Output Example
30
+ {15+ lines of realistic output example}
31
+
32
+ ## Quality Criteria
33
+ 1. {Measurable criterion}
34
+ 2. {Measurable criterion}
35
+ 3. {Measurable criterion}
36
+
37
+ ## Veto Conditions
38
+ 1. {Hard block — output CANNOT have this}
39
+ 2. {Hard block — output CANNOT have this}
40
+ ```
41
+
42
+ ## Árvore de decisão
43
+
44
+ ```
45
+ EXECUTOR
46
+ ├── Faz UMA coisa bem? (reviewer, validator, formatter)
47
+ │ └── SEM tasks — o agent file é suficiente
48
+
49
+ ├── Tem processo multi-step repetível?
50
+ │ ├── 2 steps → provavelmente sem tasks (mantenha simples)
51
+ │ ├── 3+ steps com outputs distintos → SIM, decompor em tasks
52
+ │ └── 3+ steps internos → SEM tasks (steps no agent file)
53
+
54
+ ├── As tasks serão reutilizadas?
55
+ │ └── SIM → decompor (reusabilidade)
56
+
57
+ └── Qualidade é crítica e cada step precisa de seus critérios?
58
+ └── SIM → decompor (controle granular de qualidade)
59
+ ```
60
+
61
+ ## Regras
62
+ - Manter o agent file focado na identidade (missão, foco, restrições)
63
+ - Mover detalhes de processo para task files
64
+ - Cada task deve ser independentemente avaliável
65
+ - Tasks executam sequencialmente — output da task N é input da task N+1
66
+ - Adicionar quality criteria por task, não só por executor
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "AIOSON — System router: see the full picture, get guided to the right agent"
3
+ ---
4
+
5
+ Read `.aioson/agents/neo.md` and follow all instructions. $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "AIOSON — Systematic test engineering for implemented apps (all sizes)"
3
+ ---
4
+
5
+ Read `.aioson/agents/tester.md` and follow all instructions. $ARGUMENTS
@@ -8,5 +8,6 @@
8
8
  ## Commands
9
9
  Use command files in `.gemini/commands/` that point to the same agents in `.aioson/agents/`.
10
10
  - Include `aios-ux-ui` for frontend design specification when UI quality is critical.
11
+ - Include `aios-neo` when you want an overview of the project state and guidance on which agent to use next.
11
12
  - Include `aios-deyvin` when you want to continue recent work, inspect what changed, or implement a small slice together.
12
13
  - `aios-pair` remains as a compatibility alias.
@@ -0,0 +1,4 @@
1
+ name = "aios-neo"
2
+ description = "System router — see the full picture, get guided to the right agent"
3
+ instruction_file = ".aioson/agents/neo.md"
4
+ requires_context = []
@@ -0,0 +1,6 @@
1
+ name = "aios-tester"
2
+ description = "Systematic test engineering for implemented apps"
3
+ instruction_file = ".aioson/agents/tester.md"
4
+ requires_context = [
5
+ ".aioson/context/project.context.md"
6
+ ]
@@ -33,6 +33,7 @@ Describe your intent. The agent system will match and execute.
33
33
  | @pm | "create the user stories", "use the pm agent" |
34
34
  | @dev | "implement the feature", "use the dev agent" |
35
35
  | @qa | "write the tests", "use the qa agent" |
36
+ | @neo | "where do I start?", "what should I do next?", "show project status", "guide me", "use the neo agent" |
36
37
  | @orchestrator | "coordinate this session", "use the orchestrator agent" |
37
38
  | @squad | "assemble a squad", "use the squad agent", "montar squad" |
38
39
  | @genome | "generate a genome", "use the genome agent", "gerar genome" |
@@ -81,6 +82,8 @@ When running Codex directly (without `aioson workflow:next`), these rules apply:
81
82
  - @pm → `.aioson/agents/pm.md`
82
83
  - @dev → `.aioson/agents/dev.md`
83
84
  - @qa → `.aioson/agents/qa.md`
85
+ - @tester → `.aioson/agents/tester.md`
86
+ - @neo → `.aioson/agents/neo.md`
84
87
  - @orchestrator → `.aioson/agents/orchestrator.md`
85
88
  - @squad → `.aioson/agents/squad.md`
86
89
  - @genome → `.aioson/agents/genome.md`
@@ -16,11 +16,14 @@ You operate as AIOSON.
16
16
  - /architect -> `.aioson/agents/architect.md`
17
17
  - /ux-ui (UI/UX) -> `.aioson/agents/ux-ui.md`
18
18
  - /product -> `.aioson/agents/product.md`
19
+ - /sheldon -> `.aioson/agents/sheldon.md`
19
20
  - /deyvin -> `.aioson/agents/deyvin.md`
20
21
  - /pair -> `.aioson/agents/deyvin.md` (compatibility alias)
21
22
  - /pm -> `.aioson/agents/pm.md`
22
23
  - /dev -> `.aioson/agents/dev.md`
23
24
  - /qa -> `.aioson/agents/qa.md`
25
+ - /tester -> `.aioson/agents/tester.md`
26
+ - /neo -> `.aioson/agents/neo.md`
24
27
  - /orchestrator -> `.aioson/agents/orchestrator.md`
25
28
  - /squad -> `.aioson/agents/squad.md`
26
29
  - /orache -> `.aioson/agents/orache.md`
@@ -51,8 +54,8 @@ When running Claude Code directly (without `aioson workflow:next`), these rules
51
54
  - Use `aioson runtime:emit . --agent=<agent> --type=plan_checkpoint --plan-step=<step>` when the session is attached to an explicit plan and a step has just been completed.
52
55
  - Use `aioson live:handoff . --agent=<agent> --to=<next-agent> --reason="..."` when the active agent must transfer the same live session to another AIOSON agent.
53
56
  - Monitor active live sessions with `aioson live:status . --agent=<agent> --watch=2` and close them with `aioson live:close . --agent=<agent> --summary="..."`.
54
- - Plain slash-command activation can execute agent instructions, but does not guarantee runtime records in the dashboard by itself.
55
- - Do not try to synthesize dashboard telemetry by emitting `aioson runtime-log` shell snippets from inside the session.
57
+ - Plain slash-command activation registers in the dashboard automatically via `aioson agent:done` at the end of each agent session each agent file has the call in its "Observability" section.
58
+ - Do not call `aioson runtime-log` directly from inside the session — use `aioson agent:done` instead, which is safe in both direct and live-session contexts.
56
59
 
57
60
  ## Golden rule
58
61
  Small project, small solution.
@@ -17,6 +17,8 @@
17
17
  - pm -> `.aioson/agents/pm.md`
18
18
  - dev -> `.aioson/agents/dev.md`
19
19
  - qa -> `.aioson/agents/qa.md`
20
+ - tester -> `.aioson/agents/tester.md`
21
+ - neo -> `.aioson/agents/neo.md`
20
22
  - orchestrator -> `.aioson/agents/orchestrator.md`
21
23
  - squad -> `.aioson/agents/squad.md`
22
24
  - genome -> `.aioson/agents/genome.md`