aios-core 2.1.6 → 2.2.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 (367) hide show
  1. package/.aios-core/core/README.md +229 -229
  2. package/.aios-core/core/data/agent-config-requirements.yaml +368 -368
  3. package/.aios-core/core/data/aios-kb.md +923 -923
  4. package/.aios-core/core/data/workflow-patterns.yaml +267 -267
  5. package/.aios-core/core/docs/SHARD-TRANSLATION-GUIDE.md +335 -335
  6. package/.aios-core/core/docs/component-creation-guide.md +457 -457
  7. package/.aios-core/core/docs/session-update-pattern.md +307 -307
  8. package/.aios-core/core/docs/template-syntax.md +266 -266
  9. package/.aios-core/core/docs/troubleshooting-guide.md +624 -624
  10. package/.aios-core/core/elicitation/elicitation-engine.js +1 -1
  11. package/.aios-core/core/index.esm.js +42 -42
  12. package/.aios-core/core/index.js +1 -1
  13. package/.aios-core/core/migration/migration-config.yaml +83 -83
  14. package/.aios-core/core/migration/module-mapping.yaml +89 -89
  15. package/.aios-core/core/quality-gates/layer2-pr-automation.js +1 -1
  16. package/.aios-core/core/quality-gates/quality-gate-config.yaml +86 -86
  17. package/.aios-core/core/registry/README.md +179 -179
  18. package/.aios-core/core/utils/security-utils.js +1 -1
  19. package/.aios-core/core-config.yaml +391 -382
  20. package/.aios-core/data/agent-config-requirements.yaml +368 -368
  21. package/.aios-core/data/aios-kb.md +923 -923
  22. package/.aios-core/data/technical-preferences.md +3 -3
  23. package/.aios-core/data/workflow-patterns.yaml +267 -267
  24. package/.aios-core/development/README.md +142 -142
  25. package/.aios-core/development/agent-teams/team-all.yaml +15 -15
  26. package/.aios-core/development/agent-teams/team-fullstack.yaml +18 -18
  27. package/.aios-core/development/agent-teams/team-ide-minimal.yaml +10 -10
  28. package/.aios-core/development/agent-teams/team-no-ui.yaml +13 -13
  29. package/.aios-core/development/agent-teams/team-qa-focused.yaml +155 -155
  30. package/.aios-core/development/agents/aios-master.md +339 -339
  31. package/.aios-core/development/agents/analyst.md +195 -195
  32. package/.aios-core/development/agents/architect.md +359 -359
  33. package/.aios-core/development/agents/data-engineer.md +468 -468
  34. package/.aios-core/development/agents/dev.md +390 -390
  35. package/.aios-core/development/agents/devops.md +398 -398
  36. package/.aios-core/development/agents/pm.md +198 -198
  37. package/.aios-core/development/agents/po.md +256 -256
  38. package/.aios-core/development/agents/qa.md +312 -312
  39. package/.aios-core/development/agents/sm.md +220 -220
  40. package/.aios-core/development/agents/ux-design-expert.md +451 -451
  41. package/.aios-core/development/scripts/greeting-config-cli.js +85 -85
  42. package/.aios-core/development/tasks/add-mcp.md +319 -319
  43. package/.aios-core/development/tasks/advanced-elicitation.md +318 -318
  44. package/.aios-core/development/tasks/analyst-facilitate-brainstorming.md +341 -341
  45. package/.aios-core/development/tasks/analyze-framework.md +696 -696
  46. package/.aios-core/development/tasks/analyze-performance.md +637 -637
  47. package/.aios-core/development/tasks/apply-qa-fixes.md +340 -340
  48. package/.aios-core/development/tasks/architect-analyze-impact.md +826 -826
  49. package/.aios-core/development/tasks/audit-codebase.md +429 -429
  50. package/.aios-core/development/tasks/audit-tailwind-config.md +270 -270
  51. package/.aios-core/development/tasks/audit-utilities.md +358 -358
  52. package/.aios-core/development/tasks/bootstrap-shadcn-library.md +286 -286
  53. package/.aios-core/development/tasks/brownfield-create-epic.md +485 -485
  54. package/.aios-core/development/tasks/brownfield-create-story.md +356 -356
  55. package/.aios-core/development/tasks/build-component.md +478 -478
  56. package/.aios-core/development/tasks/calculate-roi.md +455 -455
  57. package/.aios-core/development/tasks/ci-cd-configuration.md +764 -764
  58. package/.aios-core/development/tasks/cleanup-utilities.md +670 -670
  59. package/.aios-core/development/tasks/collaborative-edit.md +1108 -1108
  60. package/.aios-core/development/tasks/compose-molecule.md +284 -284
  61. package/.aios-core/development/tasks/consolidate-patterns.md +414 -414
  62. package/.aios-core/development/tasks/correct-course.md +279 -279
  63. package/.aios-core/development/tasks/create-agent.md +321 -321
  64. package/.aios-core/development/tasks/create-brownfield-story.md +726 -726
  65. package/.aios-core/development/tasks/create-deep-research-prompt.md +498 -498
  66. package/.aios-core/development/tasks/create-doc.md +316 -316
  67. package/.aios-core/development/tasks/create-next-story.md +774 -774
  68. package/.aios-core/development/tasks/create-suite.md +283 -283
  69. package/.aios-core/development/tasks/create-task.md +371 -371
  70. package/.aios-core/development/tasks/create-workflow.md +370 -370
  71. package/.aios-core/development/tasks/db-analyze-hotpaths.md +572 -572
  72. package/.aios-core/development/tasks/db-apply-migration.md +381 -381
  73. package/.aios-core/development/tasks/db-bootstrap.md +642 -642
  74. package/.aios-core/development/tasks/db-domain-modeling.md +693 -693
  75. package/.aios-core/development/tasks/db-dry-run.md +293 -293
  76. package/.aios-core/development/tasks/db-env-check.md +260 -260
  77. package/.aios-core/development/tasks/db-expansion-pack-integration.md +663 -663
  78. package/.aios-core/development/tasks/db-explain.md +631 -631
  79. package/.aios-core/development/tasks/db-impersonate.md +495 -495
  80. package/.aios-core/development/tasks/db-load-csv.md +593 -593
  81. package/.aios-core/development/tasks/db-policy-apply.md +653 -653
  82. package/.aios-core/development/tasks/db-rls-audit.md +411 -411
  83. package/.aios-core/development/tasks/db-rollback.md +739 -739
  84. package/.aios-core/development/tasks/db-run-sql.md +613 -613
  85. package/.aios-core/development/tasks/db-schema-audit.md +1011 -1011
  86. package/.aios-core/development/tasks/db-seed.md +390 -390
  87. package/.aios-core/development/tasks/db-smoke-test.md +351 -351
  88. package/.aios-core/development/tasks/db-snapshot.md +569 -569
  89. package/.aios-core/development/tasks/db-supabase-setup.md +712 -712
  90. package/.aios-core/development/tasks/db-verify-order.md +515 -515
  91. package/.aios-core/development/tasks/deprecate-component.md +956 -956
  92. package/.aios-core/development/tasks/dev-apply-qa-fixes.md +318 -318
  93. package/.aios-core/development/tasks/dev-backlog-debt.md +469 -469
  94. package/.aios-core/development/tasks/dev-develop-story.md +846 -846
  95. package/.aios-core/development/tasks/dev-improve-code-quality.md +872 -872
  96. package/.aios-core/development/tasks/dev-optimize-performance.md +1033 -1033
  97. package/.aios-core/development/tasks/dev-suggest-refactoring.md +870 -870
  98. package/.aios-core/development/tasks/dev-validate-next-story.md +348 -348
  99. package/.aios-core/development/tasks/document-project.md +552 -552
  100. package/.aios-core/development/tasks/environment-bootstrap.md +1311 -1311
  101. package/.aios-core/development/tasks/execute-checklist.md +301 -301
  102. package/.aios-core/development/tasks/export-design-tokens-dtcg.md +274 -274
  103. package/.aios-core/development/tasks/extend-pattern.md +269 -269
  104. package/.aios-core/development/tasks/extract-tokens.md +467 -467
  105. package/.aios-core/development/tasks/facilitate-brainstorming-session.md +518 -518
  106. package/.aios-core/development/tasks/generate-ai-frontend-prompt.md +260 -260
  107. package/.aios-core/development/tasks/generate-documentation.md +284 -284
  108. package/.aios-core/development/tasks/generate-migration-strategy.md +522 -522
  109. package/.aios-core/development/tasks/generate-shock-report.md +501 -501
  110. package/.aios-core/development/tasks/github-devops-github-pr-automation.md +427 -427
  111. package/.aios-core/development/tasks/github-devops-pre-push-quality-gate.md +733 -733
  112. package/.aios-core/development/tasks/github-devops-repository-cleanup.md +374 -374
  113. package/.aios-core/development/tasks/github-devops-version-management.md +483 -483
  114. package/.aios-core/development/tasks/improve-self.md +822 -822
  115. package/.aios-core/development/tasks/index-docs.md +387 -387
  116. package/.aios-core/development/tasks/init-project-status.md +506 -506
  117. package/.aios-core/development/tasks/integrate-expansion-pack.md +314 -314
  118. package/.aios-core/development/tasks/kb-mode-interaction.md +283 -283
  119. package/.aios-core/development/tasks/learn-patterns.md +900 -900
  120. package/.aios-core/development/tasks/mcp-workflow.md +437 -437
  121. package/.aios-core/development/tasks/modify-agent.md +381 -381
  122. package/.aios-core/development/tasks/modify-task.md +424 -424
  123. package/.aios-core/development/tasks/modify-workflow.md +465 -465
  124. package/.aios-core/development/tasks/po-backlog-add.md +370 -370
  125. package/.aios-core/development/tasks/po-manage-story-backlog.md +523 -523
  126. package/.aios-core/development/tasks/po-pull-story-from-clickup.md +540 -540
  127. package/.aios-core/development/tasks/po-pull-story.md +316 -316
  128. package/.aios-core/development/tasks/po-stories-index.md +351 -351
  129. package/.aios-core/development/tasks/po-sync-story-to-clickup.md +457 -457
  130. package/.aios-core/development/tasks/po-sync-story.md +303 -303
  131. package/.aios-core/development/tasks/pr-automation.md +701 -701
  132. package/.aios-core/development/tasks/propose-modification.md +842 -842
  133. package/.aios-core/development/tasks/qa-backlog-add-followup.md +425 -425
  134. package/.aios-core/development/tasks/qa-gate.md +373 -373
  135. package/.aios-core/development/tasks/qa-generate-tests.md +1174 -1174
  136. package/.aios-core/development/tasks/qa-nfr-assess.md +557 -557
  137. package/.aios-core/development/tasks/qa-review-proposal.md +1157 -1157
  138. package/.aios-core/development/tasks/qa-review-story.md +682 -682
  139. package/.aios-core/development/tasks/qa-risk-profile.md +566 -566
  140. package/.aios-core/development/tasks/qa-run-tests.md +277 -277
  141. package/.aios-core/development/tasks/qa-test-design.md +387 -387
  142. package/.aios-core/development/tasks/qa-trace-requirements.md +476 -476
  143. package/.aios-core/development/tasks/release-management.md +723 -723
  144. package/.aios-core/development/tasks/security-audit.md +554 -554
  145. package/.aios-core/development/tasks/security-scan.md +790 -790
  146. package/.aios-core/development/tasks/setup-database.md +741 -741
  147. package/.aios-core/development/tasks/setup-design-system.md +462 -462
  148. package/.aios-core/development/tasks/setup-github.md +874 -874
  149. package/.aios-core/development/tasks/setup-llm-routing.md +1 -1
  150. package/.aios-core/development/tasks/setup-mcp-docker.md +584 -584
  151. package/.aios-core/development/tasks/setup-project-docs.md +1 -1
  152. package/.aios-core/development/tasks/shard-doc.md +537 -537
  153. package/.aios-core/development/tasks/sm-create-next-story.md +480 -480
  154. package/.aios-core/development/tasks/sync-documentation.md +864 -864
  155. package/.aios-core/development/tasks/tailwind-upgrade.md +294 -294
  156. package/.aios-core/development/tasks/test-as-user.md +621 -621
  157. package/.aios-core/development/tasks/test-validation-task.md +171 -171
  158. package/.aios-core/development/tasks/undo-last.md +346 -346
  159. package/.aios-core/development/tasks/update-manifest.md +409 -409
  160. package/.aios-core/development/tasks/ux-create-wireframe.md +617 -617
  161. package/.aios-core/development/tasks/ux-ds-scan-artifact.md +672 -672
  162. package/.aios-core/development/tasks/ux-user-research.md +559 -559
  163. package/.aios-core/development/tasks/validate-next-story.md +422 -422
  164. package/.aios-core/development/workflows/README.md +83 -83
  165. package/.aios-core/development/workflows/brownfield-fullstack.yaml +297 -297
  166. package/.aios-core/development/workflows/brownfield-service.yaml +187 -187
  167. package/.aios-core/development/workflows/brownfield-ui.yaml +197 -197
  168. package/.aios-core/development/workflows/greenfield-fullstack.yaml +333 -333
  169. package/.aios-core/development/workflows/greenfield-service.yaml +206 -206
  170. package/.aios-core/development/workflows/greenfield-ui.yaml +235 -235
  171. package/.aios-core/docs/SHARD-TRANSLATION-GUIDE.md +335 -335
  172. package/.aios-core/docs/component-creation-guide.md +457 -457
  173. package/.aios-core/docs/session-update-pattern.md +307 -307
  174. package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +572 -572
  175. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +185 -185
  176. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +354 -354
  177. package/.aios-core/docs/standards/AIOS-FRAMEWORK-MASTER.md +1963 -1963
  178. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +821 -821
  179. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md +1190 -1190
  180. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1.md +439 -439
  181. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +1339 -1339
  182. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO.md +5398 -5398
  183. package/.aios-core/docs/standards/EXECUTOR-DECISION-TREE.md +697 -697
  184. package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +511 -511
  185. package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +556 -556
  186. package/.aios-core/docs/standards/STANDARDS-INDEX.md +210 -210
  187. package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +550 -550
  188. package/.aios-core/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1414 -1414
  189. package/.aios-core/docs/standards/V3-ARCHITECTURAL-DECISIONS.md +523 -523
  190. package/.aios-core/docs/template-syntax.md +266 -266
  191. package/.aios-core/docs/troubleshooting-guide.md +624 -624
  192. package/.aios-core/index.esm.js +15 -15
  193. package/.aios-core/index.js +1 -1
  194. package/.aios-core/infrastructure/README.md +126 -126
  195. package/.aios-core/infrastructure/integrations/pm-adapters/README.md +59 -59
  196. package/.aios-core/infrastructure/scripts/approval-workflow.js +1 -1
  197. package/.aios-core/infrastructure/scripts/batch-creator.js +1 -1
  198. package/.aios-core/infrastructure/scripts/component-generator.js +3 -3
  199. package/.aios-core/infrastructure/scripts/component-metadata.js +1 -1
  200. package/.aios-core/infrastructure/scripts/component-search.js +1 -1
  201. package/.aios-core/infrastructure/scripts/coverage-analyzer.js +1 -1
  202. package/.aios-core/infrastructure/scripts/dependency-analyzer.js +1 -1
  203. package/.aios-core/infrastructure/scripts/dependency-impact-analyzer.js +1 -1
  204. package/.aios-core/infrastructure/scripts/framework-analyzer.js +1 -1
  205. package/.aios-core/infrastructure/scripts/improvement-engine.js +1 -1
  206. package/.aios-core/infrastructure/scripts/llm-routing/install-llm-routing.js +26 -13
  207. package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.cmd +127 -0
  208. package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +108 -0
  209. package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.cmd +71 -0
  210. package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +65 -0
  211. package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.cmd +51 -0
  212. package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +16 -0
  213. package/.aios-core/infrastructure/scripts/llm-routing/usage-tracker/index.js +549 -0
  214. package/.aios-core/infrastructure/scripts/modification-risk-assessment.js +1 -1
  215. package/.aios-core/infrastructure/scripts/performance-analyzer.js +1 -1
  216. package/.aios-core/infrastructure/scripts/pm-adapter.js +134 -134
  217. package/.aios-core/infrastructure/scripts/repository-detector.js +3 -3
  218. package/.aios-core/infrastructure/scripts/template-engine.js +1 -1
  219. package/.aios-core/infrastructure/scripts/template-validator.js +1 -1
  220. package/.aios-core/infrastructure/scripts/test-generator.js +1 -1
  221. package/.aios-core/infrastructure/scripts/test-quality-assessment.js +1 -1
  222. package/.aios-core/infrastructure/scripts/transaction-manager.js +1 -1
  223. package/.aios-core/infrastructure/scripts/usage-analytics.js +1 -1
  224. package/.aios-core/infrastructure/scripts/visual-impact-generator.js +2 -2
  225. package/.aios-core/infrastructure/templates/github-workflows/README.md +109 -109
  226. package/.aios-core/infrastructure/tests/regression-suite-v2.md +621 -621
  227. package/.aios-core/infrastructure/tools/README.md +222 -222
  228. package/.aios-core/infrastructure/tools/cli/github-cli.yaml +200 -200
  229. package/.aios-core/infrastructure/tools/cli/railway-cli.yaml +260 -260
  230. package/.aios-core/infrastructure/tools/cli/supabase-cli.yaml +224 -224
  231. package/.aios-core/infrastructure/tools/local/ffmpeg.yaml +261 -261
  232. package/.aios-core/infrastructure/tools/mcp/21st-dev-magic.yaml +127 -127
  233. package/.aios-core/infrastructure/tools/mcp/browser.yaml +103 -103
  234. package/.aios-core/infrastructure/tools/mcp/clickup.yaml +534 -534
  235. package/.aios-core/infrastructure/tools/mcp/context7.yaml +78 -78
  236. package/.aios-core/infrastructure/tools/mcp/desktop-commander.yaml +180 -180
  237. package/.aios-core/infrastructure/tools/mcp/exa.yaml +103 -103
  238. package/.aios-core/infrastructure/tools/mcp/google-workspace.yaml +930 -930
  239. package/.aios-core/infrastructure/tools/mcp/n8n.yaml +551 -551
  240. package/.aios-core/infrastructure/tools/mcp/supabase.yaml +808 -808
  241. package/.aios-core/install-manifest.yaml +347 -347
  242. package/.aios-core/product/README.md +56 -56
  243. package/.aios-core/product/checklists/accessibility-wcag-checklist.md +80 -0
  244. package/.aios-core/product/checklists/architect-checklist.md +443 -443
  245. package/.aios-core/product/checklists/change-checklist.md +182 -182
  246. package/.aios-core/product/checklists/component-quality-checklist.md +74 -0
  247. package/.aios-core/product/checklists/database-design-checklist.md +119 -119
  248. package/.aios-core/product/checklists/dba-predeploy-checklist.md +97 -97
  249. package/.aios-core/product/checklists/dba-rollback-checklist.md +99 -99
  250. package/.aios-core/product/checklists/migration-readiness-checklist.md +75 -0
  251. package/.aios-core/product/checklists/pattern-audit-checklist.md +88 -0
  252. package/.aios-core/product/checklists/pm-checklist.md +375 -375
  253. package/.aios-core/product/checklists/po-master-checklist.md +441 -441
  254. package/.aios-core/product/checklists/pre-push-checklist.md +108 -108
  255. package/.aios-core/product/checklists/release-checklist.md +122 -122
  256. package/.aios-core/product/checklists/story-dod-checklist.md +101 -101
  257. package/.aios-core/product/checklists/story-draft-checklist.md +215 -215
  258. package/.aios-core/product/data/atomic-design-principles.md +108 -0
  259. package/.aios-core/product/data/brainstorming-techniques.md +36 -36
  260. package/.aios-core/product/data/consolidation-algorithms.md +142 -0
  261. package/.aios-core/product/data/database-best-practices.md +182 -0
  262. package/.aios-core/product/data/design-token-best-practices.md +107 -0
  263. package/.aios-core/product/data/elicitation-methods.md +134 -134
  264. package/.aios-core/product/data/integration-patterns.md +207 -0
  265. package/.aios-core/product/data/migration-safety-guide.md +329 -0
  266. package/.aios-core/product/data/mode-selection-best-practices.md +471 -471
  267. package/.aios-core/product/data/postgres-tuning-guide.md +300 -0
  268. package/.aios-core/product/data/rls-security-patterns.md +333 -0
  269. package/.aios-core/product/data/roi-calculation-guide.md +142 -0
  270. package/.aios-core/product/data/supabase-patterns.md +330 -0
  271. package/.aios-core/product/data/test-levels-framework.md +148 -148
  272. package/.aios-core/product/data/test-priorities-matrix.md +174 -174
  273. package/.aios-core/product/data/wcag-compliance-guide.md +267 -0
  274. package/.aios-core/product/templates/1mcp-config.yaml +225 -225
  275. package/.aios-core/product/templates/activation-instructions-inline-greeting.yaml +63 -63
  276. package/.aios-core/product/templates/activation-instructions-template.md +258 -258
  277. package/.aios-core/product/templates/agent-template.yaml +120 -120
  278. package/.aios-core/product/templates/architecture-tmpl.yaml +650 -650
  279. package/.aios-core/product/templates/brainstorming-output-tmpl.yaml +155 -155
  280. package/.aios-core/product/templates/brownfield-architecture-tmpl.yaml +475 -475
  281. package/.aios-core/product/templates/brownfield-prd-tmpl.yaml +279 -279
  282. package/.aios-core/product/templates/changelog-template.md +134 -134
  283. package/.aios-core/product/templates/command-rationalization-matrix.md +152 -152
  284. package/.aios-core/product/templates/competitor-analysis-tmpl.yaml +292 -292
  285. package/.aios-core/product/templates/design-story-tmpl.yaml +587 -587
  286. package/.aios-core/product/templates/ds-artifact-analysis.md +70 -70
  287. package/.aios-core/product/templates/front-end-architecture-tmpl.yaml +205 -205
  288. package/.aios-core/product/templates/front-end-spec-tmpl.yaml +348 -348
  289. package/.aios-core/product/templates/fullstack-architecture-tmpl.yaml +804 -804
  290. package/.aios-core/product/templates/github-pr-template.md +67 -67
  291. package/.aios-core/product/templates/gordon-mcp.yaml +140 -140
  292. package/.aios-core/product/templates/ide-rules/antigravity-rules.md +115 -115
  293. package/.aios-core/product/templates/ide-rules/claude-rules.md +221 -221
  294. package/.aios-core/product/templates/ide-rules/cline-rules.md +84 -84
  295. package/.aios-core/product/templates/ide-rules/copilot-rules.md +92 -92
  296. package/.aios-core/product/templates/ide-rules/cursor-rules.md +115 -115
  297. package/.aios-core/product/templates/ide-rules/gemini-rules.md +85 -85
  298. package/.aios-core/product/templates/ide-rules/roo-rules.md +86 -86
  299. package/.aios-core/product/templates/ide-rules/trae-rules.md +104 -104
  300. package/.aios-core/product/templates/ide-rules/windsurf-rules.md +80 -80
  301. package/.aios-core/product/templates/index-strategy-tmpl.yaml +53 -53
  302. package/.aios-core/product/templates/market-research-tmpl.yaml +251 -251
  303. package/.aios-core/product/templates/mcp-workflow.js +271 -271
  304. package/.aios-core/product/templates/migration-plan-tmpl.yaml +1022 -1022
  305. package/.aios-core/product/templates/migration-strategy-tmpl.md +524 -524
  306. package/.aios-core/product/templates/personalized-agent-template.md +258 -258
  307. package/.aios-core/product/templates/personalized-checklist-template.md +340 -340
  308. package/.aios-core/product/templates/personalized-task-template-v2.md +905 -905
  309. package/.aios-core/product/templates/personalized-task-template.md +344 -344
  310. package/.aios-core/product/templates/personalized-template-file.yaml +322 -322
  311. package/.aios-core/product/templates/personalized-workflow-template.yaml +460 -460
  312. package/.aios-core/product/templates/prd-tmpl.yaml +201 -201
  313. package/.aios-core/product/templates/project-brief-tmpl.yaml +220 -220
  314. package/.aios-core/product/templates/qa-gate-tmpl.yaml +240 -240
  315. package/.aios-core/product/templates/rls-policies-tmpl.yaml +1203 -1203
  316. package/.aios-core/product/templates/schema-design-tmpl.yaml +428 -428
  317. package/.aios-core/product/templates/state-persistence-tmpl.yaml +219 -219
  318. package/.aios-core/product/templates/story-tmpl.yaml +331 -331
  319. package/.aios-core/product/templates/task-execution-report.md +495 -495
  320. package/.aios-core/product/templates/task-template.md +122 -122
  321. package/.aios-core/product/templates/token-exports-tailwind-tmpl.js +395 -395
  322. package/.aios-core/product/templates/tokens-schema-tmpl.yaml +305 -305
  323. package/.aios-core/product/templates/workflow-template.yaml +133 -133
  324. package/.aios-core/scripts/README.md +354 -354
  325. package/.aios-core/scripts/aios-doc-template.md +325 -325
  326. package/.aios-core/scripts/elicitation-engine.js +1 -1
  327. package/.aios-core/scripts/test-template-system.js +1 -1
  328. package/.aios-core/scripts/workflow-management.md +69 -69
  329. package/.aios-core/user-guide.md +1413 -1413
  330. package/.aios-core/working-in-the-brownfield.md +361 -361
  331. package/LICENSE +1 -1
  332. package/README.md +702 -703
  333. package/bin/aios-init-old.js +3 -3
  334. package/bin/aios-init-v4.js +1 -1
  335. package/bin/aios-init.backup-v1.1.4.js +1 -1
  336. package/bin/aios-init.js +3 -3
  337. package/bin/aios.js +279 -279
  338. package/bin/utils/install-errors.js +339 -339
  339. package/bin/utils/install-transaction.js +445 -445
  340. package/index.d.ts +18 -18
  341. package/index.esm.js +20 -20
  342. package/index.js +6 -6
  343. package/package.json +8 -10
  344. package/packages/installer/src/config/templates/env-template.js +27 -4
  345. package/packages/installer/src/detection/detect-project-type.js +81 -81
  346. package/packages/installer/tests/integration/wizard-detection.test.js +8 -6
  347. package/packages/installer/tests/unit/env-template.test.js +8 -8
  348. package/src/config/ide-configs.js +1 -1
  349. package/src/wizard/feedback.js +2 -2
  350. package/src/wizard/index.js +1 -1
  351. package/src/wizard/validation/report-generator.js +1 -1
  352. package/src/wizard/validation/troubleshooting-system.js +13 -13
  353. package/.aios-core/infrastructure/scripts/_archived/final-todo-count.js +0 -122
  354. package/.aios-core/infrastructure/scripts/_archived/fix-yaml-formatting.js +0 -89
  355. package/.aios-core/infrastructure/scripts/_archived/migration-generator.js +0 -780
  356. package/.aios-core/infrastructure/scripts/_archived/migration-path-generator.js +0 -950
  357. package/.aios-core/infrastructure/scripts/_archived/phase2-entrada-saida-errors.js +0 -425
  358. package/.aios-core/infrastructure/scripts/_archived/phase2-spot-check.js +0 -132
  359. package/.aios-core/infrastructure/scripts/_archived/phase3-tools-scripts-validation.js +0 -381
  360. package/.aios-core/infrastructure/scripts/_archived/phase4-metadata-performance.js +0 -203
  361. package/.aios-core/infrastructure/scripts/_archived/test-yaml-parsing.js +0 -24
  362. package/.aios-core/infrastructure/scripts/_archived/verify-yaml-fix.js +0 -51
  363. package/.aios-core/tasks/find-component.md.legacy +0 -391
  364. package/.aios-core/tasks/generate-commit-message.md.legacy +0 -426
  365. package/.aios-core/tasks/generate-migration.md.legacy +0 -382
  366. package/.aios-core/tasks/rollback-modification.md.legacy +0 -307
  367. package/.aios-core/tasks/update-tests.md.legacy +0 -283
@@ -1,1190 +1,1190 @@
1
- # 📘 AIOS v2.1 - Livro de Ouro (Summarized)
2
-
3
- **Version:** 2.1.0-post-5-sprints
4
- **Date:** March 2026 (as-if-implemented)
5
- **Status:** Production Release
6
- **Full Documentation:** See `AIOS-LIVRO-DE-OURO.md` (v2.0) for unchanged content
7
-
8
- ---
9
-
10
- ## 🎯 PURPOSE OF THIS DOCUMENT
11
-
12
- This is a **delta document** highlighting **ONLY what changed in v2.1** compared to v2.0.
13
-
14
- For complete content that remained unchanged (Layer 0, most of Layer 1), refer to:
15
- - ✅ **`AIOS-LIVRO-DE-OURO.md`** (v2.0 base)
16
- - ✅ This document (v2.1 changes ONLY)
17
-
18
- **Combined reading:** v2.0 base + v2.1 delta = Complete v2.1 understanding
19
-
20
- ---
21
-
22
- ## 🚀 WHAT'S NEW IN v2.1 - EXECUTIVE SUMMARY
23
-
24
- ### Installation Revolution
25
-
26
- **v2.0:** Manual clone + 2-4 hours configuration
27
- **v2.1:** `npx @allfluence/aios@latest init` + 5 minutes
28
-
29
- ```bash
30
- # Old way (v2.0)
31
- $ git clone https://github.com/allfluence/aios-fullstack
32
- $ cd aios-fullstack
33
- $ npm install
34
- $ cp .env.example .env
35
- $ # ... 2 hours of configuration ...
36
-
37
- # New way (v2.1)
38
- $ npx @allfluence/aios@latest init
39
- # Interactive wizard handles everything
40
- # 5 minutes to working project
41
- ```
42
-
43
- ---
44
-
45
- ### Architecture Revolution
46
-
47
- **v2.0:** Flat `.aios-core/` structure
48
- **v2.1:** Modular `core/development/product/infrastructure/`
49
-
50
- ```
51
- # v2.0 (Flat)
52
- .aios-core/
53
- ├── agents/ (all mixed)
54
- ├── scripts/ (all mixed)
55
- ├── tasks/ (all mixed)
56
- └── ... chaos ...
57
-
58
- # v2.1 (Modular)
59
- .aios-core/
60
- ├── core/ # Framework essentials
61
- │ ├── config/
62
- │ ├── orchestration/
63
- │ └── validation/
64
- ├── development/ # Dev features
65
- │ ├── agents/ (11)
66
- │ ├── workers/ (97+)
67
- │ └── tasks/
68
- ├── product/ # PM features
69
- │ ├── templates/
70
- │ ├── workflows/
71
- │ └── decisions/
72
- └── infrastructure/ # System services
73
- ├── cli/
74
- ├── mcp/
75
- └── integrations/
76
- ```
77
-
78
- ---
79
-
80
- ### Business Model Revolution
81
-
82
- **v2.0:** Workers closed-source
83
- **v2.1:** Workers open-source + Service Discovery
84
-
85
- | Component | v2.0 | v2.1 | Rationale |
86
- |-----------|------|------|-----------|
87
- | Agents (11) | ✅ Open | ✅ Open | Core functionality |
88
- | Workers | ❌ Closed | ✅ **OPEN** | Commodity, network effects |
89
- | Humanos | ⚠️ Concept | ✅ **OPEN** | Orchestration primitives |
90
- | Service Discovery | ❌ None | ✅ **BUILT-IN** | Community needs it |
91
- | Task-First | ⚠️ Implicit | ✅ **EXPLICIT** | Architecture clarity |
92
- | **Clones** | 🔒 Closed | 🔒 **CLOSED** | True moat (DNA Mental™) |
93
- | **Expansion Packs** | 🔒 Closed | 🔒 **CLOSED** | Domain expertise |
94
-
95
- **Strategic Shift:** Open commodity → Monetize singularity
96
-
97
- ---
98
-
99
- ### Feature Matrix Comparison
100
-
101
- | Feature | v2.0 | v2.1 | Impact |
102
- |---------|------|------|--------|
103
- | **Installation** | Manual (2-4h) | `npx` wizard (5min) | 96% faster |
104
- | **Workers Catalog** | None | 97+ searchable | Infinite value |
105
- | **Service Discovery** | None | Built-in CLI | New capability |
106
- | **Quality Gates** | 1 layer (manual) | 3 layers (auto) | 80% issues caught |
107
- | **Task-First** | Implicit | Explicit spec | Instant migration |
108
- | **Template Engine** | Partial | Complete | All doc types |
109
- | **CodeRabbit** | None | Local + GitHub | AI code review |
110
- | **MCP System** | Project-only | Global + Project | Config once |
111
-
112
- ---
113
-
114
- ## 📖 v2.1 DOCUMENTATION STRUCTURE
115
-
116
- ### What Changed vs. v2.0
117
-
118
- **Layer 0 (Discovery Router):**
119
- - ✅ **NO CHANGES** - Perfect as-is
120
- - ✅ Added **Track 6** for v2.0 → v2.1 migration
121
-
122
- **Layer 1 (Understanding):**
123
- - ✅ **Essay 3 REWRITTEN** - New business model
124
- - ✅ **Essay 5 NEW** - Task-First Architecture
125
- - ✅ Essays 1, 2, 4 remain mostly unchanged
126
-
127
- **Layer 2 (Component Library):**
128
- - ✅ **Workers Catalog NEW** - 97 workers organized
129
- - ✅ **Service Discovery Guide NEW**
130
- - ✅ Agents section unchanged (still 11 agents)
131
-
132
- **Layer 3 (Usage Guide):**
133
- - ✅ **Complete Installation Rewrite** - npx wizard
134
- - ✅ **Service Discovery Workflow NEW**
135
- - ✅ **Quality Gates 3 Layers NEW**
136
- - ✅ **Template Engine Usage NEW**
137
-
138
- **Layer 4 (Complete Reference):**
139
- - ✅ **Modular Architecture Spec NEW**
140
- - ✅ **Task-First Format Spec NEW**
141
- - ✅ **Service Registry Schema NEW**
142
- - ✅ **Quality Gate Config NEW**
143
-
144
- **Meta (Evolution):**
145
- - ✅ **Worker Contribution Guide NEW**
146
- - ✅ **Updated Versioning** - v2.1.0 format
147
- - ✅ **Community Contribution Path**
148
-
149
- ---
150
-
151
- ## 🔥 CRITICAL CHANGES - DEEP DIVE
152
-
153
- ### 1. Essay 3 (REWRITTEN): Open Source vs. Service
154
-
155
- #### Old Business Model (v2.0)
156
-
157
- ```yaml
158
- Open-Source:
159
- ✅ 11 Agents
160
- ❌ Workers (closed)
161
- ⚠️ Humanos (concept)
162
- ❌ Clones (closed)
163
-
164
- Problem: Workers closed = adoption barrier
165
- ```
166
-
167
- #### New Business Model (v2.1)
168
-
169
- ```yaml
170
- Open-Source v2.1:
171
- ✅ 11 Agents (Dex, Luna, Aria, Quinn, etc.)
172
- ✅ 97+ Workers (deterministic scripts) ← OPENED!
173
- ✅ Humanos (orchestration) ← OPENED!
174
- ✅ Service Discovery (find + reuse) ← NEW!
175
- ✅ Task-First Architecture ← NEW!
176
-
177
- Proprietary (Monetization):
178
- 🔒 Clones (DNA Mental™ cognitive emulation)
179
- 🔒 Expansion Packs (industry expertise)
180
- 🔒 Team Features (collaboration)
181
- 🔒 Enterprise (scale + support)
182
- ```
183
-
184
- **Rationale (Pedro Valério's Insight):**
185
-
186
- > "Workers são commodity - qualquer dev cria scripts. Clones são singularidade - DNA Mental™ leva anos. Abrir Workers maximiza adoção enquanto protege o moat real."
187
-
188
- **Competitive Positioning:**
189
-
190
- | Framework | Open-Source Completeness | Unique Differentiator |
191
- |-----------|-------------------------|----------------------|
192
- | LangChain | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
193
- | CrewAI | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
194
- | AutoGen | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
195
- | **AIOS v2.1** | ✅ **Complete** (agents + workers + orchestration) | ✅ **Clones** (DNA Mental™) ⭐ |
196
-
197
- **Key Insight:** AIOS matches competitors on open-source completeness BUT adds unique proprietary layer (Clones) that competitors cannot replicate quickly.
198
-
199
- ---
200
-
201
- ### 2. Essay 5 (NEW): Task-First Architecture
202
-
203
- #### The Philosophy
204
-
205
- > **"Everything is a Task. Executors are attributes."**
206
-
207
- #### What This Means
208
-
209
- **Traditional Approach (Task-per-Executor):**
210
- ```yaml
211
- # Agent task
212
- agent_task.md:
213
- name: Analyze market with AI
214
- executor: Agent (Sage)
215
-
216
- # Worker task
217
- worker_task.js:
218
- name: Analyze market with script
219
- executor: Worker (market-analyzer.js)
220
-
221
- Problem: 2 separate implementations for same task
222
- ```
223
-
224
- **Task-First Approach (Universal Task):**
225
- ```yaml
226
- # ONE TASK DEFINITION
227
- task: analyzeMarket()
228
- inputs: { market_data: object }
229
- outputs: { insights: array }
230
- checklist: [...]
231
- performance: { duration_expected: 5000ms }
232
-
233
- # EXECUTOR IS JUST A FIELD
234
- responsavel_type: Humano # Day 1: Human analyst
235
- responsavel_type: Worker # Week 10: Automated script
236
- responsavel_type: Agente # Month 6: LLM judgment
237
- responsavel_type: Clone # Year 2: Brad Frost validates
238
-
239
- # SAME SPEC, DIFFERENT EXECUTORS
240
- # MIGRATION IS INSTANT (change 1 field)
241
- ```
242
-
243
- #### Instant Executor Migration
244
-
245
- **Before Task-First (Rewrite Required):**
246
- ```yaml
247
- # Migrate Worker → Agent
248
- 1. Read Worker script
249
- 2. Understand logic
250
- 3. Rewrite as Agent prompt
251
- 4. Test thoroughly
252
- 5. Update all references
253
- 6. 2-4 days of work
254
- ```
255
-
256
- **After Task-First (Field Change):**
257
- ```yaml
258
- # Migrate Worker → Agent
259
- 1. Change responsavel_type: Worker → Agente
260
- 2. Done. (2 seconds)
261
-
262
- Why it works:
263
- - Input/output schemas unchanged
264
- - Checklist validation unchanged
265
- - Performance SLAs unchanged
266
- - Only EXECUTOR changes
267
- ```
268
-
269
- #### Real Example
270
-
271
- **Day 1 (Humano):**
272
- ```yaml
273
- task: validateSchema()
274
- responsavel: Senior Dev
275
- responsavel_type: Humano
276
- estimated_duration: 30 min
277
- cost: $25 (human time)
278
- ```
279
-
280
- **Week 10 (Worker):**
281
- ```yaml
282
- task: validateSchema() # ← SAME TASK
283
- responsavel: schema-validator.js
284
- responsavel_type: Worker
285
- estimated_duration: 500ms
286
- cost: $0.001 (compute)
287
- ```
288
-
289
- **Month 6 (Agente):**
290
- ```yaml
291
- task: validateSchema() # ← STILL SAME TASK
292
- responsavel: Quinn (QA Agent)
293
- responsavel_type: Agente
294
- estimated_duration: 3s
295
- cost: $0.01 (LLM call)
296
- ```
297
-
298
- **Year 2 (Clone):**
299
- ```yaml
300
- task: validateSchema() # ← NO CHANGES!
301
- responsavel: Brad Frost Clone
302
- responsavel_type: Clone
303
- estimated_duration: 5s
304
- cost: $0.03 (LLM + validation)
305
- quality: 99% (expert-level)
306
- ```
307
-
308
- **Result:** 4 different executors, ZERO task rewrites.
309
-
310
- ---
311
-
312
- ### 3. Service Discovery System
313
-
314
- #### The Problem (v2.0)
315
-
316
- ```bash
317
- # Developer needs to parse JSON
318
- $ # ... searches Google ...
319
- $ # ... finds random npm package ...
320
- $ # ... installs ...
321
- $ # ... writes custom wrapper ...
322
- $ # 2 hours later: JSON parser working
323
-
324
- # Problem: AIOS already HAD json-parser.js Worker!
325
- # Developer just didn't know it existed.
326
- ```
327
-
328
- #### The Solution (v2.1)
329
-
330
- ```bash
331
- # Developer needs to parse JSON
332
- $ aios workers search "json parse"
333
-
334
- Results (3 Workers):
335
-
336
- 📦 json-parser.js ⭐⭐⭐⭐⭐ (47 projects)
337
- Parse JSON safely with error handling
338
- Input: { json_string: string }
339
- Output: { data: object, errors: array }
340
-
341
- 📦 json-validator.js ⭐⭐⭐⭐ (23 projects)
342
- Validate JSON against schema
343
-
344
- 📦 json-transformer.js ⭐⭐⭐ (15 projects)
345
- Transform JSON structures
346
-
347
- $ aios workers info json-parser
348
- $ aios workers use json-parser --task my-task
349
-
350
- # 30 seconds: JSON parser integrated
351
- # Time saved: 1h 59min 30s
352
- ```
353
-
354
- #### Service Discovery Architecture
355
-
356
- **Components:**
357
-
358
- 1. **Service Registry** (`service-registry.json`)
359
- ```json
360
- {
361
- "workers": [
362
- {
363
- "id": "json-parser",
364
- "name": "JSON Parser",
365
- "path": ".aios-core/development/workers/json-parser.js",
366
- "category": "data-transformation",
367
- "task_compatible": true,
368
- "implements_task_spec": "parseJSON()",
369
- "inputs": {
370
- "json_string": "string"
371
- },
372
- "outputs": {
373
- "data": "object",
374
- "errors": "array"
375
- },
376
- "deterministic": true,
377
- "usage_count": 47,
378
- "rating": 4.8,
379
- "last_updated": "2026-02-15"
380
- }
381
- ]
382
- }
383
- ```
384
-
385
- 2. **Discovery CLI**
386
- ```bash
387
- aios workers list # List all
388
- aios workers search <query> # Semantic search
389
- aios workers info <worker-id> # Details
390
- aios workers find-for-task <task> # Find suitable Worker
391
- aios workers validate <worker-id> # Check compliance
392
- ```
393
-
394
- 3. **Task Compatibility Layer**
395
- - Maps Workers to Task specs
396
- - Validates input/output schemas
397
- - Checks TASK-FORMAT-SPECIFICATION-V1 compliance
398
-
399
- 4. **Contribution System**
400
- ```bash
401
- aios workers create # Generate template
402
- aios workers test <worker-id> # Run validation
403
- aios workers submit <worker-id> # Submit to registry
404
- ```
405
-
406
- #### Impact
407
-
408
- **Metrics (6 months post-v2.1):**
409
- - 97 Workers cataloged (baseline)
410
- - 143 community-contributed Workers (+47%)
411
- - 50% of tasks now reuse existing Workers (vs. 0% in v2.0)
412
- - Average discovery time: 30 seconds (vs. N/A in v2.0)
413
- - Duplicate work reduced by 60%
414
-
415
- ---
416
-
417
- ### 4. Quality Gates - 3 Layers
418
-
419
- #### The Problem (v2.0)
420
-
421
- ```yaml
422
- Quality Assurance in v2.0:
423
- - Manual code review
424
- - Manual testing
425
- - Manual linting
426
- - No automation
427
- - Issues found late (after PR)
428
-
429
- Result:
430
- - High review overhead
431
- - Slow feedback loops
432
- - Many issues slip through
433
- - Human reviewers exhausted
434
- ```
435
-
436
- #### The Solution (v2.1)
437
-
438
- **Layer 1 - Local (Immediate):**
439
- ```bash
440
- # Runs on every file save (< 5s)
441
- Layer 1 Checks:
442
- ✓ ESLint (2.1s)
443
- ✓ Prettier (0.8s)
444
- ✓ TypeScript (1.9s)
445
- ✓ Unit tests (3.2s)
446
-
447
- Executor: Worker (deterministic)
448
- Tool: CodeRabbit IDE Extension (FREE)
449
- Blocking: Pre-commit hooks (can't commit if fails)
450
-
451
- Result: 30% of issues caught instantly
452
- ```
453
-
454
- **Layer 2 - PR (Automated):**
455
- ```bash
456
- # Runs on PR creation (< 3 min)
457
- Layer 2 Checks:
458
- ✓ CodeRabbit AI review (45s)
459
- ✓ Integration tests (1m 30s)
460
- ✓ Coverage analysis (40s)
461
- ✓ Security scan (30s)
462
- ✓ Performance benchmarks (20s)
463
-
464
- Executor: Agente (QA Agent + CodeRabbit)
465
- Tool: CodeRabbit GitHub App + Quinn (QA Agent)
466
- Blocking: Required checks (can't merge if fails)
467
-
468
- Result: Additional 50% of issues caught (80% total)
469
- ```
470
-
471
- **Layer 3 - Human (Strategic):**
472
- ```bash
473
- # Runs before final merge (30min - 2h)
474
- Layer 3 Checks:
475
- □ Architecture alignment
476
- □ Business logic correctness
477
- □ Edge cases coverage
478
- □ Documentation quality
479
- □ Security best practices
480
-
481
- Executor: Humano (Senior Dev / Tech Lead)
482
- Tool: Human expertise + context
483
- Blocking: Final approval required
484
-
485
- Result: Final 20% of issues caught (100% total)
486
- Focus on what humans do best (strategy, not syntax)
487
- ```
488
-
489
- #### Quality Gate Orchestration
490
-
491
- **Workflow:**
492
- ```yaml
493
- 1. Developer writes code
494
-
495
- 2. Layer 1 (Local) - Instant feedback
496
- - Linting errors? Fix immediately
497
- - Type errors? Fix immediately
498
- - Unit tests fail? Fix immediately
499
- ↓ (All checks pass)
500
- 3. git commit (pre-commit hook validates Layer 1)
501
-
502
- 4. git push
503
-
504
- 5. Layer 2 (PR) - Automated review
505
- - CodeRabbit reviews code
506
- - Quinn (QA Agent) runs tests
507
- - GitHub Actions validates
508
- ↓ (80% of potential issues caught)
509
- 6. Human notification: "PR ready for strategic review"
510
-
511
- 7. Layer 3 (Human) - Strategic review
512
- - Human reviews ONLY architectural/business logic
513
- - No need to check syntax (Layer 1 did it)
514
- - No need to check patterns (Layer 2 did it)
515
- ↓ (Final 20% reviewed)
516
- 8. Approve + Merge
517
- ```
518
-
519
- #### Impact
520
-
521
- **Before v2.1 (Single Layer):**
522
- - 100% of issues reviewed by humans
523
- - Average review time: 2-4 hours per PR
524
- - Human reviewers exhausted
525
- - Many issues still slip through
526
-
527
- **After v2.1 (3 Layers):**
528
- - 80% of issues caught automatically
529
- - Average human review time: 30 minutes per PR
530
- - Human reviewers focus on strategy
531
- - Issue escape rate: < 5%
532
-
533
- **Time Savings:**
534
- - 75% reduction in human review time
535
- - 3x faster feedback (instant vs. hours)
536
- - 95% accuracy (vs. 70% with manual only)
537
-
538
- ---
539
-
540
- ## 🚀 QUICK START - v2.1 Installation
541
-
542
- ### For New Users (Greenfield)
543
-
544
- ```bash
545
- # Step 1: Install AIOS
546
- $ npx @allfluence/aios@latest init
547
-
548
- Welcome to AIOS v2.1! Let's set up your project.
549
-
550
- ? Project name: my-awesome-project
551
- ? Project type:
552
- ❯ Greenfield (new project)
553
- Brownfield (existing project)
554
-
555
- ? Select your IDE: (Use arrow keys)
556
- ❯ Cursor
557
- Windsurf
558
- Trae
559
- Zed
560
- Continue.dev (VS Code)
561
-
562
- ? Select AI CLI tools: (Use space to select)
563
- ◉ Claude Code
564
- ◯ GitHub Copilot
565
- ◉ Gemini CLI
566
- ◯ Codeium
567
-
568
- ? Install MCPs: (Recommended)
569
- ◉ All (Browser, Context7, Exa, Desktop Commander)
570
- ◯ Custom selection
571
-
572
- ? Install CLI tools:
573
- ◉ GitHub CLI (gh)
574
- ◉ Supabase CLI
575
- ◯ Railway CLI
576
- ◯ psql
577
-
578
- ✓ Installing dependencies...
579
- ✓ Configuring AIOS...
580
- ✓ Setting up MCPs...
581
- ✓ Installing CLI tools...
582
- ✓ Creating project structure...
583
- ✓ Generating first story...
584
-
585
- 🎉 AIOS v2.1 installed successfully!
586
-
587
- Next steps:
588
- $ cd my-awesome-project
589
- $ aios --help # See available commands
590
- $ aios agents list # List available agents
591
- $ aios workers list # List available workers
592
- $ aios stories create # Create your first story
593
-
594
- Time elapsed: 4m 32s
595
- ```
596
-
597
- ### For v2.0 Users (Migration)
598
-
599
- ```bash
600
- # Step 1: Backup current project
601
- $ cp -r .aios-core .aios-core.backup
602
-
603
- # Step 2: Run migration script
604
- $ npx @allfluence/aios migrate v2.0-to-v2.1
605
-
606
- AIOS Migration Wizard (v2.0 → v2.1)
607
-
608
- Analyzing your project...
609
- ✓ Detected v2.0.x installation
610
- ✓ Found 8 custom agents
611
- ✓ Found 23 custom workers
612
- ✓ Found 47 stories
613
-
614
- Migration plan:
615
- 1. Update project structure (flat → modular)
616
- 2. Migrate custom agents to new format
617
- 3. Register custom workers in Service Discovery
618
- 4. Update story references
619
- 5. Install new dependencies
620
-
621
- ? Proceed with migration? (Y/n) Y
622
-
623
- ✓ Backing up current state...
624
- ✓ Migrating project structure...
625
- ✓ Updating agents... (8/8)
626
- ✓ Registering workers... (23/23)
627
- ✓ Updating stories... (47/47)
628
- ✓ Installing new dependencies...
629
- ✓ Running validation...
630
-
631
- 🎉 Migration completed successfully!
632
-
633
- Summary:
634
- - Project structure: ✓ Migrated to modular
635
- - Agents: ✓ 8 custom agents updated
636
- - Workers: ✓ 23 custom workers registered
637
- - Stories: ✓ 47 stories updated
638
- - Service Discovery: ✓ Enabled
639
- - Quality Gates: ✓ 3 layers configured
640
-
641
- Rollback available: .aios-core.backup/
642
-
643
- Time elapsed: 12m 18s
644
- ```
645
-
646
- ---
647
-
648
- ## 📊 METRICS & IMPACT
649
-
650
- ### Installation Time
651
-
652
- | Metric | v2.0 | v2.1 | Improvement |
653
- |--------|------|------|-------------|
654
- | Time to install | 2-4 hours | 5 minutes | **96% faster** |
655
- | Steps required | 15+ manual | 1 command | **93% simpler** |
656
- | Success rate | 60% (many fail) | 98% (wizard) | **38% increase** |
657
-
658
- ### Development Speed
659
-
660
- | Metric | v2.0 | v2.1 | Improvement |
661
- |--------|------|------|-------------|
662
- | Find reusable Worker | N/A (no discovery) | 30 seconds | **Infinite value** |
663
- | Quality issues caught | 20% (manual only) | 80% (3 layers) | **4x improvement** |
664
- | Executor migration time | 2-4 days (rewrite) | 2 seconds (field change) | **99.99% faster** |
665
-
666
- ### Community Growth
667
-
668
- | Metric | v2.0 | v2.1 (6 months) | Growth |
669
- |--------|------|-----------------|--------|
670
- | GitHub Stars | 2.3k | 15.8k | **+587%** |
671
- | npm Downloads | 1.2k/month | 47k/month | **+3817%** |
672
- | Community Workers | 0 (closed) | 143 contributed | **∞** |
673
- | Active Contributors | 23 | 412 | **+1691%** |
674
-
675
- ---
676
-
677
- ## 🎯 SUMMARY: v2.0 vs. v2.1
678
-
679
- ### What v2.0 Got Right ✅
680
-
681
- - Agent architecture (11 specialized agents)
682
- - Atomic Design principles
683
- - Task-based workflows
684
- - Personality system (archetypes)
685
- - Documentation structure (Layer 0-4)
686
-
687
- ### What v2.1 Fixed 🔧
688
-
689
- - **Installation:** 2-4h manual → 5min wizard
690
- - **Business Model:** Workers closed → Workers open
691
- - **Discoverability:** None → Service Discovery
692
- - **Architecture:** Flat → Modular (4 domains)
693
- - **Quality:** 1 layer → 3 layers (80% automated)
694
- - **Executor Migration:** Days → Seconds (Task-First)
695
- - **Template System:** Partial → Complete
696
- - **Code Review:** Manual → AI + Human (CodeRabbit)
697
-
698
- ### What v2.2 Will Add 🚀
699
-
700
- - **Memory Layer:** Cross-session learning
701
- - **Agent Lightning:** RL-based optimization
702
- - **Team Features:** Collaboration + shared memory
703
- - **Analytics:** Advanced insights
704
- - **Clones Marketplace:** Expert cognitive emulation
705
- - **Enterprise:** Scale + support + SLAs
706
-
707
- ---
708
-
709
- ## 📖 WHERE TO GO FROM HERE
710
-
711
- ### If You're New to AIOS
712
-
713
- 1. ✅ Read this summary (done!)
714
- 2. → Read [v2.0 Layer 0](#layer-0) (Discovery Router)
715
- 3. → Read [v2.0 Layer 1](#layer-1) (Understanding)
716
- 4. → Read [v2.1 Essay 3](#essay-3-v21) (Business Model)
717
- 5. → Read [v2.1 Essay 5](#essay-5-v21) (Task-First)
718
- 6. → Install: `npx @allfluence/aios@latest init`
719
-
720
- ### If You're Migrating from v2.0
721
-
722
- 1. ✅ Read this summary (done!)
723
- 2. → Read [Breaking Changes](#breaking-changes)
724
- 3. → Read [Migration Guide](#migration-guide)
725
- 4. → Backup: `cp -r .aios-core .aios-core.backup`
726
- 5. → Migrate: `npx @allfluence/aios migrate v2.0-to-v2.1`
727
-
728
- ### If You Want to Contribute
729
-
730
- 1. ✅ Read this summary (done!)
731
- 2. → Read [Worker Contribution Guide](#worker-contribution)
732
- 3. → Read [Architecture Deep Dive](#architecture-v21)
733
- 4. → Browse [Open Issues](https://github.com/allfluence/aios-fullstack/issues)
734
- 5. → Join [Discord Community](https://discord.gg/aios)
735
-
736
- ---
737
-
738
- **Full v2.1 Documentation:** Combine this document with `AIOS-LIVRO-DE-OURO.md` (v2.0) for complete reference.
739
-
740
- **Next Version:** v2.2 (Q2 2026) - Memory Layer + Agent Lightning
741
-
742
- **Last Updated:** March 2026 (as-if-implemented)
743
-
744
- ---
745
-
746
- ## 📁 SOURCE TREE v2.1 (Post-5 Sprints)
747
-
748
- ### Complete Project Structure
749
-
750
- ```
751
- aios-fullstack/ # Root project
752
- ├── .aios-core/ # ⭐ NEW: Modular Architecture
753
- │ │
754
- │ ├── core/ # ⭐ NEW: Core Framework Module
755
- │ │ ├── config/ # Configuration system
756
- │ │ │ ├── core-config.yaml # Master framework config
757
- │ │ │ ├── install-manifest.yaml # Installation manifest
758
- │ │ │ ├── agent-config-loader.js # Dynamic agent loading
759
- │ │ │ └── validation-rules.yaml # Config validation
760
- │ │ │
761
- │ │ ├── orchestration/ # Orchestration engine
762
- │ │ │ ├── workflow-engine.js # Workflow executor
763
- │ │ │ ├── task-router.js # Task routing logic
764
- │ │ │ ├── executor-selector.js # Choose executor per task
765
- │ │ │ └── parallel-executor.js # Parallel task execution
766
- │ │ │
767
- │ │ ├── validation/ # Validation system
768
- │ │ │ ├── quality-gate-manager.js # ⭐ NEW: Unified QG manager
769
- │ │ │ ├── pre-commit-hooks.js # Layer 1 validation
770
- │ │ │ ├── pr-automation.js # Layer 2 validation
771
- │ │ │ └── human-review.js # Layer 3 orchestration
772
- │ │ │
773
- │ │ ├── service-discovery/ # ⭐ NEW: Service Discovery
774
- │ │ │ ├── service-registry.json # Worker/Agent catalog
775
- │ │ │ ├── discovery-cli.js # Search & find commands
776
- │ │ │ ├── compatibility-checker.js # Task compatibility
777
- │ │ │ └── contribution-validator.js # Community contributions
778
- │ │ │
779
- │ │ └── manifest/ # ⭐ NEW: Manifest System
780
- │ │ ├── agents-manifest.csv # Agent tracking
781
- │ │ ├── workers-manifest.csv # Worker tracking
782
- │ │ ├── tasks-manifest.csv # Task tracking
783
- │ │ └── manifest-validator.js # Manifest validation
784
- │ │
785
- │ ├── development/ # ⭐ NEW: Development Module
786
- │ │ ├── agents/ # 11 specialized agents
787
- │ │ │ ├── dex.md # Dev Agent (Builder)
788
- │ │ │ ├── luna.md # QA Agent (Guardian)
789
- │ │ │ ├── aria.md # Architect Agent (Architect)
790
- │ │ │ ├── quinn.md # QA Lead (Guardian)
791
- │ │ │ ├── zara.md # Analyst (Explorer)
792
- │ │ │ ├── kai.md # PM (Balancer)
793
- │ │ │ ├── sage.md # SM (Facilitator)
794
- │ │ │ ├── felix.md # DevOps (Optimizer)
795
- │ │ │ ├── nova.md # PO (Visionary)
796
- │ │ │ ├── uma.md # UX Designer (Creator)
797
- │ │ │ └── dara.md # Data Engineer (Architect)
798
- │ │ │
799
- │ │ ├── workers/ # ⭐ NEW: 97+ Workers (Open-Source)
800
- │ │ │ ├── config-setup/ # Config & setup (12 workers)
801
- │ │ │ │ ├── env-generator.js
802
- │ │ │ │ ├── git-config.js
803
- │ │ │ │ ├── dependency-installer.js
804
- │ │ │ │ └── ...
805
- │ │ │ │
806
- │ │ │ ├── data-transform/ # Data transformation (23 workers)
807
- │ │ │ │ ├── json-parser.js
808
- │ │ │ │ ├── csv-processor.js
809
- │ │ │ │ ├── yaml-validator.js
810
- │ │ │ │ └── ...
811
- │ │ │ │
812
- │ │ │ ├── file-ops/ # File operations (18 workers)
813
- │ │ │ │ ├── file-reader.js
814
- │ │ │ │ ├── file-writer.js
815
- │ │ │ │ ├── directory-scanner.js
816
- │ │ │ │ └── ...
817
- │ │ │ │
818
- │ │ │ ├── integration/ # Integration & APIs (15 workers)
819
- │ │ │ │ ├── github-api.js
820
- │ │ │ │ ├── clickup-sync.js
821
- │ │ │ │ ├── slack-notifier.js
822
- │ │ │ │ └── ...
823
- │ │ │ │
824
- │ │ │ ├── quality/ # Quality & testing (11 workers)
825
- │ │ │ │ ├── eslint-runner.js
826
- │ │ │ │ ├── prettier-formatter.js
827
- │ │ │ │ ├── test-runner.js
828
- │ │ │ │ └── ...
829
- │ │ │ │
830
- │ │ │ ├── build-deploy/ # Build & deploy (10 workers)
831
- │ │ │ │ ├── webpack-bundler.js
832
- │ │ │ │ ├── docker-builder.js
833
- │ │ │ │ ├── deploy-vercel.js
834
- │ │ │ │ └── ...
835
- │ │ │ │
836
- │ │ │ └── utilities/ # Utilities (8 workers)
837
- │ │ │ ├── logger.js
838
- │ │ │ ├── error-handler.js
839
- │ │ │ ├── metrics-collector.js
840
- │ │ │ └── ...
841
- │ │ │
842
- │ │ ├── tasks/ # 60+ task definitions
843
- │ │ │ ├── create-next-story.md
844
- │ │ │ ├── develop-story.md
845
- │ │ │ ├── validate-next-story.md
846
- │ │ │ └── ...
847
- │ │ │
848
- │ │ └── workflows/ # 16+ workflows (10 new!)
849
- │ │ ├── greenfield-fullstack.yaml
850
- │ │ ├── brownfield-integration.yaml
851
- │ │ ├── fork-join-workflow.yaml # ⭐ NEW
852
- │ │ ├── organizer-worker.yaml # ⭐ NEW
853
- │ │ ├── data-pipeline.yaml # ⭐ NEW
854
- │ │ └── ...
855
- │ │
856
- │ ├── product/ # ⭐ NEW: Product Module
857
- │ │ ├── templates/ # ⭐ NEW: Complete Template Engine
858
- │ │ │ ├── story-tmpl.yaml # Story template v3.0
859
- │ │ │ ├── prd-tmpl.yaml # PRD template v2.0
860
- │ │ │ ├── epic-tmpl.yaml # Epic template
861
- │ │ │ ├── architecture-tmpl.yaml # Architecture template
862
- │ │ │ ├── adr-tmpl.yaml # ⭐ NEW: ADR template
863
- │ │ │ ├── pmdr-tmpl.yaml # ⭐ NEW: PMDR template
864
- │ │ │ ├── dbdr-tmpl.yaml # ⭐ NEW: DBDR template
865
- │ │ │ └── ...
866
- │ │ │
867
- │ │ ├── workflows/ # Product workflows
868
- │ │ │ ├── discovery-sprint.yaml
869
- │ │ │ ├── refinement.yaml
870
- │ │ │ └── retrospective.yaml
871
- │ │ │
872
- │ │ ├── checklists/ # Validation checklists
873
- │ │ │ ├── po-master-checklist.md
874
- │ │ │ ├── story-draft-checklist.md
875
- │ │ │ └── ...
876
- │ │ │
877
- │ │ └── decisions/ # Decision records
878
- │ │ ├── pmdr/ # Product decisions
879
- │ │ ├── adr/ # Architecture decisions
880
- │ │ └── dbdr/ # Database decisions
881
- │ │
882
- │ ├── infrastructure/ # ⭐ NEW: Infrastructure Module
883
- │ │ ├── cli/ # CLI system
884
- │ │ │ ├── aios.js # Main CLI
885
- │ │ │ ├── commands/ # CLI commands
886
- │ │ │ │ ├── init.js # ⭐ NEW: Installer wizard
887
- │ │ │ │ ├── migrate.js # ⭐ NEW: Migration command
888
- │ │ │ │ ├── workers.js # ⭐ NEW: Worker discovery
889
- │ │ │ │ ├── agents.js # Agent management
890
- │ │ │ │ ├── stories.js # Story management
891
- │ │ │ │ └── ...
892
- │ │ │ └── installer/ # ⭐ NEW: Installer system
893
- │ │ │ ├── wizard.js # Interactive wizard
894
- │ │ │ ├── environment-detector.js
895
- │ │ │ ├── dependency-checker.js
896
- │ │ │ └── migration-scripts/
897
- │ │ │
898
- │ │ ├── mcp/ # ⭐ NEW: MCP System
899
- │ │ │ ├── global-config/ # Global MCP configuration
900
- │ │ │ │ ├── mcp-registry.json # Global MCP registry
901
- │ │ │ │ ├── browser.json # Playwright config
902
- │ │ │ │ ├── context7.json # Context7 config
903
- │ │ │ │ ├── exa.json # Exa config
904
- │ │ │ │ └── desktop-commander.json
905
- │ │ │ │
906
- │ │ │ ├── project-config/ # Project-level configs
907
- │ │ │ │ └── .mcp-links/ # Symlinks to global
908
- │ │ │ │
909
- │ │ │ └── mcp-manager.js # MCP orchestration
910
- │ │ │
911
- │ │ ├── integrations/ # External integrations
912
- │ │ │ ├── coderabbit/ # ⭐ NEW: CodeRabbit integration
913
- │ │ │ │ ├── local-extension.js # Local IDE extension
914
- │ │ │ │ ├── github-app.js # GitHub App integration
915
- │ │ │ │ └── config.yaml # CodeRabbit config
916
- │ │ │ │
917
- │ │ │ ├── github-cli/ # GitHub CLI wrapper
918
- │ │ │ ├── supabase-cli/ # Supabase CLI wrapper
919
- │ │ │ ├── railway-cli/ # Railway CLI wrapper
920
- │ │ │ └── clickup/ # ClickUp integration
921
- │ │ │
922
- │ │ └── scripts/ # Infrastructure scripts
923
- │ │ ├── component-generator.js
924
- │ │ ├── elicitation-engine.js
925
- │ │ ├── greeting-builder.js
926
- │ │ ├── template-engine.js # ⭐ ENHANCED
927
- │ │ └── ...
928
- │ │
929
- │ └── docs/ # ⭐ MOVED from root docs/standards/
930
- │ ├── AIOS-FRAMEWORK-MASTER.md # ⭐ MIGRATED
931
- │ ├── AIOS-LIVRO-DE-OURO.md # ⭐ MIGRATED
932
- │ ├── EXECUTOR-DECISION-TREE.md # ⭐ MIGRATED
933
- │ ├── TASK-FORMAT-SPECIFICATION-V1.md # ⭐ MIGRATED
934
- │ └── ...
935
-
936
- ├── docs/ # Project-specific docs
937
- │ ├── prd/ # Product requirements
938
- │ ├── architecture/ # Architecture docs
939
- │ ├── framework/ # Framework reference
940
- │ │ ├── coding-standards.md # Project coding standards
941
- │ │ ├── source-tree.md # Project structure
942
- │ │ ├── tech-stack.md # Tech stack decisions
943
- │ │ └── db-schema.md # Database schema
944
- │ │
945
- │ ├── research/ # Research & discovery
946
- │ ├── epics/ # Epic planning
947
- │ ├── stories/ # Development stories
948
- │ │ ├── v2.1/ # ⭐ NEW: v2.1 stories
949
- │ │ │ ├── sprint-1/ # Sprint 1 stories
950
- │ │ │ ├── sprint-2/ # Sprint 2 stories
951
- │ │ │ ├── sprint-3/ # Sprint 3 stories
952
- │ │ │ ├── sprint-4/ # Sprint 4 stories
953
- │ │ │ └── sprint-5/ # Sprint 5 stories
954
- │ │ │
955
- │ │ ├── v2.2/ # Future v2.2 stories
956
- │ │ ├── independent/ # Version-independent
957
- │ │ └── archive/ # Archived stories
958
- │ │
959
- │ ├── decisions/ # Decision records
960
- │ │ ├── pmdr/ # Product decisions
961
- │ │ ├── adr/ # Architecture decisions
962
- │ │ └── dbdr/ # Database decisions
963
- │ │
964
- │ ├── qa/ # QA reports
965
- │ ├── audits/ # Audit reports
966
- │ └── guides/ # How-to guides
967
-
968
- ├── expansion-packs/ # ⭐ UPDATED: Only 2 packs in open-source
969
- │ ├── expansion-creator/ # Create custom packs
970
- │ └── data-engineering/ # Data pipelines
971
-
972
- ├── bin/ # CLI executables
973
- │ ├── aios.js # ⭐ NEW: Main CLI entry (simplified)
974
- │ └── aios-init.js # ⭐ DEPRECATED: Use npx installer
975
-
976
- ├── .ai/ # AI session artifacts
977
- │ ├── decision-logs/ # Task decision logs
978
- │ └── context/ # Session context
979
-
980
- ├── .claude/ # Claude Code configuration
981
- │ ├── settings.json
982
- │ ├── CLAUDE.md
983
- │ └── commands/ # Agent commands
984
-
985
- ├── tests/ # Test suites
986
- │ ├── unit/
987
- │ ├── integration/
988
- │ └── e2e/
989
-
990
- ├── .github/ # ⭐ NEW: GitHub automation
991
- │ ├── workflows/ # CI/CD workflows
992
- │ │ ├── quality-gates-pr.yml # Layer 2 quality gates
993
- │ │ ├── coderabbit-review.yml # CodeRabbit automation
994
- │ │ └── tests.yml # Test automation
995
- │ │
996
- │ └── coderabbit.yaml # CodeRabbit configuration
997
-
998
- ├── package.json # Package manifest
999
- ├── tsconfig.json # TypeScript config
1000
- ├── .eslintrc.json # ESLint config (Layer 1)
1001
- ├── .prettierrc # Prettier config (Layer 1)
1002
- ├── .husky/ # ⭐ NEW: Git hooks (Layer 1)
1003
- │ ├── pre-commit # Pre-commit validation
1004
- │ └── pre-push # Pre-push validation
1005
-
1006
- └── README.md # Project README
1007
- ```
1008
-
1009
- ---
1010
-
1011
- ### Key Changes from v2.0
1012
-
1013
- **1. Modular Architecture:**
1014
- ```
1015
- v2.0: Flat .aios-core/ (all mixed)
1016
- v2.1: 4 modules (core/development/product/infrastructure)
1017
-
1018
- Benefits:
1019
- - Clear separation of concerns
1020
- - Easier to navigate
1021
- - Better maintainability
1022
- - Scalable for v3.0
1023
- ```
1024
-
1025
- **2. Service Discovery:**
1026
- ```
1027
- NEW: .aios-core/core/service-discovery/
1028
- - service-registry.json (97+ workers cataloged)
1029
- - discovery-cli.js (search & find)
1030
- - compatibility-checker.js (task matching)
1031
-
1032
- Impact: Developers find & reuse workers in 30 seconds vs. rebuilding
1033
- ```
1034
-
1035
- **3. Quality Gates 3 Layers:**
1036
- ```
1037
- NEW: .aios-core/core/validation/
1038
- - quality-gate-manager.js (unified orchestrator)
1039
- - pre-commit-hooks.js (Layer 1: Local)
1040
- - pr-automation.js (Layer 2: PR)
1041
- - human-review.js (Layer 3: Strategic)
1042
-
1043
- NEW: .github/workflows/ (CI/CD automation)
1044
- NEW: .husky/ (Git hooks)
1045
-
1046
- Impact: 80% of issues caught automatically
1047
- ```
1048
-
1049
- **4. Workers Open-Source:**
1050
- ```
1051
- NEW: .aios-core/development/workers/ (97+ workers)
1052
- - Organized by category (6 categories)
1053
- - Each worker implements Task-First spec
1054
- - Community contributions enabled
1055
-
1056
- Impact: Network effects, community growth
1057
- ```
1058
-
1059
- **5. Template Engine:**
1060
- ```
1061
- ENHANCED: .aios-core/product/templates/
1062
- - All document types supported
1063
- - PMDR, ADR, DBDR templates added
1064
- - Template versioning
1065
- - Variable substitution
1066
-
1067
- Impact: Zero manual doc creation
1068
- ```
1069
-
1070
- **6. Installer System:**
1071
- ```
1072
- NEW: .aios-core/infrastructure/cli/installer/
1073
- - wizard.js (interactive setup)
1074
- - environment-detector.js
1075
- - migration-scripts/ (v2.0 → v2.1)
1076
-
1077
- NEW: npx @allfluence/aios@latest init
1078
-
1079
- Impact: 5 minutes install vs. 2-4 hours
1080
- ```
1081
-
1082
- **7. MCP System:**
1083
- ```
1084
- NEW: .aios-core/infrastructure/mcp/
1085
- - global-config/ (configured once)
1086
- - project-config/ (symlinks)
1087
- - mcp-manager.js (orchestration)
1088
-
1089
- Impact: Configure MCPs once, use everywhere
1090
- ```
1091
-
1092
- **8. CodeRabbit Integration:**
1093
- ```
1094
- NEW: .aios-core/infrastructure/integrations/coderabbit/
1095
- - local-extension.js (IDE, Layer 1)
1096
- - github-app.js (GitHub, Layer 2)
1097
- - config.yaml
1098
-
1099
- NEW: .github/coderabbit.yaml
1100
-
1101
- Impact: AI-powered code review (local + PR)
1102
- ```
1103
-
1104
- **9. Framework Standards Migration:**
1105
- ```
1106
- MOVED: docs/standards/ → .aios-core/docs/
1107
- - AIOS-FRAMEWORK-MASTER.md
1108
- - AIOS-LIVRO-DE-OURO.md
1109
- - EXECUTOR-DECISION-TREE.md
1110
- - TASK-FORMAT-SPECIFICATION-V1.md
1111
-
1112
- Rationale: Framework docs belong with framework code
1113
- ```
1114
-
1115
- **10. Story Organization:**
1116
- ```
1117
- NEW: docs/stories/ reorganized
1118
- - v2.1/ (sprint-1 to sprint-5)
1119
- - v2.2/ (future)
1120
- - independent/ (version-agnostic)
1121
- - archive/ (old stories moved)
1122
-
1123
- Impact: Clear roadmap, easy to track progress
1124
- ```
1125
-
1126
- ---
1127
-
1128
- ### File Count Comparison
1129
-
1130
- | Category | v2.0 | v2.1 | Change |
1131
- |----------|------|------|--------|
1132
- | Agents | 11 | 11 | Same (corrected from "16") |
1133
- | Workers | 0 (closed) | 97+ | **+97** (open-sourced) |
1134
- | Tasks | 60 | 60+ | Same (minor additions) |
1135
- | Templates | 20 | 27+ | **+7** (ADR, PMDR, DBDR, etc.) |
1136
- | Workflows | 6 | 16+ | **+10** (new patterns) |
1137
- | Scripts | 54 | 60+ | **+6** (new utilities) |
1138
- | CLI Commands | 5 | 12+ | **+7** (installer, workers, migrate) |
1139
-
1140
- ---
1141
-
1142
- ### Installation Comparison
1143
-
1144
- **v2.0 Installation:**
1145
- ```bash
1146
- # 1. Clone repository
1147
- $ git clone https://github.com/allfluence/aios-fullstack
1148
- $ cd aios-fullstack
1149
-
1150
- # 2. Install dependencies
1151
- $ npm install # 5-10 minutes
1152
-
1153
- # 3. Copy environment
1154
- $ cp .env.example .env
1155
-
1156
- # 4. Configure manually
1157
- $ # Edit .env (15+ variables)
1158
- $ # Configure IDE
1159
- $ # Configure MCPs
1160
- $ # Configure ClickUp
1161
- $ # Configure GitHub
1162
- $ # ... 2-4 hours of manual config ...
1163
-
1164
- # 5. Validate
1165
- $ npm test # Hope it works
1166
-
1167
- Total: 2-4 hours
1168
- Success Rate: 60%
1169
- ```
1170
-
1171
- **v2.1 Installation:**
1172
- ```bash
1173
- # One command
1174
- $ npx @allfluence/aios@latest init
1175
-
1176
- # Interactive wizard handles everything:
1177
- # - Project type detection
1178
- # - IDE configuration
1179
- # - MCP setup
1180
- # - CLI tools installation
1181
- # - Dependency installation
1182
- # - Environment configuration
1183
- # - Validation
1184
-
1185
- Total: 5 minutes
1186
- Success Rate: 98%
1187
- ```
1188
-
1189
- ---
1190
-
1
+ # 📘 AIOS v2.1 - Livro de Ouro (Summarized)
2
+
3
+ **Version:** 2.1.0-post-5-sprints
4
+ **Date:** March 2026 (as-if-implemented)
5
+ **Status:** Production Release
6
+ **Full Documentation:** See `AIOS-LIVRO-DE-OURO.md` (v2.0) for unchanged content
7
+
8
+ ---
9
+
10
+ ## 🎯 PURPOSE OF THIS DOCUMENT
11
+
12
+ This is a **delta document** highlighting **ONLY what changed in v2.1** compared to v2.0.
13
+
14
+ For complete content that remained unchanged (Layer 0, most of Layer 1), refer to:
15
+ - ✅ **`AIOS-LIVRO-DE-OURO.md`** (v2.0 base)
16
+ - ✅ This document (v2.1 changes ONLY)
17
+
18
+ **Combined reading:** v2.0 base + v2.1 delta = Complete v2.1 understanding
19
+
20
+ ---
21
+
22
+ ## 🚀 WHAT'S NEW IN v2.1 - EXECUTIVE SUMMARY
23
+
24
+ ### Installation Revolution
25
+
26
+ **v2.0:** Manual clone + 2-4 hours configuration
27
+ **v2.1:** `npx @SynkraAI/aios@latest init` + 5 minutes
28
+
29
+ ```bash
30
+ # Old way (v2.0)
31
+ $ git clone https://github.com/SynkraAI/aios-core
32
+ $ cd @synkra/aios-core
33
+ $ npm install
34
+ $ cp .env.example .env
35
+ $ # ... 2 hours of configuration ...
36
+
37
+ # New way (v2.1)
38
+ $ npx @SynkraAI/aios@latest init
39
+ # Interactive wizard handles everything
40
+ # 5 minutes to working project
41
+ ```
42
+
43
+ ---
44
+
45
+ ### Architecture Revolution
46
+
47
+ **v2.0:** Flat `.aios-core/` structure
48
+ **v2.1:** Modular `core/development/product/infrastructure/`
49
+
50
+ ```
51
+ # v2.0 (Flat)
52
+ .aios-core/
53
+ ├── agents/ (all mixed)
54
+ ├── scripts/ (all mixed)
55
+ ├── tasks/ (all mixed)
56
+ └── ... chaos ...
57
+
58
+ # v2.1 (Modular)
59
+ .aios-core/
60
+ ├── core/ # Framework essentials
61
+ │ ├── config/
62
+ │ ├── orchestration/
63
+ │ └── validation/
64
+ ├── development/ # Dev features
65
+ │ ├── agents/ (11)
66
+ │ ├── workers/ (97+)
67
+ │ └── tasks/
68
+ ├── product/ # PM features
69
+ │ ├── templates/
70
+ │ ├── workflows/
71
+ │ └── decisions/
72
+ └── infrastructure/ # System services
73
+ ├── cli/
74
+ ├── mcp/
75
+ └── integrations/
76
+ ```
77
+
78
+ ---
79
+
80
+ ### Business Model Revolution
81
+
82
+ **v2.0:** Workers closed-source
83
+ **v2.1:** Workers open-source + Service Discovery
84
+
85
+ | Component | v2.0 | v2.1 | Rationale |
86
+ |-----------|------|------|-----------|
87
+ | Agents (11) | ✅ Open | ✅ Open | Core functionality |
88
+ | Workers | ❌ Closed | ✅ **OPEN** | Commodity, network effects |
89
+ | Humanos | ⚠️ Concept | ✅ **OPEN** | Orchestration primitives |
90
+ | Service Discovery | ❌ None | ✅ **BUILT-IN** | Community needs it |
91
+ | Task-First | ⚠️ Implicit | ✅ **EXPLICIT** | Architecture clarity |
92
+ | **Clones** | 🔒 Closed | 🔒 **CLOSED** | True moat (DNA Mental™) |
93
+ | **Expansion Packs** | 🔒 Closed | 🔒 **CLOSED** | Domain expertise |
94
+
95
+ **Strategic Shift:** Open commodity → Monetize singularity
96
+
97
+ ---
98
+
99
+ ### Feature Matrix Comparison
100
+
101
+ | Feature | v2.0 | v2.1 | Impact |
102
+ |---------|------|------|--------|
103
+ | **Installation** | Manual (2-4h) | `npx` wizard (5min) | 96% faster |
104
+ | **Workers Catalog** | None | 97+ searchable | Infinite value |
105
+ | **Service Discovery** | None | Built-in CLI | New capability |
106
+ | **Quality Gates** | 1 layer (manual) | 3 layers (auto) | 80% issues caught |
107
+ | **Task-First** | Implicit | Explicit spec | Instant migration |
108
+ | **Template Engine** | Partial | Complete | All doc types |
109
+ | **CodeRabbit** | None | Local + GitHub | AI code review |
110
+ | **MCP System** | Project-only | Global + Project | Config once |
111
+
112
+ ---
113
+
114
+ ## 📖 v2.1 DOCUMENTATION STRUCTURE
115
+
116
+ ### What Changed vs. v2.0
117
+
118
+ **Layer 0 (Discovery Router):**
119
+ - ✅ **NO CHANGES** - Perfect as-is
120
+ - ✅ Added **Track 6** for v2.0 → v2.1 migration
121
+
122
+ **Layer 1 (Understanding):**
123
+ - ✅ **Essay 3 REWRITTEN** - New business model
124
+ - ✅ **Essay 5 NEW** - Task-First Architecture
125
+ - ✅ Essays 1, 2, 4 remain mostly unchanged
126
+
127
+ **Layer 2 (Component Library):**
128
+ - ✅ **Workers Catalog NEW** - 97 workers organized
129
+ - ✅ **Service Discovery Guide NEW**
130
+ - ✅ Agents section unchanged (still 11 agents)
131
+
132
+ **Layer 3 (Usage Guide):**
133
+ - ✅ **Complete Installation Rewrite** - npx wizard
134
+ - ✅ **Service Discovery Workflow NEW**
135
+ - ✅ **Quality Gates 3 Layers NEW**
136
+ - ✅ **Template Engine Usage NEW**
137
+
138
+ **Layer 4 (Complete Reference):**
139
+ - ✅ **Modular Architecture Spec NEW**
140
+ - ✅ **Task-First Format Spec NEW**
141
+ - ✅ **Service Registry Schema NEW**
142
+ - ✅ **Quality Gate Config NEW**
143
+
144
+ **Meta (Evolution):**
145
+ - ✅ **Worker Contribution Guide NEW**
146
+ - ✅ **Updated Versioning** - v2.1.0 format
147
+ - ✅ **Community Contribution Path**
148
+
149
+ ---
150
+
151
+ ## 🔥 CRITICAL CHANGES - DEEP DIVE
152
+
153
+ ### 1. Essay 3 (REWRITTEN): Open Source vs. Service
154
+
155
+ #### Old Business Model (v2.0)
156
+
157
+ ```yaml
158
+ Open-Source:
159
+ ✅ 11 Agents
160
+ ❌ Workers (closed)
161
+ ⚠️ Humanos (concept)
162
+ ❌ Clones (closed)
163
+
164
+ Problem: Workers closed = adoption barrier
165
+ ```
166
+
167
+ #### New Business Model (v2.1)
168
+
169
+ ```yaml
170
+ Open-Source v2.1:
171
+ ✅ 11 Agents (Dex, Luna, Aria, Quinn, etc.)
172
+ ✅ 97+ Workers (deterministic scripts) ← OPENED!
173
+ ✅ Humanos (orchestration) ← OPENED!
174
+ ✅ Service Discovery (find + reuse) ← NEW!
175
+ ✅ Task-First Architecture ← NEW!
176
+
177
+ Proprietary (Monetization):
178
+ 🔒 Clones (DNA Mental™ cognitive emulation)
179
+ 🔒 Expansion Packs (industry expertise)
180
+ 🔒 Team Features (collaboration)
181
+ 🔒 Enterprise (scale + support)
182
+ ```
183
+
184
+ **Rationale (Pedro Valério's Insight):**
185
+
186
+ > "Workers são commodity - qualquer dev cria scripts. Clones são singularidade - DNA Mental™ leva anos. Abrir Workers maximiza adoção enquanto protege o moat real."
187
+
188
+ **Competitive Positioning:**
189
+
190
+ | Framework | Open-Source Completeness | Unique Differentiator |
191
+ |-----------|-------------------------|----------------------|
192
+ | LangChain | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
193
+ | CrewAI | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
194
+ | AutoGen | ✅ Complete (agents + workers + orchestration) | ❌ None (all commodity) |
195
+ | **AIOS v2.1** | ✅ **Complete** (agents + workers + orchestration) | ✅ **Clones** (DNA Mental™) ⭐ |
196
+
197
+ **Key Insight:** AIOS matches competitors on open-source completeness BUT adds unique proprietary layer (Clones) that competitors cannot replicate quickly.
198
+
199
+ ---
200
+
201
+ ### 2. Essay 5 (NEW): Task-First Architecture
202
+
203
+ #### The Philosophy
204
+
205
+ > **"Everything is a Task. Executors are attributes."**
206
+
207
+ #### What This Means
208
+
209
+ **Traditional Approach (Task-per-Executor):**
210
+ ```yaml
211
+ # Agent task
212
+ agent_task.md:
213
+ name: Analyze market with AI
214
+ executor: Agent (Sage)
215
+
216
+ # Worker task
217
+ worker_task.js:
218
+ name: Analyze market with script
219
+ executor: Worker (market-analyzer.js)
220
+
221
+ Problem: 2 separate implementations for same task
222
+ ```
223
+
224
+ **Task-First Approach (Universal Task):**
225
+ ```yaml
226
+ # ONE TASK DEFINITION
227
+ task: analyzeMarket()
228
+ inputs: { market_data: object }
229
+ outputs: { insights: array }
230
+ checklist: [...]
231
+ performance: { duration_expected: 5000ms }
232
+
233
+ # EXECUTOR IS JUST A FIELD
234
+ responsavel_type: Humano # Day 1: Human analyst
235
+ responsavel_type: Worker # Week 10: Automated script
236
+ responsavel_type: Agente # Month 6: LLM judgment
237
+ responsavel_type: Clone # Year 2: Brad Frost validates
238
+
239
+ # SAME SPEC, DIFFERENT EXECUTORS
240
+ # MIGRATION IS INSTANT (change 1 field)
241
+ ```
242
+
243
+ #### Instant Executor Migration
244
+
245
+ **Before Task-First (Rewrite Required):**
246
+ ```yaml
247
+ # Migrate Worker → Agent
248
+ 1. Read Worker script
249
+ 2. Understand logic
250
+ 3. Rewrite as Agent prompt
251
+ 4. Test thoroughly
252
+ 5. Update all references
253
+ 6. 2-4 days of work
254
+ ```
255
+
256
+ **After Task-First (Field Change):**
257
+ ```yaml
258
+ # Migrate Worker → Agent
259
+ 1. Change responsavel_type: Worker → Agente
260
+ 2. Done. (2 seconds)
261
+
262
+ Why it works:
263
+ - Input/output schemas unchanged
264
+ - Checklist validation unchanged
265
+ - Performance SLAs unchanged
266
+ - Only EXECUTOR changes
267
+ ```
268
+
269
+ #### Real Example
270
+
271
+ **Day 1 (Humano):**
272
+ ```yaml
273
+ task: validateSchema()
274
+ responsavel: Senior Dev
275
+ responsavel_type: Humano
276
+ estimated_duration: 30 min
277
+ cost: $25 (human time)
278
+ ```
279
+
280
+ **Week 10 (Worker):**
281
+ ```yaml
282
+ task: validateSchema() # ← SAME TASK
283
+ responsavel: schema-validator.js
284
+ responsavel_type: Worker
285
+ estimated_duration: 500ms
286
+ cost: $0.001 (compute)
287
+ ```
288
+
289
+ **Month 6 (Agente):**
290
+ ```yaml
291
+ task: validateSchema() # ← STILL SAME TASK
292
+ responsavel: Quinn (QA Agent)
293
+ responsavel_type: Agente
294
+ estimated_duration: 3s
295
+ cost: $0.01 (LLM call)
296
+ ```
297
+
298
+ **Year 2 (Clone):**
299
+ ```yaml
300
+ task: validateSchema() # ← NO CHANGES!
301
+ responsavel: Brad Frost Clone
302
+ responsavel_type: Clone
303
+ estimated_duration: 5s
304
+ cost: $0.03 (LLM + validation)
305
+ quality: 99% (expert-level)
306
+ ```
307
+
308
+ **Result:** 4 different executors, ZERO task rewrites.
309
+
310
+ ---
311
+
312
+ ### 3. Service Discovery System
313
+
314
+ #### The Problem (v2.0)
315
+
316
+ ```bash
317
+ # Developer needs to parse JSON
318
+ $ # ... searches Google ...
319
+ $ # ... finds random npm package ...
320
+ $ # ... installs ...
321
+ $ # ... writes custom wrapper ...
322
+ $ # 2 hours later: JSON parser working
323
+
324
+ # Problem: AIOS already HAD json-parser.js Worker!
325
+ # Developer just didn't know it existed.
326
+ ```
327
+
328
+ #### The Solution (v2.1)
329
+
330
+ ```bash
331
+ # Developer needs to parse JSON
332
+ $ aios workers search "json parse"
333
+
334
+ Results (3 Workers):
335
+
336
+ 📦 json-parser.js ⭐⭐⭐⭐⭐ (47 projects)
337
+ Parse JSON safely with error handling
338
+ Input: { json_string: string }
339
+ Output: { data: object, errors: array }
340
+
341
+ 📦 json-validator.js ⭐⭐⭐⭐ (23 projects)
342
+ Validate JSON against schema
343
+
344
+ 📦 json-transformer.js ⭐⭐⭐ (15 projects)
345
+ Transform JSON structures
346
+
347
+ $ aios workers info json-parser
348
+ $ aios workers use json-parser --task my-task
349
+
350
+ # 30 seconds: JSON parser integrated
351
+ # Time saved: 1h 59min 30s
352
+ ```
353
+
354
+ #### Service Discovery Architecture
355
+
356
+ **Components:**
357
+
358
+ 1. **Service Registry** (`service-registry.json`)
359
+ ```json
360
+ {
361
+ "workers": [
362
+ {
363
+ "id": "json-parser",
364
+ "name": "JSON Parser",
365
+ "path": ".aios-core/development/workers/json-parser.js",
366
+ "category": "data-transformation",
367
+ "task_compatible": true,
368
+ "implements_task_spec": "parseJSON()",
369
+ "inputs": {
370
+ "json_string": "string"
371
+ },
372
+ "outputs": {
373
+ "data": "object",
374
+ "errors": "array"
375
+ },
376
+ "deterministic": true,
377
+ "usage_count": 47,
378
+ "rating": 4.8,
379
+ "last_updated": "2026-02-15"
380
+ }
381
+ ]
382
+ }
383
+ ```
384
+
385
+ 2. **Discovery CLI**
386
+ ```bash
387
+ aios workers list # List all
388
+ aios workers search <query> # Semantic search
389
+ aios workers info <worker-id> # Details
390
+ aios workers find-for-task <task> # Find suitable Worker
391
+ aios workers validate <worker-id> # Check compliance
392
+ ```
393
+
394
+ 3. **Task Compatibility Layer**
395
+ - Maps Workers to Task specs
396
+ - Validates input/output schemas
397
+ - Checks TASK-FORMAT-SPECIFICATION-V1 compliance
398
+
399
+ 4. **Contribution System**
400
+ ```bash
401
+ aios workers create # Generate template
402
+ aios workers test <worker-id> # Run validation
403
+ aios workers submit <worker-id> # Submit to registry
404
+ ```
405
+
406
+ #### Impact
407
+
408
+ **Metrics (6 months post-v2.1):**
409
+ - 97 Workers cataloged (baseline)
410
+ - 143 community-contributed Workers (+47%)
411
+ - 50% of tasks now reuse existing Workers (vs. 0% in v2.0)
412
+ - Average discovery time: 30 seconds (vs. N/A in v2.0)
413
+ - Duplicate work reduced by 60%
414
+
415
+ ---
416
+
417
+ ### 4. Quality Gates - 3 Layers
418
+
419
+ #### The Problem (v2.0)
420
+
421
+ ```yaml
422
+ Quality Assurance in v2.0:
423
+ - Manual code review
424
+ - Manual testing
425
+ - Manual linting
426
+ - No automation
427
+ - Issues found late (after PR)
428
+
429
+ Result:
430
+ - High review overhead
431
+ - Slow feedback loops
432
+ - Many issues slip through
433
+ - Human reviewers exhausted
434
+ ```
435
+
436
+ #### The Solution (v2.1)
437
+
438
+ **Layer 1 - Local (Immediate):**
439
+ ```bash
440
+ # Runs on every file save (< 5s)
441
+ Layer 1 Checks:
442
+ ✓ ESLint (2.1s)
443
+ ✓ Prettier (0.8s)
444
+ ✓ TypeScript (1.9s)
445
+ ✓ Unit tests (3.2s)
446
+
447
+ Executor: Worker (deterministic)
448
+ Tool: CodeRabbit IDE Extension (FREE)
449
+ Blocking: Pre-commit hooks (can't commit if fails)
450
+
451
+ Result: 30% of issues caught instantly
452
+ ```
453
+
454
+ **Layer 2 - PR (Automated):**
455
+ ```bash
456
+ # Runs on PR creation (< 3 min)
457
+ Layer 2 Checks:
458
+ ✓ CodeRabbit AI review (45s)
459
+ ✓ Integration tests (1m 30s)
460
+ ✓ Coverage analysis (40s)
461
+ ✓ Security scan (30s)
462
+ ✓ Performance benchmarks (20s)
463
+
464
+ Executor: Agente (QA Agent + CodeRabbit)
465
+ Tool: CodeRabbit GitHub App + Quinn (QA Agent)
466
+ Blocking: Required checks (can't merge if fails)
467
+
468
+ Result: Additional 50% of issues caught (80% total)
469
+ ```
470
+
471
+ **Layer 3 - Human (Strategic):**
472
+ ```bash
473
+ # Runs before final merge (30min - 2h)
474
+ Layer 3 Checks:
475
+ □ Architecture alignment
476
+ □ Business logic correctness
477
+ □ Edge cases coverage
478
+ □ Documentation quality
479
+ □ Security best practices
480
+
481
+ Executor: Humano (Senior Dev / Tech Lead)
482
+ Tool: Human expertise + context
483
+ Blocking: Final approval required
484
+
485
+ Result: Final 20% of issues caught (100% total)
486
+ Focus on what humans do best (strategy, not syntax)
487
+ ```
488
+
489
+ #### Quality Gate Orchestration
490
+
491
+ **Workflow:**
492
+ ```yaml
493
+ 1. Developer writes code
494
+
495
+ 2. Layer 1 (Local) - Instant feedback
496
+ - Linting errors? Fix immediately
497
+ - Type errors? Fix immediately
498
+ - Unit tests fail? Fix immediately
499
+ ↓ (All checks pass)
500
+ 3. git commit (pre-commit hook validates Layer 1)
501
+
502
+ 4. git push
503
+
504
+ 5. Layer 2 (PR) - Automated review
505
+ - CodeRabbit reviews code
506
+ - Quinn (QA Agent) runs tests
507
+ - GitHub Actions validates
508
+ ↓ (80% of potential issues caught)
509
+ 6. Human notification: "PR ready for strategic review"
510
+
511
+ 7. Layer 3 (Human) - Strategic review
512
+ - Human reviews ONLY architectural/business logic
513
+ - No need to check syntax (Layer 1 did it)
514
+ - No need to check patterns (Layer 2 did it)
515
+ ↓ (Final 20% reviewed)
516
+ 8. Approve + Merge
517
+ ```
518
+
519
+ #### Impact
520
+
521
+ **Before v2.1 (Single Layer):**
522
+ - 100% of issues reviewed by humans
523
+ - Average review time: 2-4 hours per PR
524
+ - Human reviewers exhausted
525
+ - Many issues still slip through
526
+
527
+ **After v2.1 (3 Layers):**
528
+ - 80% of issues caught automatically
529
+ - Average human review time: 30 minutes per PR
530
+ - Human reviewers focus on strategy
531
+ - Issue escape rate: < 5%
532
+
533
+ **Time Savings:**
534
+ - 75% reduction in human review time
535
+ - 3x faster feedback (instant vs. hours)
536
+ - 95% accuracy (vs. 70% with manual only)
537
+
538
+ ---
539
+
540
+ ## 🚀 QUICK START - v2.1 Installation
541
+
542
+ ### For New Users (Greenfield)
543
+
544
+ ```bash
545
+ # Step 1: Install AIOS
546
+ $ npx @SynkraAI/aios@latest init
547
+
548
+ Welcome to AIOS v2.1! Let's set up your project.
549
+
550
+ ? Project name: my-awesome-project
551
+ ? Project type:
552
+ ❯ Greenfield (new project)
553
+ Brownfield (existing project)
554
+
555
+ ? Select your IDE: (Use arrow keys)
556
+ ❯ Cursor
557
+ Windsurf
558
+ Trae
559
+ Zed
560
+ Continue.dev (VS Code)
561
+
562
+ ? Select AI CLI tools: (Use space to select)
563
+ ◉ Claude Code
564
+ ◯ GitHub Copilot
565
+ ◉ Gemini CLI
566
+ ◯ Codeium
567
+
568
+ ? Install MCPs: (Recommended)
569
+ ◉ All (Browser, Context7, Exa, Desktop Commander)
570
+ ◯ Custom selection
571
+
572
+ ? Install CLI tools:
573
+ ◉ GitHub CLI (gh)
574
+ ◉ Supabase CLI
575
+ ◯ Railway CLI
576
+ ◯ psql
577
+
578
+ ✓ Installing dependencies...
579
+ ✓ Configuring AIOS...
580
+ ✓ Setting up MCPs...
581
+ ✓ Installing CLI tools...
582
+ ✓ Creating project structure...
583
+ ✓ Generating first story...
584
+
585
+ 🎉 AIOS v2.1 installed successfully!
586
+
587
+ Next steps:
588
+ $ cd my-awesome-project
589
+ $ aios --help # See available commands
590
+ $ aios agents list # List available agents
591
+ $ aios workers list # List available workers
592
+ $ aios stories create # Create your first story
593
+
594
+ Time elapsed: 4m 32s
595
+ ```
596
+
597
+ ### For v2.0 Users (Migration)
598
+
599
+ ```bash
600
+ # Step 1: Backup current project
601
+ $ cp -r .aios-core .aios-core.backup
602
+
603
+ # Step 2: Run migration script
604
+ $ npx @SynkraAI/aios migrate v2.0-to-v2.1
605
+
606
+ AIOS Migration Wizard (v2.0 → v2.1)
607
+
608
+ Analyzing your project...
609
+ ✓ Detected v2.0.x installation
610
+ ✓ Found 8 custom agents
611
+ ✓ Found 23 custom workers
612
+ ✓ Found 47 stories
613
+
614
+ Migration plan:
615
+ 1. Update project structure (flat → modular)
616
+ 2. Migrate custom agents to new format
617
+ 3. Register custom workers in Service Discovery
618
+ 4. Update story references
619
+ 5. Install new dependencies
620
+
621
+ ? Proceed with migration? (Y/n) Y
622
+
623
+ ✓ Backing up current state...
624
+ ✓ Migrating project structure...
625
+ ✓ Updating agents... (8/8)
626
+ ✓ Registering workers... (23/23)
627
+ ✓ Updating stories... (47/47)
628
+ ✓ Installing new dependencies...
629
+ ✓ Running validation...
630
+
631
+ 🎉 Migration completed successfully!
632
+
633
+ Summary:
634
+ - Project structure: ✓ Migrated to modular
635
+ - Agents: ✓ 8 custom agents updated
636
+ - Workers: ✓ 23 custom workers registered
637
+ - Stories: ✓ 47 stories updated
638
+ - Service Discovery: ✓ Enabled
639
+ - Quality Gates: ✓ 3 layers configured
640
+
641
+ Rollback available: .aios-core.backup/
642
+
643
+ Time elapsed: 12m 18s
644
+ ```
645
+
646
+ ---
647
+
648
+ ## 📊 METRICS & IMPACT
649
+
650
+ ### Installation Time
651
+
652
+ | Metric | v2.0 | v2.1 | Improvement |
653
+ |--------|------|------|-------------|
654
+ | Time to install | 2-4 hours | 5 minutes | **96% faster** |
655
+ | Steps required | 15+ manual | 1 command | **93% simpler** |
656
+ | Success rate | 60% (many fail) | 98% (wizard) | **38% increase** |
657
+
658
+ ### Development Speed
659
+
660
+ | Metric | v2.0 | v2.1 | Improvement |
661
+ |--------|------|------|-------------|
662
+ | Find reusable Worker | N/A (no discovery) | 30 seconds | **Infinite value** |
663
+ | Quality issues caught | 20% (manual only) | 80% (3 layers) | **4x improvement** |
664
+ | Executor migration time | 2-4 days (rewrite) | 2 seconds (field change) | **99.99% faster** |
665
+
666
+ ### Community Growth
667
+
668
+ | Metric | v2.0 | v2.1 (6 months) | Growth |
669
+ |--------|------|-----------------|--------|
670
+ | GitHub Stars | 2.3k | 15.8k | **+587%** |
671
+ | npm Downloads | 1.2k/month | 47k/month | **+3817%** |
672
+ | Community Workers | 0 (closed) | 143 contributed | **∞** |
673
+ | Active Contributors | 23 | 412 | **+1691%** |
674
+
675
+ ---
676
+
677
+ ## 🎯 SUMMARY: v2.0 vs. v2.1
678
+
679
+ ### What v2.0 Got Right ✅
680
+
681
+ - Agent architecture (11 specialized agents)
682
+ - Atomic Design principles
683
+ - Task-based workflows
684
+ - Personality system (archetypes)
685
+ - Documentation structure (Layer 0-4)
686
+
687
+ ### What v2.1 Fixed 🔧
688
+
689
+ - **Installation:** 2-4h manual → 5min wizard
690
+ - **Business Model:** Workers closed → Workers open
691
+ - **Discoverability:** None → Service Discovery
692
+ - **Architecture:** Flat → Modular (4 domains)
693
+ - **Quality:** 1 layer → 3 layers (80% automated)
694
+ - **Executor Migration:** Days → Seconds (Task-First)
695
+ - **Template System:** Partial → Complete
696
+ - **Code Review:** Manual → AI + Human (CodeRabbit)
697
+
698
+ ### What v2.2 Will Add 🚀
699
+
700
+ - **Memory Layer:** Cross-session learning
701
+ - **Agent Lightning:** RL-based optimization
702
+ - **Team Features:** Collaboration + shared memory
703
+ - **Analytics:** Advanced insights
704
+ - **Clones Marketplace:** Expert cognitive emulation
705
+ - **Enterprise:** Scale + support + SLAs
706
+
707
+ ---
708
+
709
+ ## 📖 WHERE TO GO FROM HERE
710
+
711
+ ### If You're New to AIOS
712
+
713
+ 1. ✅ Read this summary (done!)
714
+ 2. → Read [v2.0 Layer 0](#layer-0) (Discovery Router)
715
+ 3. → Read [v2.0 Layer 1](#layer-1) (Understanding)
716
+ 4. → Read [v2.1 Essay 3](#essay-3-v21) (Business Model)
717
+ 5. → Read [v2.1 Essay 5](#essay-5-v21) (Task-First)
718
+ 6. → Install: `npx @SynkraAI/aios@latest init`
719
+
720
+ ### If You're Migrating from v2.0
721
+
722
+ 1. ✅ Read this summary (done!)
723
+ 2. → Read [Breaking Changes](#breaking-changes)
724
+ 3. → Read [Migration Guide](#migration-guide)
725
+ 4. → Backup: `cp -r .aios-core .aios-core.backup`
726
+ 5. → Migrate: `npx @SynkraAI/aios migrate v2.0-to-v2.1`
727
+
728
+ ### If You Want to Contribute
729
+
730
+ 1. ✅ Read this summary (done!)
731
+ 2. → Read [Worker Contribution Guide](#worker-contribution)
732
+ 3. → Read [Architecture Deep Dive](#architecture-v21)
733
+ 4. → Browse [Open Issues](https://github.com/SynkraAI/aios-core/issues)
734
+ 5. → Join [Discord Community](https://discord.gg/aios)
735
+
736
+ ---
737
+
738
+ **Full v2.1 Documentation:** Combine this document with `AIOS-LIVRO-DE-OURO.md` (v2.0) for complete reference.
739
+
740
+ **Next Version:** v2.2 (Q2 2026) - Memory Layer + Agent Lightning
741
+
742
+ **Last Updated:** March 2026 (as-if-implemented)
743
+
744
+ ---
745
+
746
+ ## 📁 SOURCE TREE v2.1 (Post-5 Sprints)
747
+
748
+ ### Complete Project Structure
749
+
750
+ ```
751
+ @synkra/aios-core/ # Root project
752
+ ├── .aios-core/ # ⭐ NEW: Modular Architecture
753
+ │ │
754
+ │ ├── core/ # ⭐ NEW: Core Framework Module
755
+ │ │ ├── config/ # Configuration system
756
+ │ │ │ ├── core-config.yaml # Master framework config
757
+ │ │ │ ├── install-manifest.yaml # Installation manifest
758
+ │ │ │ ├── agent-config-loader.js # Dynamic agent loading
759
+ │ │ │ └── validation-rules.yaml # Config validation
760
+ │ │ │
761
+ │ │ ├── orchestration/ # Orchestration engine
762
+ │ │ │ ├── workflow-engine.js # Workflow executor
763
+ │ │ │ ├── task-router.js # Task routing logic
764
+ │ │ │ ├── executor-selector.js # Choose executor per task
765
+ │ │ │ └── parallel-executor.js # Parallel task execution
766
+ │ │ │
767
+ │ │ ├── validation/ # Validation system
768
+ │ │ │ ├── quality-gate-manager.js # ⭐ NEW: Unified QG manager
769
+ │ │ │ ├── pre-commit-hooks.js # Layer 1 validation
770
+ │ │ │ ├── pr-automation.js # Layer 2 validation
771
+ │ │ │ └── human-review.js # Layer 3 orchestration
772
+ │ │ │
773
+ │ │ ├── service-discovery/ # ⭐ NEW: Service Discovery
774
+ │ │ │ ├── service-registry.json # Worker/Agent catalog
775
+ │ │ │ ├── discovery-cli.js # Search & find commands
776
+ │ │ │ ├── compatibility-checker.js # Task compatibility
777
+ │ │ │ └── contribution-validator.js # Community contributions
778
+ │ │ │
779
+ │ │ └── manifest/ # ⭐ NEW: Manifest System
780
+ │ │ ├── agents-manifest.csv # Agent tracking
781
+ │ │ ├── workers-manifest.csv # Worker tracking
782
+ │ │ ├── tasks-manifest.csv # Task tracking
783
+ │ │ └── manifest-validator.js # Manifest validation
784
+ │ │
785
+ │ ├── development/ # ⭐ NEW: Development Module
786
+ │ │ ├── agents/ # 11 specialized agents
787
+ │ │ │ ├── dex.md # Dev Agent (Builder)
788
+ │ │ │ ├── luna.md # QA Agent (Guardian)
789
+ │ │ │ ├── aria.md # Architect Agent (Architect)
790
+ │ │ │ ├── quinn.md # QA Lead (Guardian)
791
+ │ │ │ ├── zara.md # Analyst (Explorer)
792
+ │ │ │ ├── kai.md # PM (Balancer)
793
+ │ │ │ ├── sage.md # SM (Facilitator)
794
+ │ │ │ ├── felix.md # DevOps (Optimizer)
795
+ │ │ │ ├── nova.md # PO (Visionary)
796
+ │ │ │ ├── uma.md # UX Designer (Creator)
797
+ │ │ │ └── dara.md # Data Engineer (Architect)
798
+ │ │ │
799
+ │ │ ├── workers/ # ⭐ NEW: 97+ Workers (Open-Source)
800
+ │ │ │ ├── config-setup/ # Config & setup (12 workers)
801
+ │ │ │ │ ├── env-generator.js
802
+ │ │ │ │ ├── git-config.js
803
+ │ │ │ │ ├── dependency-installer.js
804
+ │ │ │ │ └── ...
805
+ │ │ │ │
806
+ │ │ │ ├── data-transform/ # Data transformation (23 workers)
807
+ │ │ │ │ ├── json-parser.js
808
+ │ │ │ │ ├── csv-processor.js
809
+ │ │ │ │ ├── yaml-validator.js
810
+ │ │ │ │ └── ...
811
+ │ │ │ │
812
+ │ │ │ ├── file-ops/ # File operations (18 workers)
813
+ │ │ │ │ ├── file-reader.js
814
+ │ │ │ │ ├── file-writer.js
815
+ │ │ │ │ ├── directory-scanner.js
816
+ │ │ │ │ └── ...
817
+ │ │ │ │
818
+ │ │ │ ├── integration/ # Integration & APIs (15 workers)
819
+ │ │ │ │ ├── github-api.js
820
+ │ │ │ │ ├── clickup-sync.js
821
+ │ │ │ │ ├── slack-notifier.js
822
+ │ │ │ │ └── ...
823
+ │ │ │ │
824
+ │ │ │ ├── quality/ # Quality & testing (11 workers)
825
+ │ │ │ │ ├── eslint-runner.js
826
+ │ │ │ │ ├── prettier-formatter.js
827
+ │ │ │ │ ├── test-runner.js
828
+ │ │ │ │ └── ...
829
+ │ │ │ │
830
+ │ │ │ ├── build-deploy/ # Build & deploy (10 workers)
831
+ │ │ │ │ ├── webpack-bundler.js
832
+ │ │ │ │ ├── docker-builder.js
833
+ │ │ │ │ ├── deploy-vercel.js
834
+ │ │ │ │ └── ...
835
+ │ │ │ │
836
+ │ │ │ └── utilities/ # Utilities (8 workers)
837
+ │ │ │ ├── logger.js
838
+ │ │ │ ├── error-handler.js
839
+ │ │ │ ├── metrics-collector.js
840
+ │ │ │ └── ...
841
+ │ │ │
842
+ │ │ ├── tasks/ # 60+ task definitions
843
+ │ │ │ ├── create-next-story.md
844
+ │ │ │ ├── develop-story.md
845
+ │ │ │ ├── validate-next-story.md
846
+ │ │ │ └── ...
847
+ │ │ │
848
+ │ │ └── workflows/ # 16+ workflows (10 new!)
849
+ │ │ ├── greenfield-fullstack.yaml
850
+ │ │ ├── brownfield-integration.yaml
851
+ │ │ ├── fork-join-workflow.yaml # ⭐ NEW
852
+ │ │ ├── organizer-worker.yaml # ⭐ NEW
853
+ │ │ ├── data-pipeline.yaml # ⭐ NEW
854
+ │ │ └── ...
855
+ │ │
856
+ │ ├── product/ # ⭐ NEW: Product Module
857
+ │ │ ├── templates/ # ⭐ NEW: Complete Template Engine
858
+ │ │ │ ├── story-tmpl.yaml # Story template v3.0
859
+ │ │ │ ├── prd-tmpl.yaml # PRD template v2.0
860
+ │ │ │ ├── epic-tmpl.yaml # Epic template
861
+ │ │ │ ├── architecture-tmpl.yaml # Architecture template
862
+ │ │ │ ├── adr-tmpl.yaml # ⭐ NEW: ADR template
863
+ │ │ │ ├── pmdr-tmpl.yaml # ⭐ NEW: PMDR template
864
+ │ │ │ ├── dbdr-tmpl.yaml # ⭐ NEW: DBDR template
865
+ │ │ │ └── ...
866
+ │ │ │
867
+ │ │ ├── workflows/ # Product workflows
868
+ │ │ │ ├── discovery-sprint.yaml
869
+ │ │ │ ├── refinement.yaml
870
+ │ │ │ └── retrospective.yaml
871
+ │ │ │
872
+ │ │ ├── checklists/ # Validation checklists
873
+ │ │ │ ├── po-master-checklist.md
874
+ │ │ │ ├── story-draft-checklist.md
875
+ │ │ │ └── ...
876
+ │ │ │
877
+ │ │ └── decisions/ # Decision records
878
+ │ │ ├── pmdr/ # Product decisions
879
+ │ │ ├── adr/ # Architecture decisions
880
+ │ │ └── dbdr/ # Database decisions
881
+ │ │
882
+ │ ├── infrastructure/ # ⭐ NEW: Infrastructure Module
883
+ │ │ ├── cli/ # CLI system
884
+ │ │ │ ├── aios.js # Main CLI
885
+ │ │ │ ├── commands/ # CLI commands
886
+ │ │ │ │ ├── init.js # ⭐ NEW: Installer wizard
887
+ │ │ │ │ ├── migrate.js # ⭐ NEW: Migration command
888
+ │ │ │ │ ├── workers.js # ⭐ NEW: Worker discovery
889
+ │ │ │ │ ├── agents.js # Agent management
890
+ │ │ │ │ ├── stories.js # Story management
891
+ │ │ │ │ └── ...
892
+ │ │ │ └── installer/ # ⭐ NEW: Installer system
893
+ │ │ │ ├── wizard.js # Interactive wizard
894
+ │ │ │ ├── environment-detector.js
895
+ │ │ │ ├── dependency-checker.js
896
+ │ │ │ └── migration-scripts/
897
+ │ │ │
898
+ │ │ ├── mcp/ # ⭐ NEW: MCP System
899
+ │ │ │ ├── global-config/ # Global MCP configuration
900
+ │ │ │ │ ├── mcp-registry.json # Global MCP registry
901
+ │ │ │ │ ├── browser.json # Playwright config
902
+ │ │ │ │ ├── context7.json # Context7 config
903
+ │ │ │ │ ├── exa.json # Exa config
904
+ │ │ │ │ └── desktop-commander.json
905
+ │ │ │ │
906
+ │ │ │ ├── project-config/ # Project-level configs
907
+ │ │ │ │ └── .mcp-links/ # Symlinks to global
908
+ │ │ │ │
909
+ │ │ │ └── mcp-manager.js # MCP orchestration
910
+ │ │ │
911
+ │ │ ├── integrations/ # External integrations
912
+ │ │ │ ├── coderabbit/ # ⭐ NEW: CodeRabbit integration
913
+ │ │ │ │ ├── local-extension.js # Local IDE extension
914
+ │ │ │ │ ├── github-app.js # GitHub App integration
915
+ │ │ │ │ └── config.yaml # CodeRabbit config
916
+ │ │ │ │
917
+ │ │ │ ├── github-cli/ # GitHub CLI wrapper
918
+ │ │ │ ├── supabase-cli/ # Supabase CLI wrapper
919
+ │ │ │ ├── railway-cli/ # Railway CLI wrapper
920
+ │ │ │ └── clickup/ # ClickUp integration
921
+ │ │ │
922
+ │ │ └── scripts/ # Infrastructure scripts
923
+ │ │ ├── component-generator.js
924
+ │ │ ├── elicitation-engine.js
925
+ │ │ ├── greeting-builder.js
926
+ │ │ ├── template-engine.js # ⭐ ENHANCED
927
+ │ │ └── ...
928
+ │ │
929
+ │ └── docs/ # ⭐ MOVED from root docs/standards/
930
+ │ ├── AIOS-FRAMEWORK-MASTER.md # ⭐ MIGRATED
931
+ │ ├── AIOS-LIVRO-DE-OURO.md # ⭐ MIGRATED
932
+ │ ├── EXECUTOR-DECISION-TREE.md # ⭐ MIGRATED
933
+ │ ├── TASK-FORMAT-SPECIFICATION-V1.md # ⭐ MIGRATED
934
+ │ └── ...
935
+
936
+ ├── docs/ # Project-specific docs
937
+ │ ├── prd/ # Product requirements
938
+ │ ├── architecture/ # Architecture docs
939
+ │ ├── framework/ # Framework reference
940
+ │ │ ├── coding-standards.md # Project coding standards
941
+ │ │ ├── source-tree.md # Project structure
942
+ │ │ ├── tech-stack.md # Tech stack decisions
943
+ │ │ └── db-schema.md # Database schema
944
+ │ │
945
+ │ ├── research/ # Research & discovery
946
+ │ ├── epics/ # Epic planning
947
+ │ ├── stories/ # Development stories
948
+ │ │ ├── v2.1/ # ⭐ NEW: v2.1 stories
949
+ │ │ │ ├── sprint-1/ # Sprint 1 stories
950
+ │ │ │ ├── sprint-2/ # Sprint 2 stories
951
+ │ │ │ ├── sprint-3/ # Sprint 3 stories
952
+ │ │ │ ├── sprint-4/ # Sprint 4 stories
953
+ │ │ │ └── sprint-5/ # Sprint 5 stories
954
+ │ │ │
955
+ │ │ ├── v2.2/ # Future v2.2 stories
956
+ │ │ ├── independent/ # Version-independent
957
+ │ │ └── archive/ # Archived stories
958
+ │ │
959
+ │ ├── decisions/ # Decision records
960
+ │ │ ├── pmdr/ # Product decisions
961
+ │ │ ├── adr/ # Architecture decisions
962
+ │ │ └── dbdr/ # Database decisions
963
+ │ │
964
+ │ ├── qa/ # QA reports
965
+ │ ├── audits/ # Audit reports
966
+ │ └── guides/ # How-to guides
967
+
968
+ ├── Squads/ # ⭐ UPDATED: Only 2 packs in open-source
969
+ │ ├── expansion-creator/ # Create custom packs
970
+ │ └── data-engineering/ # Data pipelines
971
+
972
+ ├── bin/ # CLI executables
973
+ │ ├── aios.js # ⭐ NEW: Main CLI entry (simplified)
974
+ │ └── aios-init.js # ⭐ DEPRECATED: Use npx installer
975
+
976
+ ├── .ai/ # AI session artifacts
977
+ │ ├── decision-logs/ # Task decision logs
978
+ │ └── context/ # Session context
979
+
980
+ ├── .claude/ # Claude Code configuration
981
+ │ ├── settings.json
982
+ │ ├── CLAUDE.md
983
+ │ └── commands/ # Agent commands
984
+
985
+ ├── tests/ # Test suites
986
+ │ ├── unit/
987
+ │ ├── integration/
988
+ │ └── e2e/
989
+
990
+ ├── .github/ # ⭐ NEW: GitHub automation
991
+ │ ├── workflows/ # CI/CD workflows
992
+ │ │ ├── quality-gates-pr.yml # Layer 2 quality gates
993
+ │ │ ├── coderabbit-review.yml # CodeRabbit automation
994
+ │ │ └── tests.yml # Test automation
995
+ │ │
996
+ │ └── coderabbit.yaml # CodeRabbit configuration
997
+
998
+ ├── package.json # Package manifest
999
+ ├── tsconfig.json # TypeScript config
1000
+ ├── .eslintrc.json # ESLint config (Layer 1)
1001
+ ├── .prettierrc # Prettier config (Layer 1)
1002
+ ├── .husky/ # ⭐ NEW: Git hooks (Layer 1)
1003
+ │ ├── pre-commit # Pre-commit validation
1004
+ │ └── pre-push # Pre-push validation
1005
+
1006
+ └── README.md # Project README
1007
+ ```
1008
+
1009
+ ---
1010
+
1011
+ ### Key Changes from v2.0
1012
+
1013
+ **1. Modular Architecture:**
1014
+ ```
1015
+ v2.0: Flat .aios-core/ (all mixed)
1016
+ v2.1: 4 modules (core/development/product/infrastructure)
1017
+
1018
+ Benefits:
1019
+ - Clear separation of concerns
1020
+ - Easier to navigate
1021
+ - Better maintainability
1022
+ - Scalable for v3.0
1023
+ ```
1024
+
1025
+ **2. Service Discovery:**
1026
+ ```
1027
+ NEW: .aios-core/core/service-discovery/
1028
+ - service-registry.json (97+ workers cataloged)
1029
+ - discovery-cli.js (search & find)
1030
+ - compatibility-checker.js (task matching)
1031
+
1032
+ Impact: Developers find & reuse workers in 30 seconds vs. rebuilding
1033
+ ```
1034
+
1035
+ **3. Quality Gates 3 Layers:**
1036
+ ```
1037
+ NEW: .aios-core/core/validation/
1038
+ - quality-gate-manager.js (unified orchestrator)
1039
+ - pre-commit-hooks.js (Layer 1: Local)
1040
+ - pr-automation.js (Layer 2: PR)
1041
+ - human-review.js (Layer 3: Strategic)
1042
+
1043
+ NEW: .github/workflows/ (CI/CD automation)
1044
+ NEW: .husky/ (Git hooks)
1045
+
1046
+ Impact: 80% of issues caught automatically
1047
+ ```
1048
+
1049
+ **4. Workers Open-Source:**
1050
+ ```
1051
+ NEW: .aios-core/development/workers/ (97+ workers)
1052
+ - Organized by category (6 categories)
1053
+ - Each worker implements Task-First spec
1054
+ - Community contributions enabled
1055
+
1056
+ Impact: Network effects, community growth
1057
+ ```
1058
+
1059
+ **5. Template Engine:**
1060
+ ```
1061
+ ENHANCED: .aios-core/product/templates/
1062
+ - All document types supported
1063
+ - PMDR, ADR, DBDR templates added
1064
+ - Template versioning
1065
+ - Variable substitution
1066
+
1067
+ Impact: Zero manual doc creation
1068
+ ```
1069
+
1070
+ **6. Installer System:**
1071
+ ```
1072
+ NEW: .aios-core/infrastructure/cli/installer/
1073
+ - wizard.js (interactive setup)
1074
+ - environment-detector.js
1075
+ - migration-scripts/ (v2.0 → v2.1)
1076
+
1077
+ NEW: npx @SynkraAI/aios@latest init
1078
+
1079
+ Impact: 5 minutes install vs. 2-4 hours
1080
+ ```
1081
+
1082
+ **7. MCP System:**
1083
+ ```
1084
+ NEW: .aios-core/infrastructure/mcp/
1085
+ - global-config/ (configured once)
1086
+ - project-config/ (symlinks)
1087
+ - mcp-manager.js (orchestration)
1088
+
1089
+ Impact: Configure MCPs once, use everywhere
1090
+ ```
1091
+
1092
+ **8. CodeRabbit Integration:**
1093
+ ```
1094
+ NEW: .aios-core/infrastructure/integrations/coderabbit/
1095
+ - local-extension.js (IDE, Layer 1)
1096
+ - github-app.js (GitHub, Layer 2)
1097
+ - config.yaml
1098
+
1099
+ NEW: .github/coderabbit.yaml
1100
+
1101
+ Impact: AI-powered code review (local + PR)
1102
+ ```
1103
+
1104
+ **9. Framework Standards Migration:**
1105
+ ```
1106
+ MOVED: docs/standards/ → .aios-core/docs/
1107
+ - AIOS-FRAMEWORK-MASTER.md
1108
+ - AIOS-LIVRO-DE-OURO.md
1109
+ - EXECUTOR-DECISION-TREE.md
1110
+ - TASK-FORMAT-SPECIFICATION-V1.md
1111
+
1112
+ Rationale: Framework docs belong with framework code
1113
+ ```
1114
+
1115
+ **10. Story Organization:**
1116
+ ```
1117
+ NEW: docs/stories/ reorganized
1118
+ - v2.1/ (sprint-1 to sprint-5)
1119
+ - v2.2/ (future)
1120
+ - independent/ (version-agnostic)
1121
+ - archive/ (old stories moved)
1122
+
1123
+ Impact: Clear roadmap, easy to track progress
1124
+ ```
1125
+
1126
+ ---
1127
+
1128
+ ### File Count Comparison
1129
+
1130
+ | Category | v2.0 | v2.1 | Change |
1131
+ |----------|------|------|--------|
1132
+ | Agents | 11 | 11 | Same (corrected from "16") |
1133
+ | Workers | 0 (closed) | 97+ | **+97** (open-sourced) |
1134
+ | Tasks | 60 | 60+ | Same (minor additions) |
1135
+ | Templates | 20 | 27+ | **+7** (ADR, PMDR, DBDR, etc.) |
1136
+ | Workflows | 6 | 16+ | **+10** (new patterns) |
1137
+ | Scripts | 54 | 60+ | **+6** (new utilities) |
1138
+ | CLI Commands | 5 | 12+ | **+7** (installer, workers, migrate) |
1139
+
1140
+ ---
1141
+
1142
+ ### Installation Comparison
1143
+
1144
+ **v2.0 Installation:**
1145
+ ```bash
1146
+ # 1. Clone repository
1147
+ $ git clone https://github.com/SynkraAI/aios-core
1148
+ $ cd @synkra/aios-core
1149
+
1150
+ # 2. Install dependencies
1151
+ $ npm install # 5-10 minutes
1152
+
1153
+ # 3. Copy environment
1154
+ $ cp .env.example .env
1155
+
1156
+ # 4. Configure manually
1157
+ $ # Edit .env (15+ variables)
1158
+ $ # Configure IDE
1159
+ $ # Configure MCPs
1160
+ $ # Configure ClickUp
1161
+ $ # Configure GitHub
1162
+ $ # ... 2-4 hours of manual config ...
1163
+
1164
+ # 5. Validate
1165
+ $ npm test # Hope it works
1166
+
1167
+ Total: 2-4 hours
1168
+ Success Rate: 60%
1169
+ ```
1170
+
1171
+ **v2.1 Installation:**
1172
+ ```bash
1173
+ # One command
1174
+ $ npx @SynkraAI/aios@latest init
1175
+
1176
+ # Interactive wizard handles everything:
1177
+ # - Project type detection
1178
+ # - IDE configuration
1179
+ # - MCP setup
1180
+ # - CLI tools installation
1181
+ # - Dependency installation
1182
+ # - Environment configuration
1183
+ # - Validation
1184
+
1185
+ Total: 5 minutes
1186
+ Success Rate: 98%
1187
+ ```
1188
+
1189
+ ---
1190
+