Preview Server
Starts the Vendors.ie Astro dev server for local preview on port 4321, killing any existing Astro dev server first.
Entry verified April 21, 2026
The short answer
A narrow, Vendors.ie-only skill that handles the awkward bits: kills stray Astro processes, runs npx astro dev on the right port, confirms the server is responding, and reports the URL. If the build errors, it diagnoses and fixes before handing back.
When to use it
Use when starting local work on Vendors.ie and you want a clean dev server without hunting down a port conflict or a ghost Astro process from an earlier session. Pair with /deploy once changes are ready to ship.
Setup
- 1
Save the file as ~/.claude/commands/preview.md.
- 2
Kills existing Astro dev servers with pkill -f "astro dev" before starting.
- 3
Runs cd ~/src/vendors && npx astro dev --port 4321.
- 4
Confirms the server is live by checking http://localhost:4321/ and reports the URL.
- 5
On build errors, the skill diagnoses and fixes them rather than handing back a broken server.
Example
You: /preview Claude: Running npm install (stale node_modules)... Starting dev server on :3001 (3000 in use). Opening browser.
Source & attribution
- Author
- Bryan Collins
- Licence
- MIT (author's own work)
- Type
- Original
Original pattern published under MIT — attribution preserved by convention, not licence requirement.
Caveats
For monorepos, extend to target specific workspaces.
56 skills across 10 categories, all licence-verified.