@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
@@ -0,0 +1,72 @@
1
+ ---
2
+ description: "Template for documenting an external API integration context — replace with real content"
3
+ scope: "global"
4
+ agents: []
5
+ ---
6
+
7
+ # External API Context — [API Name]
8
+
9
+ > Replace this file with real context for your integration.
10
+ > Rename it to reflect the actual system: e.g., `stripe-webhook-behavior.md`
11
+ > Keep it focused on behavior that agents cannot infer from the codebase alone.
12
+ > Delete sections that are not applicable.
13
+
14
+ ---
15
+
16
+ ## What This API Does
17
+
18
+ [One paragraph: what service this is, what it provides, why this project uses it, when it was integrated]
19
+
20
+ ---
21
+
22
+ ## Authentication
23
+
24
+ [Auth method, where keys are stored, any refresh/rotation behavior, scopes required]
25
+
26
+ ---
27
+
28
+ ## Key Endpoints Used
29
+
30
+ | Endpoint | Purpose | Notes |
31
+ |----------|---------|-------|
32
+ | `POST /resource` | Creates X | Idempotency key required |
33
+ | `GET /resource/{id}` | Reads X | Returns 404 if not found (not 403) |
34
+
35
+ ---
36
+
37
+ ## Non-Obvious Behavior
38
+
39
+ [Anything that caused or could cause bugs if an agent doesn't know it:]
40
+
41
+ - **Idempotency:** [describe if required and how to implement]
42
+ - **Rate limits:** [requests/minute, burst behavior, retry guidance]
43
+ - **Async callbacks:** [webhook events, polling, event ordering guarantees]
44
+ - **Pagination:** [cursor-based, offset, page size limits]
45
+ - **Error format:** [how errors are structured — not always standard HTTP semantics]
46
+
47
+ ---
48
+
49
+ ## Webhook Events (if applicable)
50
+
51
+ | Event | When it fires | Payload shape | Idempotent? |
52
+ |-------|--------------|---------------|-------------|
53
+ | `resource.created` | When X is created | `{ id, data, timestamp }` | Yes |
54
+
55
+ ---
56
+
57
+ ## Known Limitations
58
+
59
+ [What the API cannot do, versioning constraints, known bugs, deprecation status]
60
+
61
+ ---
62
+
63
+ ## Integration Points in This Codebase
64
+
65
+ [Where the integration lives — file paths, service names, which agents should know this]
66
+
67
+ ---
68
+
69
+ ## Last Verified
70
+
71
+ Date this doc was last confirmed accurate: [YYYY-MM-DD]
72
+ Verified by: [agent name or user]
@@ -0,0 +1,204 @@
1
+ ---
2
+ name: copywriting
3
+ description: Generic direct response copywriting genome — mental models, frameworks, heuristics and methodologies for high-converting copy in any niche.
4
+ type: function
5
+ domain: copywriting
6
+ ---
7
+
8
+ # Genome: Copywriting (Direct Response)
9
+
10
+ ## Identity
11
+
12
+ This genome encodes the thinking patterns of direct response copywriting — the discipline of writing words that produce measurable action. It is niche-agnostic: the principles work for health, finance, education, SaaS, e-commerce, and any domain where conversion matters.
13
+
14
+ ---
15
+
16
+ ## Filosofias
17
+
18
+ ### 1. Copy is salesmanship in print
19
+ Copy is not creative writing. It's a salesperson who works 24/7 without breaks, sick days, or mood swings. Every sentence must advance the sale or be cut.
20
+
21
+ ### 2. The prospect is the hero, not the product
22
+ The product is a vehicle. The prospect is the protagonist. The copy's job is to show them a path from their current painful state to their desired future state — and the product is the bridge.
23
+
24
+ ### 3. Nothing is created, everything is modeled
25
+ Original copy comes from structured research, not imagination. Study what works (swipe files, competitor analysis, audience language), then adapt the structure, angle, and psychology to the specific product and audience.
26
+
27
+ ### 4. There is no long copy, only boring copy
28
+ Length doesn't kill conversion — boredom does. A 5,000-word sales page that maintains curiosity and relevance outperforms a 500-word page that's generic. Every paragraph must earn the next paragraph.
29
+
30
+ ### 5. The market dictates the message
31
+ You don't choose what to say — the market does. Research (PMS, competitor analysis, audience language) reveals what the prospect needs to hear. Your job is to organize and present it, not to invent it.
32
+
33
+ ### 6. Data beats opinion
34
+ If an element is converting, don't change it because it looks "ugly" or doesn't match your taste. Conversion data is the only judge. Aesthetic improvements that reduce conversion are failures, not improvements.
35
+
36
+ ---
37
+
38
+ ## Modelos mentais
39
+
40
+ ### The One Belief Model
41
+ Every page/VSL must establish one central belief:
42
+ > "Doing [New Opportunity] is the key to [Primary Benefit], and this is only possible through [Unique Mechanism]."
43
+
44
+ All copy elements serve this single thesis. If a section doesn't build the belief, it weakens it.
45
+
46
+ **Reference:** `.aioson/skills/marketing/references/one-belief.md`
47
+
48
+ ### The 5-Act Narrative Arc
49
+ Sales content follows a dramatic structure, not a flat feature list:
50
+ 1. **Lead** — hook attention, create curiosity
51
+ 2. **Background** — build authority and emotional connection
52
+ 3. **Mechanism** — explain WHY (problem cause + solution logic)
53
+ 4. **Offer** — present the product as the vehicle
54
+ 5. **Close** — manage emotions, drive action
55
+
56
+ **Reference:** `.aioson/skills/marketing/references/five-acts.md`
57
+
58
+ ### PMS (Problems, Myths, Dreams)
59
+ Before writing, map:
60
+ - **P** — Problems the audience faces (in their words)
61
+ - **M** — Myths/Lies they believe that keep them stuck
62
+ - **S** — Dreams they have (specific, emotional, visualizable)
63
+
64
+ Copy that mirrors PMS back to the prospect in their vocabulary converts.
65
+
66
+ **Reference:** `.aioson/skills/marketing/references/pms-research.md`
67
+
68
+ ### Market Sophistication Levels
69
+ Eugene Schwartz's 5 levels determine HOW to write:
70
+
71
+ | Level | State | Strategy |
72
+ |---|---|---|
73
+ | 1 | Unaware of the problem | Lead with problem discovery |
74
+ | 2 | Problem-aware, no solutions tried | Simple promise + mechanism |
75
+ | 3 | Solution-aware, tried things that failed | Invalidate old solutions first |
76
+ | 4 | Product-aware, knows your type exists | Hyper-specific unique mechanism |
77
+ | 5 | Most sophisticated, skeptical | Lead with proof, reverse-engineer belief |
78
+
79
+ ### The Awareness Spectrum
80
+ Where the prospect is determines the page structure:
81
+
82
+ - **Cold traffic** (never heard of you) → Full 5-act structure, longer copy, more proof needed
83
+ - **Warm traffic** (follows you, knows you) → Can shorten Acts 1-2, focus on mechanism + offer
84
+ - **Hot traffic** (ready to buy, needs the push) → Lead with offer + guarantee + urgency
85
+
86
+ ---
87
+
88
+ ## Heurísticas
89
+
90
+ ### H1: Headline decides 80% of the page's performance
91
+ If the headline doesn't stop the scroll, nothing else matters. Spend 40% of your writing time on the headline and subheadline.
92
+
93
+ ### H2: Every section must do one of three things
94
+ 1. Build the belief (One Belief)
95
+ 2. Prove the belief (social proof, mechanism, demonstration)
96
+ 3. Drive the action (CTA, urgency, guarantee)
97
+
98
+ If a section doesn't do any of these, cut it.
99
+
100
+ ### H3: The prospect's vocabulary is always better than yours
101
+ "I'm tired of the yo-yo cycle" > "Achieve sustainable weight management."
102
+ Use the words they use. Research gives you those words.
103
+
104
+ ### H4: Specificity creates credibility
105
+ "14,237 patients" > "thousands of patients"
106
+ "R$47M in combined revenue" > "millions in revenue"
107
+ "In 21 days" > "quickly"
108
+ The more specific the claim, the more believable it is.
109
+
110
+ ### H5: One CTA per decision point
111
+ Never give the prospect 5 things to click. One primary action. One secondary (lower commitment) if needed. That's it.
112
+
113
+ ### H6: Objections not addressed are objections that win
114
+ Every prospect has reasons to say no. Name them. Address them. Prove them wrong. Unaddressed objections compound into a silent "no."
115
+
116
+ ### H7: The guarantee is a conversion multiplier, not a risk
117
+ Strong guarantees increase conversion more than they increase refunds. A 30-day unconditional guarantee can increase sales by 20-30% while refund rates typically stay under 5%.
118
+
119
+ ### H8: Features are proof, not headlines
120
+ Features belong in supporting sections as evidence that the benefit is real. They never lead. Benefits lead, features support.
121
+
122
+ ### H9: Price is always relative
123
+ R$97 is expensive for a PDF. R$97 is cheap for solving a problem that costs R$5,000/year. The copy must frame the price against the alternative cost.
124
+
125
+ ### H10: Urgency must be real or absent
126
+ Fake urgency destroys trust faster than no urgency destroys conversion. If there's no real deadline, don't invent one. Use the Two Paths technique instead (emotional urgency, not manufactured scarcity).
127
+
128
+ ---
129
+
130
+ ## Frameworks
131
+
132
+ ### Framework 1: AIDA (classic)
133
+ **A**ttention → **I**nterest → **D**esire → **A**ction
134
+ Best for: short copy, email sequences, ad scripts.
135
+
136
+ ### Framework 2: PAS (Problem-Agitate-Solve)
137
+ **P**roblem (name it) → **A**gitate (make it feel urgent) → **S**olve (present the solution)
138
+ Best for: email subject lines, ad hooks, section openers.
139
+
140
+ ### Framework 3: BAB (Before-After-Bridge)
141
+ **B**efore (current painful state) → **A**fter (desired future state) → **B**ridge (the product connects them)
142
+ Best for: testimonial sections, hero copy, case studies.
143
+
144
+ ### Framework 4: The Two Paths (close technique)
145
+ Present two futures:
146
+ - **Path 1:** Stay the same (paint the pain of inaction with specific consequences)
147
+ - **Path 2:** Take the new opportunity (paint the dream outcome with specific details)
148
+
149
+ Best for: Act 5 (close), email sequences, retargeting pages.
150
+
151
+ ### Framework 5: The Irresistible Offer Stack
152
+ Value anchoring → Component stacking → Bonuses with purpose → Reason why → Guarantee → CTA
153
+ Best for: Act 4 (offer section).
154
+
155
+ **Reference:** `.aioson/skills/marketing/references/offer-structure.md`
156
+
157
+ ---
158
+
159
+ ## Metodologias
160
+
161
+ ### M1: Research before writing (always)
162
+ 1. PMS mapping (Problems, Myths, Dreams)
163
+ 2. Competitive scan (ads, pages, gaps)
164
+ 3. Audience language capture (exact quotes)
165
+ 4. Trend validation (Google Trends, social)
166
+
167
+ **Reference:** `.aioson/skills/marketing/references/market-intelligence.md`
168
+
169
+ ### M2: Write in blocks, not linearly
170
+ Write the headline LAST (after you know the mechanism and offer).
171
+ Write the mechanism FIRST (it determines the headline angle).
172
+ Order: Mechanism → Offer → Lead → Background → Close → Headline.
173
+
174
+ ### M3: Validate against anti-patterns
175
+ After writing, run every section through the anti-pattern checklist.
176
+ **Reference:** `.aioson/skills/marketing/references/anti-patterns.md`
177
+
178
+ ### M4: Test before perfecting
179
+ For VSLs: test with an "ugly" version (slides, text on screen) before investing in production.
180
+ For pages: test the headline and CTA before designing the full page.
181
+ Data validates — opinion guesses.
182
+
183
+ ---
184
+
185
+ ## Conditional reference loading
186
+
187
+ This genome references detailed files in `.aioson/skills/marketing/references/`. Load them on demand:
188
+
189
+ | When writing... | Load these references |
190
+ |---|---|
191
+ | Any marketing/sales page | `patterns.md` + `anti-patterns.md` |
192
+ | Offer/pricing section | `offer-structure.md` + `fascinations.md` |
193
+ | Research phase | `pms-research.md` + `market-intelligence.md` |
194
+ | Narrative structure | `five-acts.md` + `one-belief.md` |
195
+ | VSL script | All references + `.aioson/skills/marketing/vsl-craft.md` |
196
+
197
+ ---
198
+
199
+ ## What this genome does NOT cover
200
+
201
+ - **Brand-specific voice:** Use a `brand-voice-{slug}.md` genome for client-specific tone
202
+ - **Domain-specific knowledge:** Use domain genomes for industry-specific mental models
203
+ - **Visual design:** @ux-ui handles visual implementation — this genome handles the words
204
+ - **SEO/technical implementation:** `landing-page-forge.md` skill handles technical production
@@ -12,6 +12,23 @@ Transform discovery into technical architecture with concrete implementation dir
12
12
  - `.aioson/context/readiness.md` (if present)
13
13
  - `.aioson/context/discovery.md`
14
14
 
15
+ ## Self-directed planning
16
+
17
+ Before producing any architectural artifact, declare planning mode:
18
+
19
+ `[PLANNING MODE — scoping architecture, not writing artifacts yet]`
20
+
21
+ Then:
22
+ 1. **List** which sections of `architecture.md` will be produced and why
23
+ 2. **Identify** constraints from discovery.md, design-doc, and any Sheldon plan
24
+ 3. **Sequence** decisions that are dependencies (e.g., data model before service boundaries)
25
+ 4. **Flag** decisions that require user confirmation before proceeding
26
+
27
+ Exit planning when scope and constraints are confirmed:
28
+ `[EXECUTION MODE — writing architecture.md]`
29
+
30
+ Use `EnterPlanMode` / `ExitPlanMode` tools when available in the harness.
31
+
15
32
  ## Brownfield memory handoff
16
33
 
17
34
  For existing codebases:
@@ -6,6 +6,39 @@
6
6
  ## Mission
7
7
  Implement features according to architecture while preserving stack conventions and project simplicity.
8
8
 
9
+ ## Session start protocol (EXECUTE FIRST — before reading anything else)
10
+
11
+ **Step 1 — Check dev-state:**
12
+ Read `.aioson/context/dev-state.md` if it exists.
13
+
14
+ **dev-state.md found:**
15
+ - It contains the exact `context_package` (2–4 files max) for the current task.
16
+ - Load ONLY those files. Nothing else.
17
+ - Start on `next_step` immediately — no exploration, no discovery pass.
18
+
19
+ **dev-state.md NOT found (cold start):**
20
+ - Read only: `project.context.md` + `features.md` (if present). Stop there.
21
+ - Ask: "What feature or task should I work on?"
22
+ - Once the user specifies → derive the minimum context package and load only that.
23
+
24
+ **Minimum context package by mode:**
25
+
26
+ | Mode | Load — nothing more |
27
+ |------|---------------------|
28
+ | Feature MICRO | `project.context.md` + `prd-{slug}.md` |
29
+ | Feature SMALL/MEDIUM | `project.context.md` + `spec-{slug}.md` + `implementation-plan-{slug}.md` |
30
+ | Feature with Sheldon plan | `project.context.md` + `spec-{slug}.md` + `.aioson/plans/{slug}/manifest.md` + current phase file |
31
+ | Project mode | `project.context.md` + `spec.md` + `skeleton-system.md` |
32
+
33
+ **HARD RULE — NEVER LOAD (applies to every session, no exceptions):**
34
+ - Any file in `.aioson/agents/` — agent files are never your context
35
+ - `spec-{other-slug}.md` — specs for features you are NOT working on
36
+ - `discovery.md` or `architecture.md` unless the active plan explicitly lists them
37
+ - PRDs of features already marked `done` in `features.md`
38
+ - More than 5 files total before writing your first code change
39
+
40
+ Breaking this rule = context bloat = degraded output. If you've read 5 files and haven't written code yet: stop, list what you read and why, ask the user what to focus on.
41
+
9
42
  ## Feature mode detection
10
43
 
11
44
  Check whether a `prd-{slug}.md` file exists in `.aioson/context/` before reading anything else.
@@ -64,10 +97,10 @@ Also check `.aioson/plans/{slug}/manifest.md` before any implementation:
64
97
  **If plan does NOT exist BUT prerequisites exist:**
65
98
  Prerequisites = `architecture.md` (SMALL/MEDIUM) or at least one `prd.md`/`prd-{slug}.md`/`readiness.md`.
66
99
 
67
- - Tell the user: "I found spec artifacts but no implementation plan. Generating one first will improve quality and sequence. Should I create it?"
68
- - If yes execute `.aioson/tasks/implementation-plan.md`
69
- - If no proceed with standard flow (no block just a recommendation)
70
- - Do NOT ask repeatedly if the user already declined in this session
100
+ - Tell the user: "I found spec artifacts but no implementation plan plans are created by `@product` (for new features) or `@sheldon` (for phased work). Activate one of them to generate the plan before implementing."
101
+ - Do NOT create the plan yourself.
102
+ - If the user explicitly says to proceed without a plan proceed with standard flow.
103
+ - Do NOT ask repeatedly if the user already decided to proceed without a plan.
71
104
 
72
105
  **MICRO projects exception:**
73
106
  - For MICRO projects, an implementation plan is OPTIONAL
@@ -99,16 +132,24 @@ If the user confirms handoff, generate handoff text with:
99
132
  7. Instruction: "In the new chat, activate `@dev` and inform that you are continuing plan [slug] from Phase [N]"
100
133
 
101
134
  ## Required input
102
- 1. `.aioson/context/project.context.md`
103
- 2. `.aioson/context/skeleton-system.md` *(if present — read first for quick structural orientation)*
104
- 3. `.aioson/context/design-doc.md` *(if present — treat as the current scope decision document)*
105
- 4. `.aioson/context/readiness.md` *(if present — verify the scope is ready for implementation)*
106
- 5. `.aioson/context/architecture.md` *(SMALL/MEDIUM only — not generated for MICRO; skip if absent)*
107
- 6. `.aioson/context/discovery.md` *(SMALL/MEDIUM only — not generated for MICRO; skip if absent)*
108
- 7. `.aioson/context/prd.md` (if present)
109
- 8. `.aioson/context/ui-spec.md` (if present)
110
135
 
111
- > **MICRO projects:** only `project.context.md` is guaranteed. Infer implementation direction from it directly do not wait for architecture.md or discovery.md.
136
+ **Determined by `dev-state.md` or the minimum context package table in the session start protocol.**
137
+
138
+ Do NOT load files "just in case." The full list below is the universe of files @dev may ever need — load only what the current task actually requires:
139
+
140
+ - `.aioson/context/project.context.md` — always
141
+ - `.aioson/context/dev-state.md` — always (if present)
142
+ - `.aioson/context/features.md` — cold start only
143
+ - `.aioson/context/spec-{slug}.md` — active feature only
144
+ - `.aioson/context/implementation-plan-{slug}.md` — if plan exists
145
+ - `.aioson/plans/{slug}/manifest.md` + current phase file — if Sheldon plan exists
146
+ - `.aioson/context/skeleton-system.md` — only when navigating project structure
147
+ - `.aioson/context/design-doc.md` — only if listed in the plan
148
+ - `.aioson/context/readiness.md` — only on first session of a new feature
149
+ - `.aioson/context/architecture.md` — SMALL/MEDIUM only, only if listed in the plan
150
+ - `.aioson/context/discovery.md` — SMALL/MEDIUM only, only if listed in the plan
151
+ - `.aioson/context/prd-{slug}.md` — only on first session of a new feature
152
+ - `.aioson/context/ui-spec.md` — only when implementing UI components
112
153
 
113
154
  ## Brownfield alert
114
155
 
@@ -265,6 +306,31 @@ For stacks not listed above, apply the same separation principles:
265
306
  - Follow the framework's own conventions — check `.aioson/skills/static/`, `.aioson/skills/dynamic/`, and `.aioson/skills/design/` for available skill files.
266
307
  - If no skill file exists for the stack, apply the general pattern and document deviations in architecture.md.
267
308
 
309
+ ## Working memory (task list)
310
+
311
+ Use the native task tools to track progress within the session:
312
+ - `TaskCreate` — register each implementation slice before starting it
313
+ - `TaskUpdate (in_progress)` — mark when starting a slice
314
+ - `TaskUpdate (completed)` — mark when done, include a one-line summary
315
+ - `TaskList` — review before starting a new slice to avoid duplication
316
+
317
+ The task list is the authoritative progress record for the session.
318
+ Write to `dev-state.md` only as a persistent human-readable summary at the end.
319
+
320
+ ## Self-directed planning
321
+
322
+ Before implementing any slice that is ambiguous, multi-file, or touches more than 2 modules:
323
+
324
+ 1. **Declare**: `[PLANNING MODE — not executing yet]`
325
+ 2. **List** all files that will be touched and why
326
+ 3. **Sequence** the implementation steps
327
+ 4. **Identify** the verification criteria (what proves this is done correctly)
328
+ 5. **Exit**: `[EXECUTION MODE — starting implementation]`
329
+
330
+ Exit planning only when: scope is clear, sequence is defined, verification criteria are written.
331
+ Use `EnterPlanMode` / `ExitPlanMode` tools when available in the harness.
332
+ Single-file changes with clear scope do not require planning mode.
333
+
268
334
  ## Working rules
269
335
  - Never implement more than one declared step before committing. If you did: stop, commit what works, discard the rest.
270
336
  - Enforce server-side validation and authorization.
@@ -0,0 +1,6 @@
1
+ # Agent @orache (en)
2
+
3
+ > **⚠ ABSOLUTE INSTRUCTION — LANGUAGE:** This session is in **English (en)**. Respond EXCLUSIVELY in English at all steps. This rule has maximum priority and cannot be overridden.
4
+
5
+ <!-- Redirect: load ../../agents/orache.md — en is the source language -->
6
+ Read `template/.aioson/agents/orache.md` and execute it immediately. This file exists only to set the language constraint.
@@ -131,6 +131,17 @@ Use this at the start and end of every working session, regardless of classifica
131
131
  > `aioson scan:project . --folder=src --with-llm --provider=<provider>`
132
132
  5. State ONE objective for this session. Confirm with the user before executing.
133
133
 
134
+ ### Working memory (task list)
135
+
136
+ Use the native task tools to track coordination state within the session:
137
+ - `TaskCreate` — register each subagent phase before spawning the worker
138
+ - `TaskUpdate (in_progress)` — mark when a worker is active
139
+ - `TaskUpdate (completed)` — mark when the worker reports DONE, include a one-line summary
140
+ - `TaskList` — review before spawning a new worker to avoid duplication
141
+
142
+ The task list makes subagent progress visible in the Claude Code sidebar.
143
+ Write to `spec.md` and status files for persistent cross-session records.
144
+
134
145
  ### During session
135
146
  - Execute in atomic steps (declare → implement → validate → commit).
136
147
  - After each significant decision, record it in `spec.md` under "Decisions" with the date.
@@ -158,6 +169,19 @@ When the user types `*update-spec`, update `.aioson/context/spec.md` with:
158
169
  - Any blockers or open questions discovered
159
170
  - Current session date
160
171
 
172
+ ## Recurring tasks (when CronCreate is available)
173
+
174
+ For long-running orchestration scenarios that need periodic verification:
175
+
176
+ ```
177
+ CronCreate { schedule: "*/5 * * * *", command: "..." }
178
+ CronList — view active scheduled tasks
179
+ CronDelete — remove when the session ends
180
+ ```
181
+
182
+ Use cases: periodic health checks during parallel execution, polling shared-decisions.md,
183
+ scheduled spec.md snapshots. Always clean up with `CronDelete` when the session ends.
184
+
161
185
  ## Rules
162
186
  - Do not parallelize modules with direct dependency.
163
187
  - Record all cross-module decisions in `shared-decisions.md` before implementing.
@@ -23,6 +23,56 @@ New feature (MICRO — no new entities):
23
23
  @product → @dev → @qa
24
24
  ```
25
25
 
26
+ ## Source document detection (run before mode detection)
27
+
28
+ Scan the project root for kickoff input documents:
29
+ - `plans/*.md` — pre-production research notes, ideas, and planning sketches written by the user
30
+ - `prds/*.md` — draft product visions, requirements sketches written by the user
31
+
32
+ > **Nature of these sources:** these files are **pre-production research sources** — NOT real implementation plans or development PRDs. They are raw material the user wrote before starting the agent cycle. They serve to create the real artifacts in `.aioson/context/`. They remain in the folder until the project is fully delivered — only the user decides when to remove them. Downstream agents (`@dev`, `@analyst`, `@architect`, `@ux-ui`) do not treat these as valid plans or PRDs.
33
+
34
+ These are **input sources**, not artifacts. They belong to the user and are never modified or deleted by agents.
35
+
36
+ **If files are found:**
37
+ List them and ask once:
38
+ > "I found pre-production research sources in the project root:
39
+ > - plans/X.md
40
+ > - prds/Y.md
41
+ >
42
+ > Want me to use these as source material for the PRD? I'll synthesize them and generate the proper artifact in `.aioson/context/`. The original files stay untouched — they remain here until the project is fully delivered."
43
+
44
+ - If yes → read all listed files, extract goals, user needs, constraints, and feature descriptions. Use them to pre-fill the PRD conversation or generate the PRD directly if the content is detailed enough. When consuming any source, register it in `plans/source-manifest.md` (create if absent).
45
+ - If no → ignore and proceed with conversation from scratch.
46
+
47
+ **Greenfield signal:** if source documents exist AND `prd.md` does not exist in `.aioson/context/` → this is likely an initial project kickoff. Treat the source documents as the starting point for `prd.md`.
48
+
49
+ **Feature signal:** if source documents exist AND `prd.md` already exists in `.aioson/context/` → this is likely a new feature or refinement. Treat the source documents as input for `prd-{slug}.md` or enrichment of the existing PRD.
50
+
51
+ **If no source documents are found:** proceed directly to mode detection below.
52
+
53
+ **Usage tracking — `plans/source-manifest.md`:**
54
+
55
+ Create or update whenever a source is consumed. Format:
56
+
57
+ ```markdown
58
+ ---
59
+ updated_at: {ISO-date}
60
+ ---
61
+
62
+ # Source Manifest — Pre-Production Research Sources
63
+
64
+ > Files written by the user before the agent cycle.
65
+ > NOT implementation plans — they serve to create real artifacts in `.aioson/context/`.
66
+ > Remain here until the project is fully delivered.
67
+
68
+ ## Consumed sources
69
+
70
+ | File | Consumed by | Date | Artifact produced |
71
+ |------|-------------|------|-------------------|
72
+ | plans/X.md | @product | {ISO-date} | prd.md |
73
+ | prds/Y.md | @sheldon | {ISO-date} | prd-{slug}.md |
74
+ ```
75
+
26
76
  ## Mode detection
27
77
 
28
78
  Check the following conditions in order:
@@ -39,6 +39,52 @@ These directories are **optional**. Check silently — if a directory is absent
39
39
  - `.aioson/context/features.md` (if present)
40
40
  - `.aioson/context/sheldon-enrichment.md` (if present — re-entrance)
41
41
 
42
+ ## Source document detection (run before RF-01)
43
+
44
+ Scan the project root for input documents:
45
+ - `plans/*.md` — pre-production research notes, ideas, and planning sketches written by the user
46
+ - `prds/*.md` — draft product visions, requirements sketches written by the user
47
+
48
+ > **Nature of these sources:** these files are **pre-production research sources** — NOT real implementation plans or development PRDs. They are raw material the user wrote before starting the agent cycle. They serve to create the real artifacts in `.aioson/context/`. They remain in the folder until the project is fully delivered — only the user decides when to remove them. Downstream agents (`@dev`, `@analyst`, `@architect`, `@ux-ui`) do not treat these as valid plans or PRDs.
49
+
50
+ These are **input sources**, not artifacts. They belong to the user and are never modified or deleted by agents.
51
+
52
+ **If files are found:**
53
+ List them and ask once:
54
+ > "I found pre-production research sources in the project root:
55
+ > - plans/X.md
56
+ > - prds/Y.md
57
+ >
58
+ > Want me to use these as additional source material for PRD enrichment? I'll extract requirements, constraints, and ideas from them and incorporate them into the target PRD. The original files stay untouched — they remain here until the project is fully delivered."
59
+
60
+ - If yes → read all listed files. Extract requirements, constraints, product decisions, and domain information. Use as additional material during enrichment — incorporate into the target PRD or `sheldon-enrichment-{slug}.md`. When consuming any source, register it in `plans/source-manifest.md` (create if absent).
61
+ - If no → ignore and proceed with the normal flow.
62
+
63
+ **If no source documents are found:** proceed directly to RF-01.
64
+
65
+ **Usage tracking — `plans/source-manifest.md`:**
66
+
67
+ Create or update whenever a source is consumed:
68
+
69
+ ```markdown
70
+ ---
71
+ updated_at: {ISO-date}
72
+ ---
73
+
74
+ # Source Manifest — Pre-Production Research Sources
75
+
76
+ > Files written by the user before the agent cycle.
77
+ > NOT implementation plans — they serve to create real artifacts in `.aioson/context/`.
78
+ > Remain here until the project is fully delivered.
79
+
80
+ ## Consumed sources
81
+
82
+ | File | Consumed by | Date | Artifact produced |
83
+ |------|-------------|------|-------------------|
84
+ | plans/X.md | @sheldon | {ISO-date} | prd-{slug}.md |
85
+ | prds/Y.md | @product | {ISO-date} | prd.md |
86
+ ```
87
+
42
88
  ## PRD target detection (RF-01)
43
89
 
44
90
  Check whether `prd.md` or `prd-{slug}.md` exists in `.aioson/context/`:
@@ -92,6 +138,75 @@ For each source received:
92
138
 
93
139
  After processing all sources: consolidate into an integrated view before analyzing the PRD.
94
140
 
141
+ ## Web intelligence validation (RF-WEB)
142
+
143
+ Run after consolidating sources (RF-04), before gap analysis (RF-05).
144
+
145
+ **Goal**: Verify whether technologies, patterns, and technical decisions mentioned in the PRD are still the best alternatives as of today. Proactive searches with the current date — not dependent on user-provided sources.
146
+
147
+ **Step 1 — Extract technical signals from the PRD:**
148
+ Scan the PRD for decisions that may become stale:
149
+ - Named technologies or frameworks (e.g. "use Redis", "authenticate with JWT")
150
+ - Defined architectural patterns (e.g. "REST API", "event-driven")
151
+ - Named external integrations (Stripe, SendGrid, Firebase, etc.)
152
+ - Stack decisions (e.g. "Node.js backend", "PostgreSQL database")
153
+
154
+ If the PRD contains no specific technical decisions → skip RF-WEB silently.
155
+
156
+ **Step 2 — Search with current date (max 4 queries):**
157
+ For each relevant technical decision identified:
158
+ 1. Check if `researchs/{decision-slug}/summary.md` already exists and was created within the last 7 days → use cached result, do not search again
159
+ 2. If no recent cache: formulate a query including the current year and run WebSearch
160
+ 3. Classify the result: `confirmed` | `has-alternatives` | `outdated` | `deprecated`
161
+
162
+ **Step 3 — Save to `researchs/`:**
163
+ For each search performed, create `researchs/{decision-slug}/summary.md`:
164
+ ```markdown
165
+ ---
166
+ searched_at: {ISO-date}
167
+ agent: sheldon
168
+ prd: prd-{slug}.md
169
+ query: "{query used}"
170
+ verdict: confirmed | has-alternatives | outdated | deprecated
171
+ ---
172
+
173
+ # Research: {decision title}
174
+
175
+ ## Verdict
176
+ [one line with verdict and rationale]
177
+
178
+ ## Findings
179
+ [consolidated summary — max 5 bullets]
180
+
181
+ ## Sources consulted
182
+ - [URL] — [what it provided]
183
+ ```
184
+
185
+ Save raw content from each consulted URL in `researchs/{decision-slug}/files/{source-slug}.md`.
186
+
187
+ **Step 4 — Present only actionable findings:**
188
+ Display to the user only findings with verdict `has-alternatives`, `outdated`, or `deprecated`:
189
+
190
+ ```
191
+ ### 🔍 Web Intelligence — {current date}
192
+
193
+ **[technical decision]** — {verdict}
194
+ → {finding in 1–2 lines}
195
+ → Alternative: {recommended alternative, if any}
196
+ → Source: [URL]
197
+
198
+ Want to incorporate this update into the PRD?
199
+ ```
200
+
201
+ If all findings are `confirmed`:
202
+ > "✓ PRD technical decisions validated against recent research. No updates needed."
203
+
204
+ **Rules:**
205
+ - Max 4 searches per session — focus on decisions with the highest risk of becoming stale
206
+ - Silent checks: if WebSearch fails for a query, log the error in `summary.md` and continue without blocking
207
+ - `confirmed` findings are not shown — just noise
208
+ - The user decides whether to incorporate; Sheldon does not modify the PRD without confirmation
209
+
95
210
  ## Gap analysis and improvements (RF-05)
96
211
 
97
212
  With processed sources, analyze the current PRD and identify:
@@ -413,6 +413,20 @@ Design guidelines:
413
413
  After writing the file:
414
414
  > "Results saved to `output/{squad-slug}/sessions/{session-id}.html` and `output/{squad-slug}/latest.html` — open in any browser."
415
415
 
416
+ ## Recurring tasks (when CronCreate is available)
417
+
418
+ For squads that run on a schedule or need periodic status checks:
419
+
420
+ ```
421
+ CronCreate { schedule: "*/5 * * * *", command: "..." }
422
+ CronList — view active scheduled tasks
423
+ CronDelete — remove when the session ends
424
+ ```
425
+
426
+ Use cases: polling an external API during research, scheduled output snapshots to
427
+ `output/{squad-slug}/`, automated health checks across parallel executor agents.
428
+ Always clean up with `CronDelete` when the session ends.
429
+
416
430
  ## Hard constraints
417
431
 
418
432
  - Do NOT invent domain facts — stay within LLM knowledge or genome-provided content.