@hopla/claude-setup 1.2.0 → 1.2.2
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.
|
@@ -194,21 +194,32 @@ The MVP is working when:
|
|
|
194
194
|
- [on-demand context doc] — [what it contains]
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
## Step 5: Save Draft and
|
|
197
|
+
## Step 5: Save Draft and Enter Review Loop
|
|
198
198
|
|
|
199
199
|
Do NOT show the full PRD in the chat. Instead:
|
|
200
200
|
|
|
201
201
|
1. Save the draft to `PRD.draft.md` at the project root
|
|
202
202
|
2. Save any on-demand context documents created in Step 3 (also with `.draft` suffix if new)
|
|
203
203
|
3. Tell the user:
|
|
204
|
-
> "Draft saved to `PRD.draft.md` — open it in your editor
|
|
204
|
+
> "Draft saved to `PRD.draft.md` — open it in your editor. You can add `<!-- TODO: your note -->` comments anywhere in the file and tell me 'apply comments', request changes in chat, or say 'looks good' to finalize."
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
**Review loop:** Stay in this loop until the user finalizes:
|
|
207
|
+
|
|
208
|
+
- If the user says **"apply comments"** (or similar) → scan `PRD.draft.md` for `<!-- TODO: ... -->` comments, apply each one, remove the comment tags, update the file, then list what was changed: "Applied 3 changes: [list]. Anything else, or ready to finalize?"
|
|
209
|
+
- If the user requests changes in chat → apply them directly to `PRD.draft.md`, then say: "Updated — anything else, or ready to finalize?"
|
|
210
|
+
- If the user says the draft is ready (e.g. "looks good", "finalize", "listo") → proceed to Step 6
|
|
211
|
+
|
|
212
|
+
**Comment format the user can add directly in the draft:**
|
|
213
|
+
```
|
|
214
|
+
<!-- TODO: your instruction here -->
|
|
215
|
+
```
|
|
216
|
+
Comments can be placed anywhere in the file — inline after a line, or on their own line above a section. Process them in order from top to bottom.
|
|
217
|
+
|
|
218
|
+
Do not ask clarifying questions about changes — just apply them and confirm what was changed.
|
|
207
219
|
|
|
208
220
|
## Step 6: Finalize
|
|
209
221
|
|
|
210
|
-
Once the user approves:
|
|
211
222
|
1. Rename `PRD.draft.md` → `PRD.md` (overwrite if it existed)
|
|
212
223
|
2. Rename any `.draft` context documents to their final names
|
|
213
|
-
3. Delete
|
|
214
|
-
4. Confirm: "PRD.md saved. Run `/hopla-commit` to save it to the repository."
|
|
224
|
+
3. Delete all `.draft` files
|
|
225
|
+
4. Confirm: "✅ `PRD.md` saved. Run `/hopla-commit` to save it to the repository."
|