diff --git a/plugins/clone-app/skills/clone-app/references/clone-build-spec-template.md b/plugins/clone-app/skills/clone-app/references/clone-build-spec-template.md index a4a2a01..7cdb56d 100644 --- a/plugins/clone-app/skills/clone-app/references/clone-build-spec-template.md +++ b/plugins/clone-app/skills/clone-app/references/clone-build-spec-template.md @@ -15,18 +15,31 @@ scale (fonts + sizes), spacing scale, corner radii, light/dark theme. Note where confidence is med/low and screenshots are the source of truth. ## 3. Screen-by-screen spec -For **each** screen: purpose · layout · components · states (empty/loading/error) -· navigation in/out · matching screenshot (`$WORK/screenshots/NN.png`). +For **each** screen: purpose · layout **component tree** (from native XML) · +components · states (empty/loading/error) · navigation in/out · the screen's +logic (cross-ref `$WORK/logic-digest.md`) · matching screenshot +(`$WORK/screenshots/NN.png`). + +## 3b. User-flow diagrams +Step-by-step flows (onboarding, core loop, payment) from `$WORK/logic-digest.md`: +each step's screen, the action that advances it, and the API call it triggers. ## 4. Navigation map / IA -The full screen graph + entry points. +The full screen graph + entry points, generated from `$WORK/nav-graph.json` +(nodes = screens, edges = transitions + triggers) — not inferred. ## 5. API contract From `$WORK/payloads.json`: per endpoint — host, method, path, auth, request body, response shape, headers. +## 5b. Backend rebuild spec +The from-scratch backend design from `$WORK/backend-recon.md`: per-endpoint +behavior, auth flow, inferred server-side validation. Confidence-stamped — this +is a rebuild target, not recovered server code. + ## 6. Data model -Entities, fields, relationships (from payloads + RE digest). +Entities, fields, relationships from `$WORK/backend-recon.md` (observed vs +inferred, each confidence-stamped). ## 7. Asset inventory Icons, fonts, drawables — extract from `$WORK/output` or recreate. List each. diff --git a/plugins/clone-app/tests/test-references-content.sh b/plugins/clone-app/tests/test-references-content.sh index 96989cf..6fcab40 100755 --- a/plugins/clone-app/tests/test-references-content.sh +++ b/plugins/clone-app/tests/test-references-content.sh @@ -32,5 +32,9 @@ has "$R/backend-recon-guide.md" "confidence" has "$R/re-digest-contract.md" "logic-digest.md" has "$R/re-digest-contract.md" "nav-graph.json" has "$R/re-digest-contract.md" "backend-recon.md" +has "$R/clone-build-spec-template.md" "User-flow diagrams" +has "$R/clone-build-spec-template.md" "Backend rebuild spec" +has "$R/clone-build-spec-template.md" "nav-graph.json" +has "$R/clone-build-spec-template.md" "logic-digest.md" exit $fail