agentleFS
sabirmgdsabirmgd/terminal-first-goal-loop/skills/dev-flow/SKILL.md

dev-flow

Skill2 starsChanged 2 months agoMITView on GitHub

Run local development with shared warm heavy infrastructure, per-worktree app slots, deterministic slot leases, hot versus passive modes, smoke checks, and safe stop or release behavior. Use when several worktrees or agents need fast local feedback without restarting the whole stack.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use hot mode for the task under active human attention.

    line 52
  2. Distinctive:

    Use passive mode for background agent work, comparison testing, or another parallel worktree.

    line 60
  3. Distinctive:

    Run a small smoke check that proves the slot can answer the path that matters.

    line 68
  4. Distinctive:

    If a repo has no useful hot reload path, say that and fall back to the smallest honest passive loop.

    line 81

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dev Flow

This skill exists to keep local AI development fast.

The expensive failure mode is obvious once you see it: every small edit triggers another full environment boot, rebuild, or container restart. The agent spends more time waiting than testing.

Core Model

Split the local stack into two layers:

  • shared heavy infrastructure that stays warm
  • lightweight per-worktree app slots

A slot belongs to one worktree. Shared infrastructure belongs to the whole local workspace.

Required Capabilities

A usable dev-flow should support these operations somehow:

  • warm: start or verify shared heavy infrastructure
  • hot: attach the active worktree to native hot reload when available
  • passive: start a background app slot for another worktree
  • list: show active slots and leases
  • smoke: prove a slot is actually usable
  • stop: stop one slot only
  • release: free the slot lease when the task is done
  • cold: stop shared heavy infrastructure only when no active task still needs it

Deterministic Leases And Ports

Each slot should get a deterministic lease and a deterministic port band.

The exact numbers are project-specific, but the pattern should be stable:

  • one slot id maps to one fixed port band
  • the same slot id keeps the same ports until released
  • leases are stored outside the repo so multiple worktrees can see them
  • the lease store is the authority, not guesswork from terminal history

Modes

Hot mode

Use hot mode for the task under active human attention.

This mode should prefer native hot reload where the repo supports it. It usually runs in the foreground and should stop only the worktree's app processes when interrupted.

Passive mode

Use passive mode for background agent work, comparison testing, or another parallel worktree. It should start the app slot and return without taking over an interactive pane.

Smoke

A slot is not ready just because a process started.

Run a small smoke check that proves the slot can answer the path that matters. Good smoke checks include:

  • one health request
  • one login or auth bootstrap
  • one tiny API request
  • one browser page load when the work is UI-heavy

Safety Rules

  1. Shared heavy infrastructure must not be stopped by stop on a single slot.
  2. cold is a separate action and should check for remaining active leases.
  3. A broken slot lease should be repaired explicitly, not silently reused.
  4. If a repo has no useful hot reload path, say that and fall back to the smallest honest passive loop.

Output Contract

DEV FLOW | worktree=<path-or-name> | slot=<id>
MODE | hot|passive
INFRA | warm|already-warm|blocked
SMOKE | pass|fail|blocked
STOP | <slot-only stop command or action>
RELEASE | <lease release command or action>

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.