con un clic
hex-dev-rebuild
Rebuild and deploy hex-nexus binary after Rust code or asset changes
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Rebuild and deploy hex-nexus binary after Rust code or asset changes
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Create a new Architecture Decision Record with auto-numbering, dependency impact analysis, and validation gates. Use when the user asks to "create ADR", "write ADR", "new ADR", or "architecture decision".
Start feature development with hex decomposition and worktree isolation. Use when the user asks to "develop a feature", "new feature", "implement feature", "feature dev", "start feature", or "add feature".
Guide SpacetimeDB WASM module development for hex. Use when the user asks to "create module", "spacetimedb", "wasm module", "new reducer", "spacetime table", "add spacetime module", or works in spacetime-modules/.
Review code changes against existing Architecture Decision Records
Search Architecture Decision Records by keyword, status, or date
Check ADR lifecycle -- find stale, abandoned, or conflicting decisions
| name | hex-dev-rebuild |
| description | Rebuild and deploy hex-nexus binary after Rust code or asset changes |
| triggers | ["rebuild hex-nexus","rebuild hex","deploy nexus","redeploy dashboard"] |
Use this skill when: You've made changes to hex-nexus Rust code or dashboard assets and need to rebuild and deploy.
~/.hex/bin/hex-nexuspkill -9 hex-nexus
sleep 2
rm -f /Users/gary/.hex/daemon/hub.lock
rm -f /Users/gary/.hex/daemon/hub.state
cd hex-nexus
cargo build --release 2>&1 | grep -E "(Compiling|Finished|error|warning)"
If build fails, STOP and report error.
cp hex-nexus/target/release/hex-nexus ~/.hex/bin/hex-nexus
chmod +x ~/.hex/bin/hex-nexus
ls -lh ~/.hex/bin/hex-nexus
strings ~/.hex/bin/hex-nexus | grep -c "cleanup" || echo "Binary verification failed"
bun run hex daemon start
If this times out with "Daemon failed to start within 5s", IGNORE IT and check if process is running:
ps aux | grep hex-nexus | grep -v grep
cat ~/.hex/daemon/hub.lock | jq '.'
If process exists and lock file has a PID, daemon IS running despite the error message.
sleep 2
lsof -i :5555 | grep hex-nexus
cat ~/.hex/daemon/hub.lock | jq -r '.version, .startedAt'
Dashboard should be available at: http://localhost:5555
ps)Fix: Go back to Step 1, ensure all processes killed
Fix: This is a false alarm if the process is actually running. Check ps aux | grep hex-nexus
Fix: Build output is in hex-nexus/target/release/hex-nexus (relative to project root)
Fix: Hard refresh browser (Cmd+Shift+R) — assets are compile-time embedded
hex-nexus uses rust-embed to bake hex-nexus/assets/* (HTML, CSS, JS) into the Rust binary at compile time. This means:
hex-nexus/assets/index.html requires rebuilding the Rust binary~/.hex/bin/hex-nexus (not automatic)This is different from typical web dev where HTML changes are live-reloaded.
No arguments required. Run with: /hex-dev-rebuild