devstack
Skill2 starsChanged 32 days agoApache-2.0View on GitHub
Per-worktree dev environment lifecycle for Mazarbul. USE WHEN user says "start the stack", "spin up devstack", "bring it up", "start the dev environment", "is the stack running", "shut it down", "tear it down", "what's running", "create a new worktree for X", "clean up old worktrees", or anything about bringing up/down local services for a worktree.
- Reads credentials
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 12-principles-of-animationSkill
- aip-namingSkill
- architectSkill
- babysit-abortSkill
- babysit-prSkill
- babysit-tickSkill
- baseline-uiSkill
- commit-pushSkill
- complex-refactorSkill
- critiqueSkill
- deadSkill
- go-backendSkill
- goSkill
- go-strictSkill
- greptileSkill
- impl-checkSkill
- inspect-dbSkill
- inspect-deploySkill
- inspect-runtimeSkill
- interaction-designSkill
- issue-planSkill
- lessonsSkill
- mergeSkill
- new-resourceSkill
- plan-featureSkill
- preflightSkill
- pr-reviewSkill
- review-fixSkill
- reviewSkill
- shipSkill
- simplifySkill
- task-execution-protocolSkill
- teamSkill
- tui-component-browserSkill
- tui-design-labSkill
- tui-designSkill
- verifySkill
- wrap-upSkill
- write-docsSkill
The file
Files
devstack, local dev-environment lifecycle
./scripts/devstack is the canonical tool for spinning up, observing, and tearing down per-worktree dev environments. Each worktree gets its own data dir ($MAZ_DATA_DIR) and its own running daemon (with a unique port window).
Full reference: agent-docs/devstack.md.
Hard rules
- Always run
./scripts/devstack up, never startmazdaemons by hand from random directories; devstack wires the data dir and port correctly per worktree. - After
devstack up, verify health before declaring done.
Expected: daemon running, data dir initialized, MCP server bound. Anything else means a service crashed during startup, check logs../scripts/devstack status - After
devstack down, verify no leftover listeners on the worktree's ports.lsof -iTCP -sTCP:LISTEN | grep maz
Commands
./scripts/devstack init # bootstrap this worktree (create data dir, seed minimal fixtures)
./scripts/devstack up # start the daemon and any long-running services
./scripts/devstack down # stop them
./scripts/devstack status # services + data-dir + counts
./scripts/devstack reset # blow away the data dir and re-init (destructive)
./scripts/devstack logs # tail the daemon log
./scripts/devstack ports # KEY=VAL port mapping for this worktree
./scripts/devstack doctor # health checkWorktree lifecycle
# Spawn
git worktree add ../mazarbul-<feature> -b feat/<feature>
cd ../mazarbul-<feature>
mise install && mise run setup
./scripts/devstack up
# Tear down
./scripts/devstack down
cd ..
git worktree remove mazarbul-<feature>
git branch -D feat/<feature> # only after PR mergedCommon gotchas
$MAZ_DATA_DIRnot set in a fresh shell, runmise installfirst;.mise.tomlsets it per-worktree.- Port collision between worktrees, devstack picks a port window per worktree; if collision still happens, check
.env.local. - Daemon won't stop,
./scripts/devstack down --force(uses SIGKILL after a grace period).
What this skill is NOT
- A production deploy tool, Mazarbul is local-first; production-style deploys are out of scope.
- A migration runner, schema changes go through normal Go migrations under
migrations/.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

