create-quiver 0.13.0 → 0.14.1

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 (92) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +183 -511
  3. package/README_FOR_AI.md +36 -26
  4. package/ROADMAP.md +11 -0
  5. package/assets/quiver-wordmark.svg +22 -0
  6. package/docs/AI_CONTEXT.md.template +2 -0
  7. package/docs/AI_ONBOARDING_PROMPT.md.template +9 -1
  8. package/docs/CLI_UX_GUIDE.md +125 -0
  9. package/docs/COMMANDS.md.template +19 -4
  10. package/docs/GITFLOW_PR_GUIDE.md +70 -0
  11. package/docs/TROUBLESHOOTING.md.template +29 -0
  12. package/docs/WORKFLOW.md.template +13 -12
  13. package/docs/getting-started/linux.md +84 -0
  14. package/docs/getting-started/macos.md +85 -0
  15. package/docs/getting-started/windows-git-bash-wsl.md +78 -0
  16. package/docs/getting-started/windows-powershell.md +96 -0
  17. package/docs/reference/commands.md +94 -0
  18. package/docs/workflows/existing-project.md +131 -0
  19. package/docs/workflows/full-ai-spec-to-pr.md +311 -0
  20. package/docs/workflows/legacy-quiver-project.md +102 -0
  21. package/docs/workflows/new-project.md +76 -0
  22. package/package.json +5 -1
  23. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/COVERAGE_MATRIX.md +117 -0
  24. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/EVIDENCE_REPORT.md +200 -0
  25. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/EXECUTION_PLAN.md +60 -0
  26. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/SPEC.md +132 -0
  27. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/STATUS.md +36 -0
  28. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/pr.md +128 -0
  29. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-00-reconciliation-and-evidence-freeze/CLOSURE_BRIEF.md +44 -0
  30. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-00-reconciliation-and-evidence-freeze/EXECUTION_BRIEF.md +56 -0
  31. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-00-reconciliation-and-evidence-freeze/slice.json +71 -0
  32. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-01-ai-run-state-approvals-and-clean-output/CLOSURE_BRIEF.md +38 -0
  33. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-01-ai-run-state-approvals-and-clean-output/EXECUTION_BRIEF.md +53 -0
  34. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-01-ai-run-state-approvals-and-clean-output/slice.json +83 -0
  35. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-02-structured-technical-plan-contract-and-repair-flow/CLOSURE_BRIEF.md +33 -0
  36. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-02-structured-technical-plan-contract-and-repair-flow/EXECUTION_BRIEF.md +53 -0
  37. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-02-structured-technical-plan-contract-and-repair-flow/slice.json +85 -0
  38. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-03-active-slice-reconciliation-and-ai-inspect/CLOSURE_BRIEF.md +34 -0
  39. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-03-active-slice-reconciliation-and-ai-inspect/EXECUTION_BRIEF.md +52 -0
  40. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-03-active-slice-reconciliation-and-ai-inspect/slice.json +82 -0
  41. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-04-spec-validation-scope-and-worktree-reliability/CLOSURE_BRIEF.md +32 -0
  42. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-04-spec-validation-scope-and-worktree-reliability/EXECUTION_BRIEF.md +55 -0
  43. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-04-spec-validation-scope-and-worktree-reliability/slice.json +85 -0
  44. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-05-review-plan-closure-and-agent-dx/CLOSURE_BRIEF.md +35 -0
  45. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-05-review-plan-closure-and-agent-dx/EXECUTION_BRIEF.md +59 -0
  46. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-05-review-plan-closure-and-agent-dx/slice.json +94 -0
  47. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-06-backward-compatibility-docs-and-release-readiness/CLOSURE_BRIEF.md +40 -0
  48. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-06-backward-compatibility-docs-and-release-readiness/EXECUTION_BRIEF.md +56 -0
  49. package/specs/quiver-v28-pixel-quiver-feedback-reconciliation/slices/slice-06-backward-compatibility-docs-and-release-readiness/slice.json +98 -0
  50. package/specs/quiver-v29-planner-prepare-context-cli-ux/EVIDENCE_REPORT.md +163 -0
  51. package/specs/quiver-v29-planner-prepare-context-cli-ux/EXECUTION_PLAN.md +72 -0
  52. package/specs/quiver-v29-planner-prepare-context-cli-ux/SPEC.md +173 -0
  53. package/specs/quiver-v29-planner-prepare-context-cli-ux/STATUS.md +34 -0
  54. package/specs/quiver-v29-planner-prepare-context-cli-ux/pr.md +95 -0
  55. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/CLOSURE_BRIEF.md +32 -0
  56. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/EXECUTION_BRIEF.md +45 -0
  57. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/slice.json +58 -0
  58. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/CLOSURE_BRIEF.md +33 -0
  59. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/EXECUTION_BRIEF.md +49 -0
  60. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/slice.json +75 -0
  61. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/CLOSURE_BRIEF.md +32 -0
  62. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/EXECUTION_BRIEF.md +47 -0
  63. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/slice.json +71 -0
  64. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/CLOSURE_BRIEF.md +33 -0
  65. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/EXECUTION_BRIEF.md +52 -0
  66. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/slice.json +82 -0
  67. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/CLOSURE_BRIEF.md +34 -0
  68. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/EXECUTION_BRIEF.md +46 -0
  69. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/slice.json +73 -0
  70. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/CLOSURE_BRIEF.md +34 -0
  71. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/EXECUTION_BRIEF.md +46 -0
  72. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/slice.json +83 -0
  73. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/CLOSURE_BRIEF.md +31 -0
  74. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/EXECUTION_BRIEF.md +50 -0
  75. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/slice.json +95 -0
  76. package/src/create-quiver/commands/ai.js +938 -16
  77. package/src/create-quiver/commands/spec.js +74 -2
  78. package/src/create-quiver/index.js +91 -5
  79. package/src/create-quiver/lib/ai/context-packs.js +2 -2
  80. package/src/create-quiver/lib/ai/context-proposal.js +389 -0
  81. package/src/create-quiver/lib/ai/context-proposal.schema.js +31 -0
  82. package/src/create-quiver/lib/ai/export-state.js +52 -5
  83. package/src/create-quiver/lib/ai/github.js +14 -2
  84. package/src/create-quiver/lib/ai/plan-review.js +159 -0
  85. package/src/create-quiver/lib/ai/run-state.js +17 -2
  86. package/src/create-quiver/lib/ai/spec-generator.js +15 -0
  87. package/src/create-quiver/lib/cli/editor.js +118 -0
  88. package/src/create-quiver/lib/cli/theme.js +100 -0
  89. package/src/create-quiver/lib/cli/ux-flags.js +151 -0
  90. package/src/create-quiver/lib/cli/ux.js +130 -0
  91. package/src/create-quiver/lib/project-state-resolver.js +195 -1
  92. package/src/create-quiver/lib/spec-worktrees.js +50 -2
@@ -0,0 +1,311 @@
1
+ # Flujo completo de IA: de requerimiento a PR
2
+
3
+ Esta guía cubre el flujo completo de Quiver desde un requerimiento hasta un pull request abierto.
4
+
5
+ Ejecutá los comandos desde la raíz del proyecto.
6
+
7
+ ## 1. Confirmar estado del proyecto
8
+
9
+ ```bash
10
+ git status -sb
11
+ npx --yes create-quiver@latest flow
12
+ npx --yes create-quiver@latest doctor
13
+ ```
14
+
15
+ Qué hace:
16
+
17
+ - revisa el estado local de Git;
18
+ - le pide a Quiver el próximo paso seguro;
19
+ - valida el contrato del proyecto.
20
+
21
+ ## 2. Crear un archivo de requerimiento
22
+
23
+ ```bash
24
+ mkdir -p requirements
25
+ $EDITOR requirements/mi-requerimiento.md
26
+ ```
27
+
28
+ Qué hace:
29
+
30
+ - crea una entrada durable para el planner;
31
+ - evita perder el requerimiento en el historial del chat.
32
+
33
+ ## 3. Crear una ejecución de IA
34
+
35
+ ```bash
36
+ npx --yes create-quiver@latest ai run create --input requirements/mi-requerimiento.md
37
+ npx --yes create-quiver@latest ai status
38
+ ```
39
+
40
+ Qué hace:
41
+
42
+ - crea estado persistente en `.quiver/runs/`;
43
+ - muestra la fase actual y el próximo comando seguro.
44
+
45
+ ## 4. Generar criterios de aceptación
46
+
47
+ ```bash
48
+ npx --yes create-quiver@latest ai plan --phase acceptance --input requirements/mi-requerimiento.md --dry-run
49
+ npx --yes create-quiver@latest ai plan --phase acceptance --input requirements/mi-requerimiento.md
50
+ ```
51
+
52
+ Si querés revisar y confirmar el borrador antes de guardarlo:
53
+
54
+ ```bash
55
+ npx --yes create-quiver@latest ai plan --phase acceptance --input requirements/mi-requerimiento.md --review --interactive
56
+ ```
57
+
58
+ Qué hace:
59
+
60
+ - previsualiza la invocación al proveedor;
61
+ - le pide al planner un borrador de criterios de aceptación.
62
+
63
+ Revisar borradores:
64
+
65
+ ```bash
66
+ npx --yes create-quiver@latest ai approvals
67
+ ```
68
+
69
+ Aprobar una versión:
70
+
71
+ ```bash
72
+ npx --yes create-quiver@latest ai approve --phase acceptance --version <n>
73
+ ```
74
+
75
+ Qué hace:
76
+
77
+ - guarda los criterios aprobados como entrada para el plan técnico.
78
+
79
+ ## 5. Iterar criterios cuando haga falta
80
+
81
+ ```bash
82
+ npx --yes create-quiver@latest ai revise --phase acceptance --input feedback.md --dry-run
83
+ npx --yes create-quiver@latest ai revise --phase acceptance --input feedback.md
84
+ ```
85
+
86
+ Qué hace:
87
+
88
+ - crea un nuevo borrador sin aprobarlo automáticamente;
89
+ - mantiene explícita la compuerta de aprobación humana.
90
+
91
+ ## 6. Generar el plan técnico
92
+
93
+ ```bash
94
+ npx --yes create-quiver@latest ai plan --phase technical-plan --dry-run
95
+ npx --yes create-quiver@latest ai plan --phase technical-plan
96
+ ```
97
+
98
+ Si querés editar el borrador antes de guardarlo:
99
+
100
+ ```bash
101
+ npx --yes create-quiver@latest ai plan --phase technical-plan --review --interactive
102
+ ```
103
+
104
+ Qué hace:
105
+
106
+ - genera un plan técnico desde los criterios aprobados;
107
+ - exige información estructurada de slices para poder crear specs después.
108
+
109
+ ## 7. Revisar el plan técnico
110
+
111
+ ```bash
112
+ npx --yes create-quiver@latest ai review-plan --dry-run
113
+ npx --yes create-quiver@latest ai review-plan
114
+ ```
115
+
116
+ Qué hace:
117
+
118
+ - revisa el plan como si fuera a implementarse y probarse en producción;
119
+ - guarda metadata de revisión con recomendación `approve`, `approve-with-risk` o `revise`;
120
+ - bloquea la aprobación cuando hay fixes requeridos.
121
+
122
+ Aprobar un plan revisado:
123
+
124
+ ```bash
125
+ npx --yes create-quiver@latest ai approve --phase technical-plan --version <n>
126
+ ```
127
+
128
+ ## 8. Crear el paquete de spec
129
+
130
+ ```bash
131
+ npx --yes create-quiver@latest spec create --dry-run
132
+ npx --yes create-quiver@latest spec create
133
+ ```
134
+
135
+ Si querés revisar el paquete antes de escribirlo:
136
+
137
+ ```bash
138
+ npx --yes create-quiver@latest spec create --review --interactive
139
+ ```
140
+
141
+ Qué hace:
142
+
143
+ - crea `SPEC.md`;
144
+ - crea el `slice-00` obligatorio;
145
+ - crea slices de implementación;
146
+ - crea `EXECUTION_BRIEF.md` y `CLOSURE_BRIEF.md`;
147
+ - crea el plan de ejecución y `pr.md`.
148
+
149
+ Validarlo:
150
+
151
+ ```bash
152
+ npx --yes create-quiver@latest spec validate specs/<spec-slug> --strict
153
+ ```
154
+
155
+ ## 9. Crear o reutilizar el worktree de la spec
156
+
157
+ ```bash
158
+ npx --yes create-quiver@latest spec start specs/<spec-slug> --dry-run
159
+ npx --yes create-quiver@latest spec start specs/<spec-slug>
160
+ ```
161
+
162
+ Qué hace:
163
+
164
+ - prepara la rama y el worktree dedicados a esta spec;
165
+ - mantiene una spec aislada de otros trabajos.
166
+
167
+ ## 10. Inspeccionar el orden de slices
168
+
169
+ ```bash
170
+ npx --yes create-quiver@latest plan --spec <spec-slug>
171
+ npx --yes create-quiver@latest graph --spec <spec-slug>
172
+ npx --yes create-quiver@latest next --all-ready --spec <spec-slug>
173
+ ```
174
+
175
+ Qué hace:
176
+
177
+ - muestra el orden de ejecución;
178
+ - muestra dependencias;
179
+ - lista slices listos para ejecutar.
180
+
181
+ ## 11. Ejecutar slices manualmente
182
+
183
+ Generá un prompt para un agente ejecutor de menor costo:
184
+
185
+ ```bash
186
+ npx --yes create-quiver@latest ai prompt-slice --slice specs/<spec-slug>/slices/<slice-id>/slice.json --dry-run
187
+ ```
188
+
189
+ Qué hace:
190
+
191
+ - imprime el contexto mínimo que necesita el ejecutor;
192
+ - evita enviar la spec completa salvo que sea necesario.
193
+
194
+ ## 12. Ejecutar un slice con Quiver
195
+
196
+ ```bash
197
+ npx --yes create-quiver@latest ai execute-slice --slice specs/<spec-slug>/slices/<slice-id>/slice.json --commit --dry-run
198
+ npx --yes create-quiver@latest ai execute-slice --slice specs/<spec-slug>/slices/<slice-id>/slice.json --commit
199
+ ```
200
+
201
+ Qué hace:
202
+
203
+ - ejecuta el slice con el ejecutor configurado;
204
+ - valida rama y worktree;
205
+ - valida archivos modificados contra el alcance del slice;
206
+ - corre comandos de validación declarados;
207
+ - actualiza cierre, evidencia, estado y `slice.json`;
208
+ - crea un commit para el slice.
209
+
210
+ ## 13. Ejecutar slices por olas
211
+
212
+ Modo manual:
213
+
214
+ ```bash
215
+ npx --yes create-quiver@latest ai execute-plan --dry-run --commit --mode manual
216
+ ```
217
+
218
+ Qué hace:
219
+
220
+ - imprime prompts de slices en orden de ejecución;
221
+ - no llama proveedores.
222
+
223
+ Modo delegado:
224
+
225
+ ```bash
226
+ npx --yes create-quiver@latest ai execute-plan --dry-run --commit --mode delegated
227
+ npx --yes create-quiver@latest ai execute-plan --execute --commit --mode delegated
228
+ ```
229
+
230
+ Qué hace:
231
+
232
+ - previsualiza o ejecuta slices delegados;
233
+ - usa worktrees temporales para slices paralelizables;
234
+ - vuelve a ejecución secuencial cuando el alcance no es seguro.
235
+
236
+ ## 14. Validar antes del PR
237
+
238
+ ```bash
239
+ npx --yes create-quiver@latest spec validate specs/<spec-slug> --strict
240
+ npx --yes create-quiver@latest next --all-ready --spec <spec-slug>
241
+ git diff --check
242
+ ```
243
+
244
+ Qué hace:
245
+
246
+ - confirma que el paquete de spec esté completo;
247
+ - confirma que no queden slices listos sin ejecutar;
248
+ - revisa whitespace.
249
+
250
+ También corré validaciones propias del proyecto:
251
+
252
+ ```bash
253
+ npm test
254
+ npm run build
255
+ npm run lint
256
+ ```
257
+
258
+ Usá solo los scripts que existan en el proyecto.
259
+
260
+ ## 15. Previsualizar creación del PR
261
+
262
+ ```bash
263
+ npx --yes create-quiver@latest ai pr \
264
+ --review \
265
+ --dry-run \
266
+ --input specs/<spec-slug>/pr.md \
267
+ --ssh-host-alias github-personal \
268
+ --identity-file ~/.ssh/github-personal
269
+ ```
270
+
271
+ Qué hace:
272
+
273
+ - valida `gh`;
274
+ - valida autenticación de GitHub;
275
+ - valida alias SSH y archivo de identidad;
276
+ - verifica que exista el cuerpo del PR;
277
+ - no crea el PR.
278
+
279
+ Adaptá `--identity-file` a la ruta real de tu máquina, por ejemplo `~/ssh/github-personal`, `~/.ssh/github-personal` o una ruta de Windows.
280
+
281
+ ## 16. Crear el pull request
282
+
283
+ ```bash
284
+ npx --yes create-quiver@latest ai pr \
285
+ --create \
286
+ --interactive \
287
+ --input specs/<spec-slug>/pr.md \
288
+ --ssh-host-alias github-personal \
289
+ --identity-file ~/.ssh/github-personal
290
+ ```
291
+
292
+ Qué hace:
293
+
294
+ - abre el PR usando `gh`;
295
+ - usa el cuerpo generado en `pr.md`;
296
+ - bloquea la creación si todavía quedan slices abiertos.
297
+
298
+ ## 17. Después del merge
299
+
300
+ ```bash
301
+ npx --yes create-quiver@latest spec close specs/<spec-slug> --dry-run
302
+ npx --yes create-quiver@latest spec close specs/<spec-slug>
303
+ git switch main
304
+ git pull --ff-only origin main
305
+ ```
306
+
307
+ Qué hace:
308
+
309
+ - previsualiza y luego cierra el worktree de la spec;
310
+ - vuelve al checkout principal;
311
+ - trae localmente el resultado mergeado.
@@ -0,0 +1,102 @@
1
+ # Flujo para proyecto con Quiver anterior
2
+
3
+ Usá este flujo cuando el proyecto ya tiene archivos de Quiver creados por una versión anterior.
4
+
5
+ ## 1. Entrar al proyecto
6
+
7
+ ```bash
8
+ cd /ruta/al/proyecto
9
+ git status -sb
10
+ ```
11
+
12
+ Qué hace:
13
+
14
+ - revisa la rama actual y los cambios pendientes.
15
+
16
+ ## 2. Ejecutar doctor
17
+
18
+ ```bash
19
+ npx --yes create-quiver@latest doctor
20
+ ```
21
+
22
+ Qué hace:
23
+
24
+ - detecta si el proyecto está inicializado, incompleto, legacy, híbrido o sano.
25
+
26
+ ## 3. Previsualizar migración
27
+
28
+ ```bash
29
+ npx --yes create-quiver@latest migrate --dry-run
30
+ ```
31
+
32
+ Qué hace:
33
+
34
+ - muestra qué actualizaría Quiver;
35
+ - evita escribir archivos.
36
+
37
+ ## 4. Aplicar migración
38
+
39
+ ```bash
40
+ npx --yes create-quiver@latest migrate
41
+ ```
42
+
43
+ Qué hace:
44
+
45
+ - actualiza documentación y estado interno de Quiver;
46
+ - preserva archivos existentes del proyecto;
47
+ - mantiene la migración lo más aditiva posible.
48
+
49
+ Usá esta variante si no querés instalar dependencias:
50
+
51
+ ```bash
52
+ npx --yes create-quiver@latest migrate --skip-install
53
+ ```
54
+
55
+ ## 5. Reconstruir contexto del proyecto
56
+
57
+ ```bash
58
+ npx --yes create-quiver@latest analyze
59
+ npx --yes create-quiver@latest doctor
60
+ ```
61
+
62
+ Qué hace:
63
+
64
+ - refresca `docs/PROJECT_MAP.md`;
65
+ - confirma que la estructura migrada esté sana.
66
+
67
+ ## 6. Preparar contexto para IA
68
+
69
+ ```bash
70
+ npx --yes create-quiver@latest ai prepare-context --dry-run
71
+ npx --yes create-quiver@latest ai prepare-context
72
+ ```
73
+
74
+ Modo asistido por planner, útil cuando el contexto anterior quedó desactualizado:
75
+
76
+ ```bash
77
+ npx --yes create-quiver@latest ai prepare-context --with-planner --dry-run
78
+ npx --yes create-quiver@latest ai prepare-context --with-planner --review --interactive
79
+ ```
80
+
81
+ Qué hace:
82
+
83
+ - actualiza contexto de onboarding de forma segura;
84
+ - reporta supuestos y contradicciones.
85
+
86
+ ## 7. Commit de migración
87
+
88
+ ```bash
89
+ git status -sb
90
+ git add AGENTS.md docs .quiver .gitignore package.json package-lock.json
91
+ git commit -m "docs: migrate quiver workflow"
92
+ ```
93
+
94
+ Qué hace:
95
+
96
+ - crea una base estable antes de empezar specs nuevas.
97
+
98
+ Ajustá los paths según lo que haya informado la migración.
99
+
100
+ Siguiente paso:
101
+
102
+ - [Ejecutar el flujo completo de spec a PR con IA](./full-ai-spec-to-pr.md)
@@ -0,0 +1,76 @@
1
+ # Flujo para proyecto nuevo
2
+
3
+ Usá este flujo cuando el repositorio todavía no existe o la carpeta está vacía.
4
+
5
+ ## 1. Crear la carpeta del proyecto
6
+
7
+ ```bash
8
+ mkdir mi-proyecto
9
+ cd mi-proyecto
10
+ git init
11
+ ```
12
+
13
+ Qué hace:
14
+
15
+ - crea una carpeta para el proyecto;
16
+ - inicializa Git para que Quiver pueda razonar sobre cambios y worktrees.
17
+
18
+ ## 2. Inicializar Quiver
19
+
20
+ ```bash
21
+ npx --yes create-quiver@latest init --name "Mi Proyecto"
22
+ ```
23
+
24
+ Qué hace:
25
+
26
+ - crea el contrato visible de Quiver;
27
+ - crea el estado interno en `.quiver/`;
28
+ - agrega scripts `quiver:*` cuando existe o se crea `package.json`.
29
+
30
+ ## 3. Revisar el próximo paso
31
+
32
+ ```bash
33
+ npx --yes create-quiver@latest flow
34
+ ```
35
+
36
+ Qué hace:
37
+
38
+ - muestra el estado actual del workflow;
39
+ - recomienda el próximo comando seguro.
40
+
41
+ ## 4. Analizar y validar
42
+
43
+ ```bash
44
+ npx --yes create-quiver@latest analyze
45
+ npx --yes create-quiver@latest doctor
46
+ ```
47
+
48
+ Qué hace:
49
+
50
+ - crea o actualiza `docs/PROJECT_MAP.md`;
51
+ - refresca el contexto para IA;
52
+ - valida que el contrato de Quiver esté sano.
53
+
54
+ ## 5. Preparar contexto para IA
55
+
56
+ ```bash
57
+ npx --yes create-quiver@latest ai prepare-context --dry-run
58
+ npx --yes create-quiver@latest ai prepare-context
59
+ ```
60
+
61
+ Modo asistido por planner, si querés que una IA proponga el contexto:
62
+
63
+ ```bash
64
+ npx --yes create-quiver@latest ai prepare-context --with-planner --dry-run
65
+ npx --yes create-quiver@latest ai prepare-context --with-planner --review --interactive
66
+ ```
67
+
68
+ Qué hace:
69
+
70
+ - previsualiza cambios documentales de onboarding;
71
+ - escribe la documentación de contexto después de revisar;
72
+ - evita cambios en código de producto.
73
+
74
+ Siguiente paso:
75
+
76
+ - [Ejecutar el flujo completo de spec a PR con IA](./full-ai-spec-to-pr.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-quiver",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "private": false,
5
5
  "description": "Quiver CLI for scaffolding projects from the packaged template",
6
6
  "license": "MIT",
@@ -49,5 +49,9 @@
49
49
  "smoke:tiered-pack": "bash scripts/ci/smoke-tiered-pack.sh",
50
50
  "smoke:guided-workflow": "bash scripts/ci/smoke-guided-workflow.sh",
51
51
  "release:quiver": "bash scripts/release-quiver.sh"
52
+ },
53
+ "dependencies": {
54
+ "@clack/prompts": "^1.4.0",
55
+ "zod": "^4.4.3"
52
56
  }
53
57
  }
@@ -0,0 +1,117 @@
1
+ # Coverage Matrix - Quiver v28 Pixel Quiver Feedback Reconciliation
2
+
3
+ `slice-00` completed the evidence freeze on 2026-05-25. This matrix replaces the initial planning hypothesis and is the execution contract for the remaining slices.
4
+
5
+ Status meanings used during this spec:
6
+
7
+ - `verified-resolved`: current repo evidence shows enough code, test, or doc coverage; no v28 implementation should repeat it.
8
+ - `partial`: current repo covers part of the issue, but Pixel Quiver evidence still exposes a gap or missing regression guard.
9
+ - `pending`: no sufficient current coverage was found; implement in the mapped v28 slice.
10
+ - `duplicate`: tracked through another finding.
11
+ - `documented-risk`: not fixed in this slice; must remain visible until closure.
12
+ - `out-of-scope-with-reason`: intentionally excluded from v28 with a reason.
13
+
14
+ ## Frozen Inputs
15
+
16
+ | Source | Unique IDs | SHA-256 | Modified |
17
+ |---|---:|---|---|
18
+ | Pixel Quiver `QUIVER_PROBLEMS.md` | `QP-001` to `QP-028` | `516d8928af437fc3d20cacfe50fb78752954eb59b6dace6860cdda820aa6701d` | 2026-05-25 03:29:24 -03 |
19
+ | Pixel Quiver `QUIVER_IMPROVEMENT_SUGGESTIONS.md` | `QIS-001` to `QIS-031` | `43c4bfbef68fc8343b7f905f299c53716b55abcace415c9ce1088aa53ac12949` | 2026-05-25 03:29:39 -03 |
20
+ | Pixel Quiver `QUIVER_FRAMEWORK_IMPROVEMENTS.md` | narrative sections only | `7a4eb66a996fc44cce80df4907a948fbef3e780a5f8fc856a6bdc2b0bd1f1ea3` | 2026-05-25 03:29:53 -03 |
21
+
22
+ ## Problem Coverage
23
+
24
+ | Finding | Status | Primary slice | Evidence | Required action |
25
+ |---|---|---|---|---|
26
+ | QP-001 | verified-resolved | slice-00 | v27 matrix maps flow freshness to slice-07; `tests/commands/flow.test.js`; `src/create-quiver/commands/flow.js`. | Do not reimplement. |
27
+ | QP-002 | fixed | slice-05 | v27 path handling remains, and help/docs now include non-interactive `npx --yes create-quiver@<version>` examples for agents. | Completed in slice-05. |
28
+ | QP-003 | fixed | slice-03 | `collectLifecycleExport` now includes active-slice state, uses shared resolver data, and `ai inspect` next steps reconcile existing specs before suggesting stale creation. Covered by `tests/lib/ai-export-state.test.js` and `tests/commands/ai-export.test.js`. | Completed in slice-03. |
29
+ | QP-004 | fixed | slice-05 | GitHub install/auth/alias guidance now includes account/scope/alias diagnosis plus macOS, Linux, Windows PowerShell, Git Bash, and WSL recovery copy. Covered by `tests/lib/ai-github.test.js`. | Completed in slice-05. |
30
+ | QP-005 | verified-resolved | slice-00 | v27 matrix maps React/Vite analyzer detection to slice-07; `tests/commands/analyze.test.js`; `tests/fixtures/validation-errors/matrix.json`. | Do not reimplement unless a new failing fixture appears. |
31
+ | QP-006 | verified-resolved | slice-00 | v27 matrix maps evidence-backed `prepare-context` to slice-07; `README_FOR_AI.md`; `docs/PROJECT_MAP.md` contract in templates. | Do not reimplement. |
32
+ | QP-007 | verified-resolved | slice-00 | v27 matrix maps agent docs gaps to slice-07/slice-08; generated templates include current docs instead of missing `docs/ai/QUICK.md` style paths. | Do not reimplement. |
33
+ | QP-008 | verified-resolved | slice-00 | v27 status is 100%; v27 evidence says source-of-truth docs were synchronized; `README_FOR_AI.md` documents v27 coverage. | Do not reimplement. |
34
+ | QP-009 | verified-resolved | slice-00 | `src/create-quiver/lib/ai/artifacts.js`; `tests/commands/ai-plan.test.js`; v27 slice-04 closure covers revise compaction. | Do not reimplement. |
35
+ | QP-010 | fixed | slice-01 | `src/create-quiver/commands/ai.js`; `tests/commands/ai-plan.test.js` covers clean console output without prompt echo/stderr logs while raw artifacts remain persisted. | Completed in slice-01. |
36
+ | QP-011 | fixed | slice-02 | `ai plan --phase technical-plan` prompts for the required `spec.slices[]` contract; `ai approve --phase technical-plan` blocks invalid drafts before writing approved artifacts; `spec create` still fails before writes for legacy invalid approvals. | Completed in slice-02. |
37
+ | QP-012 | verified-resolved | slice-00 | `tests/lib/ai-spec-generator.test.js` covers fail-before-writing and no build remnants. | Do not reimplement. |
38
+ | QP-013 | fixed | slice-01 | `ai status` reports multiple open runs; `ai run close --run <id>` archives stale runs without deleting evidence; covered by `tests/commands/ai-run-state.test.js`. | Completed in slice-01. |
39
+ | QP-014 | fixed | slice-01 | Provider-backed `ai onboard`, `ai plan`, and `ai review-plan` print clean output on success; raw output is only printed on provider failure. Covered by focused `ai plan` test. | Completed in slice-01. |
40
+ | QP-015 | fixed | slice-01 | `ai approvals` now separates run-scoped approvals, active run, global planner approvals, and run relation (`active`, `historical`, `orphaned`, `none`). | Completed in slice-01. |
41
+ | QP-016 | fixed | slice-03 | Added active-source detection for `docs/ai/ACTIVE_SLICE.md` and `ACTIVE_SLICES.md`, conflict detection, and `ai active-slice reconcile --dry-run`. Covered by resolver and CLI tests. | Completed in slice-03. |
42
+ | QP-017 | fixed | slice-05 | `ai review-plan` now stores structured `review_result` metadata with approval recommendation, blocking status, required fixes, optional hardening, risks, and next command. | Completed in slice-05. |
43
+ | QP-018 | fixed | slice-05 | Stale technical-plan review approval errors now recommend dry-run review followed by live review, and blocking review results surface the exact next command. | Completed in slice-05. |
44
+ | QP-019 | fixed | slice-05 | Review closure now distinguishes `approve`, `approve-with-risk`, and `revise`, with required fixes blocking approval and optional hardening remaining non-blocking. | Completed in slice-05. |
45
+ | QP-020 | fixed | slice-03 | `collectActiveSliceState` defines supported sources and canonical dry-run decisions: `preserve`, `close`, `replace`, and `blocked`. | Completed in slice-03. |
46
+ | QP-021 | fixed | slice-05 | Review metadata separates `required_fixes` from `optional_hardening`, and approval checks block only revise/blocking results. | Completed in slice-05. |
47
+ | QP-022 | fixed | slice-03 | Added `npx create-quiver ai active-slice status|reconcile`; `reconcile` is dry-run-first and refuses live writes. | Completed in slice-03. |
48
+ | QP-023 | fixed | slice-02 | Technical-plan approval now validates that the selected draft can generate a spec package before approving it. | Completed in slice-02. |
49
+ | QP-024 | fixed | slice-02 | Added `ai repair-plan` to create a provider-backed derived structured draft from a legacy approved invalid technical plan while preserving the original approved artifact. | Completed in slice-02. |
50
+ | QP-025 | fixed | slice-04 | `spec validate` now rejects slices missing execution git metadata required by `check-slice --local`; covered by `tests/commands/spec-validate.test.js`. | Completed in slice-04. |
51
+ | QP-026 | fixed | slice-04 | `spec status` now reports expected worktree paths that exist but are not registered in `git worktree list` as missing/stale; covered by `tests/commands/spec-worktree.test.js`. | Completed in slice-04. |
52
+ | QP-027 | fixed | slice-04 | `spec start --dry-run` dirty checkout failures now list dirty files and safe recovery options; covered by `tests/commands/spec-worktree.test.js`. | Completed in slice-04. |
53
+ | QP-028 | fixed | slice-03 | `ai inspect` detects existing specs when an active run still points at `spec create --dry-run` and now suggests `spec validate`, `next --all-ready`, and `ai prompt-slice`. | Completed in slice-03. |
54
+
55
+ ## Suggestion Coverage
56
+
57
+ | Finding | Status | Primary slice | Evidence | Required action |
58
+ |---|---|---|---|---|
59
+ | QIS-001 | verified-resolved | slice-00 | v27 flow source/freshness coverage; `tests/commands/flow.test.js`. | Do not reimplement. |
60
+ | QIS-002 | fixed | slice-05 | Agent examples now include `npx --yes create-quiver@<version>` and existing shell-safe copy remains covered. | Completed in slice-05. |
61
+ | QIS-003 | fixed | slice-04 | `spec validate` now catches missing execution git metadata before users reach local slice execution. | Completed in slice-04. |
62
+ | QIS-004 | verified-resolved | slice-00 | `src/create-quiver/lib/ai/export-state.js` exposes schema v2 dashboard data. | Do not reimplement unless schema gaps appear. |
63
+ | QIS-005 | fixed | slice-05 | Executor context pack guidance now explicitly limits agents to `slice.json`, `EXECUTION_BRIEF`, `CLOSURE_BRIEF`, allowed files, acceptance criteria, and validation commands; docs include non-interactive prompt-slice examples. | Completed in slice-05. |
64
+ | QIS-006 | fixed | slice-03 | `ai inspect`, `ai export`, active-slice status, spec listing, and slice listing share resolver-backed lifecycle export data. | Completed in slice-03. |
65
+ | QIS-007 | verified-resolved | slice-00 | v27 analyzer coverage and fixtures. | Do not reimplement. |
66
+ | QIS-008 | verified-resolved | slice-00 | v27 context evidence coverage and source-backed docs contract. | Do not reimplement. |
67
+ | QIS-009 | fixed | slice-05 | GitHub preflight guidance now includes shell-specific `gh` installation and SSH alias setup/verification copy. | Completed in slice-05. |
68
+ | QIS-010 | verified-resolved | slice-00 | v27 agent docs/template cleanup. | Do not reimplement. |
69
+ | QIS-011 | verified-resolved | slice-00 | `tests/commands/ai-agent.test.js` covers `ai agent set --dry-run`. | Do not reimplement. |
70
+ | QIS-012 | verified-resolved | slice-00 | v27 artifact compaction tests and `src/create-quiver/lib/ai/artifacts.js`. | Do not reimplement. |
71
+ | QIS-013 | fixed | slice-01 | Clean/raw persistence remains, and console output no longer emits provider transcript/logs on successful planner commands. | Completed in slice-01. |
72
+ | QIS-014 | fixed | slice-02 | Structured technical-plan output is now required in planner prompts and enforced before technical-plan approval/spec creation. | Completed in slice-02. |
73
+ | QIS-015 | fixed | slice-02 | Existing generator regressions continue to cover slug/title normalization, collision refusal, multi-slice preservation, and structured markdown extraction while the shared contract validator was added. | Completed in slice-02. |
74
+ | QIS-016 | fixed | slice-01 | `ai status` exposes other open runs and `ai run close --run <id>` provides a safe archive path. | Completed in slice-01. |
75
+ | QIS-017 | fixed | slice-01 | Successful provider-backed planner commands print clean output only; raw logs remain stored/redacted. | Completed in slice-01. |
76
+ | QIS-018 | fixed | slice-01 | `ai approvals` groups active/historical run-scoped approvals separately from global approval files. | Completed in slice-01. |
77
+ | QIS-019 | fixed | slice-03 | Added `ai active-slice status|reconcile` with multi-source reporting and dry-run output. | Completed in slice-03. |
78
+ | QIS-020 | fixed | slice-05 | `summarizePlanReview` now reports approval recommendation, blocking status, required fixes, optional hardening, and next command. | Completed in slice-05. |
79
+ | QIS-021 | fixed | slice-05 | `meta.json` stores machine-readable `review_result` data for downstream agents and gates. | Completed in slice-05. |
80
+ | QIS-022 | fixed | slice-03 | Added canonical multi-source active-slice reconciliation from active doc plus root board. | Completed in slice-03. |
81
+ | QIS-023 | fixed | slice-05 | CLI help, README, README_FOR_AI, and generated command docs now include `npx --yes create-quiver@<version>` guidance for agent-pasted commands. | Completed in slice-05. |
82
+ | QIS-024 | fixed | slice-05 | Review close threshold is now `approve`, `approve-with-risk`, or `revise`; `revise` and blocking required fixes prevent technical-plan approval. | Completed in slice-05. |
83
+ | QIS-025 | fixed | slice-03 | `ai active-slice reconcile --dry-run` reports supported sources, detected sources, planned changes, risks, and no-write guarantee. | Completed in slice-03. |
84
+ | QIS-026 | fixed | slice-02 | Missing `spec.slices[]` is now caught before approval and before spec creation. | Completed in slice-02. |
85
+ | QIS-027 | fixed | slice-02 | `ai repair-plan` provides a traceable repair path for approved legacy plans missing structure. | Completed in slice-02. |
86
+ | QIS-028 | fixed | slice-04 | `spec validate` enforces local execution metadata parity with focused regression coverage. | Completed in slice-04. |
87
+ | QIS-029 | fixed | slice-04 | `spec status` detects unregistered expected worktree directories and reports them as stale. | Completed in slice-04. |
88
+ | QIS-030 | fixed | slice-04 | Dirty checkout recovery now includes blocking files and safe options. | Completed in slice-04. |
89
+ | QIS-031 | fixed | slice-03 | `collectNextSteps` now prefers existing-spec recovery commands over stale lifecycle `spec create` guidance. | Completed in slice-03. |
90
+
91
+ ## Framework Improvement Sections
92
+
93
+ | Area from Pixel Quiver improvement file | Status | Primary slice | Evidence | Required action |
94
+ |---|---|---|---|---|
95
+ | Intent/spec selection before a spec exists | fixed | slice-03 | `ai inspect` now reconciles existing specs and ready slices before suggesting another spec creation path. | Completed in slice-03 without adding a separate intent system. |
96
+ | Local vs latest Quiver version visibility | documented-risk | slice-06 | README now states the package remains `0.13.0` and v28 changes are unreleased until future publication; package smoke ran against the local package artifact without claiming npm publish. | Future work: consider `status --versions`. |
97
+ | Standard names for improvement files | documented-risk | slice-06 | v28 preserved the three Pixel Quiver evidence files as explicit source inputs and frozen hashes in this matrix/evidence report. | Future work: document accepted feedback filenames and aliases. |
98
+ | Graph conflicts summary | out-of-scope-with-reason | slice-06 | Useful but not required for the AI lifecycle failures in v28. | Record as future graph UX work. |
99
+ | Visual validation command | out-of-scope-with-reason | slice-06 | Valuable for frontend projects, but would require browser tooling and a larger product decision. | Record as future visual evidence feature. |
100
+ | Active run management | fixed | slice-01 | `ai status` surfaces multiple open runs; `ai run close --run <id>` closes stale runs while preserving `.quiver/runs/<id>`. | Completed in slice-01. |
101
+ | Clean AI output | fixed | slice-01 | Successful provider-backed planner commands now print clean extracted output instead of raw stdout/stderr. | Completed in slice-01. |
102
+ | Active slice reconciliation | fixed | slice-03 | Matches QP-016/QP-020/QIS-019/QIS-022/QIS-025; implemented through resolver state and `ai active-slice` CLI. | Completed in slice-03. |
103
+ | Structured plan/spec create | fixed | slice-02 | Matches QP-011, QP-023, QP-024, QIS-014, QIS-015, QIS-026, and QIS-027; validated by approval, repair, spec-create, and generator tests. | Completed in slice-02. |
104
+ | Worktree and validation hardening | fixed | slice-04 | Matches QP-025 to QP-027 and QIS-028 to QIS-030; validated by spec validation, worktree, check-slice, scope, and path tests. | Completed in slice-04. |
105
+ | Review-plan closure | fixed | slice-05 | Matches QP-017/QP-019/QP-021 and QIS-020/QIS-021/QIS-024; implemented with structured review metadata and approval gating. | Completed in slice-05. |
106
+ | Agent-safe `npx --yes create-quiver@<version>` examples | fixed | slice-05 | Matches QIS-023 and Pixel command log; help/docs now include non-interactive pinned examples for agents. | Completed in slice-05. |
107
+ | GitHub auth/alias guidance | fixed | slice-05 | Matches QP-004/QIS-009; guidance and tests cover gh install/auth plus SSH alias setup across supported shells. | Completed in slice-05. |
108
+ | Package contents safety | fixed | slice-06 | `npm pack --dry-run` first showed `Quiver_Spec_Viewer_requisitos.pdf` would be included. `.npmignore` now excludes `*.pdf`, and the follow-up JSON dry-run confirmed no PDF files in the package. | Completed in slice-06. |
109
+
110
+ ## Execution Decisions
111
+
112
+ - `slice-01` and `slice-04` are completed after `slice-00`.
113
+ - `slice-02`, `slice-03`, and `slice-04` are completed after `slice-01`.
114
+ - `slice-05` is completed after `slice-01`; `slice-06` owns final compatibility, docs sync, smoke, and release readiness.
115
+ - Graph conflict summaries and visual validation commands are kept as documented future work, not v28 blocking implementation.
116
+ - No product code was modified by `slice-00`.
117
+ - `slice-06` did not publish npm or open a PR; it only established source and package-readiness evidence.