@luanpdd/kit-mcp 0.2.0 → 0.3.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.
- package/kit/COMANDOS.md +123 -0
- package/kit/agents/advisor-researcher.md +121 -0
- package/kit/agents/assumptions-analyzer.md +122 -0
- package/kit/agents/codebase-mapper.md +787 -0
- package/kit/agents/debugger.md +796 -0
- package/kit/agents/executor.md +516 -0
- package/kit/agents/integration-checker.md +217 -0
- package/kit/agents/nyquist-auditor.md +195 -0
- package/kit/agents/phase-researcher.md +715 -0
- package/kit/agents/plan-checker.md +289 -0
- package/kit/agents/planner.md +1373 -0
- package/kit/agents/project-researcher.md +671 -0
- package/kit/agents/research-synthesizer.md +259 -0
- package/kit/agents/roadmapper.md +696 -0
- package/kit/agents/ui-auditor.md +458 -0
- package/kit/agents/ui-checker.md +319 -0
- package/kit/agents/ui-researcher.md +374 -0
- package/kit/agents/user-profiler.md +183 -0
- package/kit/agents/verifier.md +719 -0
- package/kit/commands/adicionar-backlog.md +76 -0
- package/kit/commands/adicionar-fase.md +43 -0
- package/kit/commands/adicionar-tarefa.md +47 -0
- package/kit/commands/adicionar-testes.md +41 -0
- package/kit/commands/ajuda.md +22 -0
- package/kit/commands/atualizar.md +37 -0
- package/kit/commands/auditar-marco.md +36 -0
- package/kit/commands/auditar-uat.md +24 -0
- package/kit/commands/autonomo.md +41 -0
- package/kit/commands/branch-pr.md +25 -0
- package/kit/commands/concluir-marco.md +136 -0
- package/kit/commands/configuracoes.md +36 -0
- package/kit/commands/definir-perfil.md +12 -0
- package/kit/commands/depurar.md +173 -0
- package/kit/commands/discutir-fase.md +64 -0
- package/kit/commands/entrar-discord.md +18 -0
- package/kit/commands/estatisticas.md +18 -0
- package/kit/commands/executar-fase.md +59 -0
- package/kit/commands/expresso.md +47 -0
- package/kit/commands/fase-ui.md +34 -0
- package/kit/commands/fazer.md +30 -0
- package/kit/commands/fio.md +126 -0
- package/kit/commands/fluxos-trabalho.md +64 -0
- package/kit/commands/forense.md +56 -0
- package/kit/commands/gerenciador.md +39 -0
- package/kit/commands/inserir-fase.md +32 -0
- package/kit/commands/limpeza.md +18 -0
- package/kit/commands/listar-hipoteses-fase.md +46 -0
- package/kit/commands/listar-workspaces.md +19 -0
- package/kit/commands/mapear-codebase.md +71 -0
- package/kit/commands/nota.md +34 -0
- package/kit/commands/novo-marco.md +44 -0
- package/kit/commands/novo-projeto.md +42 -0
- package/kit/commands/novo-workspace.md +44 -0
- package/kit/commands/pausar-trabalho.md +38 -0
- package/kit/commands/perfil-usuario.md +46 -0
- package/kit/commands/pesquisar-fase.md +195 -0
- package/kit/commands/planejar-fase.md +47 -0
- package/kit/commands/planejar-lacunas.md +34 -0
- package/kit/commands/plantar-ideia.md +26 -0
- package/kit/commands/progresso.md +24 -0
- package/kit/commands/proximo.md +24 -0
- package/kit/commands/publicar.md +370 -0
- package/kit/commands/rapido.md +30 -0
- package/kit/commands/reaplicar-patches.md +124 -0
- package/kit/commands/relatorio-sessao.md +19 -0
- package/kit/commands/remover-fase.md +31 -0
- package/kit/commands/remover-workspace.md +26 -0
- package/kit/commands/resumo-marco.md +51 -0
- package/kit/commands/retomar-trabalho.md +40 -0
- package/kit/commands/revisar-backlog.md +60 -0
- package/kit/commands/revisar-ui.md +32 -0
- package/kit/commands/revisar.md +37 -0
- package/kit/commands/saude.md +22 -0
- package/kit/commands/setup-notion.md +93 -0
- package/kit/commands/sync-main.md +68 -0
- package/kit/commands/validar-fase.md +35 -0
- package/kit/commands/verificar-tarefas.md +45 -0
- package/kit/commands/verificar-trabalho.md +38 -0
- package/kit/file-manifest.json +219 -0
- package/kit/framework/VERSION +1 -0
- package/kit/framework/bin/lib/commands.cjs +959 -0
- package/kit/framework/bin/lib/config.cjs +442 -0
- package/kit/framework/bin/lib/core.cjs +1230 -0
- package/kit/framework/bin/lib/frontmatter.cjs +336 -0
- package/kit/framework/bin/lib/init.cjs +1442 -0
- package/kit/framework/bin/lib/milestone.cjs +252 -0
- package/kit/framework/bin/lib/model-profiles.cjs +68 -0
- package/kit/framework/bin/lib/phase.cjs +888 -0
- package/kit/framework/bin/lib/profile-output.cjs +952 -0
- package/kit/framework/bin/lib/profile-pipeline.cjs +539 -0
- package/kit/framework/bin/lib/roadmap.cjs +329 -0
- package/kit/framework/bin/lib/security.cjs +382 -0
- package/kit/framework/bin/lib/state.cjs +1031 -0
- package/kit/framework/bin/lib/template.cjs +222 -0
- package/kit/framework/bin/lib/uat.cjs +282 -0
- package/kit/framework/bin/lib/verify.cjs +888 -0
- package/kit/framework/bin/lib/workstream.cjs +491 -0
- package/kit/framework/bin/tools.cjs +918 -0
- package/kit/framework/commands/workstreams.md +63 -0
- package/kit/framework/references/checkpoints.md +778 -0
- package/kit/framework/references/continuation-format.md +249 -0
- package/kit/framework/references/decimal-phase-calculation.md +64 -0
- package/kit/framework/references/git-integration.md +295 -0
- package/kit/framework/references/git-planning-commit.md +38 -0
- package/kit/framework/references/model-profile-resolution.md +36 -0
- package/kit/framework/references/model-profiles.md +139 -0
- package/kit/framework/references/phase-argument-parsing.md +61 -0
- package/kit/framework/references/planning-config.md +202 -0
- package/kit/framework/references/questioning.md +162 -0
- package/kit/framework/references/tdd.md +263 -0
- package/kit/framework/references/ui-brand.md +160 -0
- package/kit/framework/references/user-profiling.md +657 -0
- package/kit/framework/references/verification-patterns.md +612 -0
- package/kit/framework/references/workstream-flag.md +58 -0
- package/kit/framework/templates/DEBUG.md +164 -0
- package/kit/framework/templates/UAT.md +265 -0
- package/kit/framework/templates/UI-SPEC.md +100 -0
- package/kit/framework/templates/VALIDATION.md +76 -0
- package/kit/framework/templates/claude-md.md +122 -0
- package/kit/framework/templates/codebase/architecture.md +185 -0
- package/kit/framework/templates/codebase/concerns.md +205 -0
- package/kit/framework/templates/codebase/conventions.md +204 -0
- package/kit/framework/templates/codebase/integrations.md +192 -0
- package/kit/framework/templates/codebase/stack.md +158 -0
- package/kit/framework/templates/codebase/structure.md +199 -0
- package/kit/framework/templates/codebase/testing.md +301 -0
- package/kit/framework/templates/config.json +44 -0
- package/kit/framework/templates/context.md +352 -0
- package/kit/framework/templates/continue-here.md +78 -0
- package/kit/framework/templates/copilot-instructions.md +7 -0
- package/kit/framework/templates/debug-subagent-prompt.md +91 -0
- package/kit/framework/templates/dev-preferences.md +20 -0
- package/kit/framework/templates/discovery.md +146 -0
- package/kit/framework/templates/discussion-log.md +63 -0
- package/kit/framework/templates/milestone-archive.md +123 -0
- package/kit/framework/templates/milestone.md +115 -0
- package/kit/framework/templates/phase-prompt.md +610 -0
- package/kit/framework/templates/planner-subagent-prompt.md +117 -0
- package/kit/framework/templates/project.md +186 -0
- package/kit/framework/templates/requirements.md +231 -0
- package/kit/framework/templates/research-project/ARCHITECTURE.md +204 -0
- package/kit/framework/templates/research-project/FEATURES.md +147 -0
- package/kit/framework/templates/research-project/PITFALLS.md +200 -0
- package/kit/framework/templates/research-project/STACK.md +120 -0
- package/kit/framework/templates/research-project/SUMMARY.md +170 -0
- package/kit/framework/templates/research.md +419 -0
- package/kit/framework/templates/retrospective.md +54 -0
- package/kit/framework/templates/roadmap.md +202 -0
- package/kit/framework/templates/state.md +176 -0
- package/kit/framework/templates/summary-complex.md +59 -0
- package/kit/framework/templates/summary-minimal.md +41 -0
- package/kit/framework/templates/summary-standard.md +48 -0
- package/kit/framework/templates/summary.md +209 -0
- package/kit/framework/templates/user-profile.md +146 -0
- package/kit/framework/templates/user-setup.md +256 -0
- package/kit/framework/templates/verification-report.md +258 -0
- package/kit/framework/workflows/add-phase.md +112 -0
- package/kit/framework/workflows/add-tests.md +351 -0
- package/kit/framework/workflows/add-todo.md +158 -0
- package/kit/framework/workflows/audit-milestone.md +340 -0
- package/kit/framework/workflows/audit-uat.md +109 -0
- package/kit/framework/workflows/autonomous.md +891 -0
- package/kit/framework/workflows/check-todos.md +177 -0
- package/kit/framework/workflows/cleanup.md +152 -0
- package/kit/framework/workflows/complete-milestone.md +696 -0
- package/kit/framework/workflows/diagnose-issues.md +231 -0
- package/kit/framework/workflows/discovery-phase.md +289 -0
- package/kit/framework/workflows/discuss-phase-assumptions.md +653 -0
- package/kit/framework/workflows/discuss-phase.md +1049 -0
- package/kit/framework/workflows/do.md +104 -0
- package/kit/framework/workflows/execute-phase.md +838 -0
- package/kit/framework/workflows/execute-plan.md +510 -0
- package/kit/framework/workflows/fast.md +102 -0
- package/kit/framework/workflows/forensics.md +265 -0
- package/kit/framework/workflows/health.md +181 -0
- package/kit/framework/workflows/help.md +606 -0
- package/kit/framework/workflows/insert-phase.md +130 -0
- package/kit/framework/workflows/list-phase-assumptions.md +178 -0
- package/kit/framework/workflows/list-workspaces.md +56 -0
- package/kit/framework/workflows/manager.md +362 -0
- package/kit/framework/workflows/map-codebase.md +377 -0
- package/kit/framework/workflows/milestone-summary.md +223 -0
- package/kit/framework/workflows/new-milestone.md +486 -0
- package/kit/framework/workflows/new-project.md +1250 -0
- package/kit/framework/workflows/new-workspace.md +237 -0
- package/kit/framework/workflows/next.md +97 -0
- package/kit/framework/workflows/node-repair.md +92 -0
- package/kit/framework/workflows/note.md +156 -0
- package/kit/framework/workflows/pause-work.md +176 -0
- package/kit/framework/workflows/plan-milestone-gaps.md +273 -0
- package/kit/framework/workflows/plan-phase.md +859 -0
- package/kit/framework/workflows/plant-seed.md +169 -0
- package/kit/framework/workflows/pr-branch.md +129 -0
- package/kit/framework/workflows/profile-user.md +450 -0
- package/kit/framework/workflows/progress.md +507 -0
- package/kit/framework/workflows/quick.md +757 -0
- package/kit/framework/workflows/remove-phase.md +155 -0
- package/kit/framework/workflows/remove-workspace.md +90 -0
- package/kit/framework/workflows/research-phase.md +82 -0
- package/kit/framework/workflows/resume-project.md +326 -0
- package/kit/framework/workflows/review.md +228 -0
- package/kit/framework/workflows/session-report.md +146 -0
- package/kit/framework/workflows/settings.md +283 -0
- package/kit/framework/workflows/ship.md +228 -0
- package/kit/framework/workflows/stats.md +60 -0
- package/kit/framework/workflows/transition.md +671 -0
- package/kit/framework/workflows/ui-phase.md +302 -0
- package/kit/framework/workflows/ui-review.md +165 -0
- package/kit/framework/workflows/update.md +323 -0
- package/kit/framework/workflows/validate-phase.md +174 -0
- package/kit/framework/workflows/verify-phase.md +252 -0
- package/kit/framework/workflows/verify-work.md +637 -0
- package/kit/hooks/check-update.js +114 -0
- package/kit/hooks/context-monitor.js +156 -0
- package/kit/hooks/prompt-guard.js +96 -0
- package/kit/hooks/statusline.js +119 -0
- package/kit/hooks/workflow-guard.js +94 -0
- package/kit/settings.json +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: revisar-backlog
|
|
3
|
+
description: Revisa e promove itens do backlog para o milestone ativo
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<objective>
|
|
11
|
+
Revisar todos os itens de backlog 999.x e opcionalmente promovê-los para a sequência do milestone ativo ou remover entradas obsoletas.
|
|
12
|
+
</objective>
|
|
13
|
+
|
|
14
|
+
<process>
|
|
15
|
+
|
|
16
|
+
1. **Listar itens do backlog:**
|
|
17
|
+
```bash
|
|
18
|
+
ls -d .planning/phases/999* 2>/dev/null || echo "Nenhum item de backlog encontrado"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
2. **Ler ROADMAP.md** e extrair todas as entradas de fase 999.x:
|
|
22
|
+
```bash
|
|
23
|
+
cat .planning/ROADMAP.md
|
|
24
|
+
```
|
|
25
|
+
Mostrar cada item do backlog com sua descrição, qualquer contexto acumulado (CONTEXT.md, RESEARCH.md) e data de criação.
|
|
26
|
+
|
|
27
|
+
3. **Apresentar a lista ao usuário** via AskUserQuestion:
|
|
28
|
+
- Para cada item do backlog, mostrar: número da fase, descrição, artefatos acumulados
|
|
29
|
+
- Opções por item: **Promover** (mover para ativo), **Manter** (deixar no backlog), **Remover** (deletar)
|
|
30
|
+
|
|
31
|
+
4. **Para itens a PROMOVER:**
|
|
32
|
+
- Encontrar o próximo número de fase sequencial no milestone ativo
|
|
33
|
+
- Renomear o diretório de `999.x-slug` para `{novo_num}-slug`:
|
|
34
|
+
```bash
|
|
35
|
+
NEW_NUM=$(node "./.claude/framework/bin/tools.cjs" phase add "${DESCRIPTION}" --raw)
|
|
36
|
+
```
|
|
37
|
+
- Mover artefatos acumulados para o novo diretório de fase
|
|
38
|
+
- Atualizar ROADMAP.md: mover entrada da seção `## Backlog` para a lista de fases ativas
|
|
39
|
+
- Remover marcador `(BACKLOG)`
|
|
40
|
+
- Adicionar campo `**Depends on:**` apropriado
|
|
41
|
+
|
|
42
|
+
5. **Para itens a REMOVER:**
|
|
43
|
+
- Deletar o diretório da fase
|
|
44
|
+
- Remover a entrada da seção `## Backlog` do ROADMAP.md
|
|
45
|
+
|
|
46
|
+
6. **Commitar alterações:**
|
|
47
|
+
```bash
|
|
48
|
+
node "./.claude/framework/bin/tools.cjs" commit "docs: revisar backlog — promovidos N, removidos M" --files .planning/ROADMAP.md
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
7. **Relatório resumo:**
|
|
52
|
+
```
|
|
53
|
+
## Revisão de Backlog Concluída
|
|
54
|
+
|
|
55
|
+
Promovidos: {lista de itens promovidos com novos números de fase}
|
|
56
|
+
Mantidos: {lista de itens que permanecem no backlog}
|
|
57
|
+
Removidos: {lista de itens deletados}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
</process>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: revisar-ui
|
|
3
|
+
description: Auditoria visual retroativa de 6 pilares do código frontend implementado
|
|
4
|
+
argument-hint: "[fase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Task
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
<objective>
|
|
15
|
+
Realiza uma auditoria visual retroativa de 6 pilares. Produz UI-REVIEW.md com
|
|
16
|
+
avaliação graduada (1-4 por pilar). Funciona em qualquer projeto.
|
|
17
|
+
Saída: {phase_num}-UI-REVIEW.md
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@./.claude/framework/workflows/ui-review.md
|
|
22
|
+
@./.claude/framework/references/ui-brand.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
Fase: $ARGUMENTS — opcional, padrão é a última fase concluída.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute @./.claude/framework/workflows/ui-review.md do início ao fim.
|
|
31
|
+
Preserve todos os gates do workflow.
|
|
32
|
+
</process>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: revisar
|
|
3
|
+
description: Solicita revisão entre IAs de planos de fase a partir de CLIs externas
|
|
4
|
+
argument-hint: "--phase N [--gemini] [--claude] [--codex] [--all]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
Invoca CLIs externas de IA (Gemini, Claude, Codex) para revisar planos de fase de forma independente.
|
|
15
|
+
Produz um REVIEWS.md estruturado com feedback por revisor que pode ser incorporado de volta ao
|
|
16
|
+
planejamento via /planejar-fase --reviews.
|
|
17
|
+
|
|
18
|
+
**Fluxo:** Detectar CLIs → Construir prompt de revisão → Invocar cada CLI → Coletar respostas → Escrever REVIEWS.md
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@./.claude/framework/workflows/review.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
Número da fase: extraído de $ARGUMENTS (obrigatório)
|
|
27
|
+
|
|
28
|
+
**Flags:**
|
|
29
|
+
- `--gemini` — Incluir revisão do Gemini CLI
|
|
30
|
+
- `--claude` — Incluir revisão do Claude CLI (usa sessão separada)
|
|
31
|
+
- `--codex` — Incluir revisão do Codex CLI
|
|
32
|
+
- `--all` — Incluir todos os CLIs disponíveis
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<process>
|
|
36
|
+
Execute o workflow review de @./.claude/framework/workflows/review.md do início ao fim.
|
|
37
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: saude
|
|
3
|
+
description: Diagnostica a integridade do diretório de planejamento e opcionalmente repara problemas
|
|
4
|
+
argument-hint: [--repair]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Validar a integridade do diretório `.planning/` e reportar problemas acionáveis. Verifica arquivos ausentes, configurações inválidas, estado inconsistente e planos órfãos.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@./.claude/framework/workflows/health.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Execute o workflow health de @./.claude/framework/workflows/health.md do início ao fim.
|
|
21
|
+
Analisar a flag --repair dos argumentos e passar para o workflow.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# /setup-notion — Inicializar Documentação Notion para um Projeto
|
|
2
|
+
|
|
3
|
+
Cria a estrutura de páginas Notion para um novo projeto sob a página raiz do seu workspace e gera o `.claude/notion-config.json` local.
|
|
4
|
+
|
|
5
|
+
## Quando usar
|
|
6
|
+
|
|
7
|
+
Ao iniciar um novo projeto framework que ainda não tem página no Notion.
|
|
8
|
+
Execute uma vez por projeto — depois use `/publicar` normalmente.
|
|
9
|
+
|
|
10
|
+
## Processo
|
|
11
|
+
|
|
12
|
+
### Passo 1 — Ler contexto do projeto
|
|
13
|
+
|
|
14
|
+
Leia `.planning/PROJECT.md` para obter:
|
|
15
|
+
- Nome do projeto
|
|
16
|
+
- Stack
|
|
17
|
+
- Descrição em 1 frase
|
|
18
|
+
|
|
19
|
+
### Passo 2 — Criar páginas no Notion
|
|
20
|
+
|
|
21
|
+
Use o Notion MCP (`notion-create-pages`) com `parent.page_id = "{NOTION_PARENT_PAGE_ID}"`, onde `NOTION_PARENT_PAGE_ID` é o ID da página raiz do seu workspace de documentação (configure via env var `KIT_NOTION_PARENT_PAGE_ID` ou substitua diretamente).
|
|
22
|
+
|
|
23
|
+
Crie a página raiz do projeto com ícone 📋 e este conteúdo:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
[Callout azul] {NOME_PROJETO} — {DESCRICAO_1_FRASE}
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Stack
|
|
31
|
+
[Tabela com camadas e tecnologias do PROJECT.md]
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Estrutura da Documentação
|
|
36
|
+
- changelog/ — Uma entrada por milestone
|
|
37
|
+
- features/ — O que cada feature faz
|
|
38
|
+
- adr/ — Decisões arquiteturais
|
|
39
|
+
- runbooks/ — Procedimentos operacionais
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Versões Lançadas
|
|
44
|
+
[Tabela vazia: Versão | Nome | Data | Status]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Depois crie as 4 subpáginas sob a página raiz criada:
|
|
48
|
+
- 📅 `changelog/` — com tabela de índice vazia
|
|
49
|
+
- 📄 `features/` — com tabela de índice vazia
|
|
50
|
+
- 🏛️ `adr/` — com tabela de índice vazia
|
|
51
|
+
- 📖 `runbooks/` — com tabela de índice vazia
|
|
52
|
+
|
|
53
|
+
### Passo 3 — Gerar notion-config.json
|
|
54
|
+
|
|
55
|
+
Com os IDs retornados pelo Notion MCP, crie `.claude/notion-config.json`:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"project": "{NOME_PROJETO}",
|
|
60
|
+
"notion": {
|
|
61
|
+
"root": "{ID_ROOT}",
|
|
62
|
+
"root_url": "{URL_ROOT}",
|
|
63
|
+
"changelog": "{ID_CHANGELOG}",
|
|
64
|
+
"features": "{ID_FEATURES}",
|
|
65
|
+
"adr": "{ID_ADR}",
|
|
66
|
+
"runbooks": "{ID_RUNBOOKS}"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Passo 4 — Reportar resultado
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
✅ Notion configurado para {NOME_PROJETO}
|
|
75
|
+
|
|
76
|
+
📋 Página principal: {URL_ROOT}
|
|
77
|
+
📅 changelog/: {URL_CHANGELOG}
|
|
78
|
+
📄 features/: {URL_FEATURES}
|
|
79
|
+
🏛️ adr/: {URL_ADR}
|
|
80
|
+
📖 runbooks/: {URL_RUNBOOKS}
|
|
81
|
+
|
|
82
|
+
Arquivo criado: .claude/notion-config.json
|
|
83
|
+
Próximo passo: use /publicar ao concluir o próximo milestone.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Configuração da página raiz do Notion
|
|
87
|
+
|
|
88
|
+
Defina o ID da página raiz onde os projetos serão criados (uma página "guarda-chuva" no seu workspace Notion):
|
|
89
|
+
|
|
90
|
+
- Via env var: `export KIT_NOTION_PARENT_PAGE_ID="<ID_DA_PAGINA>"`
|
|
91
|
+
- Ou substitua `{NOTION_PARENT_PAGE_ID}` no Passo 2 pelo ID literal antes de executar.
|
|
92
|
+
|
|
93
|
+
Para obter o ID: abra a página no Notion → Share → Copy link → o ID é o hash de 32 caracteres no final da URL.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sync-main
|
|
3
|
+
description: Atualiza a branch local com os commits da main. Se houver conflitos, pergunta qual priorizar.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Bash
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<safety_rules>
|
|
9
|
+
NUNCA execute git push para main ou origin/main.
|
|
10
|
+
NUNCA mude para a branch main (git checkout main / git switch main).
|
|
11
|
+
Este comando só traz código da main para a branch local — nunca o contrário.
|
|
12
|
+
</safety_rules>
|
|
13
|
+
|
|
14
|
+
<process>
|
|
15
|
+
|
|
16
|
+
## 1 — Proteção: bloquear se estiver na main
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
git branch --show-current
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Se a branch atual for `main`, encerre com:
|
|
23
|
+
> "⛔ Você está na branch main. Mude para uma branch de feature antes de continuar."
|
|
24
|
+
|
|
25
|
+
## 2 — Buscar atualizações e verificar se há algo novo
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
git fetch origin
|
|
29
|
+
git log --oneline origin/main ^HEAD
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Se não houver nenhum commit novo em `origin/main`, informe:
|
|
33
|
+
> "Sua branch já está atualizada com a main."
|
|
34
|
+
E encerre.
|
|
35
|
+
|
|
36
|
+
## 3 — Aplicar os commits da main na branch local
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git merge origin/main
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Se não houver conflitos:
|
|
43
|
+
Mostre um resumo com:
|
|
44
|
+
- Quantos commits foram integrados
|
|
45
|
+
- Lista dos arquivos modificados (`git diff --name-only HEAD~1 HEAD` ou similar)
|
|
46
|
+
|
|
47
|
+
Encerre.
|
|
48
|
+
|
|
49
|
+
### Se houver conflitos:
|
|
50
|
+
|
|
51
|
+
Liste os arquivos conflitantes e pergunte:
|
|
52
|
+
> "Encontrei conflitos nos arquivos abaixo. Qual é a prioridade?
|
|
53
|
+
> [1] main — usa o código da main nos conflitos
|
|
54
|
+
> [2] local — mantém o seu código nos conflitos"
|
|
55
|
+
|
|
56
|
+
Aguarde a resposta.
|
|
57
|
+
|
|
58
|
+
**Se [1] main:**
|
|
59
|
+
Para cada arquivo conflitante: `git checkout --theirs <arquivo>`
|
|
60
|
+
Depois: `git add . && git commit`
|
|
61
|
+
|
|
62
|
+
**Se [2] local:**
|
|
63
|
+
Para cada arquivo conflitante: `git checkout --ours <arquivo>`
|
|
64
|
+
Depois: `git add . && git commit`
|
|
65
|
+
|
|
66
|
+
Mostre o resumo final: branch atual, status limpo, commits integrados.
|
|
67
|
+
|
|
68
|
+
</process>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: validar-fase
|
|
3
|
+
description: Audita retroativamente e preenche lacunas de validação Nyquist para uma fase concluída
|
|
4
|
+
argument-hint: "[número da fase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<objective>
|
|
16
|
+
Audita a cobertura de validação Nyquist para uma fase concluída. Três estados:
|
|
17
|
+
- (A) VALIDATION.md existe — auditar e preencher lacunas
|
|
18
|
+
- (B) Sem VALIDATION.md, SUMMARY.md existe — reconstruir a partir de artefatos
|
|
19
|
+
- (C) Fase não executada — sair com orientação
|
|
20
|
+
|
|
21
|
+
Saída: VALIDATION.md atualizado + arquivos de teste gerados.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@./.claude/framework/workflows/validate-phase.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<context>
|
|
29
|
+
Fase: $ARGUMENTS — opcional, padrão é a última fase concluída.
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<process>
|
|
33
|
+
Execute @./.claude/framework/workflows/validate-phase.md.
|
|
34
|
+
Preserve todos os gates do workflow.
|
|
35
|
+
</process>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verificar-tarefas
|
|
3
|
+
description: Lista todos os todos pendentes e seleciona um para trabalhar
|
|
4
|
+
argument-hint: [filtro de área]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Lista todos os todos pendentes, permite seleção, carrega o contexto completo do todo selecionado e encaminha para a ação adequada.
|
|
14
|
+
|
|
15
|
+
Encaminha para o workflow check-todos que cuida de:
|
|
16
|
+
- Contagem e listagem de todos com filtro por área
|
|
17
|
+
- Seleção interativa com carregamento completo de contexto
|
|
18
|
+
- Checagem de correlação com roadmap
|
|
19
|
+
- Roteamento de ação (trabalhar agora, adicionar à fase, brainstorm, criar fase)
|
|
20
|
+
- Atualizações do STATE.md e commits git
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@./.claude/framework/workflows/check-todos.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
Argumentos: $ARGUMENTS (filtro de área opcional)
|
|
29
|
+
|
|
30
|
+
Estado dos todos e correlação com roadmap são carregados no workflow usando `init todos` e leituras específicas.
|
|
31
|
+
</context>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
**Seguir o workflow check-todos** de `@./.claude/framework/workflows/check-todos.md`.
|
|
35
|
+
|
|
36
|
+
O workflow cuida de toda a lógica, incluindo:
|
|
37
|
+
1. Verificação de existência de todos
|
|
38
|
+
2. Filtro por área
|
|
39
|
+
3. Listagem e seleção interativa
|
|
40
|
+
4. Carregamento completo de contexto com resumos de arquivo
|
|
41
|
+
5. Checagem de correlação com roadmap
|
|
42
|
+
6. Oferta e execução de ação
|
|
43
|
+
7. Atualizações do STATE.md
|
|
44
|
+
8. Commits git
|
|
45
|
+
</process>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verificar-trabalho
|
|
3
|
+
description: Valida funcionalidades construídas através de UAT conversacional
|
|
4
|
+
argument-hint: "[número da fase, ex: '4']"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Edit
|
|
11
|
+
- Write
|
|
12
|
+
- Task
|
|
13
|
+
---
|
|
14
|
+
<objective>
|
|
15
|
+
Valida funcionalidades construídas através de testes conversacionais com estado persistente.
|
|
16
|
+
|
|
17
|
+
Propósito: Confirmar que o que o Claude construiu realmente funciona da perspectiva do usuário. Um teste por vez, respostas em texto simples, sem interrogatório. Quando problemas são encontrados, automaticamente diagnostica, planeja correções e prepara para execução.
|
|
18
|
+
|
|
19
|
+
Saída: {phase_num}-UAT.md rastreando todos os resultados de teste. Se problemas encontrados: lacunas diagnosticadas, planos de correção verificados prontos para /executar-fase
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<execution_context>
|
|
23
|
+
@./.claude/framework/workflows/verify-work.md
|
|
24
|
+
@./.claude/framework/templates/UAT.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
Fase: $ARGUMENTS (opcional)
|
|
29
|
+
- Se fornecido: Testar fase específica (ex: "4")
|
|
30
|
+
- Se não fornecido: Verificar sessões ativas ou solicitar fase
|
|
31
|
+
|
|
32
|
+
Arquivos de contexto são resolvidos dentro do workflow (`init verify-work`) e delegados via blocos `<files_to_read>`.
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<process>
|
|
36
|
+
Execute o workflow verify-work de @./.claude/framework/workflows/verify-work.md do início ao fim.
|
|
37
|
+
Preserve todos os gates do workflow (gerenciamento de sessão, apresentação de testes, diagnóstico, planejamento de correções, roteamento).
|
|
38
|
+
</process>
|