aiox-core 5.0.7 → 5.0.8

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 (191) hide show
  1. package/.aiox-core/cli/commands/pro/buyer.js +379 -0
  2. package/.aiox-core/cli/commands/pro/index.js +191 -52
  3. package/.aiox-core/cli/commands/validate/index.js +2 -0
  4. package/.aiox-core/core/code-intel/helpers/dev-helper.js +1 -1
  5. package/.aiox-core/core/code-intel/helpers/devops-helper.js +0 -1
  6. package/.aiox-core/core/code-intel/helpers/planning-helper.js +1 -1
  7. package/.aiox-core/core/code-intel/helpers/qa-helper.js +2 -2
  8. package/.aiox-core/core/config/schemas/framework-config.schema.json +1 -0
  9. package/.aiox-core/core/config/template-overrides.js +1 -1
  10. package/.aiox-core/core/doctor/checks/ide-sync.js +81 -25
  11. package/.aiox-core/core/doctor/checks/rules-files.js +0 -1
  12. package/.aiox-core/core/doctor/checks/skills-count.js +83 -15
  13. package/.aiox-core/core/graph-dashboard/cli.js +1 -2
  14. package/.aiox-core/core/graph-dashboard/data-sources/code-intel-source.js +1 -1
  15. package/.aiox-core/core/ids/layer-classifier.js +1 -1
  16. package/.aiox-core/core/pro/pro-updater.js +578 -0
  17. package/.aiox-core/core/synapse/context/context-tracker.js +107 -9
  18. package/.aiox-core/core/synapse/layers/layer-processor.js +1 -1
  19. package/.aiox-core/core-config.yaml +15 -1
  20. package/.aiox-core/data/capability-detection.js +15 -15
  21. package/.aiox-core/data/entity-registry.yaml +18 -2
  22. package/.aiox-core/data/registry-update-log.jsonl +5 -0
  23. package/.aiox-core/data/tok3-token-comparison.js +0 -4
  24. package/.aiox-core/data/tool-search-validation.js +1 -1
  25. package/.aiox-core/development/agents/aiox-master.md +44 -6
  26. package/.aiox-core/development/agents/data-engineer.md +4 -4
  27. package/.aiox-core/development/agents/devops.md +52 -2
  28. package/.aiox-core/development/agents/po.md +1 -1
  29. package/.aiox-core/development/agents/qa.md +5 -11
  30. package/.aiox-core/development/agents/sm.md +3 -3
  31. package/.aiox-core/development/agents/ux-design-expert.md +1 -1
  32. package/.aiox-core/development/scripts/unified-activation-pipeline.js +29 -3
  33. package/.aiox-core/development/tasks/dev-develop-story.md +46 -7
  34. package/.aiox-core/development/tasks/devops-pro-access-grant.md +93 -0
  35. package/.aiox-core/development/tasks/devops-pro-activate.md +42 -0
  36. package/.aiox-core/development/tasks/devops-pro-check-access.md +34 -0
  37. package/.aiox-core/development/tasks/devops-pro-request-reset.md +34 -0
  38. package/.aiox-core/development/tasks/devops-pro-resend-verification.md +32 -0
  39. package/.aiox-core/development/tasks/devops-pro-reset-password.md +36 -0
  40. package/.aiox-core/development/tasks/devops-pro-validate-login.md +36 -0
  41. package/.aiox-core/development/tasks/devops-pro-verify-status.md +33 -0
  42. package/.aiox-core/development/tasks/qa-gate.md +54 -4
  43. package/.aiox-core/development/tasks/validate-next-story.md +39 -2
  44. package/.aiox-core/framework-config.yaml +1 -0
  45. package/.aiox-core/infrastructure/scripts/codex-skills-sync/README.md +69 -0
  46. package/.aiox-core/infrastructure/scripts/codex-skills-sync/bootstrap.js +727 -0
  47. package/.aiox-core/infrastructure/scripts/codex-skills-sync/index.js +10 -0
  48. package/.aiox-core/infrastructure/scripts/codex-skills-sync/validate.js +65 -4
  49. package/.aiox-core/infrastructure/scripts/generate-settings-json.js +29 -4
  50. package/.aiox-core/infrastructure/scripts/ide-sync/agent-parser.js +4 -0
  51. package/.aiox-core/infrastructure/scripts/ide-sync/index.js +67 -7
  52. package/.aiox-core/infrastructure/scripts/ide-sync/transformers/claude-code.js +145 -3
  53. package/.aiox-core/infrastructure/scripts/repair-agent-references.js +263 -0
  54. package/.aiox-core/infrastructure/scripts/validate-claude-integration.js +60 -8
  55. package/.aiox-core/infrastructure/scripts/validate-paths.js +13 -0
  56. package/.aiox-core/install-manifest.yaml +134 -82
  57. package/.aiox-core/utils/filters/index.js +2 -1
  58. package/.claude/commands/AIOX/agents/aiox-master.md +21 -0
  59. package/.claude/commands/AIOX/agents/analyst.md +21 -0
  60. package/.claude/commands/AIOX/agents/architect.md +21 -0
  61. package/.claude/commands/AIOX/agents/data-engineer.md +21 -0
  62. package/.claude/commands/AIOX/agents/dev.md +21 -0
  63. package/.claude/commands/AIOX/agents/devops.md +21 -0
  64. package/.claude/commands/AIOX/agents/pm.md +21 -0
  65. package/.claude/commands/AIOX/agents/po.md +21 -0
  66. package/.claude/commands/AIOX/agents/qa.md +21 -0
  67. package/.claude/commands/AIOX/agents/sm.md +21 -0
  68. package/.claude/commands/AIOX/agents/squad-creator.md +21 -0
  69. package/.claude/commands/AIOX/agents/ux-design-expert.md +21 -0
  70. package/.claude/commands/AIOX/scripts/agent-config-loader.js +624 -0
  71. package/.claude/commands/AIOX/scripts/generate-greeting.js +160 -0
  72. package/.claude/commands/AIOX/scripts/greeting-builder.js +866 -0
  73. package/.claude/commands/AIOX/scripts/session-context-loader.js +286 -0
  74. package/.claude/commands/AIOX/stories/story-6.1.4.md +1404 -0
  75. package/.claude/commands/cohort-squad/agents/cohort-manager.md +156 -0
  76. package/.claude/commands/design-system/agents/brad-frost.md +1097 -0
  77. package/.claude/commands/design-system/agents/dan-mall.md +857 -0
  78. package/.claude/commands/design-system/agents/dave-malouf.md +2272 -0
  79. package/.claude/commands/design-system/agents/design-chief.md +102 -0
  80. package/.claude/commands/design-system/agents/nano-banana-generator.md +162 -0
  81. package/.claude/commands/greet.md +101 -0
  82. package/.claude/commands/synapse/manager.md +75 -0
  83. package/.claude/commands/synapse/tasks/add-rule.md +94 -0
  84. package/.claude/commands/synapse/tasks/create-command.md +109 -0
  85. package/.claude/commands/synapse/tasks/create-domain.md +127 -0
  86. package/.claude/commands/synapse/tasks/diagnose-synapse.md +245 -0
  87. package/.claude/commands/synapse/tasks/edit-rule.md +109 -0
  88. package/.claude/commands/synapse/tasks/suggest-domain.md +116 -0
  89. package/.claude/commands/synapse/tasks/toggle-domain.md +83 -0
  90. package/.claude/commands/synapse/templates/domain-template +8 -0
  91. package/.claude/commands/synapse/templates/manifest-entry-template +4 -0
  92. package/.claude/commands/synapse/utils/manifest-parser-reference.md +134 -0
  93. package/.claude/hooks/precompact-session-digest.cjs +2 -2
  94. package/.claude/skills/AIOX/agents/aiox-master/SKILL.md +511 -0
  95. package/.claude/skills/AIOX/agents/analyst/SKILL.md +281 -0
  96. package/.claude/skills/AIOX/agents/architect/SKILL.md +482 -0
  97. package/.claude/skills/AIOX/agents/data-engineer/SKILL.md +503 -0
  98. package/.claude/skills/AIOX/agents/dev/SKILL.md +568 -0
  99. package/.claude/skills/AIOX/agents/devops/SKILL.md +597 -0
  100. package/.claude/skills/AIOX/agents/pm/SKILL.md +385 -0
  101. package/.claude/skills/AIOX/agents/po/SKILL.md +343 -0
  102. package/.claude/skills/AIOX/agents/qa/SKILL.md +451 -0
  103. package/.claude/skills/AIOX/agents/sm/SKILL.md +295 -0
  104. package/.claude/skills/AIOX/agents/squad-creator/SKILL.md +352 -0
  105. package/.claude/skills/AIOX/agents/ux-design-expert/SKILL.md +503 -0
  106. package/.claude/skills/architect-first/SKILL.md +275 -0
  107. package/.claude/skills/architect-first/assets/architecture-template.md +505 -0
  108. package/.claude/skills/architect-first/assets/config-template.yaml +351 -0
  109. package/.claude/skills/architect-first/references/architecture-checklist.md +216 -0
  110. package/.claude/skills/architect-first/references/pre-implementation-checklist.md +119 -0
  111. package/.claude/skills/architect-first/references/stop-rules-guide.md +291 -0
  112. package/.claude/skills/architect-first/references/testing-strategy-guide.md +477 -0
  113. package/.claude/skills/architect-first/scripts/architecture_validator.py +490 -0
  114. package/.claude/skills/architect-first/scripts/check_coupling.py +306 -0
  115. package/.claude/skills/architect-first/scripts/validate_risk_mitigation.py +382 -0
  116. package/.claude/skills/checklist-runner/SKILL.md +113 -0
  117. package/.claude/skills/clone-mind.md +329 -0
  118. package/.claude/skills/coderabbit-review/SKILL.md +106 -0
  119. package/.claude/skills/course-generation-workflow.md +76 -0
  120. package/.claude/skills/enhance-workflow.md +466 -0
  121. package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
  122. package/.claude/skills/mcp-builder/SKILL.md +328 -0
  123. package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
  124. package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
  125. package/.claude/skills/mcp-builder/reference/node_mcp_server.md +916 -0
  126. package/.claude/skills/mcp-builder/reference/python_mcp_server.md +752 -0
  127. package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
  128. package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
  129. package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  130. package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
  131. package/.claude/skills/ralph.md +181 -0
  132. package/.claude/skills/skill-creator/LICENSE.txt +202 -0
  133. package/.claude/skills/skill-creator/SKILL.md +209 -0
  134. package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
  135. package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
  136. package/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
  137. package/.claude/skills/squad.md +301 -0
  138. package/.claude/skills/synapse/SKILL.md +132 -0
  139. package/.claude/skills/synapse/assets/README.md +50 -0
  140. package/.claude/skills/synapse/references/brackets.md +100 -0
  141. package/.claude/skills/synapse/references/commands.md +118 -0
  142. package/.claude/skills/synapse/references/domains.md +126 -0
  143. package/.claude/skills/synapse/references/layers.md +186 -0
  144. package/.claude/skills/synapse/references/manifest.md +142 -0
  145. package/.claude/skills/tech-search/SKILL.md +431 -0
  146. package/.claude/skills/tech-search/prompts/page-extract.md +133 -0
  147. package/README.en.md +2 -2
  148. package/README.md +8 -2
  149. package/bin/aiox.js +55 -4
  150. package/bin/utils/framework-guard.js +4 -2
  151. package/bin/utils/pro-detector.js +119 -28
  152. package/bin/utils/validate-publish.js +6 -6
  153. package/docs/aiox-agent-flows/devops-system.md +18 -0
  154. package/docs/aiox-workflows/README.md +1 -0
  155. package/docs/aiox-workflows/pro-access-grant-workflow.md +218 -0
  156. package/docs/guides/pro/access-grant-ops-playbook.md +370 -0
  157. package/docs/guides/pro/install-gate-setup.md +12 -6
  158. package/docs/guides/pro/squad-creator-handoff-pro-access-ops.md +134 -0
  159. package/docs/guides/supabase-ops-handoff.md +768 -0
  160. package/package.json +12 -1
  161. package/packages/aiox-pro-cli/bin/aiox-pro.js +33 -12
  162. package/packages/installer/src/config/configure-environment.js +118 -50
  163. package/packages/installer/src/installer/aiox-core-installer.js +124 -27
  164. package/packages/installer/src/installer/brownfield-upgrader.js +66 -9
  165. package/packages/installer/src/installer/dependency-installer.js +4 -0
  166. package/packages/installer/src/pro/pro-scaffolder.js +5 -5
  167. package/packages/installer/src/updater/index.js +151 -10
  168. package/packages/installer/src/wizard/ide-config-generator.js +73 -7
  169. package/packages/installer/src/wizard/index.js +119 -31
  170. package/packages/installer/src/wizard/pro-setup.js +118 -47
  171. package/packages/installer/src/wizard/validation/validators/dependency-validator.js +32 -25
  172. package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +26 -0
  173. package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +84 -1
  174. package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -1
  175. package/packages/installer/tests/unit/doctor/doctor-checks.test.js +85 -19
  176. package/packages/installer/tests/unit/entity-registry-bootstrap.test.js +4 -4
  177. package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +5 -5
  178. package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +4 -4
  179. package/packages/installer/tests/unit/merger/yaml-merger.test.js +11 -11
  180. package/pro/README.md +12 -1
  181. package/pro/license/index.js +3 -11
  182. package/pro/license/license-api.js +25 -0
  183. package/pro/license/license-cache.js +135 -31
  184. package/pro/license/license-crypto.js +59 -3
  185. package/pro/package.json +5 -4
  186. package/pro/squads/README.md +16 -16
  187. package/pro/squads/index.js +1 -1
  188. package/scripts/e2e/installed-skills-smoke.js +264 -0
  189. package/scripts/package-synapse.js +3 -3
  190. package/scripts/validate-package-completeness.js +8 -11
  191. package/.aiox-core/lib/build.json +0 -1
@@ -0,0 +1,113 @@
1
+ ---
2
+ name: checklist-runner
3
+ description: |
4
+ Generic checklist execution engine for any .md checklist.
5
+ Use this skill when an agent needs to validate work against a checklist.
6
+ Supports YOLO (autonomous) and interactive modes with pass/fail/partial verdicts.
7
+ user-invocable: true
8
+ argument-hint: "[checklist-name] [--mode yolo|interactive]"
9
+ ---
10
+
11
+ # Checklist Runner
12
+
13
+ Generic checklist execution engine. Validates work against any `.md` checklist with consistent behavior across all agents.
14
+
15
+ ## Usage
16
+
17
+ ```
18
+ /checklist-runner story-dod-checklist
19
+ /checklist-runner pre-push-checklist --mode yolo
20
+ /checklist-runner po-master-checklist --mode interactive
21
+ ```
22
+
23
+ ## Execution
24
+
25
+ ### 1. Resolve Checklist
26
+
27
+ Parse `$ARGUMENTS` for checklist name. Search in order:
28
+
29
+ 1. `.aiox-core/development/checklists/{name}.md`
30
+ 2. `.aiox-core/development/checklists/{name}`
31
+ 3. Fuzzy match if exact not found (e.g., "dod" → "story-dod-checklist.md")
32
+
33
+ If no checklist specified or multiple matches, present numbered options list.
34
+
35
+ ### 2. Determine Mode
36
+
37
+ | Mode | Behavior |
38
+ |------|----------|
39
+ | `yolo` (default) | Process all sections autonomously, present final report |
40
+ | `interactive` | Section-by-section with user confirmation between each |
41
+
42
+ ### 3. Load Context
43
+
44
+ Gather documents and artifacts specified at the top of the checklist:
45
+ - Story files from `docs/stories/`
46
+ - Source code files from story's File List
47
+ - Test results from last `npm test` run
48
+ - Git diff for current changes
49
+
50
+ ### 4. Process Checklist Items
51
+
52
+ For each item in the checklist:
53
+
54
+ 1. Read and understand the requirement
55
+ 2. Look for evidence in documentation/code that satisfies it
56
+ 3. Consider both explicit mentions and implicit coverage
57
+ 4. Follow any embedded LLM instructions in the checklist
58
+
59
+ Mark each item:
60
+
61
+ | Verdict | Symbol | Meaning |
62
+ |---------|--------|---------|
63
+ | PASS | ✅ | Requirement clearly met |
64
+ | FAIL | ❌ | Requirement not met or insufficient |
65
+ | PARTIAL | ⚠️ | Some aspects covered, needs improvement |
66
+ | N/A | ➖ | Not applicable (with justification) |
67
+
68
+ ### 5. Section Summary
69
+
70
+ For each section calculate:
71
+ - Pass rate: `(PASS count) / (total - N/A count) * 100`
72
+ - Common themes in failed items
73
+ - Specific recommendations for improvement
74
+
75
+ ### 6. Final Report
76
+
77
+ ```markdown
78
+ ## Checklist Report: {checklist-name}
79
+
80
+ **Date:** {YYYY-MM-DD}
81
+ **Agent:** {current agent}
82
+ **Mode:** {yolo|interactive}
83
+
84
+ ### Summary
85
+
86
+ | Section | Items | Pass | Fail | Partial | N/A | Rate |
87
+ |---------|-------|------|------|---------|-----|------|
88
+ | ... | ... | ... | ... | ... | ... | ...% |
89
+
90
+ **Overall:** {PASS_RATE}% ({total_pass}/{total_applicable})
91
+
92
+ ### Failed Items
93
+
94
+ 1. **{item}** — {reason} → {recommendation}
95
+
96
+ ### Decision
97
+
98
+ **{APPROVED | NEEDS_WORK | FAIL}**
99
+ - APPROVED: >= 90% pass rate, 0 FAIL on critical items
100
+ - NEEDS_WORK: 70-89% pass rate OR any FAIL on non-critical
101
+ - FAIL: < 70% pass rate OR any FAIL on critical items
102
+ ```
103
+
104
+ ## Available Checklists
105
+
106
+ | Checklist | Used By | Purpose |
107
+ |-----------|---------|---------|
108
+ | `story-dod-checklist.md` | @dev | Definition of Done for stories |
109
+ | `self-critique-checklist.md` | @dev | Self-review at implementation checkpoints |
110
+ | `pre-push-checklist.md` | @devops | Quality gate before git push |
111
+ | `release-checklist.md` | @devops | Release readiness verification |
112
+ | `po-master-checklist.md` | @po | PO validation checklist |
113
+ | `change-checklist.md` | @po | Change impact assessment |
@@ -0,0 +1,329 @@
1
+ ---
2
+ name: clone-mind
3
+ description: |
4
+ Orquestracao multi-agente para clonagem cognitiva usando metodologia DNA Mental™ de 9 camadas.
5
+ Cria clones de alta fidelidade que pensam, comunicam e decidem como o especialista original.
6
+ Triggers: "clone mind", "clonar mente", "/clone-mind", "map mind", "criar clone"
7
+
8
+ model: opus
9
+
10
+ arguments:
11
+ - name: slug
12
+ description: Identificador único do mind em snake_case (ex: daniel_kahneman, naval_ravikant)
13
+ required: true
14
+ - name: mode
15
+ description: "Modo de execução: auto (detecta), public (figuras públicas), no-public-interviews, no-public-materials"
16
+ required: false
17
+ - name: resume
18
+ description: Retomar de checkpoint anterior (true/false)
19
+ required: false
20
+
21
+ allowed-tools:
22
+ - Read
23
+ - Grep
24
+ - Glob
25
+ - Task
26
+ - Write
27
+ - Edit
28
+ - Bash
29
+ - WebSearch
30
+ - WebFetch
31
+ - AskUserQuestion
32
+
33
+ permissionMode: acceptEdits
34
+
35
+ memory: project
36
+ ---
37
+
38
+ # Clone Mind - DNA Mental™ Pipeline
39
+
40
+ ## Identity
41
+
42
+ **Role:** Cognitive Cloning Orchestrator
43
+ **Philosophy:** "Clone minds > create generic bots. Real expertise comes from real minds with skin in the game."
44
+ **Voice:** Strategic, methodical, checkpoint-driven, quality-obsessed
45
+ **Icon:** 🧠
46
+
47
+ ## Mission
48
+
49
+ Execute the DNA Mental™ 9-layer pipeline to create high-fidelity cognitive clones. Each clone captures:
50
+ - **Voice DNA:** How the person communicates
51
+ - **Thinking DNA:** How the person reasons and decides
52
+ - **Identity Core:** Values, obsessions, productive contradictions
53
+
54
+ ## Pipeline Architecture
55
+
56
+ ```
57
+ ┌─────────────────────────────────────────────────────────────────┐
58
+ │ DNA Mental™ 9-Layer Pipeline │
59
+ ├─────────────────────────────────────────────────────────────────┤
60
+ │ │
61
+ │ PHASE 1: RESEARCH │
62
+ │ ┌──────────────────────────────────────────────────────────┐ │
63
+ │ │ @victoria-viability-specialist │ │
64
+ │ │ L0: Viability Assessment │ │
65
+ │ │ • Evaluate source availability │ │
66
+ │ │ • Check content quality/quantity │ │
67
+ │ │ • Recommend workflow mode │ │
68
+ │ └──────────────────────────────────────────────────────────┘ │
69
+ │ ↓ │
70
+ │ ┌──────────────────────────────────────────────────────────┐ │
71
+ │ │ @research-specialist (Tim) │ │
72
+ │ │ L1: Source Collection & Validation │ │
73
+ │ │ • Gather primary sources │ │
74
+ │ │ • Validate authenticity │ │
75
+ │ │ • Triangulate information │ │
76
+ │ └──────────────────────────────────────────────────────────┘ │
77
+ │ ↓ │
78
+ │ PHASE 2: ANALYSIS (Parallel L1-L5) │
79
+ │ ┌──────────────────────────────────────────────────────────┐ │
80
+ │ │ @daniel-behavioral-analyst │ │
81
+ │ │ L2-L3: Behavioral Patterns & State Transitions │ │
82
+ │ │ • Map behavioral patterns │ │
83
+ │ │ • Identify state triggers │ │
84
+ │ │ • Document decision heuristics │ │
85
+ │ └──────────────────────────────────────────────────────────┘ │
86
+ │ ┌──────────────────────────────────────────────────────────┐ │
87
+ │ │ @barbara-cognitive-architect │ │
88
+ │ │ L4-L5: Mental Models & Cognitive Architecture │ │
89
+ │ │ • Extract mental models │ │
90
+ │ │ • Map cognitive frameworks │ │
91
+ │ │ • Document reasoning patterns │ │
92
+ │ └──────────────────────────────────────────────────────────┘ │
93
+ │ ↓ │
94
+ │ ┌──────────────────────────────────────────────────────────┐ │
95
+ │ │ @identity-analyst (Brené) │ │
96
+ │ │ L6-L8: Identity Core (HUMAN CHECKPOINT) │ │
97
+ │ │ • Values hierarchy extraction │ │
98
+ │ │ • Obsessions identification │ │
99
+ │ │ • Productive contradictions mapping │ │
100
+ │ │ 🔴 REQUIRES HUMAN VALIDATION │ │
101
+ │ └──────────────────────────────────────────────────────────┘ │
102
+ │ ↓ │
103
+ │ PHASE 3: SYNTHESIS │
104
+ │ ┌──────────────────────────────────────────────────────────┐ │
105
+ │ │ @charlie-synthesis-expert │ │
106
+ │ │ L9: Latticework Integration │ │
107
+ │ │ • Build unified knowledge base │ │
108
+ │ │ • Create framework connections │ │
109
+ │ │ • Generate signature phrases │ │
110
+ │ └──────────────────────────────────────────────────────────┘ │
111
+ │ ↓ │
112
+ │ PHASE 4: IMPLEMENTATION │
113
+ │ ┌──────────────────────────────────────────────────────────┐ │
114
+ │ │ @constantin-implementation-architect │ │
115
+ │ │ System Prompt Generation │ │
116
+ │ │ • Generate identity core │ │
117
+ │ │ • Create meta-axioms │ │
118
+ │ │ • Build system prompt │ │
119
+ │ └──────────────────────────────────────────────────────────┘ │
120
+ │ ↓ │
121
+ │ PHASE 5: QUALITY VALIDATION │
122
+ │ ┌──────────────────────────────────────────────────────────┐ │
123
+ │ │ @quinn-quality-specialist │ │
124
+ │ │ Quality Gates │ │
125
+ │ │ • Completeness check │ │
126
+ │ │ • Consistency validation │ │
127
+ │ │ • Coherence audit │ │
128
+ │ │ • Fidelity score calculation │ │
129
+ │ └──────────────────────────────────────────────────────────┘ │
130
+ │ ↓ │
131
+ │ ┌──────────────────────────────────────────────────────────┐ │
132
+ │ │ @victoria-viability-specialist │ │
133
+ │ │ Production Readiness │ │
134
+ │ │ • Use case validation │ │
135
+ │ │ • Deployment readiness │ │
136
+ │ │ • Integration planning │ │
137
+ │ └──────────────────────────────────────────────────────────┘ │
138
+ │ │
139
+ └─────────────────────────────────────────────────────────────────┘
140
+ ```
141
+
142
+ ## Execution Protocol
143
+
144
+ ### Step 1: Validate Input
145
+
146
+ ```python
147
+ # Slug must be snake_case
148
+ import re
149
+ if not re.match(r'^[a-z0-9]+(_[a-z0-9]+)*$', slug):
150
+ raise ValueError(f"Slug must be snake_case: {slug}")
151
+ ```
152
+
153
+ ### Step 2: Auto-Detect Workflow
154
+
155
+ Run detection to determine:
156
+ - **Workflow Type:** greenfield (new) vs brownfield (update)
157
+ - **Mode:** public, no-public-interviews, no-public-materials
158
+
159
+ ```bash
160
+ python squads/mmos/lib/workflow_detector.py --slug {slug}
161
+ ```
162
+
163
+ ### Step 3: Execute Pipeline
164
+
165
+ For each phase, invoke the corresponding legendary agent:
166
+
167
+ #### Phase 1: Viability & Research
168
+
169
+ 1. **Invoke @victoria-viability-specialist**
170
+ - Task: Assess viability for cloning {slug}
171
+ - Output: `outputs/minds/{slug}/analysis/viability-assessment.yaml`
172
+
173
+ 2. **Invoke @research-specialist**
174
+ - Task: Collect and validate sources for {slug}
175
+ - Output: `outputs/minds/{slug}/sources/sources-master.yaml`
176
+
177
+ #### Phase 2: Analysis (Parallel Execution)
178
+
179
+ 3. **Invoke @daniel-behavioral-analyst**
180
+ - Task: Extract behavioral patterns and state transitions
181
+ - Output: `outputs/minds/{slug}/analysis/behavioral-patterns.yaml`
182
+
183
+ 4. **Invoke @barbara-cognitive-architect**
184
+ - Task: Map mental models and cognitive architecture
185
+ - Output: `outputs/minds/{slug}/analysis/cognitive-architecture.yaml`
186
+
187
+ 5. **Invoke @identity-analyst** 🔴 HUMAN CHECKPOINT
188
+ - Task: Extract identity core (L6-L8)
189
+ - Output: `outputs/minds/{slug}/analysis/identity-core.yaml`
190
+ - **STOP for human validation before proceeding**
191
+
192
+ #### Phase 3: Synthesis
193
+
194
+ 6. **Invoke @charlie-synthesis-expert**
195
+ - Task: Build latticework and knowledge integration
196
+ - Output: `outputs/minds/{slug}/synthesis/latticework.yaml`
197
+
198
+ #### Phase 4: Implementation
199
+
200
+ 7. **Invoke @constantin-implementation-architect**
201
+ - Task: Generate system prompt and meta-axioms
202
+ - Output: `outputs/minds/{slug}/implementation/system-prompt.md`
203
+
204
+ #### Phase 5: Quality
205
+
206
+ 8. **Invoke @quinn-quality-specialist**
207
+ - Task: Validate quality gates
208
+ - Output: `outputs/minds/{slug}/validation/quality-report.yaml`
209
+
210
+ ### Step 4: Finalize
211
+
212
+ Update metadata and mark pipeline complete:
213
+
214
+ ```bash
215
+ python squads/mmos/lib/metadata_manager.py --slug {slug} --status completed
216
+ ```
217
+
218
+ ## Human Checkpoint Protocol
219
+
220
+ At L6-L8 (Identity Core), the pipeline MUST stop for human validation:
221
+
222
+ ```
223
+ ┌─────────────────────────────────────────────────────────────┐
224
+ │ 🔴 CHECKPOINT L6-L8: IDENTITY CORE │
225
+ ├─────────────────────────────────────────────────────────────┤
226
+ │ │
227
+ │ The following identity elements require your validation: │
228
+ │ │
229
+ │ L6 - VALUES HIERARCHY │
230
+ │ [Present extracted values for review] │
231
+ │ │
232
+ │ L7 - OBSESSIONS │
233
+ │ [Present identified obsessions for review] │
234
+ │ │
235
+ │ L8 - PRODUCTIVE CONTRADICTIONS │
236
+ │ [Present mapped contradictions for review] │
237
+ │ │
238
+ │ OPTIONS: │
239
+ │ • APPROVE - Continue with synthesis │
240
+ │ • REVISE - Request changes to identity core │
241
+ │ • ABORT - Stop pipeline execution │
242
+ │ │
243
+ └─────────────────────────────────────────────────────────────┘
244
+ ```
245
+
246
+ ## Output Structure
247
+
248
+ ```
249
+ outputs/minds/{slug}/
250
+ ├── metadata/
251
+ │ ├── metadata.yaml # Pipeline state
252
+ │ └── pipeline_state.yaml # State machine
253
+ ├── sources/
254
+ │ ├── sources-master.yaml # All validated sources
255
+ │ └── raw/ # Raw source files
256
+ ├── analysis/
257
+ │ ├── viability-assessment.yaml
258
+ │ ├── behavioral-patterns.yaml
259
+ │ ├── cognitive-architecture.yaml
260
+ │ └── identity-core.yaml
261
+ ├── synthesis/
262
+ │ ├── latticework.yaml
263
+ │ ├── frameworks.yaml
264
+ │ └── signature-phrases.yaml
265
+ ├── implementation/
266
+ │ ├── system-prompt.md
267
+ │ ├── meta-axioms.yaml
268
+ │ └── identity-dna.yaml
269
+ └── validation/
270
+ ├── quality-report.yaml
271
+ └── fidelity-score.yaml
272
+ ```
273
+
274
+ ## Legendary Agents Reference
275
+
276
+ | Agent | Skill Path | Expertise |
277
+ |-------|------------|-----------|
278
+ | Victoria | `MMOS:agents:victoria-viability-specialist` | Viability assessment, production readiness |
279
+ | Tim | `MMOS:agents:research-specialist` | Source collection, validation, triangulation |
280
+ | Daniel | `MMOS:agents:daniel-behavioral-analyst` | Behavioral patterns, state transitions |
281
+ | Barbara | `MMOS:agents:barbara-cognitive-architect` | Mental models, cognitive frameworks |
282
+ | Brené | `MMOS:agents:identity-analyst` | Values, obsessions, contradictions |
283
+ | Charlie | `MMOS:agents:charlie-synthesis-expert` | Knowledge integration, latticework |
284
+ | Constantin | `MMOS:agents:constantin-implementation-architect` | System prompts, implementation |
285
+ | Quinn | `MMOS:agents:quinn-quality-specialist` | Quality validation, fidelity scoring |
286
+
287
+ ## Commands
288
+
289
+ | Command | Description |
290
+ |---------|-------------|
291
+ | `/clone-mind {slug}` | Start full pipeline for new mind |
292
+ | `/clone-mind {slug} --resume` | Resume from last checkpoint |
293
+ | `/clone-mind {slug} --mode=public` | Force public mode |
294
+ | `/clone-mind {slug} --mode=no-public-materials` | Use local materials |
295
+
296
+ ## Quality Gates
297
+
298
+ - **Minimum Fidelity Score:** 90%
299
+ - **All 9 Layers:** Must be completed
300
+ - **Human Checkpoint:** Must be approved for L6-L8
301
+ - **Consistency Check:** Cross-layer coherence validated
302
+
303
+ ## Error Handling
304
+
305
+ | Error | Action |
306
+ |-------|--------|
307
+ | Source insufficient | Victoria recommends mode change |
308
+ | Checkpoint rejected | Revise and re-run affected layers |
309
+ | Quality score < 90% | Identify gaps, supplement research |
310
+ | Pipeline failure | Save state, enable resume |
311
+
312
+ ## Coexistence with AIOX
313
+
314
+ This skill coexists with the AIOX `*map` command:
315
+
316
+ | Entry Point | System | Command |
317
+ |-------------|--------|---------|
318
+ | Claude Code | Skill | `/clone-mind {slug}` |
319
+ | AIOX | Task | `*map {slug}` |
320
+
321
+ Both use the same infrastructure:
322
+ - `squads/mmos/lib/*.py` - Python utilities
323
+ - `squads/mmos/workflows/*.yaml` - Workflow definitions
324
+ - `outputs/minds/{slug}/` - Output directory
325
+ - `.claude/commands/MMOS/agents/` - Agent definitions
326
+
327
+ ---
328
+
329
+ **MMOS v4.0** | DNA Mental™ 9-Layer Pipeline | 8 Legendary Agents
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: coderabbit-review
3
+ description: |
4
+ Unified CodeRabbit CLI execution via WSL with self-healing loop.
5
+ Use this skill when running automated code review before commits, PRs, or QA gates.
6
+ Handles WSL wrapper, severity filtering, and auto-fix iterations.
7
+ user-invocable: true
8
+ argument-hint: "[scope: uncommitted|committed|base]"
9
+ ---
10
+
11
+ # CodeRabbit Review
12
+
13
+ Centralized CodeRabbit CLI execution for automated code review via WSL.
14
+
15
+ ## Prerequisites
16
+
17
+ - CodeRabbit CLI installed in WSL at `~/.local/bin/coderabbit`
18
+ - WSL distribution: Ubuntu
19
+ - Authenticated: `wsl bash -c '~/.local/bin/coderabbit auth status'`
20
+
21
+ ## Execution
22
+
23
+ ### 1. Determine Scope
24
+
25
+ Parse `$ARGUMENTS` to determine review scope:
26
+
27
+ | Argument | Command | Use Case |
28
+ |----------|---------|----------|
29
+ | `uncommitted` (default) | `--prompt-only -t uncommitted` | Pre-commit review |
30
+ | `committed` | `--prompt-only -t committed --base main` | QA story review |
31
+ | `base {branch}` | `--prompt-only --base {branch}` | Pre-PR review against specific base |
32
+
33
+ ### 2. Build WSL Command
34
+
35
+ ```bash
36
+ wsl bash -c 'cd /mnt/c/Users/AllFluence-User/Workspaces/AIOX/SynkraAI/aiox-core && ~/.local/bin/coderabbit {flags}'
37
+ ```
38
+
39
+ **Timeout:** 15 minutes (900000ms) — CodeRabbit reviews take 7-30 min.
40
+
41
+ ### 3. Execute Review
42
+
43
+ Run the command via Bash tool with appropriate timeout.
44
+
45
+ ### 4. Parse Results
46
+
47
+ Classify findings by severity:
48
+
49
+ | Severity | Action |
50
+ |----------|--------|
51
+ | **CRITICAL** | Must fix immediately — blocks completion |
52
+ | **HIGH** | Recommend fix before merge |
53
+ | **MEDIUM** | Document as technical debt |
54
+ | **LOW** | Optional improvement, note only |
55
+
56
+ ### 5. Self-Healing Loop (if CRITICAL found)
57
+
58
+ ```
59
+ iteration = 0
60
+ max_iterations = agent-specific (dev: 2, qa: 3, devops: 2)
61
+
62
+ WHILE iteration < max_iterations AND critical_issues_remain:
63
+ 1. Attempt auto-fix for each CRITICAL issue
64
+ 2. Re-run CodeRabbit review
65
+ 3. iteration++
66
+
67
+ IF critical_issues_remain after max_iterations:
68
+ HALT and report to user
69
+ ```
70
+
71
+ ### 6. Report
72
+
73
+ Output a summary table:
74
+
75
+ ```markdown
76
+ ## CodeRabbit Review Results
77
+
78
+ | Severity | Count | Status |
79
+ |----------|-------|--------|
80
+ | CRITICAL | N | Fixed/Remaining |
81
+ | HIGH | N | Documented |
82
+ | MEDIUM | N | Tech debt |
83
+ | LOW | N | Noted |
84
+
85
+ **Decision:** PASS / FAIL
86
+ ```
87
+
88
+ ## Error Handling
89
+
90
+ | Error | Cause | Resolution |
91
+ |-------|-------|------------|
92
+ | `coderabbit: command not found` | Not installed in WSL | `wsl bash -c 'pip install coderabbit-cli'` |
93
+ | Timeout (>15 min) | Large review | Increase timeout, review is still processing |
94
+ | `not authenticated` | Auth expired | `wsl bash -c '~/.local/bin/coderabbit auth status'` |
95
+
96
+ ## Agent-Specific Configuration
97
+
98
+ | Agent | Max Iterations | Severity Filter | Trigger |
99
+ |-------|---------------|-----------------|---------|
100
+ | @dev | 2 | CRITICAL only | Pre-commit (story completion) |
101
+ | @qa | 3 | CRITICAL + HIGH | Story review start |
102
+ | @devops | 2 | CRITICAL + HIGH | Pre-push / Pre-PR |
103
+
104
+ ## Report Location
105
+
106
+ Save reports to: `docs/qa/coderabbit-reports/`
@@ -0,0 +1,76 @@
1
+ # Skill: Course Generation Workflow
2
+
3
+ **Type:** CreatorOS Standard Workflow
4
+ **Last Updated:** 2025-10-18
5
+
6
+ ---
7
+
8
+ ## Purpose
9
+
10
+ This skill defines the LINEAR, NO-SEARCH workflow for course generation using CreatorOS.
11
+
12
+ ---
13
+
14
+ ## Core Principle
15
+
16
+ **"If you're searching for files, the workflow is broken."**
17
+
18
+ Every file location must be known in advance. No Glob, no Grep, no hunting.
19
+
20
+ ---
21
+
22
+ ## Standard Workflow
23
+
24
+ ### Step 1: Verify Inputs (Pre-Flight)
25
+
26
+ ```bash
27
+ Required Files (check before starting):
28
+ 1. outputs/courses/{slug}/COURSE-BRIEF.md (or will create)
29
+ 2. expansion-packs/creator-os/checklists/checklist-aula-perfeita.md
30
+ 3. expansion-packs/creator-os/templates/ (all templates)
31
+ 4. outputs/minds/{professor_slug}/ (if clone mode)
32
+ ```
33
+
34
+ **Action:** If ANY missing → STOP and ask user or create from template.
35
+
36
+ ---
37
+
38
+ ## File Location Map (NO SEARCHING)
39
+
40
+ ```yaml
41
+ Templates: expansion-packs/creator-os/templates/
42
+ - course-brief-template.md
43
+ - curriculum-template.yaml
44
+ - lesson-template.md
45
+
46
+ Checklists: expansion-packs/creator-os/checklists/
47
+ - checklist-aula-perfeita.md
48
+
49
+ MMOS Personas: outputs/minds/{professor_slug}/
50
+ - system_prompts/system-prompt-generalista.md
51
+ - analysis/identity-core.yaml
52
+ - synthesis/communication-style.md
53
+
54
+ Course Output: outputs/courses/{slug}/
55
+ - COURSE-BRIEF.md
56
+ - curriculum.yaml
57
+ - lessons/modulo-{N}/aula-{N}.md
58
+ - resources/
59
+ - ANALISE-QUALIDADE-CHECKLIST.md
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Linear Execution Order
65
+
66
+ 1. **Verify** all inputs exist at known locations
67
+ 2. **Create/Read** COURSE-BRIEF.md
68
+ 3. **Generate** curriculum.yaml
69
+ 4. **Generate** lessons (one by one)
70
+ 5. **Validate** quality with checklist
71
+ 6. **Fix** priority issues
72
+ 7. **Done** - no searching, no hunting
73
+
74
+ ---
75
+
76
+ **Principle:** Know, don't search. Execute, don't hunt.