atlas-workflow 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +235 -0
  3. package/VERSION +1 -0
  4. package/build/cli/atlas-init.mjs +590 -0
  5. package/hosts/opencode/.opencode/agents/atlas-direct-execute.md +31 -0
  6. package/hosts/opencode/.opencode/agents/atlas-findings-repair.md +35 -0
  7. package/hosts/opencode/.opencode/agents/atlas-plan-execute.md +33 -0
  8. package/hosts/opencode/.opencode/agents/atlas-slice-review.md +27 -0
  9. package/hosts/opencode/.opencode/agents/atlas-task-validator.md +121 -0
  10. package/hosts/opencode/.opencode/atlas/VERSION +1 -0
  11. package/hosts/opencode/.opencode/atlas/orchestrator/README.md +261 -0
  12. package/hosts/opencode/.opencode/atlas/orchestrator/commands/workflow.md +37 -0
  13. package/hosts/opencode/.opencode/atlas/orchestrator/defaults/paths.md +21 -0
  14. package/hosts/opencode/.opencode/atlas/orchestrator/references/host-adapters.md +104 -0
  15. package/hosts/opencode/.opencode/atlas/orchestrator/references/qa_s13_matrix.md +141 -0
  16. package/hosts/opencode/.opencode/atlas/orchestrator/references/subagent_dispatch.md +42 -0
  17. package/hosts/opencode/.opencode/atlas/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  18. package/hosts/opencode/.opencode/atlas/packages/mcp-server/README.md +28 -0
  19. package/hosts/opencode/.opencode/atlas/packages/mcp-server/package.json +15 -0
  20. package/hosts/opencode/.opencode/atlas/packages/mcp-server/server.js +3076 -0
  21. package/hosts/opencode/.opencode/atlas/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  22. package/hosts/opencode/.opencode/atlas/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  23. package/hosts/opencode/.opencode/atlas/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  24. package/hosts/opencode/.opencode/atlas/packages/templates/PLAN_TEMPLATE.md +146 -0
  25. package/hosts/opencode/.opencode/atlas/packages/templates/PRD_TEMPLATE.md +149 -0
  26. package/hosts/opencode/.opencode/atlas/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  27. package/hosts/opencode/.opencode/skills/atlas-backlog-generator/SKILL.md +88 -0
  28. package/hosts/opencode/.opencode/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  29. package/hosts/opencode/.opencode/skills/atlas-direct-execute/SKILL.md +186 -0
  30. package/hosts/opencode/.opencode/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  31. package/hosts/opencode/.opencode/skills/atlas-findings-repair/SKILL.md +148 -0
  32. package/hosts/opencode/.opencode/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  33. package/hosts/opencode/.opencode/skills/atlas-plan-execute/SKILL.md +129 -0
  34. package/hosts/opencode/.opencode/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  35. package/hosts/opencode/.opencode/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  36. package/hosts/opencode/.opencode/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  37. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  38. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  39. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  40. package/hosts/opencode/.opencode/skills/atlas-plan-handoff/SKILL.md +181 -0
  41. package/hosts/opencode/.opencode/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  42. package/hosts/opencode/.opencode/skills/atlas-prd-interview/SKILL.md +77 -0
  43. package/hosts/opencode/.opencode/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  44. package/hosts/opencode/.opencode/skills/atlas-slice-review/SKILL.md +121 -0
  45. package/hosts/opencode/.opencode/skills/atlas-slice-review/agents/openai.yaml +4 -0
  46. package/hosts/opencode/.opencode/skills/atlas-slice-review/references/review-contract.md +58 -0
  47. package/hosts/opencode/.opencode/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  48. package/hosts/opencode/.opencode/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  49. package/hosts/opencode/.opencode/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  50. package/hosts/opencode/.opencode/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  51. package/hosts/opencode/.opencode/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  52. package/hosts/opencode/.opencode/skills/atlas-task-validator/SKILL.md +158 -0
  53. package/hosts/opencode/.opencode/skills/atlas-task-validator/agents/openai.yaml +7 -0
  54. package/hosts/opencode/.opencode/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  55. package/hosts/opencode/opencode.json +13 -0
  56. package/hosts/pi/.mcp.json +11 -0
  57. package/hosts/pi/.pi/agents/atlas-direct-execute.md +218 -0
  58. package/hosts/pi/.pi/agents/atlas-findings-repair.md +184 -0
  59. package/hosts/pi/.pi/agents/atlas-plan-execute.md +163 -0
  60. package/hosts/pi/.pi/agents/atlas-slice-review.md +149 -0
  61. package/hosts/pi/.pi/agents/atlas-task-validator.md +121 -0
  62. package/hosts/pi/atlas/VERSION +1 -0
  63. package/hosts/pi/atlas/orchestrator/README.md +261 -0
  64. package/hosts/pi/atlas/orchestrator/commands/workflow.md +37 -0
  65. package/hosts/pi/atlas/orchestrator/defaults/paths.md +21 -0
  66. package/hosts/pi/atlas/orchestrator/references/host-adapters.md +104 -0
  67. package/hosts/pi/atlas/orchestrator/references/qa_s13_matrix.md +141 -0
  68. package/hosts/pi/atlas/orchestrator/references/subagent_dispatch.md +42 -0
  69. package/hosts/pi/atlas/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  70. package/hosts/pi/atlas/packages/mcp-server/README.md +28 -0
  71. package/hosts/pi/atlas/packages/mcp-server/package.json +15 -0
  72. package/hosts/pi/atlas/packages/mcp-server/server.js +3076 -0
  73. package/hosts/pi/atlas/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  74. package/hosts/pi/atlas/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  75. package/hosts/pi/atlas/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  76. package/hosts/pi/atlas/packages/templates/PLAN_TEMPLATE.md +146 -0
  77. package/hosts/pi/atlas/packages/templates/PRD_TEMPLATE.md +149 -0
  78. package/hosts/pi/atlas/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  79. package/hosts/pi/skills/atlas-backlog-generator/SKILL.md +88 -0
  80. package/hosts/pi/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  81. package/hosts/pi/skills/atlas-direct-execute/SKILL.md +186 -0
  82. package/hosts/pi/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  83. package/hosts/pi/skills/atlas-findings-repair/SKILL.md +148 -0
  84. package/hosts/pi/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  85. package/hosts/pi/skills/atlas-plan-execute/SKILL.md +129 -0
  86. package/hosts/pi/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  87. package/hosts/pi/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  88. package/hosts/pi/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  89. package/hosts/pi/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  90. package/hosts/pi/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  91. package/hosts/pi/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  92. package/hosts/pi/skills/atlas-plan-handoff/SKILL.md +181 -0
  93. package/hosts/pi/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  94. package/hosts/pi/skills/atlas-prd-interview/SKILL.md +77 -0
  95. package/hosts/pi/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  96. package/hosts/pi/skills/atlas-slice-review/SKILL.md +121 -0
  97. package/hosts/pi/skills/atlas-slice-review/agents/openai.yaml +4 -0
  98. package/hosts/pi/skills/atlas-slice-review/references/review-contract.md +58 -0
  99. package/hosts/pi/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  100. package/hosts/pi/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  101. package/hosts/pi/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  102. package/hosts/pi/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  103. package/hosts/pi/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  104. package/hosts/pi/skills/atlas-task-validator/SKILL.md +158 -0
  105. package/hosts/pi/skills/atlas-task-validator/agents/openai.yaml +7 -0
  106. package/hosts/pi/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  107. package/package.json +17 -0
  108. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-direct-execute.toml +3 -0
  109. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-findings-repair.toml +3 -0
  110. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-plan-execute.toml +3 -0
  111. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-slice-review.toml +3 -0
  112. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-task-validator.toml +5 -0
  113. package/plugins/atlas-workflow-orchestrator/.codex-plugin/plugin.json +37 -0
  114. package/plugins/atlas-workflow-orchestrator/.mcp.json +12 -0
  115. package/plugins/atlas-workflow-orchestrator/VERSION +1 -0
  116. package/plugins/atlas-workflow-orchestrator/agents/atlas-direct-execute.md +31 -0
  117. package/plugins/atlas-workflow-orchestrator/agents/atlas-findings-repair.md +35 -0
  118. package/plugins/atlas-workflow-orchestrator/agents/atlas-plan-execute.md +33 -0
  119. package/plugins/atlas-workflow-orchestrator/agents/atlas-slice-review.md +27 -0
  120. package/plugins/atlas-workflow-orchestrator/agents/atlas-task-validator.md +123 -0
  121. package/plugins/atlas-workflow-orchestrator/orchestrator/README.md +261 -0
  122. package/plugins/atlas-workflow-orchestrator/orchestrator/commands/workflow.md +37 -0
  123. package/plugins/atlas-workflow-orchestrator/orchestrator/defaults/paths.md +21 -0
  124. package/plugins/atlas-workflow-orchestrator/orchestrator/references/host-adapters.md +104 -0
  125. package/plugins/atlas-workflow-orchestrator/orchestrator/references/qa_s13_matrix.md +141 -0
  126. package/plugins/atlas-workflow-orchestrator/orchestrator/references/subagent_dispatch.md +42 -0
  127. package/plugins/atlas-workflow-orchestrator/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  128. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/README.md +28 -0
  129. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/package.json +15 -0
  130. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/server.js +3076 -0
  131. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-backlog-generator/SKILL.md +88 -0
  132. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  133. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-direct-execute/SKILL.md +186 -0
  134. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  135. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-findings-repair/SKILL.md +148 -0
  136. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  137. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/SKILL.md +129 -0
  138. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  139. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  140. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  141. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  142. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  143. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  144. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-handoff/SKILL.md +181 -0
  145. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  146. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-prd-interview/SKILL.md +77 -0
  147. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  148. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/SKILL.md +121 -0
  149. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/agents/openai.yaml +4 -0
  150. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/references/review-contract.md +58 -0
  151. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  152. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  153. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  154. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  155. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  156. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-task-validator/SKILL.md +158 -0
  157. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-task-validator/agents/openai.yaml +7 -0
  158. package/plugins/atlas-workflow-orchestrator/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  159. package/plugins/atlas-workflow-orchestrator/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  160. package/plugins/atlas-workflow-orchestrator/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  161. package/plugins/atlas-workflow-orchestrator/packages/templates/PLAN_TEMPLATE.md +146 -0
  162. package/plugins/atlas-workflow-orchestrator/packages/templates/PRD_TEMPLATE.md +149 -0
  163. package/plugins/atlas-workflow-orchestrator/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  164. package/plugins/atlas-workflow-orchestrator/skills/atlas-backlog-generator/SKILL.md +88 -0
  165. package/plugins/atlas-workflow-orchestrator/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  166. package/plugins/atlas-workflow-orchestrator/skills/atlas-direct-execute/SKILL.md +186 -0
  167. package/plugins/atlas-workflow-orchestrator/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  168. package/plugins/atlas-workflow-orchestrator/skills/atlas-findings-repair/SKILL.md +148 -0
  169. package/plugins/atlas-workflow-orchestrator/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  170. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/SKILL.md +129 -0
  171. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  172. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  173. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  174. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  175. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  176. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  177. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-handoff/SKILL.md +181 -0
  178. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  179. package/plugins/atlas-workflow-orchestrator/skills/atlas-prd-interview/SKILL.md +77 -0
  180. package/plugins/atlas-workflow-orchestrator/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  181. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/SKILL.md +121 -0
  182. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/agents/openai.yaml +4 -0
  183. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/references/review-contract.md +58 -0
  184. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  185. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  186. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  187. package/plugins/atlas-workflow-orchestrator/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  188. package/plugins/atlas-workflow-orchestrator/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  189. package/plugins/atlas-workflow-orchestrator/skills/atlas-task-validator/SKILL.md +158 -0
  190. package/plugins/atlas-workflow-orchestrator/skills/atlas-task-validator/agents/openai.yaml +7 -0
  191. package/plugins/atlas-workflow-orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  192. package/plugins/atlas-workflow-orchestrator/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  193. package/plugins/atlas-workflow-orchestrator/templates/BOUNDARY_PRD_PLAN.md +93 -0
  194. package/plugins/atlas-workflow-orchestrator/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  195. package/plugins/atlas-workflow-orchestrator/templates/PLAN_TEMPLATE.md +146 -0
  196. package/plugins/atlas-workflow-orchestrator/templates/PRD_TEMPLATE.md +149 -0
  197. package/plugins/atlas-workflow-orchestrator/templates/STATE_FILE_SCHEMA.md +32 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Paulo Borini
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,235 @@
1
+ # Atlas Workflow
2
+
3
+ Plugin **Atlas Workflow Orchestrator** v0.8.2 — pipeline determinístico (PRD → plano → execução → validação) com skills `atlas-*`, templates e MCP. Um pacote, cinco hosts: **Claude Code**, **Cursor**, **Codex App**, **OpenCode** e **Pi CLI**.
4
+
5
+ **Versão:** [`VERSION`](VERSION) (`0.8.2`) · **Repo:** https://github.com/pauloborini/atlas-workflow
6
+
7
+ ## Hosts
8
+
9
+ | Host | Instalação (recomendada) | Artefato release | Deps obrigatórias |
10
+ |------|--------------------------|------------------|-------------------|
11
+ | Claude Code | Marketplace GitHub | `atlas-workflow-claude.plugin` | — |
12
+ | Cursor | **Igual ao Claude Code** (ver nota abaixo) | `atlas-workflow-claude.plugin` | — |
13
+ | Codex App | Marketplace GitHub | `atlas-workflow-codex.plugin` | — |
14
+ | Opencode | Catálogo from-source `hosts/opencode/` | `atlas-workflow-opencode.plugin` | — |
15
+ | Pi CLI | Catálogo from-source `hosts/pi/` | `atlas-workflow-pi.plugin` | **`pi-mcp-adapter` + `pi-subagents`** |
16
+
17
+ **Cursor:** não há pacote nem marketplace próprios — o plugin instalado via `claude plugin` no escopo do usuário já vale para o Cursor (mesmo manifest `.claude-plugin/`). Limitação de packaging, não do pipeline.
18
+
19
+ **Conceito:** todos são *hosts* (onde as skills rodam). O pipeline é o mesmo; diferenças nativas (subagente, todo, MCP, dispatch do validador frio) vivem em [`host-adapters.md`](packages/orchestrator/references/host-adapters.md) e na tool `atlas_capabilities` (contrato `schema_version: 5` — `validator_dispatch` declara `dispatcher` + `join` por host; ver [Topologia do validador frio (G4)](#topologia-do-validador-frio-g4)). Host sem subagente+MCP é **rejeitado no preflight** (gate `PREREQ`, hard-fail); host sem join síncrono do validador é **rejeitado no preflight** (gate `JOIN`, hard-fail) — determinismo > alcance.
20
+
21
+ **Pré-requisito:** Node.js no host. Após instalar, confirme o MCP com `atlas_ping`.
22
+
23
+ ## Instalação rápida (1 comando, via npx)
24
+
25
+ > Referência rápida de todos os comandos (instalar/atualizar/remover por host): **[COMMANDS.md](COMMANDS.md)**.
26
+
27
+ Um instalador único cobre os quatro hosts de forma **global** (recomendado para valer em todos os projetos) — não precisa clonar o repo:
28
+
29
+ ```bash
30
+ npx github:pauloborini/atlas-workflow init claudecode # ou: cursor
31
+ npx github:pauloborini/atlas-workflow init codex
32
+ npx github:pauloborini/atlas-workflow init opencode --global
33
+ npx github:pauloborini/atlas-workflow init pi --global --yes # --yes auto-instala as 2 deps
34
+ ```
35
+
36
+ - **claudecode/cursor**: o instalador roda o `marketplace add` + `install` nativos da CLI por você. Já são globais por natureza.
37
+ - **codex**: o instalador roda `marketplace add` + `plugin add` e também copia os custom agents Atlas para `CODEX_HOME/agents` (`~/.codex/agents` se `CODEX_HOME` não estiver definido). Este é o caminho garantido para `spawn_agent(agent_type: "atlas-*")`.
38
+ - **opencode**: com `--global`, instala globalmente em `~/.config/opencode/` (o MCP é registrado com caminho absoluto, funcionando em todos os projetos).
39
+ - **pi**: com `--global`, instala globalmente em `~/.pi/agent/` (honra `PI_CODING_AGENT_DIR`), registra o MCP em `mcp.json` global e checa/instala as deps `pi-mcp-adapter` + `pi-subagents`.
40
+
41
+ No modo `--global` o runtime vai para um local estável (`~/.config/opencode/atlas` ou `~/.pi/agent/atlas`) e o MCP é registrado com **caminho absoluto** (sem depender do cwd). opencode: agente em `~/.config/opencode/agents/`, skills em `~/.config/opencode/skills/`. pi: agente em `~/.agents/` (se existir) ou `~/.pi/agent/agents/`, MCP em `~/.pi/agent/mcp.json`. A config existente é **mesclada** (preserva outros MCP servers e chaves); se houver `opencode.jsonc` com comentários, ele é preservado e o Atlas é registrado no fallback `opencode.json`.
42
+
43
+ ### Instalação por-projeto (opcional / escopo restrito)
44
+
45
+ Caso prefira limitar a instalação de `opencode` ou `pi` a apenas um projeto específico, execute omitindo a flag `--global`:
46
+
47
+ ```bash
48
+ npx github:pauloborini/atlas-workflow init opencode # no diretório do projeto (.opencode/ + opencode.json)
49
+ npx github:pauloborini/atlas-workflow init pi --yes # no diretório do projeto (.mcp.json + .pi/)
50
+ ```
51
+
52
+ Neste caso, os caminhos serão salvos de forma relativa, exigindo que você execute a CLI a partir do diretório raiz onde o Atlas foi inicializado.
53
+
54
+ Flags úteis: `--global`/`-g` (opencode/pi), `--dir <d>` (alvo por-projeto), `--yes` (auto-deps pi), `--dry-run` (mostra sem alterar), `-h`.
55
+
56
+ > **Plataformas:** macOS e Linux são suportados (mesmo caminho POSIX). Windows tem suporte por código (spawn das CLIs via shell; root global do opencode em `%APPDATA%\opencode`, ou `XDG_CONFIG_HOME` se definido; pi em `%USERPROFILE%\.pi\agent`) — smoke real do runtime MCP parcialmente validado no Windows; smoke do instalador automatizado (`build/smoke-install.mjs`) roda em Unix. No Windows, defina `XDG_CONFIG_HOME` para forçar o caminho do opencode de forma determinística.
57
+ ## Instalação manual (alternativa)
58
+
59
+ Se preferir não usar o `npx` ou necessitar de instalação offline, você pode utilizar os comandos manuais oficiais dos gerenciadores de pacotes nativos de cada host.
60
+
61
+ ### Claude Code e Cursor
62
+
63
+ ```bash
64
+ claude plugin marketplace add pauloborini/atlas-workflow
65
+ claude plugin install atlas-workflow-orchestrator@atlas-workflow
66
+ ```
67
+
68
+ ### Codex App
69
+
70
+ ```bash
71
+ npx github:pauloborini/atlas-workflow init codex
72
+ ```
73
+
74
+ Evite instalar Codex só com `codex plugin add`: o plugin expõe skills/MCP, mas custom agents podem não ser registrados como `agent_type` pelo host. O `init codex` instala ambos.
75
+
76
+ > Para instruções de instalação manual e de baixo nível em hosts como **opencode** e **pi cli**, consulte o **[COMMANDS.md](COMMANDS.md)**.
77
+
78
+ ### Desinstalar
79
+
80
+ O desinstalador via `npx` remove apenas os artefatos e agentes do Atlas, preservando as configurações e skills locais do usuário.
81
+
82
+ Se a instalação foi **global** (padrão recomendado):
83
+ ```bash
84
+ npx github:pauloborini/atlas-workflow uninstall claudecode # ou: cursor
85
+ npx github:pauloborini/atlas-workflow uninstall codex
86
+ npx github:pauloborini/atlas-workflow uninstall opencode --global
87
+ npx github:pauloborini/atlas-workflow uninstall pi --global
88
+ ```
89
+
90
+ Se a instalação foi local **por-projeto**:
91
+ ```bash
92
+ npx github:pauloborini/atlas-workflow uninstall opencode
93
+ npx github:pauloborini/atlas-workflow uninstall pi
94
+ ```
95
+
96
+ > Para realizar a desinstalação manual (nativa de cada CLI) ou para entender os diretórios afetados, consulte o **[COMMANDS.md](COMMANDS.md)**.
97
+
98
+ ## Artefato `.plugin` (opcional)
99
+
100
+ Alternativa à instalação via GitHub: baixar o `.plugin` do host (`claude`, `codex`, `opencode` ou `pi`) na [release](https://github.com/pauloborini/atlas-workflow/releases) (tags `v*`), validar com `shasum -a 256 -c SHA256SUMS` e instalar pelo fluxo do host. Cursor usa o artefato Claude.
101
+
102
+ ## Como usar
103
+
104
+ Comando (Claude Code / Cursor): `/workflow <mode> <input-type> [input] [flags]`
105
+
106
+ No Codex, opencode e pi, invoque a skill do orquestrador com o mesmo padrão de argumentos (ex.: `workflow full backlog-item S05`). O verbo de dispatch do subagente é resolvido por `atlas_capabilities` (host-agnóstico).
107
+
108
+ Se você quiser começar fora do fluxo principal, as skills listadas abaixo são os atalhos explícitos para backlog, PRD, plano, execução e revisão.
109
+
110
+ ### Modos
111
+
112
+ | Modo | Quando usar | O que faz |
113
+ |------|-------------|-----------|
114
+ | **`full`** | Sprint/backlog novo ou feature do zero | Gera PRD → valida/entrevista se preciso → **plano** (`.atlas/plans/`) → **executa** o plano → review opcional |
115
+ | **`direct`** | PRD já existe e está maduro | Valida PRD → entrevista só se houver gap → **executa direto** (sem fase de plan handoff) → review opcional |
116
+ | **`execute`** | Já tenho um `PLAN_*.md` pronto | Reverifica o plano (artefato + conformidade) → **executa o plano existente** → review opcional. **Não regera plano.** |
117
+ | `interview-only` | Só fechar decisões / brainstorm | Entrevista; não implementa |
118
+
119
+ **Dica:** `full` = “quero PRD + plano + código”. `direct` = “já tenho PRD aprovado, implementa”. `execute` = “já tenho o plano, só executa”.
120
+
121
+ > **Roteamento por tipo de input (v0.4.1+):** o tipo do arquivo que você passa **prevalece** sobre o modo digitado. Apontar um `PLAN_*.md` em `direct`/`full` (mesmo renomeado) auto-roteia para `execute` com um aviso de uma linha — nunca gera “plano de plano”. Pedir `execute` sobre um backlog/PRD roteia de volta para `full`/`direct`.
122
+
123
+ ### Input types
124
+
125
+ - `backlog-item` — ID de sprint ou item (ex.: `S05`)
126
+ - `idea` — indicação curta em texto
127
+ - `prd` — caminho para `PRD_*.md` existente (principal em **`direct`**)
128
+ - `plan` — caminho para `PLAN_*.md` existente (principal em **`execute`**)
129
+ - `brainstorm` — texto livre (só com `interview-only`)
130
+
131
+ ### Flags
132
+
133
+ - `--review` — roda `atlas-slice-review` no final
134
+ - `--interview` — força entrevista de PRD mesmo sem ambiguidades detectadas
135
+ - `--help` — sintaxe completa
136
+
137
+ ### Exemplos
138
+
139
+ Feature nova a partir do sprint (pipeline completo):
140
+
141
+ ```
142
+ /workflow full backlog-item "S05"
143
+ ```
144
+
145
+ PRD já escrito no repo; implementar sem gerar plano separado:
146
+
147
+ ```
148
+ /workflow direct prd "./docs/PRD_S05_login.md"
149
+ ```
150
+
151
+ Mesmo PRD, com review fria da slice no final:
152
+
153
+ ```
154
+ /workflow direct prd "./docs/PRD_S05_login.md" --review
155
+ ```
156
+
157
+ Ideia solta, ainda sem PRD formal (gera PRD e segue o fluxo completo):
158
+
159
+ ```
160
+ /workflow full idea "cache de sessão com TTL configurável"
161
+ ```
162
+
163
+ Plano já escrito; executar direto sem regerar (modo `execute`):
164
+
165
+ ```
166
+ /workflow execute plan "./.atlas/plans/PLAN_S05_login.md"
167
+ ```
168
+
169
+ Só alinhar decisões antes de planejar:
170
+
171
+ ```
172
+ /workflow interview-only brainstorm "dark mode só no web ou mobile também?"
173
+ ```
174
+
175
+ ### Dicas práticas
176
+
177
+ 1. Confirme o MCP antes de começar (`atlas_ping`); sem MCP o orquestrador para no pré-flight.
178
+ 2. Artefatos ficam no projeto consumidor: planos em `.atlas/plans/`, estado em `.atlas/state/<run_id>/`.
179
+ 3. Em `full`, não espere código antes do `PLAN_*.md` validado — é gate explícito.
180
+ 4. Ambiguidades no PRD disparam entrevista automaticamente; use `--interview` se quiser forçar.
181
+ 5. Toda execução passa pelo validador frio (`atlas-task-validator`) antes de declarar a slice pronta.
182
+
183
+ ### Skills da cadeia
184
+
185
+ Cadeia automática: `atlas-sprint-prd-generator` → `atlas-prd-interview` → `atlas-plan-handoff` → `atlas-plan-execute` (full) ou `atlas-direct-execute` (direct) → `atlas-task-validator` → `atlas-findings-repair` (só após `fail`, em qualquer host) → `atlas-slice-review` (opcional)
186
+
187
+ No modo `full`, as etapas documentais (`PRD`, entrevista, `PLAN_*.md`) ficam no agente principal/orquestrador. O primeiro sub-agent obrigatório nasce só na fase de execução (`atlas-plan-execute`).
188
+
189
+ ### Skills com uso direto
190
+
191
+ Além da cadeia automática, estas skills também podem ser chamadas diretamente para tarefas específicas. Algumas delas aparecem no fluxo principal em outro contexto, mas vale saber quando usar cada uma:
192
+
193
+ - `atlas-backlog-generator` — cria `BACKLOG_MESTRE_*.md` a partir de uma conversa, briefing, roadmap ou lista solta de requisitos. Use quando o objetivo for organizar demanda antes de virar PRD.
194
+ - `atlas-sprint-prd-generator` — transforma um sprint ID como `S01`/`S02` em PRD de sprint. Use quando o escopo já está amarrado ao roadmap e você quer o PRD da rodada.
195
+ - `atlas-prd-interview` — valida e amadurece um PRD antes de planejar. Use quando você quer fechar ambiguidades, dependências ou decisões de produto.
196
+ - `atlas-plan-handoff` — converte um PRD validado em plano executável. Use quando a intenção é preparar a execução, não ainda codar.
197
+ - `atlas-direct-execute` — executa diretamente quando o PRD já está maduro. Use quando você quer pular a fase de plan handoff.
198
+ - `atlas-task-validator` — faz a validação fria da slice executada. Use como veredito final de conformidade, nunca como ação manual de rotina.
199
+ - `atlas-findings-repair` — corrige findings P0/P1/P2 depois de um `fail` do validator sem reabrir a execução completa. Use só no caminho de retry.
200
+ - `atlas-slice-review` — faz a revisão fria opcional depois da execução. Use quando quiser uma segunda passada focada em riscos e regressões.
201
+
202
+ ### Topologia do validador frio (G4)
203
+
204
+ O validador frio (`atlas-task-validator`) **sempre** roda isolado e **sempre** como sub-agent irmão (sibling) despachado pelo orquestrador — em todos os hosts, sem exceção. O orquestrador lê `atlas_capabilities.validator_dispatch` em runtime; o `dispatcher` é sempre `orchestrator`. Fluxo único: orquestrador → executor escreve `state_path` e encerra → **validator irmão** lê `state_path` → veredito → orquestrador consome. Você não escolhe à mão.
205
+
206
+ **Por que sibling em todos os hosts:** o executor sub-agent **não** despacha o validador (evita validar o próprio trabalho e evita depender de o host permitir um sub-agent disparar um neto). Em vez disso, o executor termina ao escrever o `state_path`, e o orquestrador dispara o validator como **irmão isolado**. Hosts sem join síncrono confiável do validador são **rejeitados no preflight** (gate `JOIN`, hard-fail) — não há degradação. Os dois invariantes seguem firmes:
207
+
208
+ - **G9 (mutação só em sub-agent isolado):** todo código muda dentro do executor isolado — o fio principal nunca edita.
209
+ - **G4 (validação fria separada):** o validator é um sub-agent **frio e isolado**, com contexto próprio, irmão do executor e coordenado pelo orquestrador — nunca filho do executor.
210
+
211
+ **Loop de reparo (sibling):** se o validator retorna `fail` com P0/P1/P2, o orquestrador abre o lock de reparo (`repair_start`), dispara `atlas-findings-repair` com os findings estruturados, fecha com `repair_run_id` e só então roda o **2º e último** validator. `validator_run_id` e `repair_run_id` existem para descartar retornos stale/duplicados. Se o 2º validator ainda falhar, a slice termina em `blocked` — **3º validator é proibido**.
212
+
213
+ **Proof-of-work (R20, v0.8.0):** ao abrir o slot, `atlas_lock_validator(start)` emite um `challenge` (sha256 de um arquivo do boundary do `state_path`); o validator irmão computa o hash desse arquivo e devolve em `challenge_response`. No `complete`, o MCP recomputa o hash do disco e bloqueia (`challenge_failed`) em divergência/ausência, sem fechar o slot — re-despacho do mesmo validator, **bounded** por attempt (esgotado o teto, fecha terminal `challenge_exhausted`, fail-closed). É atestação **mecânica** de que o veredito leu o boundary; o hash esperado nunca é persistido em estado legível. Não é prova de isolamento não-forjável (o MCP fala stdio com um único caller) — fecha o atalho preguiçoso de afirmar `pass` sem ler código.
214
+
215
+ **Smoke G9 — critério PASS:** o smoke do Gate G9 exige validator irmão disparado pelo orquestrador (sibling) em todos os hosts. Exigir que o executor dispare o validador (validador aninhado) é leitura errada do contrato.
216
+
217
+ ## Estrutura do repo
218
+
219
+ | Caminho | Conteúdo |
220
+ |---------|----------|
221
+ | [`packages/`](packages/) | Skills, templates, MCP |
222
+ | [`agents/`](agents/) | Subagentes despachados (Claude): `atlas-task-validator`, `atlas-plan-execute`, `atlas-direct-execute`, `atlas-slice-review` |
223
+ | [`plugins/atlas-workflow-orchestrator/`](plugins/atlas-workflow-orchestrator/) | Catálogo Codex from-source (marketplace) |
224
+ | [`hosts/opencode/`](hosts/opencode/) · [`hosts/pi/`](hosts/pi/) | Catálogos from-source opencode/pi |
225
+ | [`plugin-manifests/`](plugin-manifests/) | Manifests/configs por host (claude, codex, opencode, pi) |
226
+ | [`build/`](build/) | Gera `.plugin` em `dist/`, sincroniza catálogos, testes/smoke/conformance |
227
+ | [`CHANGELOG.md`](CHANGELOG.md) · [`PATCH_PROCEDURE.md`](PATCH_PROCEDURE.md) | Release e manutenção |
228
+
229
+ Templates canônicos em [`packages/templates/`](packages/templates/) — fonte única no bundle; sem fallback silencioso se faltar arquivo.
230
+
231
+ ## Referências
232
+
233
+ - Adapters de host: [`host-adapters.md`](packages/orchestrator/references/host-adapters.md)
234
+ - MCP: [`packages/mcp-server/`](packages/mcp-server/) (`atlas_ping`, `atlas_run_state`, `atlas_capabilities`)
235
+ - Plugin v0.1.10 (rollback): [`archive/v0.1.10/`](archive/v0.1.10/)
package/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.8.2