| name | repo-commands |
| description | Repository command reference for the HostVault project. Contains all available just commands for building, testing, linting, and maintaining the codebase. Use this skill when you need to execute build commands, run tests, check code quality, or perform maintenance tasks on the HostVault Turbo monorepo. |
| metadata | {"author":"hostvault","version":"1.0","type":"repository-commands"} |
HostVault Repository Commands
This skill provides access to all build, test, and maintenance commands for the HostVault project. The project uses just as the task runner with Turborepo for monorepo orchestration.
Quick Reference
just build
just build cli
just build macos
just build --watch
just build cli --watch
just test
just test --watch
just static
just static --fix
just doctor
just doctor --fix
just format
just format --check
just clean
just clean --deep
just help
Detailed Command Reference
Build Commands
just build [variant] [--watch]
Builds the deploy artifacts. Uses Turborepo for efficient orchestration.
- variant:
all (default), cli, or macos
- --watch: Enable watch mode for development
Examples:
just build
just build cli
just build macos
just build --watch
just build cli --watch
Implementation Details:
- CLI uses
cargo build --release (Rust)
- macOS app uses
scripts/build_macos_app.sh (Swift/Xcode)
- Watch mode uses language-native watchers (cargo-watch for Rust, watchexec for Swift)
Test Commands
just test [--watch]
Runs the test suite via turbo test.
- Uses checksy configuration in
test.checksy.yaml
- Executes
turbo test command
- Integrates with CI/CD pipelines
Watch mode:
just test --watch
Static Analysis
just static [--fix]
Runs static analysis checks including:
- Trailing whitespace detection (yaml/json files)
- Format checking (
just format --check)
- Turbo lint (
turbo lint)
With auto-fix:
just static --fix
Configuration:
- Rules defined in
static.checksy.yaml
- Format fix:
just format
Doctor (Environment Check)
just doctor [--fix]
Checks environment health and prerequisites.
- Uses
doctor.checksy.yaml configuration
- Verifies system dependencies
- Checks tool availability
Auto-fix:
just doctor --fix
Format Commands
just format [--check]
Formats code in the repository.
just format
just format --check
Clean Commands
just clean [--deep]
Removes build artifacts.
just clean
just clean --deep
Artifacts cleaned:
dist/, build/, out/, target/
node_modules/ (optional)
.turbo/ cache
- Generated schema files (with --deep)
Turborepo Integration
The project uses Turborepo with these key commands:
turbo run build
turbo run dev
turbo run lint
turbo run test
turbo run build --filter=cli
turbo run build --filter=macos-app
Pipeline configuration: turbo.json
build: Depends on ^build, outputs to dist/, target/release/, build/
dev: Persistent, no cache, depends on ^dev
lint: Depends on ^build
test: Depends on ^build
Project Structure
hostvault/
├── apps/
│ ├── cli/ # Rust CLI (cargo)
│ └── macos-app/ # Swift macOS app (xcodebuild)
├── packages/
│ └── protocol/ # Shared protocol (Rust library)
├── scripts/
│ └── build_macos_app.sh
├── justfile # Task definitions
├── turbo.json # Turborepo config
└── *.checksy.yaml # Checksy rules
Common Workflows
Development Workflow
just build cli --watch
Pre-commit Check
just static
just test
Full Build
just clean
just build
just test
CI/CD Pipeline
just doctor
just format --check
just static
just build
just test
Exit Codes
Build and test commands follow these conventions:
0: Success
1: General error / Connection error (CLI)
2-14: Specific CLI error codes (see CLI.md)
- Non-zero: Command-specific errors
Troubleshooting
Issue: Build fails with "command not found"
- Fix: Run
just doctor to check dependencies
Issue: Watch mode not detecting changes
- Fix: Check that
cargo-watch (for CLI) or watchexec (for macOS) is installed
Issue: Turbo cache issues
- Fix: Run
rm -rf .turbo/ or just clean --deep
Issue: Permission denied on socket (CLI)
- Fix: Check HostVault macOS app is running and socket path is correct
References