diff --git a/design-html/SKILL.md.tmpl b/design-html/SKILL.md.tmpl index 11eeb0d3a..58d5dd277 100644 --- a/design-html/SKILL.md.tmpl +++ b/design-html/SKILL.md.tmpl @@ -231,8 +231,9 @@ _ROOT=$(git rev-parse --show-toplevel 2>/dev/null) [ -n "$_PRETEXT_VENDOR" ] && echo "VENDOR: $_PRETEXT_VENDOR" || echo "VENDOR_MISSING" ``` -- If `VENDOR` found: read the file and inline it in a `` Add a comment: `` @@ -306,17 +307,20 @@ echo "SERVER: http://localhost:$_PORT/finalized.html" echo "PID: $_SERVER_PID" ``` +Remember the printed `SERVER:` URL and `PID:` value; each bash block is a fresh +shell, so later blocks restate them literally. + If python3 is not available, fall back to: ```bash open ``` -Tell the user: "Live preview running at http://localhost:$_PORT/finalized.html. +Tell the user: "Live preview running at . After each edit, just refresh the browser (Cmd+R) to see changes." When the refinement loop ends (Step 4 exits), kill the server: ```bash -kill $_SERVER_PID 2>/dev/null || true +kill 2>/dev/null || true ``` --- @@ -377,7 +381,7 @@ LOOP: 5. Apply feedback using targeted Edit tool changes on the HTML file (do NOT regenerate the entire file — surgical edits only) - 6. Brief summary of what changed (2-3 lines max) + 6. Briefly say what changed 7. If verification screenshots are available, re-take them to confirm the fix diff --git a/design-html/sections/pretext-patterns.md.tmpl b/design-html/sections/pretext-patterns.md.tmpl index 15d33171c..527443fc1 100644 --- a/design-html/sections/pretext-patterns.md.tmpl +++ b/design-html/sections/pretext-patterns.md.tmpl @@ -5,8 +5,8 @@ Pretext API usage patterns. Follow them exactly. **Pattern 1: Basic height computation (Simple layout, Card/grid)** ```js -import { prepare, layout } from './pretext-inline.js' -// Or if inlined: const { prepare, layout } = window.Pretext +import { prepare, layout } from '@chenglou/pretext' +// Vanilla HTML: omit the import; this code follows the inlined bundle in the same