spec-first-copilot 0.7.0-beta.1 → 0.7.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 (55) hide show
  1. package/README.md +252 -167
  2. package/bin/cli.js +70 -70
  3. package/lib/init.js +92 -92
  4. package/lib/update.js +132 -132
  5. package/package.json +1 -1
  6. package/templates/.ai/memory/napkin.md +68 -68
  7. package/templates/.github/CHANGELOG.md +560 -533
  8. package/templates/.github/adapters/SETUP.md +314 -314
  9. package/templates/.github/adapters/confluence.md +295 -295
  10. package/templates/.github/adapters/errors.md +234 -234
  11. package/templates/.github/adapters/filesystem.md +353 -353
  12. package/templates/.github/adapters/interface.md +301 -301
  13. package/templates/.github/adapters/naming.md +241 -241
  14. package/templates/.github/adapters/registry.md +244 -244
  15. package/templates/.github/agents/backend-coder.md +215 -215
  16. package/templates/.github/agents/db-coder.md +165 -165
  17. package/templates/.github/agents/doc-writer.md +66 -66
  18. package/templates/.github/agents/frontend-coder.md +222 -222
  19. package/templates/.github/agents/infra-coder.md +341 -341
  20. package/templates/.github/agents/reviewer.md +99 -99
  21. package/templates/.github/agents/security-reviewer.md +153 -153
  22. package/templates/.github/copilot-instructions.md +272 -272
  23. package/templates/.github/instructions/docs.instructions.md +147 -145
  24. package/templates/.github/instructions/sensitive-files.instructions.md +32 -32
  25. package/templates/.github/rules.md +229 -229
  26. package/templates/.github/scripts/bootstrap-confluence.js +289 -289
  27. package/templates/.github/skills/sf-design/SKILL.md +161 -161
  28. package/templates/.github/skills/sf-dev/SKILL.md +204 -204
  29. package/templates/.github/skills/sf-discovery/SKILL.md +415 -415
  30. package/templates/.github/skills/sf-extract/SKILL.md +225 -225
  31. package/templates/.github/skills/sf-load/SKILL.md +296 -296
  32. package/templates/.github/skills/sf-mcp/SKILL.md +386 -386
  33. package/templates/.github/skills/sf-merge-docs/SKILL.md +152 -152
  34. package/templates/.github/skills/sf-plan/SKILL.md +152 -152
  35. package/templates/.github/skills/sf-publish/SKILL.md +144 -144
  36. package/templates/.github/skills/sf-session-finish/SKILL.md +93 -93
  37. package/templates/.github/skills/sf-start/SKILL.md +192 -192
  38. package/templates/.github/templates/estrutura/apiContracts.template.md +160 -159
  39. package/templates/.github/templates/estrutura/architecture.template.md +169 -168
  40. package/templates/.github/templates/estrutura/conventions.template.md +214 -212
  41. package/templates/.github/templates/estrutura/decisions.template.md +107 -107
  42. package/templates/.github/templates/estrutura/domain.template.md +161 -160
  43. package/templates/.github/templates/feature/PRD.template.md +279 -279
  44. package/templates/.github/templates/feature/Progresso.template.md +141 -141
  45. package/templates/.github/templates/feature/TRD.template.md +358 -358
  46. package/templates/.github/templates/feature/context.template.md +89 -89
  47. package/templates/.github/templates/feature/extract-log.template.md +49 -49
  48. package/templates/.github/templates/feature/projetos.template.yaml +79 -79
  49. package/templates/.github/templates/global/progresso_global.template.md +59 -57
  50. package/templates/.github/templates/specs/brief.template.md +66 -66
  51. package/templates/.github/templates/specs/contracts.template.md +147 -147
  52. package/templates/.github/templates/specs/scenarios.template.md +125 -125
  53. package/templates/.github/templates/specs/tasks.template.md +65 -65
  54. package/templates/_gitignore +35 -35
  55. package/templates/sfw.config.yml.example +147 -147
@@ -1,141 +1,141 @@
1
- # Progresso — {{FEATURE}}
2
-
3
- > Visão consolidada do andamento da feature.
4
- > Organizado por **fases de entrega** — cada fase é um entregável independente.
5
- > Atualizado automaticamente pelo /sf-dev a cada task concluída.
6
- >
7
- > **Este arquivo rastreia FASES DE ENTREGA, não o pipeline do SFW.**
8
- > O estado do pipeline (extract_done, design_done, plan_done, dev_in_progress, dev_done, done)
9
- > vive em `.context.md`. Aqui rastreamos: "as fases de entrega do PRD §11 já foram implementadas?"
10
-
11
- ---
12
-
13
- ## Status das Fases: `não iniciado`
14
-
15
- <!-- não iniciado → em desenvolvimento → em revisão → concluído → arquivado
16
- (vocabulário PRÓPRIO deste arquivo — não confundir com status da pipeline em .context.md) -->
17
-
18
- ---
19
-
20
- <!--
21
- =============================================================================
22
- INSTRUÇÕES PARA O AGENTE (não incluir no arquivo gerado)
23
- =============================================================================
24
-
25
- COMO GERAR ESTE ARQUIVO:
26
-
27
- 1. Ler PRD §11 (Fases de Entrega) para definir as fases
28
- 2. Ler TODOS os specs/{nome}/tasks.md da feature
29
- 3. Para cada FASE DE ENTREGA, listar as áreas e contagem de tasks
30
- 4. A visão primária é POR FASE, não por área
31
-
32
- COMO ATUALIZAR:
33
-
34
- - O /sf-dev atualiza após cada task concluída
35
- - Status por fase: ⬜ pendente → 🔄 em andamento → ✅ concluída
36
- - Fase concluída = todas tasks de todas áreas daquela fase estão [x]
37
- - Ao concluir uma fase: registrar no Histórico + abrir PR
38
-
39
- =============================================================================
40
- -->
41
-
42
- ## Fases de Entrega
43
-
44
- | Fase | Nome | Prioridade | Entregável | Status | Tasks |
45
- |------|------|-----------|------------|--------|-------|
46
- | 1 | {{Nome}} | P1 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
47
- | 2 | {{Nome}} | P1 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
48
- | 3 | {{Nome}} | P2 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
49
-
50
- ---
51
-
52
- ## Fase 1 — {{Nome}} [P1]
53
-
54
- > **Entregável**: {{O que o usuário pode usar}}
55
- > **Critério de done**: {{Testes E2E que devem passar}}
56
- > **Branch**: `feature/{{FEATURE}}_fase1`
57
- > **PR**: (a ser criado)
58
-
59
- ### Tasks por área
60
-
61
- #### {{AREA_1}} ({{N}} tasks)
62
-
63
- | Task | Descrição | Tamanho | Repo | Status |
64
- |------|-----------|---------|------|--------|
65
- | AREA-001 | | S/M/L | {{repo}} | ⬜ |
66
-
67
- #### {{AREA_2}} ({{N}} tasks)
68
-
69
- | Task | Descrição | Tamanho | Repo | Status |
70
- |------|-----------|---------|------|--------|
71
- | AREA-001 | | S/M/L | {{repo}} | ⬜ |
72
-
73
- ### Resumo Fase 1
74
-
75
- | Área | Total | Feitas | % |
76
- |------|-------|--------|---|
77
- | {{AREA_1}} | {{N}} | 0 | 0% |
78
- | {{AREA_2}} | {{N}} | 0 | 0% |
79
- | **Total Fase 1** | **{{N}}** | **0** | **0%** |
80
-
81
- ---
82
-
83
- ## Fase 2 — {{Nome}} [P1]
84
-
85
- > **Entregável**: {{...}}
86
- > **Depende de**: Fase 1 concluída
87
-
88
- <!-- Repetir mesma estrutura -->
89
-
90
- ---
91
-
92
- ## Totais Gerais
93
-
94
- | Fase | Total | Feitas | % |
95
- |------|-------|--------|---|
96
- | Fase 1 | {{N}} | 0 | 0% |
97
- | Fase 2 | {{N}} | 0 | 0% |
98
- | **Total** | **{{N}}** | **0** | **0%** |
99
-
100
- ---
101
-
102
- ## Ordem de Execução
103
-
104
- ```
105
- Fase 1:
106
- 1. INFRA (setup de repos/ambiente)
107
- 2. DB (schema/migrations)
108
- 3. BACK (endpoints) ← pode paralelizar com FRONT após DB
109
- 4. FRONT (telas)
110
- → PR Fase 1 + testes manuais + merge
111
-
112
- Fase 2:
113
- 1. DB (novas tabelas/migrations)
114
- 2. BACK (endpoints + regras)
115
- 3. FRONT (telas + integração)
116
- → PR Fase 2 + testes manuais + merge
117
- ```
118
-
119
- ---
120
-
121
- ## Histórico
122
-
123
- | Data | Evento | Detalhes |
124
- |------|--------|----------|
125
- | | Feature criada | PRD aprovado, SDD gerado |
126
-
127
- ---
128
-
129
- ## Pós-conclusão (por fase)
130
-
131
- - [ ] PR aberto com template detalhado
132
- - [ ] Ambiente local rodando para testes manuais
133
- - [ ] Testes automatizados passando (unit + integration + security)
134
- - [ ] Usuário aprovou e fez merge
135
-
136
- ## Pós-conclusão (feature completa)
137
-
138
- - [ ] Todas fases concluídas e mergeadas
139
- - [ ] Mergear Delta Specs (SDD §11) nos docs de `docs/`
140
- - [ ] Atualizar `workspace/Output/progresso.md` (visão global)
141
- - [ ] Atualizar `.ai/memory/napkin.md` se houver aprendizado relevante
1
+ # Progresso — {{FEATURE}}
2
+
3
+ > Visão consolidada do andamento da feature.
4
+ > Organizado por **fases de entrega** — cada fase é um entregável independente.
5
+ > Atualizado automaticamente pelo /sf-dev a cada task concluída.
6
+ >
7
+ > **Este arquivo rastreia FASES DE ENTREGA, não o pipeline do SFW.**
8
+ > O estado do pipeline (extract_done, design_done, plan_done, dev_in_progress, dev_done, done)
9
+ > vive em `.context.md`. Aqui rastreamos: "as fases de entrega do PRD §11 já foram implementadas?"
10
+
11
+ ---
12
+
13
+ ## Status das Fases: `não iniciado`
14
+
15
+ <!-- não iniciado → em desenvolvimento → em revisão → concluído → arquivado
16
+ (vocabulário PRÓPRIO deste arquivo — não confundir com status da pipeline em .context.md) -->
17
+
18
+ ---
19
+
20
+ <!--
21
+ =============================================================================
22
+ INSTRUÇÕES PARA O AGENTE (não incluir no arquivo gerado)
23
+ =============================================================================
24
+
25
+ COMO GERAR ESTE ARQUIVO:
26
+
27
+ 1. Ler PRD §11 (Fases de Entrega) para definir as fases
28
+ 2. Ler TODOS os specs/{nome}/tasks.md da feature
29
+ 3. Para cada FASE DE ENTREGA, listar as áreas e contagem de tasks
30
+ 4. A visão primária é POR FASE, não por área
31
+
32
+ COMO ATUALIZAR:
33
+
34
+ - O /sf-dev atualiza após cada task concluída
35
+ - Status por fase: ⬜ pendente → 🔄 em andamento → ✅ concluída
36
+ - Fase concluída = todas tasks de todas áreas daquela fase estão [x]
37
+ - Ao concluir uma fase: registrar no Histórico + abrir PR
38
+
39
+ =============================================================================
40
+ -->
41
+
42
+ ## Fases de Entrega
43
+
44
+ | Fase | Nome | Prioridade | Entregável | Status | Tasks |
45
+ |------|------|-----------|------------|--------|-------|
46
+ | 1 | {{Nome}} | P1 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
47
+ | 2 | {{Nome}} | P1 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
48
+ | 3 | {{Nome}} | P2 | {{Entregável}} | ⬜ pendente | 0/{{N}} |
49
+
50
+ ---
51
+
52
+ ## Fase 1 — {{Nome}} [P1]
53
+
54
+ > **Entregável**: {{O que o usuário pode usar}}
55
+ > **Critério de done**: {{Testes E2E que devem passar}}
56
+ > **Branch**: `feature/{{FEATURE}}_fase1`
57
+ > **PR**: (a ser criado)
58
+
59
+ ### Tasks por área
60
+
61
+ #### {{AREA_1}} ({{N}} tasks)
62
+
63
+ | Task | Descrição | Tamanho | Repo | Status |
64
+ |------|-----------|---------|------|--------|
65
+ | AREA-001 | | S/M/L | {{repo}} | ⬜ |
66
+
67
+ #### {{AREA_2}} ({{N}} tasks)
68
+
69
+ | Task | Descrição | Tamanho | Repo | Status |
70
+ |------|-----------|---------|------|--------|
71
+ | AREA-001 | | S/M/L | {{repo}} | ⬜ |
72
+
73
+ ### Resumo Fase 1
74
+
75
+ | Área | Total | Feitas | % |
76
+ |------|-------|--------|---|
77
+ | {{AREA_1}} | {{N}} | 0 | 0% |
78
+ | {{AREA_2}} | {{N}} | 0 | 0% |
79
+ | **Total Fase 1** | **{{N}}** | **0** | **0%** |
80
+
81
+ ---
82
+
83
+ ## Fase 2 — {{Nome}} [P1]
84
+
85
+ > **Entregável**: {{...}}
86
+ > **Depende de**: Fase 1 concluída
87
+
88
+ <!-- Repetir mesma estrutura -->
89
+
90
+ ---
91
+
92
+ ## Totais Gerais
93
+
94
+ | Fase | Total | Feitas | % |
95
+ |------|-------|--------|---|
96
+ | Fase 1 | {{N}} | 0 | 0% |
97
+ | Fase 2 | {{N}} | 0 | 0% |
98
+ | **Total** | **{{N}}** | **0** | **0%** |
99
+
100
+ ---
101
+
102
+ ## Ordem de Execução
103
+
104
+ ```
105
+ Fase 1:
106
+ 1. INFRA (setup de repos/ambiente)
107
+ 2. DB (schema/migrations)
108
+ 3. BACK (endpoints) ← pode paralelizar com FRONT após DB
109
+ 4. FRONT (telas)
110
+ → PR Fase 1 + testes manuais + merge
111
+
112
+ Fase 2:
113
+ 1. DB (novas tabelas/migrations)
114
+ 2. BACK (endpoints + regras)
115
+ 3. FRONT (telas + integração)
116
+ → PR Fase 2 + testes manuais + merge
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Histórico
122
+
123
+ | Data | Evento | Detalhes |
124
+ |------|--------|----------|
125
+ | | Feature criada | PRD e/ou TRD aprovados, specs/ gerado |
126
+
127
+ ---
128
+
129
+ ## Pós-conclusão (por fase)
130
+
131
+ - [ ] PR aberto com template detalhado
132
+ - [ ] Ambiente local rodando para testes manuais
133
+ - [ ] Testes automatizados passando (unit + integration + security)
134
+ - [ ] Usuário aprovou e fez merge
135
+
136
+ ## Pós-conclusão (feature completa)
137
+
138
+ - [ ] Todas fases concluídas e mergeadas
139
+ - [ ] Rodar /sf-merge-docs (diff semântico PRD+TRD docs/) atualizou `docs/`
140
+ - [ ] Atualizar `workspace/Output/progresso.md` (visão global)
141
+ - [ ] Atualizar `.ai/memory/napkin.md` se houver aprendizado relevante