@hopla/claude-setup 1.1.8 → 1.2.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.
@@ -1,8 +1,10 @@
1
1
  ---
2
- description: Create a Product Requirements Document (PRD) for a project through guided questions
2
+ description: Create or update the PRD for this project through guided questions
3
3
  ---
4
4
 
5
- Create a PRD for this project following the Layer 1 Planning approach: an exploratory conversation that defines scope, reduces assumptions, and generates both a `PRD.md` and supporting on-demand context documents.
5
+ Create or update a `PRD.md` for this project following the Layer 1 Planning approach: an exploratory conversation that defines scope, reduces assumptions, and generates both a `PRD.md` and supporting on-demand context documents.
6
+
7
+ **If a `PRD.md` already exists**, this command will read it first and only ask about what's missing, outdated, or changing — it will not start from scratch.
6
8
 
7
9
  > Layer 1 Planning = Global Rules + On-Demand Context + PRD
8
10
 
@@ -11,7 +13,9 @@ Create a PRD for this project following the Layer 1 Planning approach: an explor
11
13
  Before asking anything, read what already exists:
12
14
  - `CLAUDE.md` or `AGENTS.md` — extract product name, tech stack, business context
13
15
  - `README.md` — extract any existing product description
14
- - Any existing `PRD.md` — understand what's already defined
16
+ - Any existing `PRD.md` — understand what's already defined and what needs updating
17
+
18
+ If a `PRD.md` exists, tell the user: "I found an existing PRD. I'll update it rather than start from scratch — only asking about what's missing or has changed."
15
19
 
16
20
  Use this to avoid asking questions that are already answered.
17
21
 
@@ -106,7 +110,7 @@ These become **on-demand context** referenced from the PRD and used in future pl
106
110
 
107
111
  ## Step 4: Generate the PRD
108
112
 
109
- Save to `PRD.md` at the project root. Use this structure:
113
+ Write the full PRD content in memory using this structure (it will be saved as a draft in Step 5):
110
114
 
111
115
  ```markdown
112
116
  # PRD — [Product Name]
@@ -190,13 +194,21 @@ The MVP is working when:
190
194
  - [on-demand context doc] — [what it contains]
191
195
  ```
192
196
 
193
- ## Step 5: Confirm and Save
197
+ ## Step 5: Save Draft and Wait for Approval
198
+
199
+ Do NOT show the full PRD in the chat. Instead:
200
+
201
+ 1. Save the draft to `PRD.draft.md` at the project root
202
+ 2. Save any on-demand context documents created in Step 3 (also with `.draft` suffix if new)
203
+ 3. Tell the user:
204
+ > "Draft saved to `PRD.draft.md` — open it in your editor, make any changes you want, and let me know when it's ready to finalize."
205
+
206
+ Wait for explicit approval before continuing.
194
207
 
195
- Show the draft PRD to the user and ask:
196
- > "Does this accurately reflect the product? Any corrections before I save it?"
208
+ ## Step 6: Finalize
197
209
 
198
- Once confirmed:
199
- 1. Save `PRD.md` to the project root
200
- 2. Save any on-demand context documents created in Step 3
201
- 3. List all files created
202
- 4. Suggest running `/hopla-commit` to save everything to the repository
210
+ Once the user approves:
211
+ 1. Rename `PRD.draft.md` `PRD.md` (overwrite if it existed)
212
+ 2. Rename any `.draft` context documents to their final names
213
+ 3. Delete the `.draft` files
214
+ 4. Confirm: "PRD.md saved. Run `/hopla-commit` to save it to the repository."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hopla/claude-setup",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "Hopla team agentic coding system for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {