ship-create 1.6.5 → 1.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ship-create",
3
- "version": "1.6.5",
3
+ "version": "1.7.1",
4
4
  "description": "Scaffold a new project the SHIP Method way — Structure, Human Flow, Instruction, Publish. No git clone, no API key, just one command.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,32 +9,79 @@ description: Use when starting any new product, feature, or "build me an app" re
9
9
  S — STRUCTURE → H — HUMAN FLOW → I — INSTRUCTION → P — PUBLISH
10
10
  ```
11
11
 
12
- ## When `/build` is invoked do this immediately, in this order
12
+ ## Phase 1 Build (runs automatically on first open, no prompts)
13
13
 
14
- **Do not create a task list. Do not plan. Act.**
14
+ **Do not ask anything. Do not show a menu. Just build.**
15
15
 
16
- ### 1. Read (no output, no tasks)
17
- Silently read `docs/PROJECT.md` and `docs/HUMAN_FLOW.md`. Check **Section 9 Technical Decisions** for `UI language` — if Thai (ภาษาไทย), switch to Thai for all output from this point forward. The idea is already in Section 10 (Original Idea) and Section 1 (Product Vision) — do not ask the user to describe it again. Proceed directly to Step 2.
16
+ ### Step 1 Read & decide (silent, no output)
17
+ Read `docs/PROJECT.md` and `docs/HUMAN_FLOW.md`. Extract:
18
+ - Product type, idea, target user, problem, value prop (already filled by `ship-create`)
19
+ - UI language from Section 9 — switch language now, use it for everything after this
20
+ - Auto-select the best theme from `theme-guide.md` for this product type — do not ask, just pick
18
21
 
19
- ### 2. Theme first visible output
20
- Present 2–3 theme options (palette name + font, one line each). Wait for the user to pick. Apply the chosen theme to `app/globals.css` and `app/layout.tsx`. Record in `docs/DESIGN_SYSTEM.md`. **This is the first thing the user sees it must happen before any feature code.**
22
+ ### Step 2 — Build docs + flow diagram
23
+ Write `docs/AI_BUILD_SPEC.md` immediately functional requirements for the 2–3 core MVP features + data model. Keep it tight, 1 page max.
21
24
 
22
- ### 3. Home screen second visible output
23
- Read `HUMAN_FLOW.md`. Replace `app/page.tsx` with the real entry point for this product. The user should be able to run `npm run dev` and see their product, not the starter template.
25
+ Then generate `docs/FLOW.md` a Mermaid flowchart of the full user journey from `HUMAN_FLOW.md`. Include every screen, decision point, happy path, and key error/empty states. Format:
24
26
 
25
- ### 4. Ask one question
26
- *"Which feature do you want to build first?"* Then build just that one.
27
+ ```markdown
28
+ # User Flow
29
+
30
+ > แก้ได้โดยตรงในไฟล์นี้ — เปิด Preview ใน VS Code (Cmd+Shift+P → "Mermaid Preview") หรือวางใน https://mermaid.live
31
+
32
+ ```mermaid
33
+ flowchart TD
34
+ ...
35
+ ```
36
+ ```
37
+
38
+ Rules for the diagram:
39
+ - Use `([text])` for entry/exit points (stadium shape)
40
+ - Use `[text]` for screens/pages
41
+ - Use `{text}` for decision points
42
+ - Use `-->|label|` for conditional paths
43
+ - Show the happy path left-to-right or top-to-bottom
44
+ - Keep node labels short (3–5 words max)
45
+
46
+ ### Step 3 — Build prototype
47
+ Apply the chosen theme to `app/globals.css` and `app/layout.tsx`. Replace `app/page.tsx` with the real home screen based on `HUMAN_FLOW.md`. Build the first 1–2 screens that matter most for this product type. Record the theme choice in `docs/DESIGN_SYSTEM.md`.
48
+
49
+ ### Step 4 — Run
50
+ Run `npm run dev` (or `pnpm dev` if pnpm is available). Confirm the app compiles and is accessible at localhost:3000.
51
+
52
+ ### Step 5 — Show & ask one question
53
+ Tell the user (in the correct language):
54
+ - What was built and why (2–3 sentences max)
55
+ - Which theme was chosen and why (1 sentence)
56
+ - Where to see the flow diagram: `docs/FLOW.md` (เปิด Preview ใน VS Code หรือ https://mermaid.live)
57
+ - "เปิด localhost:3000 ดูได้เลย — ชอบทิศทางนี้ไหม?" (Thai) or "Open localhost:3000 — does this feel right?" (English)
58
+
59
+ **That's Phase 1. Wait for the user's answer before doing anything else.**
27
60
 
28
61
  ---
29
62
 
30
- **That's the entire flow.** Steps 1–3 are one session. Features are added one at a time after that.
63
+ ## Phase 2 Review (after user responds)
64
+
65
+ **If the user likes it:**
66
+ Enter ship review mode — ask which feature to build next, then build one at a time. After each feature, ask again. Track progress in `docs/AI_BUILD_SPEC.md`.
67
+
68
+ **If the user wants changes:**
69
+ Ask one focused question: "What feels off?" Make the adjustment, re-run, show again. Do not rebuild everything — change only what they point to.
70
+
71
+ **When the product feels complete to the user:**
72
+ Run through `docs/QA_CHECKLIST.md` silently. Report only what's missing or broken, not what passes. Then guide them to `/ship` for launch prep.
73
+
74
+ ---
31
75
 
32
76
  ## Hard rules
33
77
 
34
- - **No task list at start.** Create tasks only when building a specific feature, and only 1–2 at a time.
35
- - **No spec before theme.** `docs/AI_BUILD_SPEC.md` is written after the home screen exists, not before.
36
- - **No gates that block visible output.** The only thing that can pause the flow is a missing answer to a direct question.
37
- - **If the user says "skip docs":** comply. Say once what's skipped. Never repeat.
78
+ - **No task list, ever.** Build directly tasks are invisible internal steps, not output.
79
+ - **No questions before the prototype exists.** The only interaction before Step 5 is code being written.
80
+ - **Theme is chosen by the agent, not the user** pick the best fit from `theme-guide.md` and explain briefly after.
81
+ - **Run the app before showing results.** Never say "done" without confirming it compiles.
82
+ - **One question at a time.** Never give a list of options or ask multiple things at once.
83
+
84
+ ---
38
85
 
39
86
  ## Reference files
40
87
 
@@ -42,7 +89,9 @@ Read `HUMAN_FLOW.md`. Replace `app/page.tsx` with the real entry point for this
42
89
  |---|---|
43
90
  | Vision, audience, MVP | `docs/PROJECT.md` |
44
91
  | User flow, screens | `docs/HUMAN_FLOW.md` |
45
- | Functional spec | `docs/AI_BUILD_SPEC.md` (written after home screen) |
92
+ | Visual flow diagram (Mermaid) | `docs/FLOW.md` |
93
+ | Functional spec | `docs/AI_BUILD_SPEC.md` |
46
94
  | Stack choices | `docs/tech-stack/STACK_DECISION_MATRIX.md` |
47
95
  | UI guidance | invoke `ui-ux-pro-max` skill |
48
96
  | Theme palette table | `theme-guide.md` (this skill folder) |
97
+ | QA before ship | `docs/QA_CHECKLIST.md` |
@@ -51,13 +51,14 @@ All docs live under `docs/`:
51
51
 
52
52
  6. **Never invent business facts** (market size, pricing, real metrics, real user quotes). Draft clearly-labeled `[TBD: ...]` placeholders or ask the user.
53
53
 
54
- 7. **When `/build` is invoked: act immediately, no planning, no task list.**
55
- - **First:** read `docs/PROJECT.md` + `docs/HUMAN_FLOW.md` silently. If empty, ask one question: *"Describe your idea in one sentence."* Fill docs, then continue.
56
- - **Second:** propose 2–3 theme options (one line each), let the user pick, apply to `app/globals.css` + `app/layout.tsx`. This is the first visible output.
57
- - **Third:** replace `app/page.tsx` with the real home screen from `HUMAN_FLOW.md`. User runs `npm run dev` and sees their product.
58
- - **Then:** ask "which feature first?" and build just that one.
59
- - **No task list at start.** No spec before theme. No gate that blocks visible output.
60
- - See `.claude/skills/ship-method/theme-guide.md` for product-typepalette reference.
54
+ 7. **On first open (no `docs/AI_BUILD_SPEC.md` yet): build autonomously, no questions.**
55
+ - Read PROJECT.md + HUMAN_FLOW.md silently. The idea is already there do not ask again.
56
+ - Auto-pick the best theme from `theme-guide.md` for this product type. Do not ask the user to choose.
57
+ - Write `docs/AI_BUILD_SPEC.md` (tight, 1 page), apply theme, build home screen + first screens.
58
+ - Run `npm run dev` and confirm the app compiles.
59
+ - Then tell the user what was built and ask ONE question: "ชอบทิศทางนี้ไหม?" / "Does this feel right?"
60
+ - **After they answer:** if yes → build features one at a time. If noask "what feels off?" and adjust.
61
+ - **No task list. No menu. No options. Build first, show second, ask third.**
61
62
 
62
63
  ## Quick Orientation for a New Agent Session
63
64
 
@@ -51,13 +51,14 @@ All docs live under `docs/`:
51
51
 
52
52
  6. **Never invent business facts** (market size, pricing, real metrics, real user quotes). Draft clearly-labeled `[TBD: ...]` placeholders or ask the user.
53
53
 
54
- 7. **When `/build` is invoked: act immediately, no planning, no task list.**
55
- - **First:** read `docs/PROJECT.md` + `docs/HUMAN_FLOW.md` silently. If empty, ask one question: *"Describe your idea in one sentence."* Fill docs, then continue.
56
- - **Second:** propose 2–3 theme options (one line each), let the user pick, apply to `app/globals.css` + `app/layout.tsx`. This is the first visible output.
57
- - **Third:** replace `app/page.tsx` with the real home screen from `HUMAN_FLOW.md`. User runs `npm run dev` and sees their product.
58
- - **Then:** ask "which feature first?" and build just that one.
59
- - **No task list at start.** No spec before theme. No gate that blocks visible output.
60
- - See `.claude/skills/ship-method/theme-guide.md` for product-typepalette reference.
54
+ 7. **On first open (no `docs/AI_BUILD_SPEC.md` yet): build autonomously, no questions.**
55
+ - Read PROJECT.md + HUMAN_FLOW.md silently. The idea is already there do not ask again.
56
+ - Auto-pick the best theme from `theme-guide.md` for this product type. Do not ask the user to choose.
57
+ - Write `docs/AI_BUILD_SPEC.md` (tight, 1 page), apply theme, build home screen + first screens.
58
+ - Run `npm run dev` and confirm the app compiles.
59
+ - Then tell the user what was built and ask ONE question: "ชอบทิศทางนี้ไหม?" / "Does this feel right?"
60
+ - **After they answer:** if yes → build features one at a time. If noask "what feels off?" and adjust.
61
+ - **No task list. No menu. No options. Build first, show second, ask third.**
61
62
 
62
63
  ## Quick Orientation for a New Agent Session
63
64
 
@@ -51,13 +51,14 @@ All docs live under `docs/`:
51
51
 
52
52
  6. **Never invent business facts** (market size, pricing, real metrics, real user quotes). Draft clearly-labeled `[TBD: ...]` placeholders or ask the user.
53
53
 
54
- 7. **When `/build` is invoked: act immediately, no planning, no task list.**
55
- - **First:** read `docs/PROJECT.md` + `docs/HUMAN_FLOW.md` silently. If empty, ask one question: *"Describe your idea in one sentence."* Fill docs, then continue.
56
- - **Second:** propose 2–3 theme options (one line each), let the user pick, apply to `app/globals.css` + `app/layout.tsx`. This is the first visible output.
57
- - **Third:** replace `app/page.tsx` with the real home screen from `HUMAN_FLOW.md`. User runs `npm run dev` and sees their product.
58
- - **Then:** ask "which feature first?" and build just that one.
59
- - **No task list at start.** No spec before theme. No gate that blocks visible output.
60
- - See `.claude/skills/ship-method/theme-guide.md` for product-typepalette reference.
54
+ 7. **On first open (no `docs/AI_BUILD_SPEC.md` yet): build autonomously, no questions.**
55
+ - Read PROJECT.md + HUMAN_FLOW.md silently. The idea is already there do not ask again.
56
+ - Auto-pick the best theme from `theme-guide.md` for this product type. Do not ask the user to choose.
57
+ - Write `docs/AI_BUILD_SPEC.md` (tight, 1 page), apply theme, build home screen + first screens.
58
+ - Run `npm run dev` and confirm the app compiles.
59
+ - Then tell the user what was built and ask ONE question: "ชอบทิศทางนี้ไหม?" / "Does this feel right?"
60
+ - **After they answer:** if yes → build features one at a time. If noask "what feels off?" and adjust.
61
+ - **No task list. No menu. No options. Build first, show second, ask third.**
61
62
 
62
63
  ## Quick Orientation for a New Agent Session
63
64
 
@@ -51,13 +51,14 @@ All docs live under `docs/`:
51
51
 
52
52
  6. **Never invent business facts** (market size, pricing, real metrics, real user quotes). Draft clearly-labeled `[TBD: ...]` placeholders or ask the user.
53
53
 
54
- 7. **When `/build` is invoked: act immediately, no planning, no task list.**
55
- - **First:** read `docs/PROJECT.md` + `docs/HUMAN_FLOW.md` silently. If empty, ask one question: *"Describe your idea in one sentence."* Fill docs, then continue.
56
- - **Second:** propose 2–3 theme options (one line each), let the user pick, apply to `app/globals.css` + `app/layout.tsx`. This is the first visible output.
57
- - **Third:** replace `app/page.tsx` with the real home screen from `HUMAN_FLOW.md`. User runs `npm run dev` and sees their product.
58
- - **Then:** ask "which feature first?" and build just that one.
59
- - **No task list at start.** No spec before theme. No gate that blocks visible output.
60
- - See `.claude/skills/ship-method/theme-guide.md` for product-typepalette reference.
54
+ 7. **On first open (no `docs/AI_BUILD_SPEC.md` yet): build autonomously, no questions.**
55
+ - Read PROJECT.md + HUMAN_FLOW.md silently. The idea is already there do not ask again.
56
+ - Auto-pick the best theme from `theme-guide.md` for this product type. Do not ask the user to choose.
57
+ - Write `docs/AI_BUILD_SPEC.md` (tight, 1 page), apply theme, build home screen + first screens.
58
+ - Run `npm run dev` and confirm the app compiles.
59
+ - Then tell the user what was built and ask ONE question: "ชอบทิศทางนี้ไหม?" / "Does this feel right?"
60
+ - **After they answer:** if yes → build features one at a time. If noask "what feels off?" and adjust.
61
+ - **No task list. No menu. No options. Build first, show second, ask third.**
61
62
 
62
63
  ## Quick Orientation for a New Agent Session
63
64