{"data":{"slug":"discovered-e664e093a1f55af71085b772b02ee601f6b37abdecdfdee6","title":"Preview before publish","summary":"Show the human the site on their own machine first, and record their approval in their own words before any publish plan is shown.","url":"https:\/\/skillshunter.net\/skills\/discovered-e664e093a1f55af71085b772b02ee601f6b37abdecdfdee6","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-e664e093a1f55af71085b772b02ee601f6b37abdecdfdee6","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-e664e093a1f55af71085b772b02ee601f6b37abdecdfdee6.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-e664e093a1f55af71085b772b02ee601f6b37abdecdfdee6\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Start the preview by running `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/preview.mjs\" start --project \"<dir>\"` from the project folder. Ensure the human reviews the site on their machine, checking phone width, keyboard navigation, dark mode, each page, and the main action.","instructions":"---\nname: preview\ndescription: Show the human the site on their own machine first, and record their approval in their own words before any publish plan is shown.\ndisable-model-invocation: false\n---\n# Preview before publish\n\nNothing is published until the human has looked at the site and said yes. `hosting.mjs deploy-plan` refuses until the approval is VALID.\n\n1. Start the preview (`<dir>` is the project folder):\n   `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/preview.mjs\" start --project \"<dir>\"`\n   It serves the site folder on 127.0.0.1 only (this machine) and prints a URL.\n2. If a built-in browser exists, open the URL in it. Otherwise give the human the URL.\n3. Tell the human what to look at: phone width, keyboard Tab through the page, dark mode, each page, and the main action (the button or form the site exists for).\n4. Ask: \"Happy with it? Say yes to see the publish plan, or tell me what to change.\"\n5. Only after an explicit yes in the human's own words, record it, passing their words exactly:\n   `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/preview.mjs\" approve --project \"<dir>\" --by \"<their name>\" --quote \"<their words>\"`\n   Never approve on your own, never write a quote for them, never reuse an earlier yes. An empty quote is refused.\n6. If they ask for changes, make them, then start again from step 1.\n7. Tell the human: editing any file in the site makes the approval STALE, and the publish plan will be refused until they approve again.\n\nCheck state any time: `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/preview.mjs\" status --project \"<dir>\"` prints VALID, STALE or NONE.\n","use_cases":["Local site preview for user validation","Pre-publish quality assurance check","User acceptance testing for web projects"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevPatel128\/lilac-plugin\/blob\/7e77aadbd31442412fba6856e43e4a2d8b781a6d\/skills\/preview\/SKILL.md","source_commit":"7e77aadbd31442412fba6856e43e4a2d8b781a6d","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:58:27.000000Z","updated_at":"2026-11-29T10:54:05.000000Z","seo_title":"Preview before publish","seo_description":"Ensure human approval of a site before publishing by previewing it locally and recording their approval.","seo_keywords":["preview before publish","local site preview","user validation","web quality assurance","pre-publish check"]}}