dust-hive
Information about dust-hive, a CLI tool for running multiple isolated Dust development environments. ALWAYS enable this skill when the working directory is under ~/dust-hive/. Use for understanding port allocation, running tests, and working with the environment.
Install
mkdir -p .claude/skills/dust-hive && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2373" && unzip -o skill.zip -d .claude/skills/dust-hive && rm skill.zipInstalls to .claude/skills/dust-hive
About this skill
dust-hive
What is dust-hive?
dust-hive is a CLI tool for running multiple isolated Dust development environments simultaneously. Each environment gets its own:
- Git worktree (separate branch)
- Port range (no conflicts between environments)
- Docker containers (isolated volumes)
- Database instances (Postgres, Qdrant, Elasticsearch)
Detecting a dust-hive Environment
To check if you're currently running in a dust-hive environment:
- Check working directory: dust-hive worktrees are located at
~/dust-hive/{env-name}/ - Check for worktree: The
.gitfile (not directory) indicates a git worktree
# Check if in worktree path
pwd | grep -q "$HOME/dust-hive/" && echo "In dust-hive environment"
Environment States
Environments can be in one of three states:
| State | What's Running | Can Run Tests? |
|---|---|---|
| stopped | Nothing | No |
| cold | SDK watch only | Yes (front tests use shared test DB) |
| warm | All services (front, core, connectors, oauth, workers) + Docker | Yes |
Check the current state:
dust-hive status [ENV_NAME]
Environment Variables (direnv)
Each dust-hive worktree contains a .envrc file that automatically loads environment variables when you cd into the directory. This is powered by direnv.
What this means:
- Environment variables (ports, database URIs, API keys, etc.) are automatically available
- Variables like
FRONT_DATABASE_URI,CORE_API,CONNECTORS_APIare pre-configured for the environment's port range
If environment variables are missing, manually source the environment:
source ~/.dust-hive/envs/{ENV_NAME}/env.sh
Port Allocation
Each environment gets a 1000-port range starting at 10000:
- 1st env: 10000-10999 (front:10000, core:10001, connectors:10002, oauth:10006)
- 2nd env: 11000-11999
- 3rd env: 12000-12999
Running Linters, Type Checks, and Builds
For dust-hive itself (in x/henry/dust-hive/):
# Run ALL checks before committing (MANDATORY)
bun run check
# Individual checks
bun run typecheck # TypeScript strict checks
bun run lint # Biome linting
bun run lint:fix # Auto-fix lint issues
bun run format # Code formatting
bun run test # All tests
For Dust apps (in worktree or main repo):
# TypeScript SDK (watch is running - check logs if issues after SDK changes)
dust-hive logs [ENV_NAME] sdk
# Front (Next.js)
cd front && npm run lint # ESLint
cd front && NODE_OPTIONS="--max-old-space-size=8192" npx tsgo --noEmit # Type-check
cd front && npm run build # Build
# Core (Rust)
cd core && cargo check && cargo clippy
# Connectors
cd connectors && npm run lint # ESLint
cd connectors && npm run build # Type-check + build
# OAuth (Rust)
cd oauth && cargo check && cargo clippy
Quick health check after warming:
curl -sf http://localhost:10000/api/healthz # front
curl -sf http://localhost:10001/ # core
Running Front Tests in Cold Environments
The front project requires a Postgres database and Redis to run tests. dust-hive provides shared test containers that allow running front tests without warming up the full environment.
How it works
- A shared Postgres container runs on port 5433 (started by
dust-hive up) - A shared Redis container runs on port 6479 (started by
dust-hive up) - Each environment gets its own test database:
dust_front_test_{env_name} TEST_FRONT_DATABASE_URIandTEST_REDIS_URIare already set in each environment'senv.sh
Running front tests
IMPORTANT: You must set NODE_ENV=test when running front tests.
# From any cold environment, run front tests directly
cd front && NODE_ENV=test npm test
# Run specific test file
cd front && NODE_ENV=test npm test lib/resources/user_resource.test.ts
# Run with verbose output
cd front && NODE_ENV=test npm test --reporter verbose path/to/test.test.ts
No need to warm the environment - the shared test Postgres and Redis are always available.
Troubleshooting front tests
If front tests fail with database connection errors:
- Check if test postgres is running:
docker ps | grep dust-hive-test-postgres - If not running, start it:
docker start dust-hive-test-postgres - Verify the database exists:
docker exec dust-hive-test-postgres psql -U test -l
Known Issues
Node modules structure
In dust-hive environments, node_modules for front and connectors uses a shallow copy structure:
- A real
node_modulesdirectory with symlinks to packages from the main repo @dust-tt/clientis overridden to point to the worktree's SDK (ensuring correct type resolution)
Running npm install requires manual cleanup:
rm -rf node_modules && npm install
SDK watcher doesn't detect changes after git rebase
The SDK watcher uses nodemon which relies on filesystem events. When running git rebase, git pull, or git checkout, nodemon may not detect file changes.
Symptoms: Type errors in front about missing types that should exist in the SDK.
Solution: Restart the SDK watcher after git operations that change SDK files:
dust-hive restart [ENV_NAME] sdk
Or manually trigger a rebuild:
touch sdks/js/src/types.ts
More by dust-tt
View all →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
rust-coding-skill
UtakataKyosui
Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.