@oaklandzoo/ostup 0.4.0 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaklandzoo/ostup",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Scaffolds a new repo with the Ostup Agent Kit pre-installed: slash commands, doc templates, and a clean working state.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/templates.mjs CHANGED
@@ -28,6 +28,9 @@ export const REGISTRY = [
28
28
  { src: '.claude/commands/add-storage.md', dest: '.claude/commands/add-storage.md' },
29
29
  { src: '.claude/commands/generate-image-prompt.md', dest: '.claude/commands/generate-image-prompt.md' },
30
30
  { src: '.claude/commands/generate-image.md', dest: '.claude/commands/generate-image.md' },
31
+ { src: '.claude/commands/resume.md', dest: '.claude/commands/resume.md' },
32
+ { src: '.claude/commands/handoff-doctor.md', dest: '.claude/commands/handoff-doctor.md' },
33
+ { src: '.claude/commands/break-into-stories.md', dest: '.claude/commands/break-into-stories.md' },
31
34
  { src: 'CLAUDE.md', dest: 'CLAUDE.md' },
32
35
  { src: 'AGENTS.md', dest: 'AGENTS.md' },
33
36
  { src: 'START_HERE.md', dest: 'START_HERE.md' },
@@ -39,6 +42,7 @@ export const REGISTRY = [
39
42
  { src: 'tasks/.gitkeep', dest: 'tasks/.gitkeep' },
40
43
  { src: 'inputs/README.md', dest: 'inputs/README.md' },
41
44
  { src: 'scripts/screenshot.sh', dest: 'scripts/screenshot.sh', executable: true },
45
+ { src: 'scripts/verify.sh', dest: 'scripts/verify.sh', executable: true },
42
46
  ];
43
47
 
44
48
  export const OPTIONAL_REGISTRY = [
@@ -0,0 +1,101 @@
1
+ ---
2
+ description: Break a PRD into vertical stories (each story is independently shippable) before generating granular tasks. Sits between /create-prd and /generate-tasks. Borrowed pattern from BMAD; kept light.
3
+ ---
4
+
5
+ # /break-into-stories
6
+
7
+ A PRD is a description. Tasks are atoms. **Stories are the missing middle layer.** A story is a small vertical slice that can be shipped on its own and feels meaningful to the operator on a deployed URL.
8
+
9
+ Use this command after `/create-prd` and before `/generate-tasks`. It produces `tasks/stories-<feature>.md` with 3-7 stories.
10
+
11
+ ## Step 1: locate the PRD
12
+
13
+ ```bash
14
+ ls tasks/prd-*.md
15
+ ```
16
+
17
+ If the operator named a feature (e.g. `/break-into-stories user-auth`), use `tasks/prd-user-auth.md`.
18
+
19
+ If no name: ask the operator which PRD.
20
+
21
+ ## Step 2: read the PRD + the brief
22
+
23
+ ```bash
24
+ cat tasks/prd-<feature>.md
25
+ [ -f docs/brief.md ] && head -80 docs/brief.md
26
+ ```
27
+
28
+ ## Step 3: derive stories
29
+
30
+ For each story, fill this shape:
31
+
32
+ ```markdown
33
+ ## Story <N>: <one-line goal>
34
+
35
+ **Why this is a story:** <one sentence on why this is a meaningful vertical slice>
36
+
37
+ **User journey:** <2-3 sentences describing what the operator or end user does>
38
+
39
+ **Acceptance:**
40
+ - <observable behavior 1>
41
+ - <observable behavior 2>
42
+
43
+ **Deployable check:** <one sentence on what you can show on the live URL after this story ships>
44
+
45
+ **Out of scope for this story:** <bullets of things explicitly NOT in this story; they belong to other stories>
46
+ ```
47
+
48
+ ### Rules for cutting stories
49
+
50
+ 1. **Vertical, not horizontal.** A story crosses UI + API + data if needed. It does NOT say "build the API for X" as a story; that is a task.
51
+ 2. **Shippable.** Each story can be merged + deployed and produces an observable change on the live URL.
52
+ 3. **Small.** 30 minutes to 2 hours of agent work each. If a story feels bigger, split it.
53
+ 4. **Independent where possible.** Story 2 should not require Story 1's completion unless there is a hard dependency (then state it).
54
+ 5. **Acceptance is observable.** "Visitor can click X and see Y" not "The reducer handles X."
55
+ 6. **3 to 7 stories per PRD.** More than 7 means the PRD is too big; less than 3 means you do not need stories, just tasks.
56
+
57
+ ## Step 4: write `tasks/stories-<feature>.md`
58
+
59
+ ```markdown
60
+ # Stories: <feature>
61
+
62
+ > Source PRD: `tasks/prd-<feature>.md`
63
+ > Generated by `/break-into-stories` on <YYYY-MM-DD>.
64
+ > Each story is independently shippable.
65
+
66
+ ## Story order (recommended)
67
+
68
+ 1. Story 1 — <goal>
69
+ 2. Story 2 — <goal>
70
+ 3. ...
71
+
72
+ ## Stories
73
+
74
+ <the N stories from Step 3>
75
+
76
+ ## Dependencies
77
+
78
+ <if any: "Story 3 depends on Story 1 because ..." else "All stories are independent.">
79
+
80
+ ## Next step
81
+
82
+ For the first story, run `/generate-tasks` referencing `Story 1` to break it into atoms. Implement, deploy, verify, then move to the next story.
83
+ ```
84
+
85
+ ## Step 5: report
86
+
87
+ ```
88
+ Stories generated: tasks/stories-<feature>.md (N stories)
89
+
90
+ Recommended first story: Story 1 — <goal>
91
+ Estimated agent work: <30 min | 1 hr | 2 hr>
92
+
93
+ Next: /generate-tasks for Story 1, then implement.
94
+ ```
95
+
96
+ ## Hard rules
97
+
98
+ - Stories never cross PRDs. One PRD → one stories file.
99
+ - Each story's acceptance criteria must be observable from the live URL after deploy, or via a `curl` probe (for backend stories).
100
+ - If a story has no deployable check, it is not a story; it is a task. Roll it into another story.
101
+ - Mark dependencies explicitly. Do not pretend stories are independent when one needs another's API.
@@ -0,0 +1,93 @@
1
+ ---
2
+ description: Audit HANDOFF.md against actual repo state. Flags stale claims, missing follow-throughs, and orphan files not mentioned anywhere. Read-only; surfaces a punch list for /prompt-end to fix.
3
+ ---
4
+
5
+ # /handoff-doctor
6
+
7
+ HANDOFF.md should reflect repo reality. When it does not, agents (including you) make decisions based on lies. This command catches lies before they cause work loss.
8
+
9
+ ## Step 1: probe
10
+
11
+ ```bash
12
+ echo "=== HANDOFF claims ==="
13
+ grep -E "^(\*\*Status:\*\*|\*\*Branch:\*\*|\*\*Working tree:\*\*|\*\*Last session ended:\*\*)" HANDOFF.md | head -8
14
+
15
+ echo ""
16
+ echo "=== Repo reality ==="
17
+ echo "Branch: $(git branch --show-current)"
18
+ echo "Last commit: $(git log -1 --oneline)"
19
+ echo "Ahead of origin: $(git rev-list --count origin/$(git branch --show-current)..HEAD 2>/dev/null || echo 'no upstream')"
20
+ echo "Behind origin: $(git rev-list --count HEAD..origin/$(git branch --show-current) 2>/dev/null || echo 'no upstream')"
21
+ echo "Working tree:"
22
+ git status --short
23
+
24
+ echo ""
25
+ echo "=== Files HANDOFF claims were touched ==="
26
+ grep -E "^\s*-\s*\`[^\`]+\`" HANDOFF.md | head -20
27
+
28
+ echo ""
29
+ echo "=== Files actually changed in last 5 commits ==="
30
+ git log --name-only --oneline -5 | grep -v "^[0-9a-f]\{7\}" | sort -u | head -30
31
+
32
+ echo ""
33
+ echo "=== Tasks mentioned in HANDOFF ==="
34
+ grep -E "tasks/|prd-|\.md" HANDOFF.md | head -10
35
+
36
+ echo ""
37
+ echo "=== Tasks actually in tasks/ ==="
38
+ ls tasks/ 2>/dev/null
39
+
40
+ echo ""
41
+ echo "=== Manual blockers claimed ==="
42
+ [ -f docs/MANUAL_TASKS.md ] && grep -c "^\s*-\s*\[ \]" docs/MANUAL_TASKS.md
43
+ ```
44
+
45
+ ## Step 2: diagnose
46
+
47
+ Audit each of these axes. For each finding, state CLAIM vs ACTUAL.
48
+
49
+ 1. **Branch mismatch.** HANDOFF says branch X, git is on branch Y.
50
+ 2. **Push lag.** HANDOFF says "push commit X" but `git log origin/$(git branch --show-current)` already includes X.
51
+ 3. **Working tree drift.** HANDOFF says "clean" but `git status` shows N dirty files.
52
+ 4. **Last-session timestamp.** HANDOFF "Last session ended" is more than 7 days old. Mark as STALE.
53
+ 5. **Orphan tasks.** Files in `tasks/` not referenced by HANDOFF.
54
+ 6. **Phantom files.** HANDOFF references files that do not exist (`ls` them to verify).
55
+ 7. **Phantom commits.** HANDOFF references SHAs not in `git log`.
56
+ 8. **Manual-task drift.** HANDOFF says no blockers but MANUAL_TASKS.md has Active items (or vice versa).
57
+ 9. **Brief drift.** docs/brief.md exists but HANDOFF makes no reference to it; or HANDOFF references a brief that does not exist.
58
+ 10. **Test-pass lie.** HANDOFF says "N/N tests green" — run `npm test` (or similar) and compare.
59
+
60
+ ## Step 3: print findings
61
+
62
+ ```
63
+ HANDOFF DOCTOR REPORT
64
+
65
+ Overall: <CLEAN | NEEDS REWRITE | CRITICAL>
66
+
67
+ Findings:
68
+
69
+ [CRITICAL] <description> Fix: <what to do>
70
+ [STALE] <description> Fix: <what to do>
71
+ [ORPHAN] <description> Fix: <what to do>
72
+ [PHANTOM] <description> Fix: <what to do>
73
+ [CLEAN] No issues on this axis: <axis name>
74
+
75
+ Recommended actions:
76
+ 1. <action>
77
+ 2. <action>
78
+
79
+ Run /prompt-end to rewrite HANDOFF.md with current reality.
80
+ ```
81
+
82
+ ## Hard rules
83
+
84
+ - Read-only. Never modify HANDOFF.md from this command. `/prompt-end` is the writer.
85
+ - Be specific in findings. "HANDOFF says push 9a4708f but it is already at origin/main" is useful. "HANDOFF is wrong" is not.
86
+ - If a finding is borderline (e.g. timestamp 6 days old, threshold is 7), mark it CLEAN with a note rather than STALE.
87
+ - If everything passes, say so. Do not invent issues.
88
+
89
+ ## When to run
90
+
91
+ - Before `/prompt-start` if you suspect HANDOFF is wrong.
92
+ - After a long AFK session before a new agent picks up.
93
+ - Any time HANDOFF claims something that does not match what you just saw in git.
@@ -0,0 +1,102 @@
1
+ ---
2
+ description: Resume an in-progress session by reading git diff, HANDOFF, tasks, and the brief if present. Briefs the agent on actual current state vs claimed state. Use instead of /prompt-start when you suspect HANDOFF.md is stale.
3
+ ---
4
+
5
+ # /resume
6
+
7
+ `/prompt-start` reads HANDOFF and trusts it. `/resume` reads HANDOFF and **verifies it against git reality**. Use when:
8
+
9
+ - You stopped mid-feature and HANDOFF was not rewritten.
10
+ - You came back after several days and are not sure HANDOFF is current.
11
+ - A teammate worked in this repo while you were away.
12
+ - Something feels off about the briefing.
13
+
14
+ ## Step 1: collect ground truth
15
+
16
+ Run all of these in one bash block:
17
+
18
+ ```bash
19
+ echo "=== Git reality ==="
20
+ git status --short
21
+ git log --oneline -10
22
+ git diff --stat HEAD~5..HEAD 2>/dev/null || git diff --stat
23
+
24
+ echo ""
25
+ echo "=== HANDOFF.md (claimed state) ==="
26
+ [ -f HANDOFF.md ] && head -60 HANDOFF.md || echo "no HANDOFF.md"
27
+
28
+ echo ""
29
+ echo "=== Active tasks / PRDs ==="
30
+ ls tasks/ 2>/dev/null
31
+ [ -f tasks/prd-initial-build.md ] && head -30 tasks/prd-initial-build.md
32
+
33
+ echo ""
34
+ echo "=== Brief (if present) ==="
35
+ [ -f docs/brief.md ] && head -40 docs/brief.md || echo "no brief"
36
+
37
+ echo ""
38
+ echo "=== Manual blockers ==="
39
+ [ -f docs/MANUAL_TASKS.md ] && grep -A 2 "## Active" docs/MANUAL_TASKS.md | head -20
40
+ ```
41
+
42
+ ## Step 2: compare claimed vs actual
43
+
44
+ Build a diff in your head between:
45
+
46
+ | Source | Status they show |
47
+ |---|---|
48
+ | HANDOFF.md "What to do next" | What the last session said is queued |
49
+ | `git log` | What actually got committed |
50
+ | `git status` | What is in-flight and uncommitted |
51
+ | `tasks/` PRDs and PRD-seeds | What features are scoped |
52
+ | `docs/brief.md` (if any) | What the project is supposed to be |
53
+
54
+ Flag every mismatch. Examples of mismatches:
55
+
56
+ - HANDOFF says "push commit X" but `git log` shows X is already pushed (HANDOFF is stale; rewrite at session close).
57
+ - HANDOFF lists a "next action" but uncommitted work in `git status` shows that action was started and abandoned.
58
+ - `tasks/prd-foo.md` exists but is not mentioned in HANDOFF (forgotten artifact).
59
+ - Brief says profile is `booking` but the codebase has no booking-related files.
60
+
61
+ ## Step 3: print the resume brief
62
+
63
+ ```
64
+ RESUMED
65
+
66
+ Last commit: <SHA + subject>
67
+ Working tree: <clean | N dirty files: list>
68
+ HANDOFF claim: <one-line status>
69
+ Git reality: <does it match? if not, what's the gap?>
70
+
71
+ In-flight (uncommitted) work:
72
+ <git status summary>
73
+
74
+ What the brief expects (if brief exists):
75
+ <profile + add-ons + must-have sections>
76
+
77
+ Queued from HANDOFF:
78
+ 1. <action>
79
+ 2. <action>
80
+
81
+ Mismatches surfaced:
82
+ - <mismatch 1, or "none">
83
+ - <mismatch 2>
84
+
85
+ Recommended next move:
86
+ <pick one: continue queued action / resolve mismatch / pivot>
87
+ ```
88
+
89
+ ## Step 4: ask before doing
90
+
91
+ ```
92
+ Continue with the recommended next move? Or pivot?
93
+ ```
94
+
95
+ Wait for confirmation. Do NOT modify any files until the operator picks.
96
+
97
+ ## Hard rules
98
+
99
+ - Never silently rewrite HANDOFF to match git. Surface the mismatch; let the operator decide.
100
+ - Never silently amend or rebase to "fix" git history.
101
+ - If `git status` shows uncommitted changes that the operator might not remember making, ask before doing anything that could lose them.
102
+ - This command is read-only by default. The only writes are after the operator confirms the next move.
@@ -27,9 +27,9 @@ Operator materials live in `{{INPUTS_PATH}}`. Read `{{INPUTS_PATH}}README.md` fo
27
27
 
28
28
  ## Slash commands available
29
29
 
30
- Session lifecycle: `/bootstrap`, `/prompt-start`, `/prompt-mid`, `/prompt-end`, `/preflight`
30
+ Session lifecycle: `/bootstrap`, `/prompt-start`, `/prompt-mid`, `/prompt-end`, `/preflight`, `/resume`, `/handoff-doctor`
31
31
 
32
- Building: `/create-prd`, `/generate-tasks`, `/update-image`, `/update-gui`, `/update-backend`, `/add-storage`, `/generate-image-prompt`, `/generate-image`
32
+ Building: `/create-prd`, `/break-into-stories`, `/generate-tasks`, `/update-image`, `/update-gui`, `/update-backend`, `/add-storage`, `/generate-image-prompt`, `/generate-image`
33
33
 
34
34
  See each file under `.claude/commands/` for the full routine.
35
35
 
@@ -42,6 +42,7 @@ See each file under `.claude/commands/` for the full routine.
42
42
  ## Helpers
43
43
 
44
44
  - `scripts/screenshot.sh <url> [out] [WxH]` — headless Chrome screenshot. Required for visual verification per `CLAUDE.md` Part 19.
45
+ - `scripts/verify.sh [profile] [deploy_url]` — profile-aware verification gate. Auto-detects profile from `docs/brief.json` and deploy URL from `.vercel/project.json`. Runs common checks (build, env, live URL) plus profile-specific checks (e.g. `/api/contact` for lead-gen, `/rss.xml` for blog).
45
46
 
46
47
  ## If `docs/brief.md` is present in this project
47
48
 
@@ -63,6 +63,9 @@ Type these in your CLI agent. Each runs a structured routine.
63
63
  | `/add-storage` | Provision a Vercel Blob, KV, Postgres, or Edge Config store + scaffold a typed `src/lib/<type>.ts` helper + pull env vars. | When you need persistent storage. |
64
64
  | `/generate-image-prompt` | Compose an image-generation prompt from the project brief + 2-3 questions. No API call. Paste the prompt into your preferred image tool. | When you need a visual asset and want to use Midjourney, DALL-E, Imagen, etc. directly. |
65
65
  | `/generate-image` | Compose the prompt AND call Vercel AI Gateway, saving the image to `inputs/images/`. Requires `VERCEL_AI_GATEWAY_KEY`. | When you want the image generated in-line without leaving your agent. |
66
+ | `/resume` | Read git diff + HANDOFF + tasks + brief, surface mismatches between claimed and actual state. | When HANDOFF.md feels stale, you came back after several days, or something feels off about the briefing. |
67
+ | `/handoff-doctor` | Audit HANDOFF.md against actual repo reality (commits, working tree, files, tasks, manual blockers). Read-only punch list. | Before `/prompt-start` if you suspect HANDOFF is wrong; after a long AFK session. |
68
+ | `/break-into-stories` | Break a PRD into 3-7 vertical, shippable stories before generating granular tasks. | Between `/create-prd` and `/generate-tasks` for any non-trivial feature. |
66
69
 
67
70
  ## Three workflows
68
71
 
@@ -0,0 +1,128 @@
1
+ #!/usr/bin/env bash
2
+ # Profile-aware verification gate. Runs the right checks for the project's profile.
3
+ # Called after /update-image, /update-gui, /update-backend, or at any time the operator wants to verify.
4
+ #
5
+ # Usage: scripts/verify.sh [profile] [deploy_url]
6
+ # Reads: docs/brief.json (for profile) if no profile arg
7
+ # Defaults: profile=marketing, deploy_url from .vercel/project.json if available
8
+
9
+ set -e
10
+
11
+ PROFILE="${1:-}"
12
+ DEPLOY_URL="${2:-}"
13
+
14
+ # Auto-detect profile from brief.json if not given
15
+ if [ -z "$PROFILE" ] && [ -f docs/brief.json ]; then
16
+ PROFILE=$(python3 -c "import json; print(json.load(open('docs/brief.json'))['scaffold']['profile'])" 2>/dev/null || echo "marketing")
17
+ fi
18
+ PROFILE="${PROFILE:-marketing}"
19
+
20
+ # Auto-detect deploy URL if not given (best-effort; operator may need to pass it)
21
+ if [ -z "$DEPLOY_URL" ]; then
22
+ if [ -f .vercel/project.json ]; then
23
+ PROJECT_NAME=$(python3 -c "import json; print(json.load(open('.vercel/project.json'))['projectName'])" 2>/dev/null || echo "")
24
+ if [ -n "$PROJECT_NAME" ]; then
25
+ DEPLOY_URL="https://${PROJECT_NAME}.vercel.app"
26
+ fi
27
+ fi
28
+ fi
29
+
30
+ echo "=========================================="
31
+ echo " Verifying profile: $PROFILE"
32
+ echo " Deploy URL: ${DEPLOY_URL:-<not detected; pass as arg 2>}"
33
+ echo "=========================================="
34
+
35
+ PASS=0
36
+ FAIL=0
37
+
38
+ check() {
39
+ local desc="$1"
40
+ local cmd="$2"
41
+ echo -n " [$PROFILE] $desc ... "
42
+ if eval "$cmd" > /tmp/verify-out 2>&1; then
43
+ echo "PASS"
44
+ PASS=$((PASS + 1))
45
+ else
46
+ echo "FAIL"
47
+ echo " Output: $(head -3 /tmp/verify-out)"
48
+ FAIL=$((FAIL + 1))
49
+ fi
50
+ }
51
+
52
+ # === Common checks (all profiles) ===
53
+ echo ""
54
+ echo "--- common ---"
55
+ check "build succeeds" "npm run build"
56
+ check ".env.example exists" "[ -f .env.example ]"
57
+ check "no {{TOKEN}} placeholders in CLAUDE.md" "! grep -E '\\{\\{[A-Z_]+\\}\\}' CLAUDE.md || true"
58
+
59
+ if [ -n "$DEPLOY_URL" ]; then
60
+ check "live URL returns 200" "curl -sI '$DEPLOY_URL' | head -1 | grep -E '200|301|302'"
61
+ fi
62
+
63
+ # === Profile-specific checks ===
64
+ case "$PROFILE" in
65
+ lead-gen)
66
+ echo ""
67
+ echo "--- lead-gen ---"
68
+ check "/api/contact route exists" "[ -f src/app/api/contact/route.ts ] || [ -f src/app/api/contact/route.js ] || [ -f app/api/contact/route.ts ]"
69
+ check "JSON-LD LocalBusiness in HTML" "grep -r 'LocalBusiness' src/ 2>/dev/null"
70
+ if [ -n "$DEPLOY_URL" ]; then
71
+ check "POST /api/contact returns 200 or 400" "curl -s -X POST '$DEPLOY_URL/api/contact' -H 'Content-Type: application/json' -d '{\"name\":\"verify\",\"email\":\"verify@example.com\",\"message\":\"verify\"}' -o /dev/null -w '%{http_code}' | grep -E '^(200|400)$'"
72
+ fi
73
+ ;;
74
+ booking)
75
+ echo ""
76
+ echo "--- booking ---"
77
+ check "booking API route exists" "find src/app/api/booking -type f 2>/dev/null | head -1 | grep -q ."
78
+ check "DATABASE_URL referenced in code or env" "grep -r 'DATABASE_URL' src/ .env.example 2>/dev/null | head -1"
79
+ ;;
80
+ saas-dashboard)
81
+ echo ""
82
+ echo "--- saas-dashboard ---"
83
+ check "auth middleware exists" "[ -f src/middleware.ts ] || [ -f src/middleware.js ] || [ -f middleware.ts ]"
84
+ check "/login or /signup page exists" "find src/app -type d \\( -name 'login' -o -name 'signup' -o -name 'auth' \\) 2>/dev/null | head -1 | grep -q ."
85
+ check "/dashboard page exists" "find src/app -type d -name 'dashboard' 2>/dev/null | head -1 | grep -q ."
86
+ if [ -n "$DEPLOY_URL" ]; then
87
+ check "/dashboard redirects unauthenticated" "curl -s -o /dev/null -w '%{http_code}' '$DEPLOY_URL/dashboard' | grep -E '^(301|302|307|401)$'"
88
+ fi
89
+ ;;
90
+ blog)
91
+ echo ""
92
+ echo "--- blog ---"
93
+ check "content/posts/ exists" "[ -d content/posts ] || [ -d src/content/posts ]"
94
+ check "mdx package installed" "grep -q '@next/mdx\\|next-mdx-remote\\|@mdx-js' package.json 2>/dev/null"
95
+ if [ -n "$DEPLOY_URL" ]; then
96
+ check "/rss.xml returns 200" "curl -sI '$DEPLOY_URL/rss.xml' | head -1 | grep -q 200"
97
+ check "/sitemap.xml returns 200" "curl -sI '$DEPLOY_URL/sitemap.xml' | head -1 | grep -q 200"
98
+ fi
99
+ ;;
100
+ marketing|*)
101
+ echo ""
102
+ echo "--- marketing baseline ---"
103
+ if [ -n "$DEPLOY_URL" ]; then
104
+ check "homepage has hero text" "curl -s '$DEPLOY_URL' | grep -iE '<h1' | head -1 | grep -q ."
105
+ fi
106
+ ;;
107
+ esac
108
+
109
+ # === Visual verification reminder ===
110
+ echo ""
111
+ echo "--- visual (per CLAUDE.md Part 19) ---"
112
+ if [ -n "$DEPLOY_URL" ] && [ -x "scripts/screenshot.sh" ]; then
113
+ scripts/screenshot.sh "$DEPLOY_URL" /tmp/verify-screenshot.png 420,900 > /dev/null && \
114
+ echo " Screenshot: /tmp/verify-screenshot.png (READ it to complete Part 19 verification)"
115
+ else
116
+ echo " Skipped (no deploy URL or no scripts/screenshot.sh)"
117
+ fi
118
+
119
+ # === Summary ===
120
+ echo ""
121
+ echo "=========================================="
122
+ echo " Verify summary: PASS=$PASS FAIL=$FAIL"
123
+ echo "=========================================="
124
+
125
+ if [ "$FAIL" -gt 0 ]; then
126
+ exit 1
127
+ fi
128
+ exit 0