| name | minibox-dev |
| description | Use when developing minibox — quality gates, adding crates/adapters, testing strategy, VPS Linux testing, bench ops, and common workflows. Symptoms - need to run tests, add a new crate, wire an adapter, run benchmarks, deploy to VPS, or understand the development workflow. |
Minibox Development
References
Helper Scripts
Available in sh, fish, and nu variants:
| Script | Purpose |
|---|
helpers/mbx-gate.{sh,fish,nu} | Smart quality gate — picks tests based on what changed (--auto, --quick, --full) |
helpers/mbx-new-crate.{sh,fish,nu} | Scaffold new workspace crate with all wiring (mbx-new-crate <name> [--lib|--bin]) |
helpers/mbx-status.{sh,fish,nu} | Dev dashboard: crate health, test tools, bench results, VPS reachability, CI status |
helpers/mbx-context.{sh,fish,nu} | Context loader: crate layout, recent commits, branch state (--brief, --full for adapters/traits/plans) |
Run directly:
~/.claude/skills/mbx/minibox-dev/helpers/mbx-status.sh
~/.claude/skills/mbx/minibox-dev/helpers/mbx-status.fish
nu ~/.claude/skills/mbx/minibox-dev/helpers/mbx-status.nu
Quick Reference
Quality Gates (macOS — run before every commit)
cargo xtask pre-commit
cargo xtask prepush
cargo xtask test-unit
cargo xtask test-property
AI Agent Commands
just council [base] [mode]
just ai-review [base]
just meta-agent "task"
just gen-tests <TraitName>
just diagnose [--container id]
just bench-agent report
just commit-msg [-a] [-c]
Adding a New Crate
cargo new crates/<name> --lib (or --bin)
- Add to workspace
members in root Cargo.toml
- Add
license = "MIT" to crate's Cargo.toml (deny.toml requires it)
- Add
-p <name> to clippy/test commands in Justfile, CI, and xtask
- Run
cargo xtask pre-commit to verify
VPS Operations
mise run all:ssh-vps
mise run all:bench
mise run all:bench:setup
mise run all:ci
Common Mistakes
| Mistake | Fix |
|---|
cargo test --workspace on macOS | Fails — use cargo xtask test-unit or explicit -p flags |
cargo clippy --workspace | Fails on platform-gated code — use explicit -p flags from Justfile |
Missing license = "MIT" on new crate | cargo deny check fails — add to Cargo.toml |
Running agent scripts with python3 | Use uv run scripts/foo.py — PEP 723 inline deps |
| Running agent scripts in background | They need interactive terminal — run foreground |
cargo check --workspace passes but clippy fails | check is more lenient — always run clippy via just lint |
| Editing miniboxd without testing on Linux | Namespace/cgroup code is Linux-only — test via VPS |