원클릭으로
hex-dev-rebuild
Rebuild and deploy hex-nexus binary after Rust code or asset changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rebuild and deploy hex-nexus binary after Rust code or asset changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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