aiox-core 5.0.2 → 5.0.3

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 (547) hide show
  1. package/.aiox-core/data/entity-registry.yaml +748 -763
  2. package/.aiox-core/install-manifest.yaml +4 -4
  3. package/package.json +6 -1
  4. package/pro/feature-registry.yaml +223 -0
  5. package/pro/package.json +39 -0
  6. package/pro/pro-config.yaml +63 -0
  7. package/pro/squads/README.md +24 -0
  8. package/pro/squads/design/HEADLINE.md +3 -0
  9. package/pro/squads/design/README.md +109 -0
  10. package/pro/squads/design/agents/brad-frost.md +1097 -0
  11. package/pro/squads/design/agents/dan-mall.md +857 -0
  12. package/pro/squads/design/agents/dave-malouf.md +2272 -0
  13. package/pro/squads/design/agents/design-chief.md +114 -0
  14. package/pro/squads/design/agents/ds-foundations-lead.md +194 -0
  15. package/pro/squads/design/agents/ds-token-architect.md +361 -0
  16. package/pro/squads/design/agents/nano-banana-generator.md +162 -0
  17. package/pro/squads/design/agents/storybook-expert.md +809 -0
  18. package/pro/squads/design/checklists/atomic-refactor-checklist.md +299 -0
  19. package/pro/squads/design/checklists/component-adaptation-checklist.md +81 -0
  20. package/pro/squads/design/checklists/design-fidelity-checklist.md +283 -0
  21. package/pro/squads/design/checklists/design-handoff-checklist.md +55 -0
  22. package/pro/squads/design/checklists/design-team-health-checklist.md +454 -0
  23. package/pro/squads/design/checklists/designops-maturity-checklist.md +518 -0
  24. package/pro/squads/design/checklists/ds-a11y-release-gate-checklist.md +45 -0
  25. package/pro/squads/design/checklists/ds-accessibility-wcag-checklist.md +147 -0
  26. package/pro/squads/design/checklists/ds-component-quality-checklist.md +150 -0
  27. package/pro/squads/design/checklists/ds-critical-eye-review-checklist.md +147 -0
  28. package/pro/squads/design/checklists/ds-migration-readiness-checklist.md +99 -0
  29. package/pro/squads/design/checklists/ds-pattern-audit-checklist.md +164 -0
  30. package/pro/squads/design/checklists/reading-accessibility-checklist.md +275 -0
  31. package/pro/squads/design/checklists/token-mapping-checklist.md +107 -0
  32. package/pro/squads/design/config/coding-standards.md +286 -0
  33. package/pro/squads/design/config/source-tree.md +59 -0
  34. package/pro/squads/design/config/tech-stack.md +48 -0
  35. package/pro/squads/design/config.yaml +204 -0
  36. package/pro/squads/design/data/agentic-design-systems-guide.md +46 -0
  37. package/pro/squads/design/data/agentic-ds-principles.md +100 -0
  38. package/pro/squads/design/data/atomic-design-principles.md +108 -0
  39. package/pro/squads/design/data/atomic-refactor-rules.md +582 -0
  40. package/pro/squads/design/data/base-component-specs.md +972 -0
  41. package/pro/squads/design/data/brad-frost-analysis-extract-implicit.yaml +270 -0
  42. package/pro/squads/design/data/brad-frost-analysis-find-0.8.yaml +176 -0
  43. package/pro/squads/design/data/brad-frost-analysis-qa-report.yaml +168 -0
  44. package/pro/squads/design/data/brad-frost-dna.yaml +713 -0
  45. package/pro/squads/design/data/capability-tools.yaml +124 -0
  46. package/pro/squads/design/data/component-adaptation-changelog.md +318 -0
  47. package/pro/squads/design/data/consolidation-algorithms.md +168 -0
  48. package/pro/squads/design/data/critical-eye-scoring-rules.yaml +240 -0
  49. package/pro/squads/design/data/design-token-best-practices.md +107 -0
  50. package/pro/squads/design/data/design-tokens-spec.yaml +418 -0
  51. package/pro/squads/design/data/ds-reference-architectures.md +93 -0
  52. package/pro/squads/design/data/f2-qa-report.md +168 -0
  53. package/pro/squads/design/data/f3-derived-components-changelog.md +100 -0
  54. package/pro/squads/design/data/f3-qa-report.md +208 -0
  55. package/pro/squads/design/data/figma-base-components-raw.md +102 -0
  56. package/pro/squads/design/data/figma-tokens-raw.md +1549 -0
  57. package/pro/squads/design/data/fluent2-design-principles.md +114 -0
  58. package/pro/squads/design/data/high-retention-reading-guide.md +349 -0
  59. package/pro/squads/design/data/integration-patterns.md +207 -0
  60. package/pro/squads/design/data/internal-quality-chain.yaml +48 -0
  61. package/pro/squads/design/data/motion-tokens-guide.md +202 -0
  62. package/pro/squads/design/data/roi-calculation-guide.md +142 -0
  63. package/pro/squads/design/data/token-mapping-reference.md +213 -0
  64. package/pro/squads/design/data/w3c-dtcg-spec-reference.md +149 -0
  65. package/pro/squads/design/data/wcag-compliance-guide.md +267 -0
  66. package/pro/squads/design/docs/AUDIT_REPORT.md +97 -0
  67. package/pro/squads/design/docs/DS-CURATION-PIPELINE-PROPOSAL.md +577 -0
  68. package/pro/squads/design/docs/UPGRADE_PLAN.md +618 -0
  69. package/pro/squads/design/docs/brad-frost-research-validation.md +372 -0
  70. package/pro/squads/design/docs/dave-malouf-research-validation.md +391 -0
  71. package/pro/squads/design/docs/tool-discovery-report.md +87 -0
  72. package/pro/squads/design/docs/tool-integration-plan.md +44 -0
  73. package/pro/squads/design/protocols/ai-first-governance.md +56 -0
  74. package/pro/squads/design/protocols/governance-execution-boundary.md +59 -0
  75. package/pro/squads/design/protocols/handoff.md +60 -0
  76. package/pro/squads/design/rules/.claude-rules.md +88 -0
  77. package/pro/squads/design/scripts/design-system/curate_colors.cjs +447 -0
  78. package/pro/squads/design/scripts/design-system/curate_components.cjs +217 -0
  79. package/pro/squads/design/scripts/design-system/curate_radius.cjs +190 -0
  80. package/pro/squads/design/scripts/design-system/curate_shadows.cjs +208 -0
  81. package/pro/squads/design/scripts/design-system/curate_spacing.cjs +243 -0
  82. package/pro/squads/design/scripts/design-system/curate_typography.cjs +404 -0
  83. package/pro/squads/design/scripts/design-system/design-system-metadata.test.js +49 -0
  84. package/pro/squads/design/scripts/design-system/design_manifest_lib.cjs +142 -0
  85. package/pro/squads/design/scripts/design-system/fetch_page_images.cjs +195 -0
  86. package/pro/squads/design/scripts/design-system/generate_components_metadata.cjs +114 -0
  87. package/pro/squads/design/scripts/design-system/generate_curation_report.cjs +258 -0
  88. package/pro/squads/design/scripts/design-system/generate_tokens.cjs +342 -0
  89. package/pro/squads/design/scripts/design-system/sync_design_manifest.cjs +27 -0
  90. package/pro/squads/design/scripts/design-system/test_mcp_tools.cjs +232 -0
  91. package/pro/squads/design/scripts/design-system/validate_components_metadata.cjs +96 -0
  92. package/pro/squads/design/scripts/design-system/validate_curation.cjs +226 -0
  93. package/pro/squads/design/scripts/design-system/validate_design_manifest_drift.cjs +72 -0
  94. package/pro/squads/design/scripts/design-system/validate_mcp_skeleton.cjs +38 -0
  95. package/pro/squads/design/scripts/design-system/validate_registry.cjs +186 -0
  96. package/pro/squads/design/scripts/design-system/validate_task_checklist_bindings.cjs +78 -0
  97. package/pro/squads/design/scripts/dissect-artifact.cjs +806 -0
  98. package/pro/squads/design/scripts/validate-a11y-integration.cjs +40 -0
  99. package/pro/squads/design/scripts/validate-design-squad.py +411 -0
  100. package/pro/squads/design/squad.yaml +714 -0
  101. package/pro/squads/design/tasks/a11y-audit.md +340 -0
  102. package/pro/squads/design/tasks/aria-audit.md +525 -0
  103. package/pro/squads/design/tasks/atomic-refactor-execute.md +391 -0
  104. package/pro/squads/design/tasks/atomic-refactor-plan.md +262 -0
  105. package/pro/squads/design/tasks/audit-reading-experience.md +350 -0
  106. package/pro/squads/design/tasks/audit-tailwind-config.md +101 -0
  107. package/pro/squads/design/tasks/bootstrap-shadcn-library.md +96 -0
  108. package/pro/squads/design/tasks/bundle-audit.md +245 -0
  109. package/pro/squads/design/tasks/contrast-matrix.md +373 -0
  110. package/pro/squads/design/tasks/create-doc.md +135 -0
  111. package/pro/squads/design/tasks/dead-code-detection.md +329 -0
  112. package/pro/squads/design/tasks/design-compare.md +414 -0
  113. package/pro/squads/design/tasks/design-process-optimization.md +407 -0
  114. package/pro/squads/design/tasks/design-review-orchestration.md +99 -0
  115. package/pro/squads/design/tasks/design-team-scaling.md +407 -0
  116. package/pro/squads/design/tasks/design-tooling-audit.md +404 -0
  117. package/pro/squads/design/tasks/design-triage.md +89 -0
  118. package/pro/squads/design/tasks/designops-maturity-assessment.md +364 -0
  119. package/pro/squads/design/tasks/designops-metrics-setup.md +465 -0
  120. package/pro/squads/design/tasks/ds-agentic-audit.md +100 -0
  121. package/pro/squads/design/tasks/ds-agentic-setup.md +103 -0
  122. package/pro/squads/design/tasks/ds-audit-codebase.md +273 -0
  123. package/pro/squads/design/tasks/ds-build-component.md +349 -0
  124. package/pro/squads/design/tasks/ds-build-mcp-server.md +84 -0
  125. package/pro/squads/design/tasks/ds-calculate-roi.md +282 -0
  126. package/pro/squads/design/tasks/ds-compose-molecule.md +106 -0
  127. package/pro/squads/design/tasks/ds-consolidate-patterns.md +253 -0
  128. package/pro/squads/design/tasks/ds-context-contract.md +194 -0
  129. package/pro/squads/design/tasks/ds-critical-eye-compare.md +130 -0
  130. package/pro/squads/design/tasks/ds-critical-eye-decide.md +139 -0
  131. package/pro/squads/design/tasks/ds-critical-eye-inventory.md +111 -0
  132. package/pro/squads/design/tasks/ds-critical-eye-report.md +101 -0
  133. package/pro/squads/design/tasks/ds-critical-eye-score.md +109 -0
  134. package/pro/squads/design/tasks/ds-designops.md +99 -0
  135. package/pro/squads/design/tasks/ds-extend-pattern.md +91 -0
  136. package/pro/squads/design/tasks/ds-extract-tokens.md +312 -0
  137. package/pro/squads/design/tasks/ds-figma-pipeline.md +95 -0
  138. package/pro/squads/design/tasks/ds-fluent-audit.md +105 -0
  139. package/pro/squads/design/tasks/ds-fluent-build.md +110 -0
  140. package/pro/squads/design/tasks/ds-generate-ai-metadata.md +81 -0
  141. package/pro/squads/design/tasks/ds-generate-cursor-rules.md +74 -0
  142. package/pro/squads/design/tasks/ds-generate-documentation.md +101 -0
  143. package/pro/squads/design/tasks/ds-generate-migration-strategy.md +331 -0
  144. package/pro/squads/design/tasks/ds-generate-shock-report.md +323 -0
  145. package/pro/squads/design/tasks/ds-govern-a11y-compliance.md +93 -0
  146. package/pro/squads/design/tasks/ds-governance.md +187 -0
  147. package/pro/squads/design/tasks/ds-health-metrics.md +278 -0
  148. package/pro/squads/design/tasks/ds-integrate-squad.md +130 -0
  149. package/pro/squads/design/tasks/ds-integrate-workspace.md +100 -0
  150. package/pro/squads/design/tasks/ds-legacy-modernization.md +302 -0
  151. package/pro/squads/design/tasks/ds-mcp-status.md +65 -0
  152. package/pro/squads/design/tasks/ds-motion-audit.md +118 -0
  153. package/pro/squads/design/tasks/ds-multi-framework.md +96 -0
  154. package/pro/squads/design/tasks/ds-parallelization-gate.md +246 -0
  155. package/pro/squads/design/tasks/ds-query.md +90 -0
  156. package/pro/squads/design/tasks/ds-rebuild-artifact.md +369 -0
  157. package/pro/squads/design/tasks/ds-reverse-engineer.md +194 -0
  158. package/pro/squads/design/tasks/ds-scan-artifact.md +131 -0
  159. package/pro/squads/design/tasks/ds-setup-design-system.md +297 -0
  160. package/pro/squads/design/tasks/ds-sync-registry.md +287 -0
  161. package/pro/squads/design/tasks/ds-theme-multi-brand.md +90 -0
  162. package/pro/squads/design/tasks/ds-token-modes.md +108 -0
  163. package/pro/squads/design/tasks/ds-token-w3c-extract.md +105 -0
  164. package/pro/squads/design/tasks/ds-validate-ai-readiness.md +69 -0
  165. package/pro/squads/design/tasks/ds-visual-regression.md +130 -0
  166. package/pro/squads/design/tasks/execute-checklist.md +141 -0
  167. package/pro/squads/design/tasks/export-design-tokens-dtcg.md +97 -0
  168. package/pro/squads/design/tasks/f1-apply-foundations.md +154 -0
  169. package/pro/squads/design/tasks/f1-ingest-figma-tokens.md +130 -0
  170. package/pro/squads/design/tasks/f1-map-tokens-to-shadcn.md +145 -0
  171. package/pro/squads/design/tasks/f1-qa-foundations.md +95 -0
  172. package/pro/squads/design/tasks/f2-adapt-shadcn-components.md +155 -0
  173. package/pro/squads/design/tasks/f2-ingest-base-components.md +148 -0
  174. package/pro/squads/design/tasks/f2-qa-base-components.md +98 -0
  175. package/pro/squads/design/tasks/f3-derive-components.md +145 -0
  176. package/pro/squads/design/tasks/f3-qa-derived-components.md +101 -0
  177. package/pro/squads/design/tasks/focus-order-audit.md +450 -0
  178. package/pro/squads/design/tasks/sb-brownfield-migrate.md +367 -0
  179. package/pro/squads/design/tasks/sb-brownfield-scan.md +318 -0
  180. package/pro/squads/design/tasks/sb-configure.md +230 -0
  181. package/pro/squads/design/tasks/sb-expand-shadcn.md +213 -0
  182. package/pro/squads/design/tasks/sb-generate-all-stories.md +288 -0
  183. package/pro/squads/design/tasks/sb-install.md +152 -0
  184. package/pro/squads/design/tasks/sb-sync-workspace.md +239 -0
  185. package/pro/squads/design/tasks/sb-verify.md +203 -0
  186. package/pro/squads/design/tasks/tailwind-upgrade.md +117 -0
  187. package/pro/squads/design/tasks/token-usage-analytics.md +262 -0
  188. package/pro/squads/design/tasks/ux-rewrite-sixth-grade.md +82 -0
  189. package/pro/squads/design/tasks/validate-design-fidelity.md +222 -0
  190. package/pro/squads/design/templates/agent-template.yaml +46 -0
  191. package/pro/squads/design/templates/clone-mind-template.md +352 -0
  192. package/pro/squads/design/templates/component-prompt-injection-tmpl.md +236 -0
  193. package/pro/squads/design/templates/component-visual-spec-tmpl.md +378 -0
  194. package/pro/squads/design/templates/critical-eye-cycle-report-tmpl.md +165 -0
  195. package/pro/squads/design/templates/design-fidelity-report-tmpl.md +155 -0
  196. package/pro/squads/design/templates/ds-ai-component-metadata-schema-tmpl.json +138 -0
  197. package/pro/squads/design/templates/ds-artifact-analysis.md +70 -0
  198. package/pro/squads/design/templates/ds-health-report-tmpl.md +236 -0
  199. package/pro/squads/design/templates/ds-migration-strategy-tmpl.md +524 -0
  200. package/pro/squads/design/templates/ds-state-persistence-tmpl.yaml +194 -0
  201. package/pro/squads/design/templates/ds-tokens-schema-tmpl.yaml +139 -0
  202. package/pro/squads/design/templates/migration-strategy-tmpl.md +524 -0
  203. package/pro/squads/design/templates/reading-design-tokens.css +26 -0
  204. package/pro/squads/design/templates/state-persistence-tmpl.yaml +219 -0
  205. package/pro/squads/design/templates/tokens-schema-tmpl.yaml +305 -0
  206. package/pro/squads/design/workflows/agentic-readiness.yaml +83 -0
  207. package/pro/squads/design/workflows/audit-only.yaml +198 -0
  208. package/pro/squads/design/workflows/brownfield-complete.yaml +257 -0
  209. package/pro/squads/design/workflows/critical-eye.yaml +184 -0
  210. package/pro/squads/design/workflows/dtcg-tokens-governance.yaml +64 -0
  211. package/pro/squads/design/workflows/foundations-pipeline.yaml +192 -0
  212. package/pro/squads/design/workflows/greenfield-new.yaml +192 -0
  213. package/pro/squads/design/workflows/motion-quality.yaml +65 -0
  214. package/pro/squads/design/workflows/self-healing-workflow.yaml +237 -0
  215. package/pro/squads/design/workflows/storybook-brownfield-migration.yaml +400 -0
  216. package/pro/squads/design/workflows/storybook-full-setup.yaml +280 -0
  217. package/pro/squads/index.js +145 -0
  218. package/pro/squads/squad-creator-pro/.state.json +32 -0
  219. package/pro/squads/squad-creator-pro/CHANGELOG.md +275 -0
  220. package/pro/squads/squad-creator-pro/HEADLINE.md +3 -0
  221. package/pro/squads/squad-creator-pro/README.md +1059 -0
  222. package/pro/squads/squad-creator-pro/agents/oalanicolas.md +438 -0
  223. package/pro/squads/squad-creator-pro/agents/pedro-valerio.md +449 -0
  224. package/pro/squads/squad-creator-pro/agents/squad-chief.md +1651 -0
  225. package/pro/squads/squad-creator-pro/agents/thiago_finch.md +976 -0
  226. package/pro/squads/squad-creator-pro/assessments/axioma-assessment-wf-create-squad.yaml +325 -0
  227. package/pro/squads/squad-creator-pro/checklists/.gitkeep +1 -0
  228. package/pro/squads/squad-creator-pro/checklists/agent-depth-checklist.md +244 -0
  229. package/pro/squads/squad-creator-pro/checklists/agent-quality-gate.md +434 -0
  230. package/pro/squads/squad-creator-pro/checklists/create-agent-checklist.md +184 -0
  231. package/pro/squads/squad-creator-pro/checklists/create-squad-checklist.md +219 -0
  232. package/pro/squads/squad-creator-pro/checklists/create-workflow-checklist.md +224 -0
  233. package/pro/squads/squad-creator-pro/checklists/deep-research-quality.md +506 -0
  234. package/pro/squads/squad-creator-pro/checklists/executor-matrix-checklist.md +260 -0
  235. package/pro/squads/squad-creator-pro/checklists/mental-model-integration-checklist.md +95 -0
  236. package/pro/squads/squad-creator-pro/checklists/mind-validation.md +374 -0
  237. package/pro/squads/squad-creator-pro/checklists/quality-gate-checklist.md +385 -0
  238. package/pro/squads/squad-creator-pro/checklists/smoke-test-agent.md +313 -0
  239. package/pro/squads/squad-creator-pro/checklists/sop-validation.md +250 -0
  240. package/pro/squads/squad-creator-pro/checklists/squad-checklist.md +1014 -0
  241. package/pro/squads/squad-creator-pro/checklists/squad-overview-checklist.md +393 -0
  242. package/pro/squads/squad-creator-pro/checklists/task-anatomy-checklist.md +626 -0
  243. package/pro/squads/squad-creator-pro/config/.gitkeep +1 -0
  244. package/pro/squads/squad-creator-pro/config/axioma-validator.yaml +371 -0
  245. package/pro/squads/squad-creator-pro/config/heuristics.yaml +753 -0
  246. package/pro/squads/squad-creator-pro/config/model-routing.yaml +693 -0
  247. package/pro/squads/squad-creator-pro/config/quality-gates.yaml +415 -0
  248. package/pro/squads/squad-creator-pro/config/scoring-rubric.yaml +199 -0
  249. package/pro/squads/squad-creator-pro/config/squad-config.yaml +165 -0
  250. package/pro/squads/squad-creator-pro/config/task-anatomy.yaml +263 -0
  251. package/pro/squads/squad-creator-pro/config/veto-conditions.yaml +455 -0
  252. package/pro/squads/squad-creator-pro/config.yaml +35 -0
  253. package/pro/squads/squad-creator-pro/data/.gitkeep +1 -0
  254. package/pro/squads/squad-creator-pro/data/an-anchor-words.yaml +78 -0
  255. package/pro/squads/squad-creator-pro/data/an-clone-anti-patterns.yaml +148 -0
  256. package/pro/squads/squad-creator-pro/data/an-clone-validation.yaml +190 -0
  257. package/pro/squads/squad-creator-pro/data/an-diagnostic-framework.yaml +164 -0
  258. package/pro/squads/squad-creator-pro/data/an-output-examples.yaml +102 -0
  259. package/pro/squads/squad-creator-pro/data/an-source-signals.yaml +98 -0
  260. package/pro/squads/squad-creator-pro/data/an-source-tiers.yaml +119 -0
  261. package/pro/squads/squad-creator-pro/data/best-practices.md +986 -0
  262. package/pro/squads/squad-creator-pro/data/core-heuristics.md +510 -0
  263. package/pro/squads/squad-creator-pro/data/decision-heuristics-framework.md +620 -0
  264. package/pro/squads/squad-creator-pro/data/executor-decision-tree.md +774 -0
  265. package/pro/squads/squad-creator-pro/data/executor-matrix-framework.md +441 -0
  266. package/pro/squads/squad-creator-pro/data/fusion-decision-points-analysis.md +397 -0
  267. package/pro/squads/squad-creator-pro/data/fusion-executor-analysis.md +677 -0
  268. package/pro/squads/squad-creator-pro/data/hybridops-patterns.md +1351 -0
  269. package/pro/squads/squad-creator-pro/data/internal-infrastructure-library.yaml +99 -0
  270. package/pro/squads/squad-creator-pro/data/mental-model-task-matrix.yaml +692 -0
  271. package/pro/squads/squad-creator-pro/data/pipeline-patterns.md +352 -0
  272. package/pro/squads/squad-creator-pro/data/pm-best-practices.md +440 -0
  273. package/pro/squads/squad-creator-pro/data/pv-anchor-words.yaml +64 -0
  274. package/pro/squads/squad-creator-pro/data/pv-authenticity-markers.yaml +200 -0
  275. package/pro/squads/squad-creator-pro/data/pv-meta-axiomas.yaml +162 -0
  276. package/pro/squads/squad-creator-pro/data/pv-output-examples.yaml +342 -0
  277. package/pro/squads/squad-creator-pro/data/pv-workflow-validation.yaml +318 -0
  278. package/pro/squads/squad-creator-pro/data/quality-dimensions-framework.md +405 -0
  279. package/pro/squads/squad-creator-pro/data/squad-analytics-guide.md +252 -0
  280. package/pro/squads/squad-creator-pro/data/squad-kb.md +987 -0
  281. package/pro/squads/squad-creator-pro/data/squad-registry.yaml +841 -0
  282. package/pro/squads/squad-creator-pro/data/squad-type-definitions.yaml +578 -0
  283. package/pro/squads/squad-creator-pro/data/tier-system-framework.md +475 -0
  284. package/pro/squads/squad-creator-pro/data/tool-evaluation-framework.md +847 -0
  285. package/pro/squads/squad-creator-pro/data/tool-registry.yaml +700 -0
  286. package/pro/squads/squad-creator-pro/docs/ADR-001-model-tier-qualification.md +344 -0
  287. package/pro/squads/squad-creator-pro/docs/AGENT-COLLABORATION.md +609 -0
  288. package/pro/squads/squad-creator-pro/docs/ARCHITECTURE-DIAGRAMS.md +1466 -0
  289. package/pro/squads/squad-creator-pro/docs/COMMANDS.md +544 -0
  290. package/pro/squads/squad-creator-pro/docs/CONCEPTS.md +584 -0
  291. package/pro/squads/squad-creator-pro/docs/FAQ.md +731 -0
  292. package/pro/squads/squad-creator-pro/docs/HITL-FLOW.md +255 -0
  293. package/pro/squads/squad-creator-pro/docs/MIGRATION-PLAN-AGENT-CONFORMITY.md +861 -0
  294. package/pro/squads/squad-creator-pro/docs/MIGRATION-ROADMAP-HYBRIDOPS.md +1161 -0
  295. package/pro/squads/squad-creator-pro/docs/MODEL-TIER-QUALIFICATION.md +337 -0
  296. package/pro/squads/squad-creator-pro/docs/PATTERN-LIBRARY.md +333 -0
  297. package/pro/squads/squad-creator-pro/docs/PEDRO-VALERIO-ARCHITECTURE.md +456 -0
  298. package/pro/squads/squad-creator-pro/docs/POR-ONDE-COMECAR.md +210 -0
  299. package/pro/squads/squad-creator-pro/docs/QUICK-START.md +205 -0
  300. package/pro/squads/squad-creator-pro/docs/RFC-001-deterministic-refactoring.md +463 -0
  301. package/pro/squads/squad-creator-pro/docs/TOOL-RECOMMENDATIONS.md +379 -0
  302. package/pro/squads/squad-creator-pro/docs/TROUBLESHOOTING.md +412 -0
  303. package/pro/squads/squad-creator-pro/docs/TUTORIAL-COMPLETO.md +458 -0
  304. package/pro/squads/squad-creator-pro/docs/optimize-v4-proposal.md +354 -0
  305. package/pro/squads/squad-creator-pro/docs/session-report-2026-02-01.md +411 -0
  306. package/pro/squads/squad-creator-pro/docs/sop-extraction-process.md +674 -0
  307. package/pro/squads/squad-creator-pro/docs/squad-chief-agent-flow.md +981 -0
  308. package/pro/squads/squad-creator-pro/docs/squad-creation-pipeline-workflow.md +937 -0
  309. package/pro/squads/squad-creator-pro/docs/task-optimization-framework.md +229 -0
  310. package/pro/squads/squad-creator-pro/docs/validation-report-2026-02-01.md +439 -0
  311. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/HANDOFF_PROTOCOL.md +269 -0
  312. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/SOURCE_CLASSIFICATION.md +258 -0
  313. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_001.md +166 -0
  314. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_002.md +206 -0
  315. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_003.md +239 -0
  316. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_004.md +153 -0
  317. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_005.md +161 -0
  318. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_006.md +166 -0
  319. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_007.md +190 -0
  320. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_008.md +191 -0
  321. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_009.md +234 -0
  322. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_010.md +240 -0
  323. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/Assinatura_Linguistica.md +355 -0
  324. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/META_AXIOMAS.md +277 -0
  325. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_BS_001.md +144 -0
  326. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PA_001.md +174 -0
  327. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PM_001.md +191 -0
  328. package/pro/squads/squad-creator-pro/package.json +26 -0
  329. package/pro/squads/squad-creator-pro/protocols/ai-first-governance.md +63 -0
  330. package/pro/squads/squad-creator-pro/scripts/README.md +246 -0
  331. package/pro/squads/squad-creator-pro/scripts/__pycache__/dependency_check.cpython-314.pyc +0 -0
  332. package/pro/squads/squad-creator-pro/scripts/__pycache__/inventory.cpython-314.pyc +0 -0
  333. package/pro/squads/squad-creator-pro/scripts/__pycache__/naming_validator.cpython-314.pyc +0 -0
  334. package/pro/squads/squad-creator-pro/scripts/__pycache__/quality_gate.cpython-314.pyc +0 -0
  335. package/pro/squads/squad-creator-pro/scripts/__pycache__/scoring.cpython-314.pyc +0 -0
  336. package/pro/squads/squad-creator-pro/scripts/__pycache__/yaml_validator.cpython-314.pyc +0 -0
  337. package/pro/squads/squad-creator-pro/scripts/assess-sources.sh +443 -0
  338. package/pro/squads/squad-creator-pro/scripts/checklist_validator.py +451 -0
  339. package/pro/squads/squad-creator-pro/scripts/clone-review.sh +394 -0
  340. package/pro/squads/squad-creator-pro/scripts/coherence-validator.py +836 -0
  341. package/pro/squads/squad-creator-pro/scripts/create-agent-preflight.py +243 -0
  342. package/pro/squads/squad-creator-pro/scripts/cross-provider/compare-results.js +281 -0
  343. package/pro/squads/squad-creator-pro/scripts/cross-provider/cross-provider-runner.js +462 -0
  344. package/pro/squads/squad-creator-pro/scripts/dependency_check.py +333 -0
  345. package/pro/squads/squad-creator-pro/scripts/fidelity-score.sh +519 -0
  346. package/pro/squads/squad-creator-pro/scripts/generate-squad-greeting.js +426 -0
  347. package/pro/squads/squad-creator-pro/scripts/generate-squad-guide.js +558 -0
  348. package/pro/squads/squad-creator-pro/scripts/inventory.py +269 -0
  349. package/pro/squads/squad-creator-pro/scripts/lib/config-loader.js +151 -0
  350. package/pro/squads/squad-creator-pro/scripts/model-tier-validator.cjs +369 -0
  351. package/pro/squads/squad-creator-pro/scripts/model-usage-logger.cjs +245 -0
  352. package/pro/squads/squad-creator-pro/scripts/modernization-score.sh +308 -0
  353. package/pro/squads/squad-creator-pro/scripts/naming_validator.py +299 -0
  354. package/pro/squads/squad-creator-pro/scripts/on-specialist-complete.py +98 -0
  355. package/pro/squads/squad-creator-pro/scripts/quality_gate.py +413 -0
  356. package/pro/squads/squad-creator-pro/scripts/refresh-registry.py +270 -0
  357. package/pro/squads/squad-creator-pro/scripts/save-session-metrics.py +136 -0
  358. package/pro/squads/squad-creator-pro/scripts/scaffold-squad.cjs +281 -0
  359. package/pro/squads/squad-creator-pro/scripts/scoring.py +395 -0
  360. package/pro/squads/squad-creator-pro/scripts/security_scanner.py +378 -0
  361. package/pro/squads/squad-creator-pro/scripts/squad-analytics.py +585 -0
  362. package/pro/squads/squad-creator-pro/scripts/squad-context-loader.cjs +205 -0
  363. package/pro/squads/squad-creator-pro/scripts/squad-state-manager.cjs +451 -0
  364. package/pro/squads/squad-creator-pro/scripts/squad-workflow-runner.cjs +471 -0
  365. package/pro/squads/squad-creator-pro/scripts/squad_utils.py +261 -0
  366. package/pro/squads/squad-creator-pro/scripts/sync-ide-command.py +590 -0
  367. package/pro/squads/squad-creator-pro/scripts/tests/__init__.py +1 -0
  368. package/pro/squads/squad-creator-pro/scripts/tests/conftest.py +309 -0
  369. package/pro/squads/squad-creator-pro/scripts/tests/run_bash_tests.sh +29 -0
  370. package/pro/squads/squad-creator-pro/scripts/tests/test_assess_sources.sh +216 -0
  371. package/pro/squads/squad-creator-pro/scripts/tests/test_checklist_validator.py +396 -0
  372. package/pro/squads/squad-creator-pro/scripts/tests/test_clone_review.sh +239 -0
  373. package/pro/squads/squad-creator-pro/scripts/tests/test_coherence_validator.py +212 -0
  374. package/pro/squads/squad-creator-pro/scripts/tests/test_dependency_check.py +361 -0
  375. package/pro/squads/squad-creator-pro/scripts/tests/test_fidelity_score.sh +298 -0
  376. package/pro/squads/squad-creator-pro/scripts/tests/test_inventory.py +307 -0
  377. package/pro/squads/squad-creator-pro/scripts/tests/test_modernization_score.sh +211 -0
  378. package/pro/squads/squad-creator-pro/scripts/tests/test_naming_validator.py +373 -0
  379. package/pro/squads/squad-creator-pro/scripts/tests/test_quality_gate.py +280 -0
  380. package/pro/squads/squad-creator-pro/scripts/tests/test_refresh_registry.py +338 -0
  381. package/pro/squads/squad-creator-pro/scripts/tests/test_scoring.py +366 -0
  382. package/pro/squads/squad-creator-pro/scripts/tests/test_security_scanner.py +354 -0
  383. package/pro/squads/squad-creator-pro/scripts/tests/test_squad_analytics.py +450 -0
  384. package/pro/squads/squad-creator-pro/scripts/tests/test_validate_clone.sh +252 -0
  385. package/pro/squads/squad-creator-pro/scripts/tests/test_yaml_validator.py +412 -0
  386. package/pro/squads/squad-creator-pro/scripts/validate-agent-output.py +115 -0
  387. package/pro/squads/squad-creator-pro/scripts/validate-all.sh +49 -0
  388. package/pro/squads/squad-creator-pro/scripts/validate-squad-structure.py +535 -0
  389. package/pro/squads/squad-creator-pro/scripts/validate-squad.sh +944 -0
  390. package/pro/squads/squad-creator-pro/scripts/yaml_validator.py +528 -0
  391. package/pro/squads/squad-creator-pro/skills/squad.md +301 -0
  392. package/pro/squads/squad-creator-pro/squad.yaml +36 -0
  393. package/pro/squads/squad-creator-pro/tasks/CHANGELOG.md +80 -0
  394. package/pro/squads/squad-creator-pro/tasks/an-assess-sources.md +78 -0
  395. package/pro/squads/squad-creator-pro/tasks/an-clone-review.md +104 -0
  396. package/pro/squads/squad-creator-pro/tasks/an-compare-outputs.md +354 -0
  397. package/pro/squads/squad-creator-pro/tasks/an-design-clone.md +79 -0
  398. package/pro/squads/squad-creator-pro/tasks/an-diagnose-clone.md +87 -0
  399. package/pro/squads/squad-creator-pro/tasks/an-extract-dna.md +90 -0
  400. package/pro/squads/squad-creator-pro/tasks/an-extract-framework.md +100 -0
  401. package/pro/squads/squad-creator-pro/tasks/an-fidelity-score.md +108 -0
  402. package/pro/squads/squad-creator-pro/tasks/an-validate-clone.md +96 -0
  403. package/pro/squads/squad-creator-pro/tasks/auto-acquire-sources.md +349 -0
  404. package/pro/squads/squad-creator-pro/tasks/collect-sources.md +533 -0
  405. package/pro/squads/squad-creator-pro/tasks/create-agent.md +768 -0
  406. package/pro/squads/squad-creator-pro/tasks/create-documentation.md +258 -0
  407. package/pro/squads/squad-creator-pro/tasks/create-pipeline.md +296 -0
  408. package/pro/squads/squad-creator-pro/tasks/create-squad.md +933 -0
  409. package/pro/squads/squad-creator-pro/tasks/create-task.md +1148 -0
  410. package/pro/squads/squad-creator-pro/tasks/create-template.md +474 -0
  411. package/pro/squads/squad-creator-pro/tasks/create-workflow.md +720 -0
  412. package/pro/squads/squad-creator-pro/tasks/deconstruct.md +167 -0
  413. package/pro/squads/squad-creator-pro/tasks/deep-research-pre-agent.md +566 -0
  414. package/pro/squads/squad-creator-pro/tasks/detect-squad-context.md +81 -0
  415. package/pro/squads/squad-creator-pro/tasks/discover-tools.md +944 -0
  416. package/pro/squads/squad-creator-pro/tasks/extract-implicit.md +352 -0
  417. package/pro/squads/squad-creator-pro/tasks/extract-knowledge.md +577 -0
  418. package/pro/squads/squad-creator-pro/tasks/extract-sop.md +320 -0
  419. package/pro/squads/squad-creator-pro/tasks/extract-thinking-dna.md +653 -0
  420. package/pro/squads/squad-creator-pro/tasks/extract-voice-dna.md +619 -0
  421. package/pro/squads/squad-creator-pro/tasks/find-0.8.md +222 -0
  422. package/pro/squads/squad-creator-pro/tasks/install-commands.md +373 -0
  423. package/pro/squads/squad-creator-pro/tasks/lookup-model.md +78 -0
  424. package/pro/squads/squad-creator-pro/tasks/migrate-workflows-to-yaml.md +259 -0
  425. package/pro/squads/squad-creator-pro/tasks/next-squad.md +487 -0
  426. package/pro/squads/squad-creator-pro/tasks/optimize-workflow.md +851 -0
  427. package/pro/squads/squad-creator-pro/tasks/optimize.md +1082 -0
  428. package/pro/squads/squad-creator-pro/tasks/parallel-discovery.md +58 -0
  429. package/pro/squads/squad-creator-pro/tasks/pv-audit.md +244 -0
  430. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment-wf-clone-mind.yaml +256 -0
  431. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment.md +83 -0
  432. package/pro/squads/squad-creator-pro/tasks/pv-modernization-score.md +83 -0
  433. package/pro/squads/squad-creator-pro/tasks/qa-after-creation.md +475 -0
  434. package/pro/squads/squad-creator-pro/tasks/qualify-task.md +265 -0
  435. package/pro/squads/squad-creator-pro/tasks/reexecute-squad-phase.md +64 -0
  436. package/pro/squads/squad-creator-pro/tasks/refresh-registry.md +403 -0
  437. package/pro/squads/squad-creator-pro/tasks/smoke-test-model-routing.md +167 -0
  438. package/pro/squads/squad-creator-pro/tasks/squad-analytics.md +265 -0
  439. package/pro/squads/squad-creator-pro/tasks/squad-fusion.md +817 -0
  440. package/pro/squads/squad-creator-pro/tasks/squad-overview.md +683 -0
  441. package/pro/squads/squad-creator-pro/tasks/sync-ide-command.md +392 -0
  442. package/pro/squads/squad-creator-pro/tasks/update-mind.md +428 -0
  443. package/pro/squads/squad-creator-pro/tasks/upgrade-squad.md +919 -0
  444. package/pro/squads/squad-creator-pro/tasks/validate-extraction.md +209 -0
  445. package/pro/squads/squad-creator-pro/tasks/validate-final-artifacts.md +80 -0
  446. package/pro/squads/squad-creator-pro/tasks/validate-squad.md +1385 -0
  447. package/pro/squads/squad-creator-pro/templates/.gitkeep +1 -0
  448. package/pro/squads/squad-creator-pro/templates/agent-flow-doc-tmpl.md +512 -0
  449. package/pro/squads/squad-creator-pro/templates/agent-tmpl.md +697 -0
  450. package/pro/squads/squad-creator-pro/templates/config-tmpl.yaml +352 -0
  451. package/pro/squads/squad-creator-pro/templates/handoff-insumos-tmpl.yaml +112 -0
  452. package/pro/squads/squad-creator-pro/templates/orchestrator-tmpl.md +74 -0
  453. package/pro/squads/squad-creator-pro/templates/pipeline-progress-tmpl.py +373 -0
  454. package/pro/squads/squad-creator-pro/templates/pipeline-runner-tmpl.py +444 -0
  455. package/pro/squads/squad-creator-pro/templates/pipeline-state-tmpl.py +413 -0
  456. package/pro/squads/squad-creator-pro/templates/pop-extractor-prompt.md +549 -0
  457. package/pro/squads/squad-creator-pro/templates/quality-dashboard-tmpl.md +286 -0
  458. package/pro/squads/squad-creator-pro/templates/quality-gate-tmpl.yaml +589 -0
  459. package/pro/squads/squad-creator-pro/templates/readme-tmpl.md +231 -0
  460. package/pro/squads/squad-creator-pro/templates/research-output-tmpl.md +625 -0
  461. package/pro/squads/squad-creator-pro/templates/research-prompt-tmpl.md +479 -0
  462. package/pro/squads/squad-creator-pro/templates/squad-prd-tmpl.md +464 -0
  463. package/pro/squads/squad-creator-pro/templates/squad-readme-tmpl.md +170 -0
  464. package/pro/squads/squad-creator-pro/templates/story-create-agent-tmpl.md +284 -0
  465. package/pro/squads/squad-creator-pro/templates/task-tmpl.md +461 -0
  466. package/pro/squads/squad-creator-pro/templates/template-tmpl.yaml +227 -0
  467. package/pro/squads/squad-creator-pro/templates/workflow-doc-tmpl.md +860 -0
  468. package/pro/squads/squad-creator-pro/templates/workflow-tmpl.yaml +394 -0
  469. package/pro/squads/squad-creator-pro/test-cases/BATCH-PROGRESS.md +268 -0
  470. package/pro/squads/squad-creator-pro/test-cases/QUALIFICATION-DASHBOARD.yaml +13 -0
  471. package/pro/squads/squad-creator-pro/test-cases/_template.yaml +147 -0
  472. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT-SUMMARY.md +275 -0
  473. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT_SUMMARY.md +140 -0
  474. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/CHECKPOINT_MATRIX.md +202 -0
  475. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION-REPORT.md +413 -0
  476. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION_NOTES.md +358 -0
  477. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README-v2.2.2.md +299 -0
  478. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README.md +320 -0
  479. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/TEST-REPORT-v2.1.md +351 -0
  480. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/VERIFICATION-CHECKLIST.txt +247 -0
  481. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/formal-qualification-report.yaml +389 -0
  482. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-output.yaml +366 -0
  483. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.1-output.yaml +452 -0
  484. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.1-output.yaml +281 -0
  485. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.2-output.yaml +332 -0
  486. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/opus-baseline.yaml +517 -0
  487. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/qualification-report.yaml +213 -0
  488. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/test-case.yaml +69 -0
  489. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/haiku-round-1.yaml +213 -0
  490. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/opus-baseline.yaml +566 -0
  491. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/qualification-report.yaml +82 -0
  492. package/pro/squads/squad-creator-pro/test-cases/an-design-clone/test-case.yaml +102 -0
  493. package/pro/squads/squad-creator-pro/test-cases/an-extract-dna/test-case.yaml +105 -0
  494. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/haiku-round-1.yaml +262 -0
  495. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/opus-baseline.yaml +266 -0
  496. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/qualification-report.yaml +94 -0
  497. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/haiku-round-1.yaml +282 -0
  498. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/opus-baseline.yaml +470 -0
  499. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/qualification-report.yaml +106 -0
  500. package/pro/squads/squad-creator-pro/test-cases/collect-sources/test-case.yaml +105 -0
  501. package/pro/squads/squad-creator-pro/test-cases/create-task/test-case.yaml +104 -0
  502. package/pro/squads/squad-creator-pro/test-cases/cross-provider/DASHBOARD.yaml +11 -0
  503. package/pro/squads/squad-creator-pro/test-cases/pv-audit/test-case.yaml +106 -0
  504. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/haiku-output.yaml +209 -0
  505. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/opus-baseline.yaml +96 -0
  506. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/sonnet-output.yaml +30 -0
  507. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/test-case.yaml +129 -0
  508. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/comparison-round-1.yaml +242 -0
  509. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/haiku-round-1.yaml +393 -0
  510. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/opus-baseline.yaml +488 -0
  511. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/qualification-report.yaml +74 -0
  512. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/haiku-round-1.yaml +292 -0
  513. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/opus-baseline.yaml +603 -0
  514. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/qualification-report.yaml +97 -0
  515. package/pro/squads/squad-creator-pro/test-cases/smoke-test-model-routing/test-case.yaml +100 -0
  516. package/pro/squads/squad-creator-pro/test-cases/upgrade-squad/test-case.yaml +106 -0
  517. package/pro/squads/squad-creator-pro/test-cases/validate-squad/comparison-round-1.yaml +223 -0
  518. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1-MINE.yaml +36 -0
  519. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1.yaml +193 -0
  520. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-2.yaml +303 -0
  521. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-3-v4-task.yaml +149 -0
  522. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-baseline.yaml +529 -0
  523. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-round-3-v4-task.yaml +132 -0
  524. package/pro/squads/squad-creator-pro/test-cases/validate-squad/qualification-report.yaml +104 -0
  525. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output-v2-calibrated.yaml +200 -0
  526. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output.yaml +183 -0
  527. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/opus-baseline.yaml +112 -0
  528. package/pro/squads/squad-creator-pro/utils/.gitkeep +1 -0
  529. package/pro/squads/squad-creator-pro/workflows/.gitkeep +1 -0
  530. package/pro/squads/squad-creator-pro/workflows/create-squad.yaml +348 -0
  531. package/pro/squads/squad-creator-pro/workflows/modules/module-discovery.yaml +16 -0
  532. package/pro/squads/squad-creator-pro/workflows/modules/module-integration.yaml +16 -0
  533. package/pro/squads/squad-creator-pro/workflows/modules/module-quality-gates.yaml +15 -0
  534. package/pro/squads/squad-creator-pro/workflows/validate-squad.yaml +582 -0
  535. package/pro/squads/squad-creator-pro/workflows/wf-auto-acquire-sources.yaml +518 -0
  536. package/pro/squads/squad-creator-pro/workflows/wf-brownfield-upgrade-squad.yaml +46 -0
  537. package/pro/squads/squad-creator-pro/workflows/wf-clone-mind.yaml +521 -0
  538. package/pro/squads/squad-creator-pro/workflows/wf-context-aware-create-squad.yaml +47 -0
  539. package/pro/squads/squad-creator-pro/workflows/wf-create-squad.yaml +1619 -0
  540. package/pro/squads/squad-creator-pro/workflows/wf-cross-provider-qualification.yaml +711 -0
  541. package/pro/squads/squad-creator-pro/workflows/wf-discover-tools.yaml +1439 -0
  542. package/pro/squads/squad-creator-pro/workflows/wf-extraction-pipeline.yaml +486 -0
  543. package/pro/squads/squad-creator-pro/workflows/wf-mind-research-loop.yaml +668 -0
  544. package/pro/squads/squad-creator-pro/workflows/wf-model-tier-qualification.yaml +800 -0
  545. package/pro/squads/squad-creator-pro/workflows/wf-optimize-squad.yaml +684 -0
  546. package/pro/squads/squad-creator-pro/workflows/wf-research-then-create-agent.yaml +921 -0
  547. package/pro/squads/squad-creator-pro/workflows/wf-squad-fusion.yaml +1684 -0
@@ -0,0 +1,1385 @@
1
+ # Task: Validate Squad
2
+
3
+ **Task ID:** validate-squad
4
+ **Version:** 3.3.0
5
+ **Purpose:** Validate a squad against AIOS principles using tiered, context-aware validation
6
+ **Orchestrator:** @squad-chief
7
+ **Process Specialist:** @pedro-valerio
8
+ **Mode:** Tiered validation (structure → coverage → quality → contextual)
9
+ **Execution Type:** `Hybrid` (Worker scripts for Phases 0-2 + Agent for Phases 3-6)
10
+ **Worker Scripts:** `scripts/validate-squad.sh`, `scripts/quality_gate.py`, `scripts/yaml_validator.py`
11
+
12
+ **Process Validation (via @pedro-valerio):**
13
+ - Audit workflows para verificar se impedem caminhos errados
14
+ - Validar veto conditions em cada checkpoint
15
+ - Identificar gaps de tempo entre handoffs
16
+ - Garantir fluxo unidirecional (cards nunca voltam)
17
+
18
+ **Core Philosophy:**
19
+ ```
20
+ Quality comes from adherence to principles AND context-awareness.
21
+ An orchestrator doesn't need voice_dna. An expert agent does.
22
+ Validation must understand WHAT type of squad it's validating.
23
+ ```
24
+
25
+ **Frameworks Used:**
26
+ - `config/veto-conditions.yaml` → Veto engine with 10 blocking conditions **[v3.3]**
27
+ - `config/task-anatomy.yaml` → 8-field task validation schema **[v3.3]**
28
+ - `data/squad-type-definitions.yaml` → Squad type detection and requirements
29
+ - `checklists/squad-checklist.md` → Complete validation checklist (v3.0)
30
+ - `data/quality-dimensions-framework.md` → Quality scoring
31
+ - `data/tier-system-framework.md` → Agent tier validation
32
+ - `data/executor-decision-tree.md` → Executor type validation (Worker/Agent/Hybrid/Human) **[v3.2]**
33
+ - `data/tool-registry.yaml` → Tool and MCP integration validation **[v3.2]**
34
+
35
+ ---
36
+
37
+ ## Validation Flow
38
+
39
+ ```
40
+ INPUT (squad_name)
41
+
42
+ [PHASE 0: TYPE DETECTION]
43
+ → Detect squad type (Expert/Pipeline/Hybrid)
44
+ → Load type-specific requirements
45
+
46
+ [PHASE 1: STRUCTURE - TIER 1]
47
+ → config.yaml exists and valid
48
+ → Entry agent defined and activatable
49
+ → All referenced files exist
50
+ → BLOCKING: Any failure = ABORT
51
+
52
+ [PHASE 2: COVERAGE - TIER 2]
53
+ → Checklist coverage for complex tasks (>=30%)
54
+ → Orphan task detection (max 2)
55
+ → Pipeline phase coverage (Pipeline squads)
56
+ → Data file usage (>=50%)
57
+ → Tool registry validation (if exists) [v3.2]
58
+ → BLOCKING: Coverage failures = ABORT
59
+
60
+ [PHASE 3: QUALITY - TIER 3]
61
+ → Prompt Quality (20%)
62
+ → Pipeline Coherence (20%)
63
+ → Checklist Actionability (20%)
64
+ → Documentation (20%)
65
+ → Optimization Opportunities (20%) [v3.2]
66
+ → Score 0-10, threshold 7.0
67
+
68
+ [PHASE 4: CONTEXTUAL - TIER 4]
69
+ → Expert: voice_dna, objection_algorithms, tiers
70
+ → Pipeline: workflow, checkpoints, orchestrator
71
+ → Hybrid: persona, behavioral_states, heuristics, executor_decision_tree [v3.2]
72
+ → Score 0-10, weighted 20% of final
73
+
74
+ [PHASE 5: VETO CHECK]
75
+ → Check type-specific veto conditions
76
+ → Any veto = FAIL regardless of score
77
+
78
+ [PHASE 6: SCORING & REPORT]
79
+ → Calculate: (Tier 3 × 0.80) + (Tier 4 × 0.20)
80
+ → Generate detailed report
81
+
82
+ OUTPUT: Validation Report + Final Score
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Inputs
88
+
89
+ | Parameter | Type | Required | Description | Example |
90
+ |-----------|------|----------|-------------|---------|
91
+ | `squad_name` | string | Yes | Name of squad to validate | `"{your-squad}"` |
92
+ | `squad_path` | string | No | Override default path | `"squads/{squad-name}/"` |
93
+ | `type_override` | string | No | Force squad type | `"expert"`, `"pipeline"`, `"hybrid"` |
94
+
95
+ ---
96
+
97
+ ## PHASE 0: TYPE DETECTION
98
+
99
+ **Duration:** < 30 seconds
100
+ **Mode:** Autonomous
101
+ **Reference:** `data/squad-type-definitions.yaml`
102
+
103
+ ### Step 0.1: Analyze Squad Structure
104
+
105
+ ```yaml
106
+ detection_signals:
107
+ count_agents:
108
+ action: "Count files in agents/"
109
+ weight_expert: "high count (+)"
110
+ weight_pipeline: "low count (+)"
111
+
112
+ check_voice_dna:
113
+ action: "Grep for 'voice_dna:' in agent files"
114
+ weight_expert: "present (+3)"
115
+ weight_pipeline: "absent (neutral)"
116
+ weight_hybrid: "absent (neutral)"
117
+
118
+ check_workflow:
119
+ action: "Look for workflow.yaml or sequential phases in orchestrator"
120
+ weight_pipeline: "present (+3)"
121
+
122
+ check_heuristics:
123
+ action: "Grep for heuristic IDs (PV_*, SC_*)"
124
+ weight_hybrid: "present (+3)"
125
+
126
+ calculate_ratio:
127
+ action: "tasks_count / agents_count"
128
+ weight_pipeline: "ratio > 3 (+2)"
129
+ weight_expert: "ratio 2-4 (+1)"
130
+ weight_hybrid: "ratio ~1 (+2)"
131
+ ```
132
+
133
+ ### Step 0.2: Determine Type
134
+
135
+ ```yaml
136
+ detection_algorithm:
137
+ expert_score: 0
138
+ pipeline_score: 0
139
+ hybrid_score: 0
140
+
141
+ # Apply weights from signals
142
+ if agents_count >= 5: expert_score += 2
143
+ if voice_dna_present_in_50_percent: expert_score += 3
144
+ if has_tier_organization: expert_score += 1
145
+
146
+ if has_orchestrator_agent: pipeline_score += 2
147
+ if has_sequential_phases: pipeline_score += 3
148
+ if tasks_count > agents_count * 3: pipeline_score += 2
149
+
150
+ if has_heuristic_validation: hybrid_score += 3
151
+ if has_persona_profile_pattern: hybrid_score += 2
152
+ if agents_count ~= phases_count: hybrid_score += 1
153
+
154
+ # Determine winner
155
+ detected_type: max(expert_score, pipeline_score, hybrid_score)
156
+
157
+ # Handle ties
158
+ if tie:
159
+ if real_person_names_in_agents: "expert"
160
+ elif phase_numbering_present: "pipeline"
161
+ else: "pipeline" # default
162
+ ```
163
+
164
+ ### Step 0.3: Load Type Requirements
165
+
166
+ ```yaml
167
+ load_requirements:
168
+ file: "data/squad-type-definitions.yaml"
169
+ section: "squad_types.{detected_type}"
170
+
171
+ output:
172
+ required_components: [...]
173
+ optional_components: [...]
174
+ veto_conditions: [...]
175
+ benchmarks: {...}
176
+ ```
177
+
178
+ **Output (PHASE 0):**
179
+ ```yaml
180
+ phase_0_output:
181
+ detected_type: "pipeline" # or "expert" or "hybrid"
182
+ confidence: 0.85
183
+ signals:
184
+ agents_count: 1
185
+ voice_dna_present: false
186
+ has_workflow: true
187
+ task_agent_ratio: 19
188
+ requirements_loaded: true
189
+ ```
190
+
191
+ ---
192
+
193
+ ## PHASE 1: STRUCTURE (TIER 1 - BLOCKING)
194
+
195
+ **Duration:** < 1 minute
196
+ **Mode:** Autonomous
197
+ **Result:** PASS or ABORT
198
+
199
+ ### 1.1 Configuration Check
200
+
201
+ ```yaml
202
+ structure_checks:
203
+ - id: "T1-CFG-001"
204
+ check: "config.yaml exists in squad root"
205
+ action: "ls {squad_path}/config.yaml"
206
+ on_fail: "ABORT - No config.yaml found"
207
+
208
+ - id: "T1-CFG-002"
209
+ check: "config.yaml is valid YAML"
210
+ action: "Parse YAML, check for errors"
211
+ on_fail: "ABORT - Invalid YAML syntax"
212
+
213
+ - id: "T1-CFG-003"
214
+ check: "Required fields present"
215
+ fields: ["name", "version", "description", "entry_agent"]
216
+ on_fail: "ABORT - Missing required field: {field}"
217
+
218
+ - id: "T1-CFG-004"
219
+ check: "name uses kebab-case"
220
+ pattern: "^[a-z0-9]+(-[a-z0-9]+)*$"
221
+ on_fail: "ABORT - Name must be kebab-case"
222
+
223
+ - id: "T1-CFG-005"
224
+ check: "version follows semver"
225
+ pattern: "^\\d+\\.\\d+\\.\\d+$"
226
+ on_fail: "ABORT - Version must be X.Y.Z"
227
+ ```
228
+
229
+ ### 1.2 Entry Point Check
230
+
231
+ ```yaml
232
+ entry_point_checks:
233
+ - id: "T1-ENT-001"
234
+ check: "entry_agent file exists"
235
+ action: "ls {squad_path}/agents/{entry_agent}.md"
236
+ on_fail: "ABORT - Entry agent file not found"
237
+
238
+ - id: "T1-ENT-002"
239
+ check: "entry_agent has activation-instructions"
240
+ action: "Grep for 'activation-instructions:'"
241
+ on_fail: "ABORT - Entry agent not activatable"
242
+
243
+ - id: "T1-ENT-003"
244
+ check: "entry_agent has *help command"
245
+ action: "Grep for '*help' in commands section"
246
+ on_fail: "ABORT - Entry agent missing *help command"
247
+ ```
248
+
249
+ ### 1.3 File Reference Check
250
+
251
+ ```yaml
252
+ reference_checks:
253
+ - id: "T1-REF-001"
254
+ check: "All config.yaml dependencies exist"
255
+ action: |
256
+ For each file in config.yaml dependencies:
257
+ Check file exists at {squad_path}/{type}/{file}
258
+ threshold: "100%"
259
+ on_fail: "ABORT - Missing dependency: {file}"
260
+
261
+ - id: "T1-REF-002"
262
+ check: "All agent dependencies exist"
263
+ action: |
264
+ For each agent:
265
+ For each file in dependencies:
266
+ Check file exists
267
+ threshold: "80%" # Allow some missing
268
+ on_fail_above_threshold: "ABORT - >20% missing references"
269
+
270
+ - id: "T1-REF-003"
271
+ check: "Required directories exist"
272
+ directories: ["agents/"]
273
+ conditional:
274
+ - "tasks/ if any tasks referenced"
275
+ - "checklists/ if complex tasks exist"
276
+ on_fail: "ABORT - Missing required directory"
277
+ ```
278
+
279
+ ### 1.4 Cross-Reference Validation
280
+
281
+ ```yaml
282
+ cross_reference_checks:
283
+ - id: "T1-XREF-001"
284
+ check: "All handoff_to targets exist"
285
+ action: |
286
+ For each agent with handoff_to:
287
+ Verify target agent file exists
288
+ on_fail: "ABORT - Handoff to non-existent agent: {target}"
289
+
290
+ - id: "T1-XREF-002"
291
+ check: "All task references valid"
292
+ action: |
293
+ For each task referenced in agents/workflows:
294
+ Verify task file exists in tasks/
295
+ on_fail: "ABORT - Task reference invalid: {task}"
296
+
297
+ - id: "T1-XREF-003"
298
+ check: "All template references valid"
299
+ action: |
300
+ For each template referenced in tasks:
301
+ Verify template file exists
302
+ on_fail: "WARNING - Template missing: {template}"
303
+
304
+ - id: "T1-XREF-004"
305
+ check: "All checklist references valid"
306
+ action: |
307
+ For each checklist referenced:
308
+ Verify checklist file exists
309
+ on_fail: "WARNING - Checklist missing: {checklist}"
310
+ ```
311
+
312
+ ### 1.5 Security Scan
313
+
314
+ **Reference:** OWASP Secrets Management, squad-checklist.md SEC-001 to SEC-018
315
+
316
+ ```yaml
317
+ security_scan:
318
+ description: "Comprehensive security scan for secrets and vulnerabilities"
319
+
320
+ # Category 1: API Keys & Tokens (BLOCKING)
321
+ api_tokens:
322
+ - id: "T1-SEC-001"
323
+ check: "No hardcoded API keys"
324
+ action: "grep -rE '(api[_-]?key|apikey)\\s*[:=]\\s*[^${}]{20,}'"
325
+ exclude: "# Placeholder|{{|\\$[A-Z]"
326
+ on_match: "ABORT - API key found"
327
+
328
+ - id: "T1-SEC-002"
329
+ check: "No hardcoded secrets/passwords"
330
+ action: "grep -rE '(secret|password|passwd)\\s*[:=]\\s*['\"][^'\"${}]{8,}'"
331
+ on_match: "ABORT - Secret/password found"
332
+
333
+ - id: "T1-SEC-003"
334
+ check: "No bearer/JWT tokens"
335
+ action: "grep -rE '(bearer|jwt[_-]?secret)\\s*[:=]\\s*['\"][^'\"]{20,}'"
336
+ on_match: "ABORT - Token found"
337
+
338
+ # Category 2: Cloud Credentials (BLOCKING)
339
+ cloud_credentials:
340
+ - id: "T1-SEC-004"
341
+ check: "No AWS Access Keys"
342
+ action: "grep -rE 'AKIA[A-Z0-9]{16}'"
343
+ on_match: "ABORT - AWS Access Key found"
344
+
345
+ - id: "T1-SEC-005"
346
+ check: "No AWS Secret Keys"
347
+ action: "grep -rE 'aws[_-]?secret.*['\"][A-Za-z0-9/+=]{40}'"
348
+ on_match: "ABORT - AWS Secret Key found"
349
+
350
+ - id: "T1-SEC-006"
351
+ check: "No GCP Service Account Keys"
352
+ action: "grep -rE '\"type\":\\s*\"service_account\"'"
353
+ on_match: "ABORT - GCP Service Account found"
354
+
355
+ # Category 3: Private Keys (BLOCKING)
356
+ private_keys:
357
+ - id: "T1-SEC-007"
358
+ check: "No private keys in content"
359
+ action: "grep -rE '-----BEGIN.*PRIVATE KEY-----'"
360
+ on_match: "ABORT - Private key content found"
361
+
362
+ - id: "T1-SEC-008"
363
+ check: "No private key files"
364
+ action: "find . -name '*.pem' -o -name '*.key' -o -name 'id_rsa' -o -name 'id_ecdsa'"
365
+ on_match: "ABORT - Private key file found"
366
+
367
+ # Category 4: Database URLs (BLOCKING)
368
+ database_urls:
369
+ - id: "T1-SEC-009"
370
+ check: "No database URLs with credentials"
371
+ action: "grep -rE '(postgres|mysql|mongodb|redis)://[^:]+:[^@]+@'"
372
+ on_match: "ABORT - Database URL with password found"
373
+
374
+ - id: "T1-SEC-010"
375
+ check: "No Supabase service role keys"
376
+ action: "grep -rE 'supabase.*service[_-]?role.*eyJ'"
377
+ on_match: "ABORT - Supabase service role key found"
378
+
379
+ # Category 5: Sensitive Files (BLOCKING)
380
+ sensitive_files:
381
+ - id: "T1-SEC-011"
382
+ check: "No .env files"
383
+ action: "find . -name '.env*' -o -name '*.env'"
384
+ on_match: "ABORT - .env file found"
385
+
386
+ - id: "T1-SEC-012"
387
+ check: "No credential files"
388
+ action: "find . -name 'credentials*.json' -o -name 'service-account*.json' -o -name 'secrets.yaml'"
389
+ on_match: "ABORT - Credential file found"
390
+
391
+ # Category 6: Code Vulnerabilities (WARNING)
392
+ code_vulnerabilities:
393
+ - id: "T1-SEC-013"
394
+ check: "No dangerous eval/exec"
395
+ action: "grep -rE '\\b(eval|exec)\\s*\\(' --include='*.py' --include='*.js'"
396
+ severity: WARNING
397
+ on_match: "WARNING - eval/exec found, review context"
398
+
399
+ # False positive exclusions
400
+ exclude_patterns:
401
+ - "{{.*}}" # Jinja/Mustache placeholders
402
+ - "$[A-Z_]+" # Shell variables
403
+ - "process.env." # Node.js env
404
+ - "os.environ" # Python env
405
+ - "# Example:" # Example in comments
406
+ - "your-.*-here" # Placeholder text
407
+ ```
408
+
409
+ **Tier 1 Output:**
410
+ ```yaml
411
+ tier_1_result:
412
+ status: "PASS" # or "ABORT"
413
+ checks_run: 11
414
+ checks_passed: 11
415
+ checks_failed: 0
416
+ blocking_issues: []
417
+ ```
418
+
419
+ ---
420
+
421
+ ## PHASE 2: COVERAGE (TIER 2 - BLOCKING)
422
+
423
+ **Duration:** 1-2 minutes
424
+ **Mode:** Autonomous
425
+ **Result:** PASS or ABORT
426
+
427
+ ### 2.1 Checklist Coverage
428
+
429
+ ```yaml
430
+ checklist_coverage:
431
+ id: "T2-COV-001"
432
+ description: "Complex tasks should have checklists"
433
+
434
+ calculation:
435
+ step_1: "Count tasks with >500 lines"
436
+ step_2: "Count checklists in checklists/"
437
+ step_3: "Calculate ratio: checklists / complex_tasks"
438
+
439
+ threshold: 0.30 # 30%
440
+ result:
441
+ pass_if: "ratio >= 0.30"
442
+ warn_if: "ratio >= 0.20"
443
+ fail_if: "ratio < 0.20"
444
+
445
+ on_fail: "ABORT - Insufficient checklist coverage ({ratio}% < 30%)"
446
+ ```
447
+
448
+ ### 2.2 Orphan Task Detection
449
+
450
+ ```yaml
451
+ orphan_detection:
452
+ id: "T2-ORP-001"
453
+ description: "Tasks must be referenced somewhere"
454
+
455
+ calculation:
456
+ for_each_task_in_tasks:
457
+ check_1: "Is task referenced in any agent's commands?"
458
+ check_2: "Is task referenced in any agent's dependencies?"
459
+ check_3: "Is task referenced in any workflow?"
460
+ if_none: "Mark as ORPHAN"
461
+
462
+ threshold: 2 # Max orphans allowed
463
+ result:
464
+ pass_if: "orphan_count <= 2"
465
+ warn_if: "orphan_count <= 5"
466
+ fail_if: "orphan_count > 5"
467
+
468
+ on_fail: "ABORT - Too many orphan tasks: {orphan_list}"
469
+ ```
470
+
471
+ ### 2.3 Pipeline Phase Coverage (Pipeline squads only)
472
+
473
+ ```yaml
474
+ phase_coverage:
475
+ id: "T2-PHS-001"
476
+ description: "All workflow phases must have tasks"
477
+ applies_to: "pipeline"
478
+
479
+ calculation:
480
+ step_1: "List all phases in workflow"
481
+ step_2: "For each phase, verify task reference exists"
482
+ step_3: "Calculate coverage %"
483
+
484
+ threshold: 1.0 # 100%
485
+ result:
486
+ pass_if: "coverage == 100%"
487
+ fail_if: "coverage < 100%"
488
+
489
+ on_fail: "ABORT - Phases without tasks: {missing_phases}"
490
+ ```
491
+
492
+ ### 2.4 Data File Usage
493
+
494
+ ```yaml
495
+ data_usage:
496
+ id: "T2-DAT-001"
497
+ description: "Data files should be referenced"
498
+
499
+ calculation:
500
+ step_1: "List all files in data/"
501
+ step_2: "For each file, grep all agents and tasks for filename"
502
+ step_3: "Calculate usage %"
503
+
504
+ threshold: 0.50 # 50%
505
+ result:
506
+ pass_if: "usage >= 50%"
507
+ warn_if: "usage >= 30%"
508
+ fail_if: "usage < 30%"
509
+
510
+ on_warn: "WARNING - Low data file usage: {unused_files}"
511
+ # Not blocking, just warning
512
+ ```
513
+
514
+ ### 2.5 Tool Registry Validation [v3.2]
515
+
516
+ ```yaml
517
+ tool_registry_validation:
518
+ id: "T2-TOOL-001"
519
+ description: "Validate tool registry if squad uses external tools/MCPs"
520
+ applies_when: "data/tool-registry.yaml exists OR scripts/ contains integrations"
521
+ reference: "data/tool-registry.yaml"
522
+
523
+ checks:
524
+ registry_exists:
525
+ id: "T2-TOOL-001a"
526
+ check: "tool-registry.yaml exists if squad uses external tools"
527
+ action: |
528
+ If squad has:
529
+ - MCP integrations
530
+ - External API calls in tasks
531
+ - Automation scripts with tool dependencies
532
+ THEN tool-registry.yaml SHOULD exist
533
+ severity: "WARNING"
534
+ on_missing: "WARNING - Squad uses tools but no registry found"
535
+
536
+ declared_tools_functional:
537
+ id: "T2-TOOL-001b"
538
+ check: "Declared tools are accessible"
539
+ action: |
540
+ For each tool in tool-registry.yaml:
541
+ Verify: path exists OR MCP is configured
542
+ severity: "WARNING"
543
+ on_fail: "WARNING - Tool declared but not accessible: {tool}"
544
+
545
+ integration_documented:
546
+ id: "T2-TOOL-001c"
547
+ check: "Tool integrations documented in README"
548
+ action: "Grep README for tool names from registry"
549
+ severity: "WARNING"
550
+ on_fail: "WARNING - Tools not documented in README"
551
+
552
+ result:
553
+ pass_if: "All declared tools accessible"
554
+ warn_if: "Some tools missing or undocumented"
555
+ # Not blocking - tools are enhancement, not requirement
556
+ ```
557
+
558
+ **Tier 2 Output:**
559
+ ```yaml
560
+ tier_2_result:
561
+ status: "PASS" # or "ABORT"
562
+ metrics:
563
+ checklist_coverage: "35%"
564
+ orphan_tasks: 1
565
+ phase_coverage: "100%" # if pipeline
566
+ data_usage: "67%"
567
+ tool_registry: "N/A" # or "PASS" if exists and valid [v3.2]
568
+ issues: []
569
+ ```
570
+
571
+ ---
572
+
573
+ ## PHASE 3: QUALITY (TIER 3 - SCORING)
574
+
575
+ **Duration:** 5-10 minutes
576
+ **Mode:** Autonomous with sampling
577
+ **Result:** Score 0-10
578
+
579
+ ### 3.1 Prompt Quality (25%)
580
+
581
+ ```yaml
582
+ prompt_quality:
583
+ id: "T3-PQ"
584
+ weight: 0.25
585
+ question: "Are task prompts specific, actionable, and reproducible?"
586
+
587
+ sampling:
588
+ method: "Select 3 representative tasks"
589
+ selection:
590
+ - "Most complex (highest lines)"
591
+ - "Entry/main task"
592
+ - "Random task"
593
+
594
+ criteria:
595
+ - name: "Explicit examples"
596
+ points: 3
597
+ check: "Task has input/output examples?"
598
+
599
+ - name: "Anti-patterns"
600
+ points: 2
601
+ check: "Task has 'don't do' section?"
602
+
603
+ - name: "Success criteria"
604
+ points: 2
605
+ check: "Task has measurable completion criteria?"
606
+
607
+ - name: "Step-by-step"
608
+ points: 2
609
+ check: "Instructions are sequential and clear?"
610
+
611
+ - name: "No vague language"
612
+ points: 1
613
+ check: "Avoids 'verify', 'ensure', 'check' without specifics?"
614
+
615
+ scoring:
616
+ per_task: "Sum criteria points (max 10)"
617
+ final: "Average of 3 sampled tasks"
618
+ ```
619
+
620
+ ### 3.2 Pipeline Coherence (25%)
621
+
622
+ ```yaml
623
+ pipeline_coherence:
624
+ id: "T3-PC"
625
+ weight: 0.25
626
+ question: "Does data flow correctly between components?"
627
+
628
+ criteria:
629
+ - name: "Output→Input chain"
630
+ points: 3
631
+ check: |
632
+ For each phase transition:
633
+ Phase N output field == Phase N+1 input field?
634
+ File paths consistent?
635
+
636
+ - name: "No sequence collisions"
637
+ points: 2
638
+ check: "No two tasks have same sequence number?"
639
+
640
+ - name: "Checkpoints present"
641
+ points: 2
642
+ check: |
643
+ Quality gate before final output?
644
+ Human review at critical points?
645
+
646
+ - name: "Failure handling"
647
+ points: 2
648
+ check: "Rework rules defined for failures?"
649
+
650
+ - name: "Dependencies explicit"
651
+ points: 1
652
+ check: "Task dependencies are listed, not implicit?"
653
+
654
+ scoring:
655
+ method: "Sum criteria points (max 10)"
656
+ ```
657
+
658
+ ### 3.3 Checklist Actionability (25%)
659
+
660
+ ```yaml
661
+ checklist_actionability:
662
+ id: "T3-CA"
663
+ weight: 0.25
664
+ question: "Are checklists measurable and actionable?"
665
+
666
+ sampling:
667
+ method: "Evaluate all checklists (or max 3)"
668
+
669
+ criteria:
670
+ - name: "Measurable items"
671
+ points: 3
672
+ check: |
673
+ Items can be answered YES/NO?
674
+ Avoids 'verify quality', 'ensure completeness'?
675
+
676
+ - name: "Scoring system"
677
+ points: 2
678
+ check: "Has point values or grades?"
679
+
680
+ - name: "Pass/fail thresholds"
681
+ points: 2
682
+ check: "Defines what score = pass?"
683
+
684
+ - name: "Auto-correction"
685
+ points: 2
686
+ check: "If item fails, guidance on how to fix?"
687
+
688
+ - name: "Edge cases"
689
+ points: 1
690
+ check: "Covers unusual scenarios?"
691
+
692
+ scoring:
693
+ per_checklist: "Sum criteria points (max 10)"
694
+ final: "Average of all checklists"
695
+ ```
696
+
697
+ ### 3.4 Documentation (25%)
698
+
699
+ ```yaml
700
+ documentation:
701
+ id: "T3-DOC"
702
+ weight: 0.25
703
+ question: "Can a new user understand and use this squad?"
704
+
705
+ criteria:
706
+ - name: "README purpose"
707
+ points: 2
708
+ check: "README clearly explains what squad does?"
709
+
710
+ - name: "Getting started"
711
+ points: 2
712
+ check: "Installation/activation instructions present?"
713
+
714
+ - name: "Command examples"
715
+ points: 2
716
+ check: "Commands documented with usage examples?"
717
+
718
+ - name: "Architecture diagram"
719
+ points: 1
720
+ check: "Visual flow or structure diagram?"
721
+
722
+ - name: "Changelog"
723
+ points: 1
724
+ check: "Version history maintained?"
725
+
726
+ - name: "Error handling"
727
+ points: 1
728
+ check: "Common errors and fixes documented?"
729
+
730
+ - name: "Dependencies"
731
+ points: 1
732
+ check: "External dependencies listed?"
733
+
734
+ - name: "Changelog separation" # [v3.2.1]
735
+ points: 1
736
+ check: |
737
+ Tasks >= v2.0.0 have separate CHANGELOG.md?
738
+ Reference: HO-DP-001 in best-practices.md
739
+
740
+ scoring:
741
+ method: "Sum criteria points (max 11, normalized to 10)"
742
+ ```
743
+
744
+ ### 3.5 Optimization Opportunities [v3.2]
745
+
746
+ ```yaml
747
+ optimization_opportunities:
748
+ id: "T3-OPT"
749
+ weight: 0.20
750
+ question: "Are tasks using the optimal executor type (Worker vs Agent)?"
751
+ reference: "data/executor-decision-tree.md"
752
+
753
+ description: |
754
+ This check identifies tasks that could be converted from Agent (LLM, expensive)
755
+ to Worker (code, cheap) for cost savings. Uses the Executor Decision Tree (Q1-Q6).
756
+
757
+ sampling:
758
+ method: "Analyze all tasks with execution_type field"
759
+ focus: "Tasks marked as Agent that could be Worker"
760
+
761
+ criteria:
762
+ - name: "Executor type declared"
763
+ points: 2
764
+ check: "Tasks have execution_type field? (Worker|Agent|Hybrid|Human)"
765
+
766
+ - name: "Deterministic tasks use Worker"
767
+ points: 3
768
+ check: |
769
+ Tasks that are 100% deterministic (format, validate, transform)
770
+ are marked as Worker, not Agent?
771
+ Apply Q1-Q2 from executor-decision-tree.md
772
+
773
+ - name: "No expensive Agent misuse"
774
+ points: 3
775
+ check: |
776
+ Agent tasks truly require:
777
+ - Language interpretation
778
+ - Creative generation
779
+ - Context-aware analysis
780
+ If task could be a script, DEDUCT points
781
+
782
+ - name: "Hybrid correctly applied"
783
+ points: 2
784
+ check: |
785
+ Hybrid tasks have:
786
+ - Defined human_checkpoint
787
+ - Clear AI vs Human boundaries
788
+ - Fallback behavior
789
+
790
+ scoring:
791
+ method: "Sum criteria points (max 10)"
792
+
793
+ economy_projection:
794
+ calculate: |
795
+ For each Agent task that could be Worker:
796
+ monthly_executions: estimated 20/month
797
+ agent_cost: ~$0.10-0.50 per execution (tokens)
798
+ worker_cost: ~$0.001 per execution (compute)
799
+ potential_savings: (agent_cost - worker_cost) × monthly_executions
800
+
801
+ output: |
802
+ Optimization Report:
803
+ - Tasks eligible for conversion: N
804
+ - Monthly token savings: ~X tokens
805
+ - Monthly cost savings: ~$X
806
+
807
+ output_note: |
808
+ This check is INFORMATIONAL - not blocking.
809
+ Low score indicates optimization opportunity, not failure.
810
+ Run `*optimize {squad}` for detailed conversion recommendations.
811
+ ```
812
+
813
+ **Tier 3 Output:**
814
+ ```yaml
815
+ tier_3_result:
816
+ scores:
817
+ prompt_quality: 8.5
818
+ pipeline_coherence: 7.0
819
+ checklist_actionability: 6.5
820
+ documentation: 8.0
821
+ optimization_opportunities: 6.0 # Indicates room for improvement
822
+ weighted_total: 7.2
823
+ details:
824
+ prompt_quality_samples: ["brutal-extractor.md", "final-writer.md", "gap-analyzer.md"]
825
+ coherence_issues: ["Phase 3.5 not in workflow.yaml", "Sequence 10 collision"]
826
+ checklist_issues: ["book-summary-scoring.md missing auto-correction for some items"]
827
+ optimization_notes: # [v3.2]
828
+ agent_tasks_convertible: 3
829
+ potential_monthly_savings: "~$15"
830
+ recommendation: "Run *optimize {squad} for details"
831
+ ```
832
+
833
+ ---
834
+
835
+ ## PHASE 4: CONTEXTUAL VALIDATION (TIER 4)
836
+
837
+ **Duration:** 3-5 minutes
838
+ **Mode:** Type-specific
839
+ **Result:** Score 0-10
840
+
841
+ ### 4A. Expert Squad Validation
842
+
843
+ ```yaml
844
+ expert_validation:
845
+ applies_to: "expert"
846
+
847
+ checks:
848
+ voice_dna:
849
+ id: "T4E-VD"
850
+ weight: 0.30
851
+ required: true
852
+ criteria:
853
+ - "Each agent has voice_dna section"
854
+ - "sentence_starters defined by context"
855
+ - "metaphors defined with usage"
856
+ - "vocabulary.always_use has 5+ terms"
857
+ - "vocabulary.never_use has 3+ terms"
858
+
859
+ objection_algorithms:
860
+ id: "T4E-OA"
861
+ weight: 0.25
862
+ required: true
863
+ criteria:
864
+ - "Each agent has objection_algorithms"
865
+ - "Minimum 3 objections per agent"
866
+ - "Responses are domain-specific"
867
+
868
+ output_examples:
869
+ id: "T4E-OE"
870
+ weight: 0.25
871
+ required: true
872
+ criteria:
873
+ - "Each agent has 3+ examples"
874
+ - "Examples show input→output"
875
+ - "Examples are realistic"
876
+
877
+ tier_organization:
878
+ id: "T4E-TO"
879
+ weight: 0.20
880
+ required: true
881
+ criteria:
882
+ - "Tier 0 (diagnosis) agents exist"
883
+ - "Tier assignments documented"
884
+ - "Orchestrator/Chief defined"
885
+ ```
886
+
887
+ ### 4B. Pipeline Squad Validation
888
+
889
+ ```yaml
890
+ pipeline_validation:
891
+ applies_to: "pipeline"
892
+
893
+ checks:
894
+ workflow_definition:
895
+ id: "T4P-WD"
896
+ weight: 0.30
897
+ required: true
898
+ criteria:
899
+ - "Workflow file exists"
900
+ - "Phases numbered sequentially"
901
+ - "Each phase has: name, task, outputs"
902
+ - "Dependencies explicit"
903
+
904
+ phase_checkpoints:
905
+ id: "T4P-PC"
906
+ weight: 0.30
907
+ required: true
908
+ criteria:
909
+ - "Critical phases have checkpoints"
910
+ - "Quality gate before final output"
911
+ - "Rework rules on failure"
912
+
913
+ orchestrator_completeness:
914
+ id: "T4P-OC"
915
+ weight: 0.25
916
+ required: true
917
+ criteria:
918
+ - "All phases documented in orchestrator"
919
+ - "Commands map to tasks"
920
+ - "Status tracking capability"
921
+
922
+ intermediate_outputs:
923
+ id: "T4P-IO"
924
+ weight: 0.10
925
+ required: true
926
+ criteria:
927
+ - "Each phase produces output"
928
+ - "Output paths consistent"
929
+ - "Outputs inspectable"
930
+
931
+ automation_script:
932
+ id: "T4P-AS"
933
+ weight: 0.15
934
+ required: false # Required only if phases >= 8
935
+ applies_when: "phases_count >= 8"
936
+ criteria:
937
+ - "Script exists in scripts/ directory"
938
+ - "Accepts input parameters (slug/target)"
939
+ - "Has --help documentation"
940
+ - "Has state management (state.json)"
941
+ - "Has progress tracking"
942
+ - "Logs to logs/ directory"
943
+ - "Supports resume capability"
944
+ reference: "YOLO mode automation pattern"
945
+ scoring:
946
+ 7_of_7: 10
947
+ 6_of_7: 8
948
+ 5_of_7: 7 # minimum pass
949
+ below_5: "FAIL"
950
+ ```
951
+
952
+ ### 4C. Hybrid Squad Validation
953
+
954
+ ```yaml
955
+ hybrid_validation:
956
+ applies_to: "hybrid"
957
+
958
+ checks:
959
+ persona_profile:
960
+ id: "T4H-PP"
961
+ weight: 0.15
962
+ required: true
963
+ criteria:
964
+ - "Each agent has persona_profile"
965
+ - "Archetype defined"
966
+ - "Communication style documented"
967
+
968
+ behavioral_states:
969
+ id: "T4H-BS"
970
+ weight: 0.15
971
+ required: true
972
+ criteria:
973
+ - "Operational modes defined"
974
+ - "Mode triggers documented"
975
+ - "Output format per mode"
976
+
977
+ heuristic_validation:
978
+ id: "T4H-HV"
979
+ weight: 0.20
980
+ required: true
981
+ criteria:
982
+ - "Heuristics have IDs (PV_*, SC_*)"
983
+ - "Each has: trigger, evaluation, threshold"
984
+ - "VETO conditions explicit"
985
+ - "Fallback behavior defined"
986
+
987
+ process_standards:
988
+ id: "T4H-PS"
989
+ weight: 0.15
990
+ required: true
991
+ criteria:
992
+ - "Task Anatomy (8 fields) enforced"
993
+ - "BPMN or equivalent used"
994
+ - "Integration points documented"
995
+
996
+ # [v3.2] NEW: Executor Decision Tree Validation
997
+ executor_decision_tree:
998
+ id: "T4H-EX"
999
+ weight: 0.35
1000
+ required: true
1001
+ reference: "data/executor-decision-tree.md"
1002
+ description: |
1003
+ Validate that tasks correctly apply the 4-type executor model:
1004
+ - Worker: Deterministic code (100% consistent, cheap)
1005
+ - Agent: LLM probabilistic (needs interpretation, expensive)
1006
+ - Hybrid: AI + Human (needs both judgment types)
1007
+ - Human: Pure human decision (irreducible complexity)
1008
+
1009
+ criteria:
1010
+ - name: "execution_type declared"
1011
+ check: "Each task has execution_type field"
1012
+ points: 2
1013
+
1014
+ - name: "Q1-Q6 correctly applied"
1015
+ check: |
1016
+ For each task, verify decision tree was followed:
1017
+ Q1: Is output 100% predictable from input?
1018
+ Q2: Can ALL rules be codified?
1019
+ Q2a: Does task require language interpretation?
1020
+ Q2b: Can one person ALWAYS make the decision?
1021
+ Q3: Is decision-maker-level or safety-critical?
1022
+ Q4: Can human error be tolerated?
1023
+ Q5: Is real-time response required?
1024
+ Q6: Does complexity require expert + AI together?
1025
+ points: 4
1026
+
1027
+ - name: "Worker tasks have scripts"
1028
+ check: "Tasks marked Worker have implementation in scripts/"
1029
+ points: 2
1030
+
1031
+ - name: "Hybrid tasks have checkpoints"
1032
+ check: "Tasks marked Hybrid define human_checkpoint"
1033
+ points: 1
1034
+
1035
+ - name: "Fallback chain defined"
1036
+ check: "Each executor type has fallback (Worker→Agent, Agent→Hybrid, Hybrid→Human)"
1037
+ points: 1
1038
+
1039
+ scoring:
1040
+ 10_of_10: 10
1041
+ 8_of_10: 8
1042
+ 6_of_10: 6 # Minimum pass
1043
+ below_6: "CONDITIONAL - Executor types need review"
1044
+
1045
+ anti_patterns:
1046
+ - "Task marked Agent but is pure format/transform (should be Worker)"
1047
+ - "Task marked Worker but requires interpretation (should be Agent)"
1048
+ - "Task marked Hybrid but no human checkpoint defined"
1049
+ - "No fallback for when primary executor fails"
1050
+ ```
1051
+
1052
+ **Tier 4 Output:**
1053
+ ```yaml
1054
+ # Pipeline squad example:
1055
+ tier_4_result:
1056
+ squad_type: "pipeline"
1057
+ score: 7.5
1058
+ checks:
1059
+ workflow_definition: 8.0
1060
+ phase_checkpoints: 6.0 # Missing rework rules
1061
+ orchestrator_completeness: 9.0
1062
+ intermediate_outputs: 7.0
1063
+ issues:
1064
+ - "Phase checkpoints missing rework rules"
1065
+ - "Some phases lack explicit outputs"
1066
+
1067
+ # Hybrid squad example [v3.2]:
1068
+ tier_4_result_hybrid:
1069
+ squad_type: "hybrid"
1070
+ score: 7.8
1071
+ checks:
1072
+ persona_profile: 8.0
1073
+ behavioral_states: 7.5
1074
+ heuristic_validation: 8.0
1075
+ process_standards: 7.0
1076
+ executor_decision_tree: 8.5 # [v3.2] NEW
1077
+ issues:
1078
+ - "2 tasks marked Agent could be Worker"
1079
+ - "Missing fallback for Hybrid→Human"
1080
+ optimization:
1081
+ convertible_tasks: 2
1082
+ potential_savings: "~$12/month"
1083
+ ```
1084
+
1085
+ ---
1086
+
1087
+ ## PHASE 5: VETO CHECK
1088
+
1089
+ **Duration:** < 30 seconds
1090
+ **Mode:** Autonomous
1091
+ **Result:** VETO or PROCEED
1092
+ **Reference:** `config/veto-conditions.yaml` **[v3.3]**
1093
+
1094
+ ### Universal Vetos (SC_VC_*)
1095
+
1096
+ ```yaml
1097
+ universal_vetos:
1098
+ # From config/veto-conditions.yaml
1099
+ - id: "SC_VC_001"
1100
+ condition: "Domain not viable"
1101
+ check: "elite_minds_count < 3 OR source_quality < 0.6"
1102
+ result: "VETO - Domain not viable for squad creation"
1103
+
1104
+ - id: "SC_VC_002"
1105
+ condition: "Vision unclear"
1106
+ check: "squad_vision_clarity < 0.7"
1107
+ result: "VETO - Vision unclear, return to Discovery"
1108
+
1109
+ - id: "SC_VC_010"
1110
+ condition: "Task anatomy incomplete"
1111
+ check: "required_fields_missing = true"
1112
+ result: "VETO - Task missing required 8 fields"
1113
+
1114
+ # Legacy vetos (maintained for backwards compatibility)
1115
+ - id: "V1"
1116
+ condition: "No entry agent defined"
1117
+ check: "tier_1_result.entry_agent_exists == false"
1118
+ result: "VETO"
1119
+
1120
+ - id: "V2"
1121
+ condition: "Entry agent cannot activate"
1122
+ check: "tier_1_result.entry_agent_activatable == false"
1123
+ result: "VETO"
1124
+
1125
+ - id: "V3"
1126
+ condition: ">20% of referenced files missing"
1127
+ check: "tier_1_result.missing_references > 20%"
1128
+ result: "VETO"
1129
+
1130
+ - id: "V4"
1131
+ condition: "config.yaml invalid"
1132
+ check: "tier_1_result.config_valid == false"
1133
+ result: "VETO"
1134
+
1135
+ - id: "V5"
1136
+ condition: "Security issue detected"
1137
+ check: "tier_1_result.security_issues > 0"
1138
+ result: "VETO"
1139
+ message: "Secrets, API keys, or credentials found"
1140
+
1141
+ - id: "V6"
1142
+ condition: "Critical cross-reference broken"
1143
+ check: "tier_1_result.broken_handoffs > 0"
1144
+ result: "VETO"
1145
+ message: "Handoff to non-existent agent"
1146
+ ```
1147
+
1148
+ ### Expert Squad Vetos
1149
+
1150
+ ```yaml
1151
+ expert_vetos:
1152
+ - id: "VE1"
1153
+ condition: "Zero agents with voice_dna"
1154
+ check: "tier_4_result.voice_dna_coverage == 0"
1155
+ result: "VETO"
1156
+
1157
+ - id: "VE2"
1158
+ condition: "No Tier 0 (diagnosis) capability"
1159
+ check: "tier_4_result.has_tier_0 == false"
1160
+ result: "VETO"
1161
+ ```
1162
+
1163
+ ### Pipeline Squad Vetos
1164
+
1165
+ ```yaml
1166
+ pipeline_vetos:
1167
+ - id: "VP1"
1168
+ condition: "Workflow has sequence collisions"
1169
+ check: "tier_3_result.sequence_collisions > 0"
1170
+ result: "VETO"
1171
+
1172
+ - id: "VP2"
1173
+ condition: "Phase outputs don't connect"
1174
+ check: "tier_3_result.broken_output_chain == true"
1175
+ result: "VETO"
1176
+
1177
+ - id: "VP3"
1178
+ condition: "No quality gate before final"
1179
+ check: "tier_4_result.has_quality_gate == false"
1180
+ result: "VETO"
1181
+ ```
1182
+
1183
+ ### Hybrid Squad Vetos
1184
+
1185
+ ```yaml
1186
+ hybrid_vetos:
1187
+ - id: "VH1"
1188
+ condition: "No heuristic validation defined"
1189
+ check: "tier_4_result.heuristic_count == 0"
1190
+ result: "VETO"
1191
+
1192
+ - id: "VH2"
1193
+ condition: "Missing fallback behavior"
1194
+ check: "tier_4_result.has_fallback == false"
1195
+ result: "VETO"
1196
+ ```
1197
+
1198
+ **Veto Output:**
1199
+ ```yaml
1200
+ veto_result:
1201
+ status: "PROCEED" # or "VETO"
1202
+ triggered: null # or veto ID
1203
+ message: null # or veto message
1204
+ ```
1205
+
1206
+ ---
1207
+
1208
+ ## PHASE 6: SCORING & REPORT
1209
+
1210
+ **Duration:** 1-2 minutes
1211
+ **Mode:** Autonomous
1212
+
1213
+ ### Final Score Calculation
1214
+
1215
+ ```yaml
1216
+ score_calculation:
1217
+ # Only if Tier 1 and Tier 2 passed
1218
+ precondition:
1219
+ tier_1: "PASS"
1220
+ tier_2: "PASS"
1221
+ veto: "PROCEED"
1222
+
1223
+ formula: "(tier_3_score × 0.80) + (tier_4_score × 0.20)"
1224
+
1225
+ example:
1226
+ tier_3_score: 7.5
1227
+ tier_4_score: 7.5
1228
+ final: (7.5 × 0.80) + (7.5 × 0.20) = 6.0 + 1.5 = 7.5
1229
+
1230
+ interpretation:
1231
+ 9.0-10.0: "EXCELLENT - Gold standard reference"
1232
+ 7.0-8.9: "PASS - Production ready"
1233
+ 5.0-6.9: "CONDITIONAL - Needs improvements"
1234
+ 0.0-4.9: "FAIL - Significant rework needed"
1235
+ ```
1236
+
1237
+ ### Report Format
1238
+
1239
+ ```yaml
1240
+ report_structure:
1241
+ header:
1242
+ squad_name: "{name}"
1243
+ squad_type: "{detected_type}"
1244
+ version: "{version}"
1245
+ validation_date: "{date}"
1246
+ validator: "Squad Architect v3.0"
1247
+
1248
+ executive_summary:
1249
+ final_score: "X.X/10"
1250
+ result: "PASS | CONDITIONAL | FAIL"
1251
+ type_detected: "Expert | Pipeline | Hybrid"
1252
+ key_strengths:
1253
+ - "..."
1254
+ key_issues:
1255
+ - "..."
1256
+
1257
+ tier_results:
1258
+ tier_1_structure:
1259
+ status: "PASS | ABORT"
1260
+ checks: X/Y
1261
+ blocking_issues: []
1262
+
1263
+ tier_2_coverage:
1264
+ status: "PASS | ABORT"
1265
+ metrics:
1266
+ checklist_coverage: "X%"
1267
+ orphan_tasks: N
1268
+ data_usage: "X%"
1269
+
1270
+ tier_3_quality:
1271
+ score: "X.X/10"
1272
+ breakdown:
1273
+ prompt_quality: "X.X (25%)"
1274
+ pipeline_coherence: "X.X (25%)"
1275
+ checklist_actionability: "X.X (25%)"
1276
+ documentation: "X.X (25%)"
1277
+
1278
+ tier_4_contextual:
1279
+ type: "Expert | Pipeline | Hybrid"
1280
+ score: "X.X/10"
1281
+ breakdown: {...}
1282
+
1283
+ veto_status:
1284
+ triggered: "None | VXX"
1285
+ message: "..."
1286
+
1287
+ issues_by_priority:
1288
+ critical:
1289
+ - issue: "..."
1290
+ component: "..."
1291
+ fix: "..."
1292
+ high:
1293
+ - issue: "..."
1294
+ fix: "..."
1295
+ medium:
1296
+ - issue: "..."
1297
+ fix: "..."
1298
+
1299
+ recommendations:
1300
+ immediate: ["..."]
1301
+ short_term: ["..."]
1302
+
1303
+ sign_off:
1304
+ validator: "Squad Architect"
1305
+ date: "{date}"
1306
+ final_score: "X.X/10"
1307
+ result: "PASS | CONDITIONAL | FAIL"
1308
+ ```
1309
+
1310
+ ---
1311
+
1312
+ ## Outputs
1313
+
1314
+ | Output | Location | Description |
1315
+ |--------|----------|-------------|
1316
+ | Validation Report | Console + `{squad_path}/docs/validation-report-{date}.md` | Full report |
1317
+ | Score Summary | Console | Quick pass/fail with score |
1318
+
1319
+ ---
1320
+
1321
+ ## Usage
1322
+
1323
+ ```bash
1324
+ # Validate entire squad
1325
+ @squad-chief
1326
+ *validate-squad books
1327
+
1328
+ # With type override (skip detection)
1329
+ *validate-squad books --type=pipeline
1330
+
1331
+ # Verbose mode
1332
+ *validate-squad copy --verbose
1333
+ ```
1334
+
1335
+ ---
1336
+
1337
+ ## Quick Reference: What's Required by Type
1338
+
1339
+ | Component | Expert | Pipeline | Hybrid |
1340
+ |-----------|--------|----------|--------|
1341
+ | voice_dna | REQUIRED | optional | optional |
1342
+ | objection_algorithms | REQUIRED | optional | optional |
1343
+ | output_examples | REQUIRED | optional | optional |
1344
+ | tier_organization | REQUIRED | optional | optional |
1345
+ | workflow_definition | optional | REQUIRED | optional |
1346
+ | phase_checkpoints | optional | REQUIRED | optional |
1347
+ | orchestrator | optional | REQUIRED | optional |
1348
+ | automation_script | optional | **IF 8+ phases** | optional |
1349
+ | persona_profile | optional | optional | REQUIRED |
1350
+ | behavioral_states | optional | optional | REQUIRED |
1351
+ | heuristic_validation | optional | optional | REQUIRED |
1352
+ | **executor_decision_tree** [v3.2] | optional | optional | **REQUIRED** |
1353
+ | **tool_registry** [v3.2] | optional | optional | optional |
1354
+ | **optimization_check** [v3.2] | informational | informational | informational |
1355
+
1356
+ ---
1357
+
1358
+ ## Related
1359
+
1360
+ | Command | Purpose |
1361
+ |---------|---------|
1362
+ | `*validate-squad {name}` | Full squad validation |
1363
+ | `*validate-agent {file}` | Single agent validation |
1364
+ | `*validate-task {file}` | Single task validation |
1365
+
1366
+ | Reference | File |
1367
+ |-----------|------|
1368
+ | Checklist | `checklists/squad-checklist.md` |
1369
+ | Type Definitions | `data/squad-type-definitions.yaml` |
1370
+ | Quality Framework | `data/quality-dimensions-framework.md` |
1371
+ | Executor Decision Tree | `data/executor-decision-tree.md` **[v3.2]** |
1372
+ | Tool Registry | `data/tool-registry.yaml` **[v3.2]** |
1373
+ | Optimize Task | `tasks/optimize.md` **[v3.2]** |
1374
+
1375
+ ---
1376
+
1377
+ ## Changelog
1378
+
1379
+ Ver histórico completo em: [`CHANGELOG.md`](./CHANGELOG.md)
1380
+
1381
+ ---
1382
+
1383
+ _Task Version: 3.3.0_
1384
+ _Philosophy: Context-aware validation - different squads need different things_
1385
+ _Reference: squad-checklist.md v3.0, squad-type-definitions.yaml v1.0, executor-decision-tree.md v1.0_