up-cc 0.16.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +87 -577
  2. package/package.json +5 -3
  3. package/up/CHANGELOG.md +110 -0
  4. package/up/agents/up-arquiteto.md +95 -39
  5. package/up/agents/up-auditor.md +218 -0
  6. package/up/agents/up-executor.md +94 -31
  7. package/up/agents/up-mapeador-codigo.md +63 -10
  8. package/up/agents/up-pesquisador.md +278 -0
  9. package/up/agents/up-revisor.md +249 -0
  10. package/up/agents/up-sintetizador.md +156 -179
  11. package/up/agents/up-tester.md +280 -0
  12. package/up/agents/up-verificador.md +95 -11
  13. package/up/bin/install.js +190 -21
  14. package/up/bin/lib/core.cjs +17 -43
  15. package/up/bin/lib/github.cjs +495 -0
  16. package/up/bin/lib/multica.cjs +424 -0
  17. package/up/bin/up-tools.cjs +167 -46
  18. package/up/commands/auditar.md +66 -0
  19. package/up/commands/build.md +54 -43
  20. package/up/commands/depurar.md +1 -1
  21. package/up/commands/plan.md +52 -38
  22. package/up/commands/rapido.md +15 -9
  23. package/up/commands/testar.md +81 -122
  24. package/up/commands/up.md +106 -0
  25. package/up/hooks/up-session-start.js +107 -0
  26. package/up/references/engineering-principles.md +1 -1
  27. package/up/references/governance-rules.md +5 -5
  28. package/up/references/production-requirements.md +1 -1
  29. package/up/references/severity-levels.md +2 -2
  30. package/up/references/tdd-evidence-types.md +81 -0
  31. package/up/skills/up-brainstorm/SKILL.md +39 -0
  32. package/up/skills/up-tdd/SKILL.md +39 -0
  33. package/up/skills/up-verificar-antes-de-concluir/SKILL.md +49 -0
  34. package/up/skills/usando-up/SKILL.md +26 -0
  35. package/up/templates/audit-plan.md +3 -3
  36. package/up/templates/audit-report.md +2 -2
  37. package/up/templates/design-tokens.md +2 -2
  38. package/up/workflows/auditar.md +255 -0
  39. package/up/workflows/build.md +600 -386
  40. package/up/workflows/dcrv.md +183 -99
  41. package/up/workflows/governance.md +112 -220
  42. package/up/workflows/plan.md +169 -399
  43. package/up/workflows/rapido.md +7 -1
  44. package/up/workflows/up.md +447 -0
  45. package/up/agents/up-analista-codigo.md +0 -446
  46. package/up/agents/up-api-tester.md +0 -405
  47. package/up/agents/up-architecture-supervisor.md +0 -126
  48. package/up/agents/up-audit-supervisor.md +0 -83
  49. package/up/agents/up-auditor-modernidade.md +0 -378
  50. package/up/agents/up-auditor-performance.md +0 -426
  51. package/up/agents/up-auditor-ux.md +0 -396
  52. package/up/agents/up-backend-specialist.md +0 -175
  53. package/up/agents/up-blind-validator.md +0 -259
  54. package/up/agents/up-chief-architect.md +0 -184
  55. package/up/agents/up-chief-engineer.md +0 -202
  56. package/up/agents/up-chief-operations.md +0 -123
  57. package/up/agents/up-chief-product.md +0 -103
  58. package/up/agents/up-chief-quality.md +0 -211
  59. package/up/agents/up-clone-crawler.md +0 -234
  60. package/up/agents/up-clone-design-extractor.md +0 -227
  61. package/up/agents/up-clone-feature-mapper.md +0 -225
  62. package/up/agents/up-clone-prd-writer.md +0 -169
  63. package/up/agents/up-clone-verifier.md +0 -227
  64. package/up/agents/up-code-reviewer.md +0 -229
  65. package/up/agents/up-consolidador-ideias.md +0 -493
  66. package/up/agents/up-database-specialist.md +0 -169
  67. package/up/agents/up-delivery-auditor.md +0 -247
  68. package/up/agents/up-devops-agent.md +0 -203
  69. package/up/agents/up-execution-supervisor.md +0 -315
  70. package/up/agents/up-exhaustive-tester.md +0 -348
  71. package/up/agents/up-frontend-specialist.md +0 -152
  72. package/up/agents/up-operations-supervisor.md +0 -94
  73. package/up/agents/up-pesquisador-mercado.md +0 -350
  74. package/up/agents/up-pesquisador-projeto.md +0 -358
  75. package/up/agents/up-planning-auditor.md +0 -284
  76. package/up/agents/up-planning-supervisor.md +0 -260
  77. package/up/agents/up-product-analyst.md +0 -192
  78. package/up/agents/up-product-supervisor.md +0 -83
  79. package/up/agents/up-project-ceo.md +0 -352
  80. package/up/agents/up-qa-agent.md +0 -171
  81. package/up/agents/up-quality-supervisor.md +0 -178
  82. package/up/agents/up-requirements-validator.md +0 -230
  83. package/up/agents/up-security-reviewer.md +0 -137
  84. package/up/agents/up-sintetizador-melhorias.md +0 -407
  85. package/up/agents/up-system-designer.md +0 -332
  86. package/up/agents/up-technical-writer.md +0 -188
  87. package/up/agents/up-verification-supervisor.md +0 -111
  88. package/up/agents/up-visual-critic.md +0 -358
  89. package/up/commands/adicionar-fase.md +0 -47
  90. package/up/commands/adicionar-testes.md +0 -145
  91. package/up/commands/ajuda.md +0 -176
  92. package/up/commands/atualizar.md +0 -103
  93. package/up/commands/clone-builder.md +0 -67
  94. package/up/commands/configurar.md +0 -219
  95. package/up/commands/custos.md +0 -67
  96. package/up/commands/dashboard.md +0 -48
  97. package/up/commands/discutir-fase.md +0 -35
  98. package/up/commands/executar-fase.md +0 -40
  99. package/up/commands/ideias.md +0 -49
  100. package/up/commands/iniciar.md +0 -31
  101. package/up/commands/mapear-codigo.md +0 -63
  102. package/up/commands/melhorias.md +0 -45
  103. package/up/commands/mobile-first.md +0 -71
  104. package/up/commands/modo-builder.md +0 -186
  105. package/up/commands/novo-projeto.md +0 -40
  106. package/up/commands/onboard.md +0 -69
  107. package/up/commands/pausar.md +0 -33
  108. package/up/commands/planejar-fase.md +0 -45
  109. package/up/commands/progresso.md +0 -33
  110. package/up/commands/remover-fase.md +0 -34
  111. package/up/commands/resetar.md +0 -27
  112. package/up/commands/retomar.md +0 -35
  113. package/up/commands/saude.md +0 -103
  114. package/up/commands/ux-tester.md +0 -63
  115. package/up/commands/verificar-trabalho.md +0 -35
  116. package/up/workflows/adicionar-fase.md +0 -112
  117. package/up/workflows/builder-e2e.md +0 -501
  118. package/up/workflows/builder.md +0 -3419
  119. package/up/workflows/ceo-intake.md +0 -305
  120. package/up/workflows/ceo-updates.md +0 -183
  121. package/up/workflows/clone-builder.md +0 -320
  122. package/up/workflows/discutir-fase.md +0 -336
  123. package/up/workflows/executar-fase.md +0 -358
  124. package/up/workflows/executar-plano.md +0 -659
  125. package/up/workflows/ideias.md +0 -381
  126. package/up/workflows/iniciar.md +0 -235
  127. package/up/workflows/melhorias.md +0 -409
  128. package/up/workflows/mobile-first.md +0 -692
  129. package/up/workflows/novo-projeto.md +0 -778
  130. package/up/workflows/planejar-fase.md +0 -293
  131. package/up/workflows/progresso.md +0 -226
  132. package/up/workflows/retomar.md +0 -231
  133. package/up/workflows/ux-tester.md +0 -526
  134. package/up/workflows/verificar-trabalho.md +0 -308
@@ -1,45 +0,0 @@
1
- ---
2
- name: up:planejar-fase
3
- description: Planejar fase com research inline e self-check
4
- argument-hint: "[fase|\"descricao\"] [--pesquisar] [--sem-pesquisa] [--auto] [--gaps]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - Task
12
- - WebFetch
13
- - mcp__context7__*
14
- ---
15
- <objective>
16
- Create executable phase plans (PLAN.md files) for a roadmap phase with integrated research and self-check verification.
17
-
18
- **Default flow:** Research (if needed) -> Plan -> Verify -> Done
19
-
20
- **Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), generate plans, verify with self-check, iterate until pass or max iterations, present results.
21
- </objective>
22
-
23
- <execution_context>
24
- @~/.claude/up/workflows/planejar-fase.md
25
- @~/.claude/up/references/ui-brand.md
26
- </execution_context>
27
-
28
- <context>
29
- Phase number OR description: $ARGUMENTS (optional -- auto-detects next unplanned phase if omitted)
30
-
31
- If a description is given instead of a number and the phase doesn't exist in the roadmap, offers to create it automatically (absorbs /up:adicionar-fase functionality).
32
-
33
- **Flags:**
34
- - `--pesquisar` -- Force re-research even if RESEARCH.md exists
35
- - `--sem-pesquisa` -- Skip research, go straight to planning
36
- - `--auto` -- Auto-detect and plan next unplanned phase
37
- - `--gaps` -- Gap closure mode (reads VERIFICATION.md, skips research)
38
-
39
- Normalize phase input before any directory lookups.
40
- </context>
41
-
42
- <process>
43
- Execute the planejar-fase workflow from @~/.claude/up/workflows/planejar-fase.md end-to-end.
44
- Preserve all workflow gates (validation, research, planning, verification loop, routing).
45
- </process>
@@ -1,33 +0,0 @@
1
- ---
2
- name: up:progresso
3
- description: Status do projeto e roteamento para proxima acao
4
- argument-hint: ""
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- ---
11
- <objective>
12
- Display current project status and route to the next recommended action.
13
-
14
- **Default flow:** Read STATE.md -> Analyze progress -> Show status dashboard -> Recommend next action
15
-
16
- **Orchestrator role:** Read project state, calculate completion percentages, identify current phase and blockers, present formatted status, suggest next UP command to run.
17
- </objective>
18
-
19
- <execution_context>
20
- @~/.claude/up/workflows/progresso.md
21
- @~/.claude/up/references/ui-brand.md
22
- </execution_context>
23
-
24
- <context>
25
- $ARGUMENTS
26
-
27
- Reads project state to provide a clear picture of where things stand and what to do next.
28
- </context>
29
-
30
- <process>
31
- Execute the progresso workflow from @~/.claude/up/workflows/progresso.md end-to-end.
32
- Preserve all workflow gates (state reading, progress calculation, status display, action routing).
33
- </process>
@@ -1,34 +0,0 @@
1
- ---
2
- name: up:remover-fase
3
- description: Remover fase futura e renumerar subsequentes
4
- argument-hint: "<numero>"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - AskUserQuestion
12
- ---
13
- <objective>
14
- Remove a future phase from the roadmap and renumber all subsequent phases.
15
-
16
- **Flow:** Validate future phase -> Confirm with user -> Call `up-tools.cjs phase remove` -> Present result
17
- </objective>
18
-
19
- <execution_context>
20
- @~/.claude/up/workflows/remover-fase.md
21
- </execution_context>
22
-
23
- <context>
24
- Phase number: $ARGUMENTS
25
-
26
- Only future (not started) phases can be removed. Active or completed phases are protected.
27
- </context>
28
-
29
- <process>
30
- 1. Validate that the specified phase number exists and is a future phase (not active or completed).
31
- 2. Confirm removal with the user via AskUserQuestion.
32
- 3. Call `up-tools.cjs phase remove` with the phase number.
33
- 4. Present the updated roadmap showing renumbered phases.
34
- </process>
@@ -1,27 +0,0 @@
1
- ---
2
- name: up:resetar
3
- description: Resetar projeto UP (limpar .plano/ parcial ou totalmente)
4
- argument-hint: [--total | --parcial]
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - AskUserQuestion
10
- ---
11
-
12
- <objective>
13
- Resetar o diretorio `.plano/` para comecar novamente. Oferece reset total (apaga tudo) ou parcial (mantém PROJECT.md e config.json).
14
-
15
- **Default flow:** Diagnosticar -> Mostrar o que sera apagado -> Confirmar -> Executar -> Sugerir proximo passo
16
- </objective>
17
-
18
- <execution_context>
19
- @$HOME/.claude/up/workflows/resetar.md
20
- @$HOME/.claude/up/references/ui-brand.md
21
- </execution_context>
22
-
23
- <process>
24
- Execute o workflow resetar de @$HOME/.claude/up/workflows/resetar.md end-to-end.
25
- Preserve todos os gates (diagnostico, confirmacao, execucao).
26
- NUNCA apague sem confirmacao explicita do usuario.
27
- </process>
@@ -1,35 +0,0 @@
1
- ---
2
- name: up:retomar
3
- description: Restaurar contexto da sessao anterior
4
- argument-hint: ""
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - AskUserQuestion
12
- ---
13
- <objective>
14
- Restore context from the previous session and resume work where it left off.
15
-
16
- **Default flow:** Find .continue-aqui.md -> Load context -> Validate state -> Present summary -> Resume
17
-
18
- **Orchestrator role:** Locate and read .continue-aqui.md handoff file, validate that project state matches expectations, present summary of where things stand, and route to the appropriate next action.
19
- </objective>
20
-
21
- <execution_context>
22
- @~/.claude/up/workflows/retomar.md
23
- @~/.claude/up/references/ui-brand.md
24
- </execution_context>
25
-
26
- <context>
27
- $ARGUMENTS
28
-
29
- Reads .continue-aqui.md from the project root to restore previous session context.
30
- </context>
31
-
32
- <process>
33
- Execute the retomar workflow from @~/.claude/up/workflows/retomar.md end-to-end.
34
- Preserve all workflow gates (handoff detection, context loading, state validation, summary, routing).
35
- </process>
@@ -1,103 +0,0 @@
1
- ---
2
- name: up:saude
3
- description: Diagnosticar integridade do diretorio .plano/ e opcionalmente reparar
4
- argument-hint: [--reparar]
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - AskUserQuestion
10
- ---
11
-
12
- <objective>
13
- Validar integridade do diretorio `.plano/` e reportar problemas acionaveis. Verifica arquivos ausentes, configuracoes invalidas, estado inconsistente e planos orfaos.
14
- </objective>
15
-
16
- <process>
17
-
18
- ## 1. Verificar Flag
19
-
20
- Checar se `--reparar` esta presente nos argumentos.
21
-
22
- ## 2. Executar Checagens
23
-
24
- Executar todas as verificacoes e coletar erros, avisos e informacoes:
25
-
26
- **Erros (criticos):**
27
- - E001: Diretorio `.plano/` nao existe
28
- - E002: `PROJECT.md` nao encontrado
29
- - E003: `ROADMAP.md` nao encontrado
30
- - E004: `STATE.md` nao encontrado (reparavel — regenerar do ROADMAP)
31
- - E005: `config.json` com erro de parse (reparavel — recriar com defaults)
32
-
33
- **Avisos:**
34
- - W001: `STATE.md` referencia fase que nao existe no disco
35
- - W002: `config.json` nao encontrado (reparavel — criar com defaults)
36
- - W003: Diretorio de fase nao segue padrao NN-nome
37
- - W004: Fase no ROADMAP sem diretorio correspondente
38
- - W005: Diretorio de fase no disco mas nao no ROADMAP
39
-
40
- **Info:**
41
- - I001: Plano sem SUMMARY (pode estar em progresso)
42
-
43
- ```bash
44
- # Verificacoes basicas
45
- ls -la .plano/ 2>/dev/null
46
- ls .plano/PROJECT.md .plano/ROADMAP.md .plano/STATE.md .plano/config.json 2>/dev/null
47
- cat .plano/config.json 2>/dev/null | node -e "JSON.parse(require('fs').readFileSync(0,'utf-8'))" 2>&1
48
-
49
- # Fases no disco
50
- ls -d .plano/fases/*/ 2>/dev/null
51
-
52
- # Fases no ROADMAP
53
- grep -E '#{2,4}\s*Phase\s+\d' .plano/ROADMAP.md 2>/dev/null
54
-
55
- # Planos sem SUMMARY
56
- for plan in .plano/fases/*/*-PLAN.md; do
57
- summary="${plan/-PLAN.md/-SUMMARY.md}"
58
- [ ! -f "$summary" ] && echo "SEM_SUMMARY: $plan"
59
- done 2>/dev/null
60
- ```
61
-
62
- ## 3. Reparar (se --reparar)
63
-
64
- | Acao | Efeito |
65
- |------|--------|
66
- | Criar config.json | Cria com defaults |
67
- | Resetar config.json | Deleta e recria |
68
- | Regenerar STATE.md | Cria do template com dados do ROADMAP |
69
-
70
- **Nao reparavel (muito arriscado):**
71
- - PROJECT.md, ROADMAP.md (conteudo do usuario)
72
- - Renomear diretorios de fase
73
- - Limpar planos orfaos
74
-
75
- ## 4. Exibir Resultado
76
-
77
- ```
78
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
79
- UP > SAUDE DO PROJETO
80
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
81
-
82
- Status: SAUDAVEL | DEGRADADO | QUEBRADO
83
- Erros: N | Avisos: N | Info: N
84
- ```
85
-
86
- Se erros: listar com codigo e sugestao de correcao.
87
- Se avisos: listar com codigo e sugestao.
88
- Se info: listar.
89
-
90
- Se reparos foram feitos: listar acoes executadas.
91
-
92
- Se ha problemas reparaveis e `--reparar` NAO foi usado:
93
- ```
94
- ---
95
- N problemas podem ser reparados automaticamente.
96
- Executar: /up:saude --reparar
97
- ```
98
-
99
- ## 5. Verificar Reparos
100
-
101
- Se reparos foram feitos, re-executar checagens para confirmar resolucao.
102
-
103
- </process>
@@ -1,63 +0,0 @@
1
- ---
2
- name: up:ux-tester
3
- description: Navegar o sistema como usuario real, avaliar experiencia em 6 dimensoes e implementar melhorias automaticamente
4
- argument-hint: "[url ou porta] [--no-fix]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Glob
10
- - Grep
11
- - Bash
12
- - Task
13
- - AskUserQuestion
14
- - mcp__plugin_playwright_playwright__*
15
- ---
16
- <objective>
17
- UX Tester: abrir o sistema no browser, navegar como usuario real, avaliar a experiencia em 6 dimensoes (clareza, eficiencia, feedback, consistencia, acessibilidade, performance percebida) e implementar melhorias automaticamente.
18
-
19
- NAO e teste funcional. E um auditor de experiencia que USA o sistema e pensa como pessoa real:
20
- - "Esse botao ta no lugar errado"
21
- - "Pra fazer X preciso de 5 cliques, deveria ser 2"
22
- - "Cadê o feedback quando eu submeto?"
23
- - "Essa tela ta confusa, nao sei o que fazer"
24
- - "O loading ta lento aqui"
25
-
26
- **Standalone:** Funciona em qualquer projeto, qualquer momento. NAO requer /up:novo-projeto ou .plano/.
27
- **Builder:** Tambem integrado no modo builder (Estagio 4 — Polish).
28
-
29
- **Output:** `.plano/ux-review/UX-REPORT.md` com issues priorizadas + melhorias implementadas com commits atomicos + screenshots antes/depois.
30
- </objective>
31
-
32
- <execution_context>
33
- @~/.claude/up/workflows/ux-tester.md
34
- @~/.claude/up/references/ui-brand.md
35
- </execution_context>
36
-
37
- <context>
38
- $ARGUMENTS
39
-
40
- **Argumentos opcionais:**
41
- - URL ou porta: `http://localhost:3000` ou `3000` (default: detecta automaticamente)
42
- - `--no-fix`: Apenas gerar relatorio, NAO implementar melhorias
43
-
44
- **Se sem argumentos:** Detecta stack, sobe dev server automaticamente, usa porta padrao.
45
-
46
- **Se .plano/ existe:** Usa PROJECT.md e REQUIREMENTS.md para entender fluxos.
47
- **Se .plano/ NAO existe:** Descobre fluxos explorando codigo e navegando.
48
-
49
- **Cria .plano/ux-review/ automaticamente** (standalone, sem pre-requisitos).
50
- </context>
51
-
52
- <process>
53
- Execute the ux-tester workflow from @~/.claude/up/workflows/ux-tester.md end-to-end.
54
-
55
- Preserve all workflow gates:
56
- 1. Setup (detectar stack, subir server, descobrir fluxos, definir personas)
57
- 2. Navegacao como usuario (avaliar 6 dimensoes com screenshots)
58
- 3. Gerar UX-REPORT.md com issues priorizadas
59
- 4. Implementar melhorias (a menos que --no-fix)
60
- 5. Cleanup (matar server, fechar browser)
61
-
62
- **Flag --no-fix:** Se presente, pular Passo 4 (implementacao). Apenas gerar relatorio.
63
- </process>
@@ -1,35 +0,0 @@
1
- ---
2
- name: up:verificar-trabalho
3
- description: Validar features atraves de UAT conversacional
4
- argument-hint: "[fase]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - AskUserQuestion
12
- ---
13
- <objective>
14
- Validate implemented features through conversational UAT (User Acceptance Testing).
15
-
16
- **Default flow:** Load phase plans -> Test each feature -> Collect feedback -> Generate VERIFICATION.md -> Route to fix or approve
17
-
18
- **Orchestrator role:** Read completed plans, run tests and checks, engage user in conversational validation, document results in VERIFICATION.md, create gap closure plans if needed.
19
- </objective>
20
-
21
- <execution_context>
22
- @~/.claude/up/workflows/verificar-trabalho.md
23
- @~/.claude/up/references/ui-brand.md
24
- </execution_context>
25
-
26
- <context>
27
- Phase: $ARGUMENTS (optional -- defaults to current active phase)
28
-
29
- Verification validates that implemented features match the planned requirements.
30
- </context>
31
-
32
- <process>
33
- Execute the verificar-trabalho workflow from @~/.claude/up/workflows/verificar-trabalho.md end-to-end.
34
- Preserve all workflow gates (plan loading, testing, user validation, VERIFICATION.md creation, routing).
35
- </process>
@@ -1,112 +0,0 @@
1
- <purpose>
2
- Adicionar nova fase inteira ao final do milestone atual no roadmap. Calcula automaticamente proximo numero de fase, cria diretorio de fase e atualiza estrutura do roadmap.
3
- </purpose>
4
-
5
- <required_reading>
6
- Ler todos os arquivos referenciados pelo execution_context do prompt invocador antes de comecar.
7
- </required_reading>
8
-
9
- <process>
10
-
11
- <step name="parse_arguments">
12
- Parsear argumentos do comando:
13
- - Todos os argumentos viram a descricao da fase
14
- - Exemplo: `/up:adicionar-fase Adicionar autenticacao` → descricao = "Adicionar autenticacao"
15
- - Exemplo: `/up:adicionar-fase Corrigir problemas criticos de performance` → descricao = "Corrigir problemas criticos de performance"
16
-
17
- Se nenhum argumento fornecido:
18
-
19
- ```
20
- ERRO: Descricao da fase obrigatoria
21
- Uso: /up:adicionar-fase <descricao>
22
- Exemplo: /up:adicionar-fase Adicionar sistema de autenticacao
23
- ```
24
-
25
- Sair.
26
- </step>
27
-
28
- <step name="init_context">
29
- Carregar contexto de operacao de fase:
30
-
31
- ```bash
32
- INIT=$(node "$HOME/.claude/up/bin/up-tools.cjs" init operacao-fase "0")
33
- if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
34
- ```
35
-
36
- Verificar `roadmap_exists` do JSON de init. Se false:
37
- ```
38
- ERRO: Nenhum roadmap encontrado (.plano/ROADMAP.md)
39
- Execute /up:novo-projeto para inicializar.
40
- ```
41
- Sair.
42
- </step>
43
-
44
- <step name="add_phase">
45
- **Delegar adicao da fase ao up-tools:**
46
-
47
- ```bash
48
- RESULT=$(node "$HOME/.claude/up/bin/up-tools.cjs" phase add "${descricao}")
49
- ```
50
-
51
- O CLI faz:
52
- - Encontrar o maior numero de fase inteiro existente
53
- - Calcular proximo numero (max + 1)
54
- - Gerar slug da descricao
55
- - Criar diretorio da fase (`.plano/fases/{NN}-{slug}/`)
56
- - Inserir entrada da fase no ROADMAP.md com secoes Objetivo, Depende de e Planos
57
-
58
- Extrair do resultado: `phase_number`, `padded`, `name`, `slug`, `directory`.
59
- </step>
60
-
61
- <step name="update_project_state">
62
- Atualizar STATE.md para refletir nova fase:
63
-
64
- 1. Ler `.plano/STATE.md`
65
- 2. Em "## Contexto Acumulado" → "### Evolucao do Roadmap" adicionar:
66
- ```
67
- - Fase {N} adicionada: {descricao}
68
- ```
69
-
70
- Se secao "Evolucao do Roadmap" nao existe, criar.
71
- </step>
72
-
73
- <step name="completion">
74
- Apresentar resumo:
75
-
76
- ```
77
- Fase {N} adicionada ao milestone atual:
78
- - Descricao: {descricao}
79
- - Diretorio: .plano/fases/{fase-num}-{slug}/
80
- - Status: Ainda nao planejada
81
-
82
- Roadmap atualizado: .plano/ROADMAP.md
83
-
84
- ---
85
-
86
- ## Proximo
87
-
88
- **Fase {N}: {descricao}**
89
-
90
- `/up:planejar-fase {N}`
91
-
92
- <sub>`/clear` primeiro → janela de contexto limpa</sub>
93
-
94
- ---
95
-
96
- **Tambem disponivel:**
97
- - `/up:adicionar-fase <descricao>` — adicionar outra fase
98
- - Revisar roadmap
99
-
100
- ---
101
- ```
102
- </step>
103
-
104
- </process>
105
-
106
- <success_criteria>
107
- - [ ] `up-tools phase add` executado com sucesso
108
- - [ ] Diretorio da fase criado
109
- - [ ] Roadmap atualizado com nova entrada
110
- - [ ] STATE.md atualizado com nota de evolucao do roadmap
111
- - [ ] Usuario informado dos proximos passos
112
- </success_criteria>