dev-serve
Start and manage tmux-backed dev servers exposed through Caddy at wildcard subdomains.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/brennerspear/dev-serveWhat This Skill Does
The dev-serve skill provides a streamlined, one-command workflow for hosting development servers locally while making them immediately accessible via public-facing, TLS-secured wildcard subdomains. It abstracts away the complexity of managing background tmux processes, configuring reverse proxies, and handling SSL certificates. By mapping your local project folder to <project>.YOUR_DOMAIN automatically, it allows developers to test web applications in an environment that mimics production HTTPS, rather than relying on standard localhost ports. The skill handles the entire lifecycle: it auto-detects common frameworks like Vite, Next.js, and Nuxt, patches configuration files for host headers, manages the tmux session, updates the Caddy configuration via the Admin API without requiring restarts, and verifies service availability.
Installation
- Copy the script:
cp scripts/dev-serve.sh ~/.local/bin/dev-serve - Grant permissions:
chmod +x ~/.local/bin/dev-serve - Configure your domain by setting the
DEV_SERVE_DOMAINenvironment variable in your shell profile (e.g.,export DEV_SERVE_DOMAIN=dev.example.com). - Ensure
tmux,jq,curl, and a Caddy instance with wildcard DNS/TLS support are installed and running.
Use Cases
- Client Demos: Quickly share a live, secure link to a feature branch with stakeholders without deploying to a staging server.
- Mobile Testing: Access your local development server from mobile devices connected to the same network via a real URL.
- Multi-Service Development: Run multiple web applications simultaneously on different subdomains with separate persistent tmux sessions.
- Environment Parity: Ensure your application behaves correctly under HTTPS and specific domain headers during the local coding phase.
Example Prompts
- "Start a dev server for the project in my ~/projects/dashboard folder and give me the public link."
- "Check which dev servers are currently running and stop the one named 'old-app'."
- "Launch the current project on port 5500 using the 'yarn dev' command."
Tips & Limitations
- Port Allocation: The skill defaults to the 5200+ range. If you have services using these ports manually, you may encounter conflicts.
- Vite Configuration: While the skill attempts to auto-patch Vite's
allowedHosts, complex configuration files might require manual adjustments if the script cannot parse them correctly. - Persistence: Because the server runs in a named tmux session (
dev-<name>), you can attach to the session manually if you need to debug the server output directly.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-brennerspear-dev-serve": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, network-access
Related Skills
commit
Create a git commit with a contextual message based on current changes, then push the branch.
gog-safety
Build and deploy safety-profiled gogcli binaries with compile-time command removal. Use when setting up gog for an AI agent with restricted permissions — choosing between L1 (draft only), L2 (collaborate), or L3 (standard write). Covers building from PR
flights
Search flights via Google Flights. Find nonstop/connecting flights, filter by time and cabin class, get booking links. Supports city names (NYC, London, Tokyo) with automatic multi-airport search. No API key required.
amazon
Buy and return items on Amazon using browser automation. Use for purchasing, reordering, checking order history, and processing returns.
domain-check
Check domain availability via Vercel and buy/manage domains via Vercel CLI