agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/devstack/SKILL.md

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

The file

Files
SKILL.md

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

  1. Always run ./scripts/devstack up, never start maz daemons by hand from random directories; devstack wires the data dir and port correctly per worktree.
  2. After devstack up, verify health before declaring done.
    ./scripts/devstack status
    Expected: daemon running, data dir initialized, MCP server bound. Anything else means a service crashed during startup, check logs.
  3. 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 check

Worktree 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 merged

Common gotchas

  • $MAZ_DATA_DIR not set in a fresh shell, run mise install first; .mise.toml sets 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/.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.