@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.
Files changed (219) hide show
  1. package/kit/COMANDOS.md +123 -0
  2. package/kit/agents/advisor-researcher.md +121 -0
  3. package/kit/agents/assumptions-analyzer.md +122 -0
  4. package/kit/agents/codebase-mapper.md +787 -0
  5. package/kit/agents/debugger.md +796 -0
  6. package/kit/agents/executor.md +516 -0
  7. package/kit/agents/integration-checker.md +217 -0
  8. package/kit/agents/nyquist-auditor.md +195 -0
  9. package/kit/agents/phase-researcher.md +715 -0
  10. package/kit/agents/plan-checker.md +289 -0
  11. package/kit/agents/planner.md +1373 -0
  12. package/kit/agents/project-researcher.md +671 -0
  13. package/kit/agents/research-synthesizer.md +259 -0
  14. package/kit/agents/roadmapper.md +696 -0
  15. package/kit/agents/ui-auditor.md +458 -0
  16. package/kit/agents/ui-checker.md +319 -0
  17. package/kit/agents/ui-researcher.md +374 -0
  18. package/kit/agents/user-profiler.md +183 -0
  19. package/kit/agents/verifier.md +719 -0
  20. package/kit/commands/adicionar-backlog.md +76 -0
  21. package/kit/commands/adicionar-fase.md +43 -0
  22. package/kit/commands/adicionar-tarefa.md +47 -0
  23. package/kit/commands/adicionar-testes.md +41 -0
  24. package/kit/commands/ajuda.md +22 -0
  25. package/kit/commands/atualizar.md +37 -0
  26. package/kit/commands/auditar-marco.md +36 -0
  27. package/kit/commands/auditar-uat.md +24 -0
  28. package/kit/commands/autonomo.md +41 -0
  29. package/kit/commands/branch-pr.md +25 -0
  30. package/kit/commands/concluir-marco.md +136 -0
  31. package/kit/commands/configuracoes.md +36 -0
  32. package/kit/commands/definir-perfil.md +12 -0
  33. package/kit/commands/depurar.md +173 -0
  34. package/kit/commands/discutir-fase.md +64 -0
  35. package/kit/commands/entrar-discord.md +18 -0
  36. package/kit/commands/estatisticas.md +18 -0
  37. package/kit/commands/executar-fase.md +59 -0
  38. package/kit/commands/expresso.md +47 -0
  39. package/kit/commands/fase-ui.md +34 -0
  40. package/kit/commands/fazer.md +30 -0
  41. package/kit/commands/fio.md +126 -0
  42. package/kit/commands/fluxos-trabalho.md +64 -0
  43. package/kit/commands/forense.md +56 -0
  44. package/kit/commands/gerenciador.md +39 -0
  45. package/kit/commands/inserir-fase.md +32 -0
  46. package/kit/commands/limpeza.md +18 -0
  47. package/kit/commands/listar-hipoteses-fase.md +46 -0
  48. package/kit/commands/listar-workspaces.md +19 -0
  49. package/kit/commands/mapear-codebase.md +71 -0
  50. package/kit/commands/nota.md +34 -0
  51. package/kit/commands/novo-marco.md +44 -0
  52. package/kit/commands/novo-projeto.md +42 -0
  53. package/kit/commands/novo-workspace.md +44 -0
  54. package/kit/commands/pausar-trabalho.md +38 -0
  55. package/kit/commands/perfil-usuario.md +46 -0
  56. package/kit/commands/pesquisar-fase.md +195 -0
  57. package/kit/commands/planejar-fase.md +47 -0
  58. package/kit/commands/planejar-lacunas.md +34 -0
  59. package/kit/commands/plantar-ideia.md +26 -0
  60. package/kit/commands/progresso.md +24 -0
  61. package/kit/commands/proximo.md +24 -0
  62. package/kit/commands/publicar.md +370 -0
  63. package/kit/commands/rapido.md +30 -0
  64. package/kit/commands/reaplicar-patches.md +124 -0
  65. package/kit/commands/relatorio-sessao.md +19 -0
  66. package/kit/commands/remover-fase.md +31 -0
  67. package/kit/commands/remover-workspace.md +26 -0
  68. package/kit/commands/resumo-marco.md +51 -0
  69. package/kit/commands/retomar-trabalho.md +40 -0
  70. package/kit/commands/revisar-backlog.md +60 -0
  71. package/kit/commands/revisar-ui.md +32 -0
  72. package/kit/commands/revisar.md +37 -0
  73. package/kit/commands/saude.md +22 -0
  74. package/kit/commands/setup-notion.md +93 -0
  75. package/kit/commands/sync-main.md +68 -0
  76. package/kit/commands/validar-fase.md +35 -0
  77. package/kit/commands/verificar-tarefas.md +45 -0
  78. package/kit/commands/verificar-trabalho.md +38 -0
  79. package/kit/file-manifest.json +219 -0
  80. package/kit/framework/VERSION +1 -0
  81. package/kit/framework/bin/lib/commands.cjs +959 -0
  82. package/kit/framework/bin/lib/config.cjs +442 -0
  83. package/kit/framework/bin/lib/core.cjs +1230 -0
  84. package/kit/framework/bin/lib/frontmatter.cjs +336 -0
  85. package/kit/framework/bin/lib/init.cjs +1442 -0
  86. package/kit/framework/bin/lib/milestone.cjs +252 -0
  87. package/kit/framework/bin/lib/model-profiles.cjs +68 -0
  88. package/kit/framework/bin/lib/phase.cjs +888 -0
  89. package/kit/framework/bin/lib/profile-output.cjs +952 -0
  90. package/kit/framework/bin/lib/profile-pipeline.cjs +539 -0
  91. package/kit/framework/bin/lib/roadmap.cjs +329 -0
  92. package/kit/framework/bin/lib/security.cjs +382 -0
  93. package/kit/framework/bin/lib/state.cjs +1031 -0
  94. package/kit/framework/bin/lib/template.cjs +222 -0
  95. package/kit/framework/bin/lib/uat.cjs +282 -0
  96. package/kit/framework/bin/lib/verify.cjs +888 -0
  97. package/kit/framework/bin/lib/workstream.cjs +491 -0
  98. package/kit/framework/bin/tools.cjs +918 -0
  99. package/kit/framework/commands/workstreams.md +63 -0
  100. package/kit/framework/references/checkpoints.md +778 -0
  101. package/kit/framework/references/continuation-format.md +249 -0
  102. package/kit/framework/references/decimal-phase-calculation.md +64 -0
  103. package/kit/framework/references/git-integration.md +295 -0
  104. package/kit/framework/references/git-planning-commit.md +38 -0
  105. package/kit/framework/references/model-profile-resolution.md +36 -0
  106. package/kit/framework/references/model-profiles.md +139 -0
  107. package/kit/framework/references/phase-argument-parsing.md +61 -0
  108. package/kit/framework/references/planning-config.md +202 -0
  109. package/kit/framework/references/questioning.md +162 -0
  110. package/kit/framework/references/tdd.md +263 -0
  111. package/kit/framework/references/ui-brand.md +160 -0
  112. package/kit/framework/references/user-profiling.md +657 -0
  113. package/kit/framework/references/verification-patterns.md +612 -0
  114. package/kit/framework/references/workstream-flag.md +58 -0
  115. package/kit/framework/templates/DEBUG.md +164 -0
  116. package/kit/framework/templates/UAT.md +265 -0
  117. package/kit/framework/templates/UI-SPEC.md +100 -0
  118. package/kit/framework/templates/VALIDATION.md +76 -0
  119. package/kit/framework/templates/claude-md.md +122 -0
  120. package/kit/framework/templates/codebase/architecture.md +185 -0
  121. package/kit/framework/templates/codebase/concerns.md +205 -0
  122. package/kit/framework/templates/codebase/conventions.md +204 -0
  123. package/kit/framework/templates/codebase/integrations.md +192 -0
  124. package/kit/framework/templates/codebase/stack.md +158 -0
  125. package/kit/framework/templates/codebase/structure.md +199 -0
  126. package/kit/framework/templates/codebase/testing.md +301 -0
  127. package/kit/framework/templates/config.json +44 -0
  128. package/kit/framework/templates/context.md +352 -0
  129. package/kit/framework/templates/continue-here.md +78 -0
  130. package/kit/framework/templates/copilot-instructions.md +7 -0
  131. package/kit/framework/templates/debug-subagent-prompt.md +91 -0
  132. package/kit/framework/templates/dev-preferences.md +20 -0
  133. package/kit/framework/templates/discovery.md +146 -0
  134. package/kit/framework/templates/discussion-log.md +63 -0
  135. package/kit/framework/templates/milestone-archive.md +123 -0
  136. package/kit/framework/templates/milestone.md +115 -0
  137. package/kit/framework/templates/phase-prompt.md +610 -0
  138. package/kit/framework/templates/planner-subagent-prompt.md +117 -0
  139. package/kit/framework/templates/project.md +186 -0
  140. package/kit/framework/templates/requirements.md +231 -0
  141. package/kit/framework/templates/research-project/ARCHITECTURE.md +204 -0
  142. package/kit/framework/templates/research-project/FEATURES.md +147 -0
  143. package/kit/framework/templates/research-project/PITFALLS.md +200 -0
  144. package/kit/framework/templates/research-project/STACK.md +120 -0
  145. package/kit/framework/templates/research-project/SUMMARY.md +170 -0
  146. package/kit/framework/templates/research.md +419 -0
  147. package/kit/framework/templates/retrospective.md +54 -0
  148. package/kit/framework/templates/roadmap.md +202 -0
  149. package/kit/framework/templates/state.md +176 -0
  150. package/kit/framework/templates/summary-complex.md +59 -0
  151. package/kit/framework/templates/summary-minimal.md +41 -0
  152. package/kit/framework/templates/summary-standard.md +48 -0
  153. package/kit/framework/templates/summary.md +209 -0
  154. package/kit/framework/templates/user-profile.md +146 -0
  155. package/kit/framework/templates/user-setup.md +256 -0
  156. package/kit/framework/templates/verification-report.md +258 -0
  157. package/kit/framework/workflows/add-phase.md +112 -0
  158. package/kit/framework/workflows/add-tests.md +351 -0
  159. package/kit/framework/workflows/add-todo.md +158 -0
  160. package/kit/framework/workflows/audit-milestone.md +340 -0
  161. package/kit/framework/workflows/audit-uat.md +109 -0
  162. package/kit/framework/workflows/autonomous.md +891 -0
  163. package/kit/framework/workflows/check-todos.md +177 -0
  164. package/kit/framework/workflows/cleanup.md +152 -0
  165. package/kit/framework/workflows/complete-milestone.md +696 -0
  166. package/kit/framework/workflows/diagnose-issues.md +231 -0
  167. package/kit/framework/workflows/discovery-phase.md +289 -0
  168. package/kit/framework/workflows/discuss-phase-assumptions.md +653 -0
  169. package/kit/framework/workflows/discuss-phase.md +1049 -0
  170. package/kit/framework/workflows/do.md +104 -0
  171. package/kit/framework/workflows/execute-phase.md +838 -0
  172. package/kit/framework/workflows/execute-plan.md +510 -0
  173. package/kit/framework/workflows/fast.md +102 -0
  174. package/kit/framework/workflows/forensics.md +265 -0
  175. package/kit/framework/workflows/health.md +181 -0
  176. package/kit/framework/workflows/help.md +606 -0
  177. package/kit/framework/workflows/insert-phase.md +130 -0
  178. package/kit/framework/workflows/list-phase-assumptions.md +178 -0
  179. package/kit/framework/workflows/list-workspaces.md +56 -0
  180. package/kit/framework/workflows/manager.md +362 -0
  181. package/kit/framework/workflows/map-codebase.md +377 -0
  182. package/kit/framework/workflows/milestone-summary.md +223 -0
  183. package/kit/framework/workflows/new-milestone.md +486 -0
  184. package/kit/framework/workflows/new-project.md +1250 -0
  185. package/kit/framework/workflows/new-workspace.md +237 -0
  186. package/kit/framework/workflows/next.md +97 -0
  187. package/kit/framework/workflows/node-repair.md +92 -0
  188. package/kit/framework/workflows/note.md +156 -0
  189. package/kit/framework/workflows/pause-work.md +176 -0
  190. package/kit/framework/workflows/plan-milestone-gaps.md +273 -0
  191. package/kit/framework/workflows/plan-phase.md +859 -0
  192. package/kit/framework/workflows/plant-seed.md +169 -0
  193. package/kit/framework/workflows/pr-branch.md +129 -0
  194. package/kit/framework/workflows/profile-user.md +450 -0
  195. package/kit/framework/workflows/progress.md +507 -0
  196. package/kit/framework/workflows/quick.md +757 -0
  197. package/kit/framework/workflows/remove-phase.md +155 -0
  198. package/kit/framework/workflows/remove-workspace.md +90 -0
  199. package/kit/framework/workflows/research-phase.md +82 -0
  200. package/kit/framework/workflows/resume-project.md +326 -0
  201. package/kit/framework/workflows/review.md +228 -0
  202. package/kit/framework/workflows/session-report.md +146 -0
  203. package/kit/framework/workflows/settings.md +283 -0
  204. package/kit/framework/workflows/ship.md +228 -0
  205. package/kit/framework/workflows/stats.md +60 -0
  206. package/kit/framework/workflows/transition.md +671 -0
  207. package/kit/framework/workflows/ui-phase.md +302 -0
  208. package/kit/framework/workflows/ui-review.md +165 -0
  209. package/kit/framework/workflows/update.md +323 -0
  210. package/kit/framework/workflows/validate-phase.md +174 -0
  211. package/kit/framework/workflows/verify-phase.md +252 -0
  212. package/kit/framework/workflows/verify-work.md +637 -0
  213. package/kit/hooks/check-update.js +114 -0
  214. package/kit/hooks/context-monitor.js +156 -0
  215. package/kit/hooks/prompt-guard.js +96 -0
  216. package/kit/hooks/statusline.js +119 -0
  217. package/kit/hooks/workflow-guard.js +94 -0
  218. package/kit/settings.json +45 -0
  219. package/package.json +1 -1
@@ -0,0 +1,352 @@
1
+ # Template de Contexto de Fase
2
+
3
+ Template para `.planning/phases/XX-name/{phase_num}-CONTEXT.md` - captura decisões de implementação para uma fase.
4
+
5
+ **Propósito:** Documentar decisões que agentes downstream precisam. O Pesquisador usa isso para saber O QUE investigar. O Planejador usa isso para saber quais escolhas estão travadas vs. flexíveis.
6
+
7
+ **Princípio chave:** As categorias NÃO são predefinidas. Elas emergem do que foi realmente discutido para ESTA fase. Uma fase CLI tem seções relevantes para CLI, uma fase de UI tem seções relevantes para UI.
8
+
9
+ **Consumidores downstream:**
10
+ - `phase-researcher` — Lê decisões para focar a pesquisa (ex.: "layout de card" → pesquisar padrões de componentes card)
11
+ - `planner` — Lê decisões para criar tarefas específicas (ex.: "scroll infinito" → tarefa inclui virtualização)
12
+
13
+ ---
14
+
15
+ ## Template do Arquivo
16
+
17
+ ```markdown
18
+ # Fase [X]: [Nome] - Contexto
19
+
20
+ **Coletado:** [data]
21
+ **Status:** Pronto para planejamento
22
+
23
+ <domain>
24
+ ## Limite da Fase
25
+
26
+ [Declaração clara do que esta fase entrega — a âncora de escopo. Vem do ROADMAP.md e é fixo. A discussão esclarece a implementação dentro deste limite.]
27
+
28
+ </domain>
29
+
30
+ <decisions>
31
+ ## Decisões de Implementação
32
+
33
+ ### [Área 1 que foi discutida]
34
+ - **D-01:** [Decisão específica tomada]
35
+ - **D-02:** [Outra decisão, se aplicável]
36
+
37
+ ### [Área 2 que foi discutida]
38
+ - **D-03:** [Decisão específica tomada]
39
+
40
+ ### [Área 3 que foi discutida]
41
+ - **D-04:** [Decisão específica tomada]
42
+
43
+ ### A Critério do Claude
44
+ [Áreas onde o usuário disse explicitamente "você decide" — Claude tem flexibilidade aqui durante o planejamento/implementação]
45
+
46
+ </decisions>
47
+
48
+ <specifics>
49
+ ## Ideias Específicas
50
+
51
+ [Quaisquer referências, exemplos ou momentos "quero como X" da discussão. Referências de produto, comportamentos específicos, padrões de interação.]
52
+
53
+ [Se nenhum: "Sem requisitos específicos — aberto a abordagens padrão"]
54
+
55
+ </specifics>
56
+
57
+ <canonical_refs>
58
+ ## Referências Canônicas
59
+
60
+ **Agentes downstream DEVEM ler isso antes de planejar ou implementar.**
61
+
62
+ [Liste toda especificação, ADR, doc de funcionalidade ou design doc que define requisitos ou restrições para esta fase. Use caminhos relativos completos para que agentes possam lê-los diretamente. Agrupe por área de tópico quando a fase tem múltiplas preocupações.]
63
+
64
+ ### [Área de tópico 1]
65
+ - `path/to/spec-or-adr.md` — [O que este doc decide/define que é relevante]
66
+ - `path/to/doc.md` §N — [Seção específica e o que ela cobre]
67
+
68
+ ### [Área de tópico 2]
69
+ - `path/to/feature-doc.md` — [Que capacidade isto define]
70
+
71
+ [Se o projeto não tem specs externas: "Sem specs externas — requisitos estão totalmente capturados nas decisões acima"]
72
+
73
+ </canonical_refs>
74
+
75
+ <code_context>
76
+ ## Insights do Código Existente
77
+
78
+ ### Ativos Reutilizáveis
79
+ - [Componente/hook/utilitário]: [Como poderia ser usado nesta fase]
80
+
81
+ ### Padrões Estabelecidos
82
+ - [Padrão]: [Como restringe/habilita esta fase]
83
+
84
+ ### Pontos de Integração
85
+ - [Onde o novo código se conecta ao sistema existente]
86
+
87
+ </code_context>
88
+
89
+ <deferred>
90
+ ## Ideias Diferidas
91
+
92
+ [Ideias que surgiram durante a discussão mas pertencem a outras fases. Capturadas aqui para não serem perdidas, mas explicitamente fora do escopo desta fase.]
93
+
94
+ [Se nenhuma: "Nenhuma — a discussão ficou dentro do escopo da fase"]
95
+
96
+ </deferred>
97
+
98
+ ---
99
+
100
+ *Fase: XX-nome*
101
+ *Contexto coletado: [data]*
102
+ ```
103
+
104
+ <good_examples>
105
+
106
+ **Example 1: Visual feature (Post Feed)**
107
+
108
+ ```markdown
109
+ # Phase 3: Post Feed - Context
110
+
111
+ **Gathered:** 2025-01-20
112
+ **Status:** Ready for planning
113
+
114
+ <domain>
115
+ ## Phase Boundary
116
+
117
+ Display posts from followed users in a scrollable feed. Users can view posts and see engagement counts. Creating posts and interactions are separate phases.
118
+
119
+ </domain>
120
+
121
+ <decisions>
122
+ ## Implementation Decisions
123
+
124
+ ### Layout style
125
+ - Card-based layout, not timeline or list
126
+ - Each card shows: author avatar, name, timestamp, full post content, reaction counts
127
+ - Cards have subtle shadows, rounded corners — modern feel
128
+
129
+ ### Loading behavior
130
+ - Infinite scroll, not pagination
131
+ - Pull-to-refresh on mobile
132
+ - New posts indicator at top ("3 new posts") rather than auto-inserting
133
+
134
+ ### Empty state
135
+ - Friendly illustration + "Follow people to see posts here"
136
+ - Suggest 3-5 accounts to follow based on interests
137
+
138
+ ### Claude's Discretion
139
+ - Loading skeleton design
140
+ - Exact spacing and typography
141
+ - Error state handling
142
+
143
+ </decisions>
144
+
145
+ <canonical_refs>
146
+ ## Canonical References
147
+
148
+ ### Feed display
149
+ - `docs/features/social-feed.md` — Feed requirements, post card fields, engagement display rules
150
+ - `docs/decisions/adr-012-infinite-scroll.md` — Scroll strategy decision, virtualization requirements
151
+
152
+ ### Empty states
153
+ - `docs/design/empty-states.md` — Empty state patterns, illustration guidelines
154
+
155
+ </canonical_refs>
156
+
157
+ <specifics>
158
+ ## Specific Ideas
159
+
160
+ - "I like how Twitter shows the new posts indicator without disrupting your scroll position"
161
+ - Cards should feel like Linear's issue cards — clean, not cluttered
162
+
163
+ </specifics>
164
+
165
+ <deferred>
166
+ ## Deferred Ideas
167
+
168
+ - Commenting on posts — Phase 5
169
+ - Bookmarking posts — add to backlog
170
+
171
+ </deferred>
172
+
173
+ ---
174
+
175
+ *Phase: 03-post-feed*
176
+ *Context gathered: 2025-01-20*
177
+ ```
178
+
179
+ **Example 2: CLI tool (Database backup)**
180
+
181
+ ```markdown
182
+ # Phase 2: Backup Command - Context
183
+
184
+ **Gathered:** 2025-01-20
185
+ **Status:** Ready for planning
186
+
187
+ <domain>
188
+ ## Phase Boundary
189
+
190
+ CLI command to backup database to local file or S3. Supports full and incremental backups. Restore command is a separate phase.
191
+
192
+ </domain>
193
+
194
+ <decisions>
195
+ ## Implementation Decisions
196
+
197
+ ### Output format
198
+ - JSON for programmatic use, table format for humans
199
+ - Default to table, --json flag for JSON
200
+ - Verbose mode (-v) shows progress, silent by default
201
+
202
+ ### Flag design
203
+ - Short flags for common options: -o (output), -v (verbose), -f (force)
204
+ - Long flags for clarity: --incremental, --compress, --encrypt
205
+ - Required: database connection string (positional or --db)
206
+
207
+ ### Error recovery
208
+ - Retry 3 times on network failure, then fail with clear message
209
+ - --no-retry flag to fail fast
210
+ - Partial backups are deleted on failure (no corrupt files)
211
+
212
+ ### Claude's Discretion
213
+ - Exact progress bar implementation
214
+ - Compression algorithm choice
215
+ - Temp file handling
216
+
217
+ </decisions>
218
+
219
+ <canonical_refs>
220
+ ## Canonical References
221
+
222
+ ### Backup CLI
223
+ - `docs/features/backup-restore.md` — Backup requirements, supported backends, encryption spec
224
+ - `docs/decisions/adr-007-cli-conventions.md` — Flag naming, exit codes, output format standards
225
+
226
+ </canonical_refs>
227
+
228
+ <specifics>
229
+ ## Specific Ideas
230
+
231
+ - "I want it to feel like pg_dump — familiar to database people"
232
+ - Should work in CI pipelines (exit codes, no interactive prompts)
233
+
234
+ </specifics>
235
+
236
+ <deferred>
237
+ ## Deferred Ideas
238
+
239
+ - Scheduled backups — separate phase
240
+ - Backup rotation/retention — add to backlog
241
+
242
+ </deferred>
243
+
244
+ ---
245
+
246
+ *Phase: 02-backup-command*
247
+ *Context gathered: 2025-01-20*
248
+ ```
249
+
250
+ **Example 3: Organization task (Photo library)**
251
+
252
+ ```markdown
253
+ # Phase 1: Photo Organization - Context
254
+
255
+ **Gathered:** 2025-01-20
256
+ **Status:** Ready for planning
257
+
258
+ <domain>
259
+ ## Phase Boundary
260
+
261
+ Organize existing photo library into structured folders. Handle duplicates and apply consistent naming. Tagging and search are separate phases.
262
+
263
+ </domain>
264
+
265
+ <decisions>
266
+ ## Implementation Decisions
267
+
268
+ ### Grouping criteria
269
+ - Primary grouping by year, then by month
270
+ - Events detected by time clustering (photos within 2 hours = same event)
271
+ - Event folders named by date + location if available
272
+
273
+ ### Duplicate handling
274
+ - Keep highest resolution version
275
+ - Move duplicates to _duplicates folder (don't delete)
276
+ - Log all duplicate decisions for review
277
+
278
+ ### Naming convention
279
+ - Format: YYYY-MM-DD_HH-MM-SS_originalname.ext
280
+ - Preserve original filename as suffix for searchability
281
+ - Handle name collisions with incrementing suffix
282
+
283
+ ### Claude's Discretion
284
+ - Exact clustering algorithm
285
+ - How to handle photos with no EXIF data
286
+ - Folder emoji usage
287
+
288
+ </decisions>
289
+
290
+ <canonical_refs>
291
+ ## Canonical References
292
+
293
+ ### Organization rules
294
+ - `docs/features/photo-organization.md` — Grouping rules, duplicate policy, naming spec
295
+ - `docs/decisions/adr-003-exif-handling.md` — EXIF extraction strategy, fallback for missing metadata
296
+
297
+ </canonical_refs>
298
+
299
+ <specifics>
300
+ ## Specific Ideas
301
+
302
+ - "I want to be able to find photos by roughly when they were taken"
303
+ - Don't delete anything — worst case, move to a review folder
304
+
305
+ </specifics>
306
+
307
+ <deferred>
308
+ ## Deferred Ideas
309
+
310
+ - Face detection grouping — future phase
311
+ - Cloud sync — out of scope for now
312
+
313
+ </deferred>
314
+
315
+ ---
316
+
317
+ *Phase: 01-photo-organization*
318
+ *Context gathered: 2025-01-20*
319
+ ```
320
+
321
+ </good_examples>
322
+
323
+ <guidelines>
324
+ **Este template captura DECISÕES para agentes downstream.**
325
+
326
+ A saída deve responder: "O que o pesquisador precisa investigar? Quais escolhas estão travadas para o planejador?"
327
+
328
+ **Bom conteúdo (decisões concretas):**
329
+ - "Layout baseado em cards, não timeline"
330
+ - "Tentar 3 vezes em falha de rede, então falhar"
331
+ - "Agrupar por ano, depois por mês"
332
+ - "JSON para uso programático, tabela para humanos"
333
+
334
+ **Conteúdo ruim (muito vago):**
335
+ - "Deve parecer moderno e limpo"
336
+ - "Boa experiência do usuário"
337
+ - "Rápido e responsivo"
338
+ - "Fácil de usar"
339
+
340
+ **Após a criação:**
341
+ - O arquivo fica no diretório da fase: `.planning/phases/XX-nome/{phase_num}-CONTEXT.md`
342
+ - `phase-researcher` usa decisões para focar a investigação E lê canonical_refs para saber QUAIS docs estudar
343
+ - `planner` usa decisões + pesquisa para criar tarefas executáveis E lê canonical_refs para verificar alinhamento
344
+ - Agentes downstream NÃO devem precisar perguntar ao usuário novamente sobre decisões capturadas
345
+
346
+ **CRÍTICO — Referências canônicas:**
347
+ - A seção `<canonical_refs>` é OBRIGATÓRIA. Todo CONTEXT.md deve ter uma.
348
+ - Se o seu projeto tem specs externas, ADRs ou design docs, liste-os com caminhos relativos completos agrupados por tópico
349
+ - Se ROADMAP.md lista `Canonical refs:` por fase, extraia e expanda-os
350
+ - Menções inline como "ver ADR-019" espalhadas nas decisões são inúteis para agentes downstream — eles precisam de caminhos completos e referências de seção em uma seção dedicada que podem encontrar
351
+ - Se não existem specs externas, diga explicitamente — não omita silenciosamente a seção
352
+ </guidelines>
@@ -0,0 +1,78 @@
1
+ # Template Continue-Here
2
+
3
+ Copie e preencha esta estrutura para `.planning/phases/XX-name/.continue-here.md`:
4
+
5
+ ```yaml
6
+ ---
7
+ phase: XX-name
8
+ task: 3
9
+ total_tasks: 7
10
+ status: in_progress
11
+ last_updated: 2025-01-15T14:30:00Z
12
+ ---
13
+ ```
14
+
15
+ ```markdown
16
+ <current_state>
17
+ [Onde exatamente estamos? Qual é o contexto imediato?]
18
+ </current_state>
19
+
20
+ <completed_work>
21
+ [O que foi feito nesta sessão - seja específico]
22
+
23
+ - Tarefa 1: [nome] - Concluída
24
+ - Tarefa 2: [nome] - Concluída
25
+ - Tarefa 3: [nome] - Em andamento, [o que foi feito nela]
26
+ </completed_work>
27
+
28
+ <remaining_work>
29
+ [O que falta nesta fase]
30
+
31
+ - Tarefa 3: [nome] - [o que falta fazer]
32
+ - Tarefa 4: [nome] - Não iniciada
33
+ - Tarefa 5: [nome] - Não iniciada
34
+ </remaining_work>
35
+
36
+ <decisions_made>
37
+ [Decisões chave e por que — para que a próxima sessão não reabra o debate]
38
+
39
+ - Decidiu usar [X] porque [motivo]
40
+ - Escolheu [abordagem] em vez de [alternativa] porque [motivo]
41
+ </decisions_made>
42
+
43
+ <blockers>
44
+ [Qualquer coisa travada ou aguardando fatores externos]
45
+
46
+ - [Bloqueio 1]: [status/contorno]
47
+ </blockers>
48
+
49
+ <context>
50
+ [Estado mental, "vibe", qualquer coisa que ajude a retomar suavemente]
51
+
52
+ [O que você estava pensando? Qual era o plano?
53
+ Este é o contexto "retomar exatamente de onde parou".]
54
+ </context>
55
+
56
+ <next_action>
57
+ [A primeira coisa a fazer ao retomar]
58
+
59
+ Começar com: [ação específica]
60
+ </next_action>
61
+ ```
62
+
63
+ <yaml_fields>
64
+ Frontmatter YAML obrigatório:
65
+
66
+ - `phase`: Nome do diretório (ex.: `02-authentication`)
67
+ - `task`: Número da tarefa atual
68
+ - `total_tasks`: Quantas tarefas na fase
69
+ - `status`: `in_progress`, `blocked`, `almost_done`
70
+ - `last_updated`: Timestamp ISO
71
+ </yaml_fields>
72
+
73
+ <guidelines>
74
+ - Seja específico o suficiente para que uma instância fresca do Claude entenda imediatamente
75
+ - Inclua POR QUE as decisões foram tomadas, não apenas o quê
76
+ - O `<next_action>` deve ser acionável sem ler mais nada
77
+ - Este arquivo é DELETADO após o retorno — não é armazenamento permanente
78
+ </guidelines>
@@ -0,0 +1,7 @@
1
+ # Instruções para framework
2
+
3
+ - Use a skill framework quando o usuário pedir framework ou usar um comando `framework-*`.
4
+ - Trate `/framework-...` ou `framework-...` como invocações de comando e carregue o arquivo correspondente de `.github/skills/framework-*`.
5
+ - Quando um comando disser para spawnar um subagente, prefira um agente customizado correspondente de `.github/agents`.
6
+ - Não aplique workflows framework a menos que o usuário peça explicitamente.
7
+ - Após concluir qualquer comando `framework-*` (ou qualquer entregável que ele acione: feature, bug fix, testes, docs, etc.), SEMPRE: (1) ofereça ao usuário o próximo passo via `ask_user`; repita esse ciclo de feedback até o usuário indicar explicitamente que terminou.
@@ -0,0 +1,91 @@
1
+ # Template de Prompt do Subagente de Debug
2
+
3
+ Template para spawnar o agente debugger. O agente contém toda a expertise de debug — este template fornece apenas o contexto do problema.
4
+
5
+ ---
6
+
7
+ ## Template
8
+
9
+ ```markdown
10
+ <objective>
11
+ Investigate issue: {issue_id}
12
+
13
+ **Summary:** {issue_summary}
14
+ </objective>
15
+
16
+ <symptoms>
17
+ expected: {expected}
18
+ actual: {actual}
19
+ errors: {errors}
20
+ reproduction: {reproduction}
21
+ timeline: {timeline}
22
+ </symptoms>
23
+
24
+ <mode>
25
+ symptoms_prefilled: {true_or_false}
26
+ goal: {find_root_cause_only | find_and_fix}
27
+ </mode>
28
+
29
+ <debug_file>
30
+ Create: .planning/debug/{slug}.md
31
+ </debug_file>
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Placeholders
37
+
38
+ | Placeholder | Fonte | Exemplo |
39
+ |-------------|-------|---------|
40
+ | `{issue_id}` | Atribuído pelo orquestrador | `auth-screen-dark` |
41
+ | `{issue_summary}` | Descrição do usuário | `Auth screen is too dark` |
42
+ | `{expected}` | Dos sintomas | `See logo clearly` |
43
+ | `{actual}` | Dos sintomas | `Screen is dark` |
44
+ | `{errors}` | Dos sintomas | `None in console` |
45
+ | `{reproduction}` | Dos sintomas | `Open /auth page` |
46
+ | `{timeline}` | Dos sintomas | `After recent deploy` |
47
+ | `{goal}` | Orquestrador define | `find_and_fix` |
48
+ | `{slug}` | Gerado | `auth-screen-dark` |
49
+
50
+ ---
51
+
52
+ ## Uso
53
+
54
+ **A partir de /debug:**
55
+ ```python
56
+ Task(
57
+ prompt=filled_template,
58
+ subagent_type="debugger",
59
+ description="Debug {slug}"
60
+ )
61
+ ```
62
+
63
+ **A partir de diagnose-issues (UAT):**
64
+ ```python
65
+ Task(prompt=template, subagent_type="debugger", description="Debug UAT-001")
66
+ ```
67
+
68
+ ---
69
+
70
+ ## Continuação
71
+
72
+ Para checkpoints, spawnar novo agente com:
73
+
74
+ ```markdown
75
+ <objective>
76
+ Continue debugging {slug}. Evidence is in the debug file.
77
+ </objective>
78
+
79
+ <prior_state>
80
+ Debug file: @.planning/debug/{slug}.md
81
+ </prior_state>
82
+
83
+ <checkpoint_response>
84
+ **Type:** {checkpoint_type}
85
+ **Response:** {user_response}
86
+ </checkpoint_response>
87
+
88
+ <mode>
89
+ goal: {goal}
90
+ </mode>
91
+ ```
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Carregar preferências do desenvolvedor nesta sessão
3
+ ---
4
+
5
+ # Preferências do Desenvolvedor
6
+
7
+ > Gerado pelo framework em {{generated_at}} a partir de {{data_source}}.
8
+ > Execute `/profile-user --refresh` para regenerar.
9
+
10
+ ## Diretivas Comportamentais
11
+
12
+ Siga estas diretivas ao trabalhar com este desenvolvedor. Diretivas de maior confiança
13
+ devem ser aplicadas diretamente. Diretivas de menor confiança devem ser tentadas
14
+ com ressalva ("Com base no seu perfil, vou tentar X — me diga se estiver errado").
15
+
16
+ {{behavioral_directives}}
17
+
18
+ ## Preferências de Stack
19
+
20
+ {{stack_preferences}}
@@ -0,0 +1,146 @@
1
+ # Template de Discovery
2
+
3
+ Template para `.planning/phases/XX-name/DISCOVERY.md` - pesquisa rasa para decisões de biblioteca/opção.
4
+
5
+ **Propósito:** Responder perguntas "qual biblioteca/opção devemos usar" durante a discovery obrigatória no plan-phase.
6
+
7
+ Para pesquisa profunda de ecossistema ("como especialistas constroem isso"), use `/research-phase` que produz RESEARCH.md.
8
+
9
+ ---
10
+
11
+ ## Template do Arquivo
12
+
13
+ ```markdown
14
+ ---
15
+ phase: XX-name
16
+ type: discovery
17
+ topic: [discovery-topic]
18
+ ---
19
+
20
+ <session_initialization>
21
+ Before beginning discovery, verify today's date:
22
+ !`date +%Y-%m-%d`
23
+
24
+ Use this date when searching for "current" or "latest" information.
25
+ Example: If today is 2025-11-22, search for "2025" not "2024".
26
+ </session_initialization>
27
+
28
+ <discovery_objective>
29
+ Discover [topic] to inform [phase name] implementation.
30
+
31
+ Purpose: [What decision/implementation this enables]
32
+ Scope: [Boundaries]
33
+ Output: DISCOVERY.md with recommendation
34
+ </discovery_objective>
35
+
36
+ <discovery_scope>
37
+ <include>
38
+ - [Question to answer]
39
+ - [Area to investigate]
40
+ - [Specific comparison if needed]
41
+ </include>
42
+
43
+ <exclude>
44
+ - [Out of scope for this discovery]
45
+ - [Defer to implementation phase]
46
+ </exclude>
47
+ </discovery_scope>
48
+
49
+ <discovery_protocol>
50
+
51
+ **Source Priority:**
52
+ 1. **Context7 MCP** - For library/framework documentation (current, authoritative)
53
+ 2. **Official Docs** - For platform-specific or non-indexed libraries
54
+ 3. **WebSearch** - For comparisons, trends, community patterns (verify all findings)
55
+
56
+ **Quality Checklist:**
57
+ Before completing discovery, verify:
58
+ - [ ] All claims have authoritative sources (Context7 or official docs)
59
+ - [ ] Negative claims ("X is not possible") verified with official documentation
60
+ - [ ] API syntax/configuration from Context7 or official docs (never WebSearch alone)
61
+ - [ ] WebSearch findings cross-checked with authoritative sources
62
+ - [ ] Recent updates/changelogs checked for breaking changes
63
+ - [ ] Alternative approaches considered (not just first solution found)
64
+
65
+ **Confidence Levels:**
66
+ - HIGH: Context7 or official docs confirm
67
+ - MEDIUM: WebSearch + Context7/official docs confirm
68
+ - LOW: WebSearch only or training knowledge only (mark for validation)
69
+
70
+ </discovery_protocol>
71
+
72
+
73
+ <output_structure>
74
+ Create `.planning/phases/XX-name/DISCOVERY.md`:
75
+
76
+ ```markdown
77
+ # Descoberta: [Tópico]
78
+
79
+ ## Resumo
80
+ [Resumo executivo de 2-3 parágrafos — o que foi pesquisado, o que foi encontrado, o que é recomendado]
81
+
82
+ ## Recomendação Principal
83
+ [O que fazer e por quê — seja específico e acionável]
84
+
85
+ ## Alternativas Consideradas
86
+ [O que mais foi avaliado e por que não foi escolhido]
87
+
88
+ ## Descobertas Chave
89
+
90
+ ### [Categoria 1]
91
+ - [Descoberta com URL de fonte e relevância para nosso caso]
92
+
93
+ ### [Categoria 2]
94
+ - [Descoberta com URL de fonte e relevância]
95
+
96
+ ## Exemplos de Código
97
+ [Padrões de implementação relevantes, se aplicável]
98
+
99
+ ## Metadados
100
+
101
+ <metadata>
102
+ <confidence level="high|medium|low">
103
+ [Por que este nível de confiança — baseado na qualidade das fontes e verificação]
104
+ </confidence>
105
+
106
+ <sources>
107
+ - [Fontes autoritativas primárias usadas]
108
+ </sources>
109
+
110
+ <open_questions>
111
+ [O que não pôde ser determinado ou precisa de validação durante a implementação]
112
+ </open_questions>
113
+
114
+ <validation_checkpoints>
115
+ [Se a confiança for LOW ou MEDIUM, liste coisas específicas a verificar durante a implementação]
116
+ </validation_checkpoints>
117
+ </metadata>
118
+ ```
119
+ </output_structure>
120
+
121
+ <success_criteria>
122
+ - All scope questions answered with authoritative sources
123
+ - Quality checklist items completed
124
+ - Clear primary recommendation
125
+ - Low-confidence findings marked with validation checkpoints
126
+ - Ready to inform PLAN.md creation
127
+ </success_criteria>
128
+
129
+ <guidelines>
130
+ **Quando usar discovery:**
131
+ - Escolha de tecnologia incerta (biblioteca A vs B)
132
+ - Melhores práticas necessárias para integração desconhecida
133
+ - Investigação de API/biblioteca necessária
134
+ - Decisão única pendente
135
+
136
+ **Quando NÃO usar:**
137
+ - Padrões estabelecidos (CRUD, auth com biblioteca conhecida)
138
+ - Detalhes de implementação (diferir para execução)
139
+ - Perguntas respondíveis a partir do contexto existente do projeto
140
+
141
+ **Quando usar RESEARCH.md em vez disso:**
142
+ - Domínios niche/complexos (3D, jogos, áudio, shaders)
143
+ - Necessidade de conhecimento de ecossistema, não apenas escolha de biblioteca
144
+ - Perguntas "como especialistas constroem isso"
145
+ - Use `/research-phase` para esses casos
146
+ </guidelines>