Skip to content
KeyValueSoftwareSystemsPublic

About

for sdlc

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Maestro: orchestrate AI, own the outcome. An open AI-SDLC practice with you at the centre of specialist agents.

Maestro

Maestro is a small, readable set of workflows for Claude Code. Each one is a step list that hands work to specialist agents, runs your checks, and stops for your approval where it matters. It has no engine and no CLI: just skills, YAML workflows and a run folder.

Quick start

git clone https://github.com/KeyValueSoftwareSystems/maestro.git
cd your-project
bash ../maestro/install.sh

Then, in Claude Code from your project folder:

/maestro-init                         # find repos, stacks and commands; offer the knowledge base
/maestro-fix  Login times out after 5 minutes
/maestro-minor Add a CSV export to the orders page
/maestro-feature Multi-currency pricing

After /maestro-init, run install.sh again to add the stack skills it picked. To resume a run, pass its slug instead of a request, for example /maestro-fix login-timeout.

Commands

Command Workflow What it does
/maestro-feature major-feature Turns the request into requirements, asks the design questions, plans with you, builds and writes tests in parallel, loops on review and on the tests until both pass, offers a short quiz on the change (skippable), then ships
/maestro-minor minor-feature Writes a short plan, then builds, tests, reviews and ships
/maestro-fix bug-fix Asks your guess at the cause, finds the root cause, adds a regression test and fixes the bug, then reviews and ships
/maestro-kb knowledge Builds the knowledge base in docs/ from the code
/maestro-init init Detects repos, stacks and commands, and offers to build the knowledge base
/maestro-sync sync Fast-forwards every repo and refreshes the docs that went stale
/maestro-ui — Opens a local web page that shows each run live, lets you edit workflows, and shows the agents. Needs Node 20 or later

Every feature and fix workflow ends with the same archive steps. Socrates updates the docs and saves the plan (or RCA) as docs/plans/<slug>.md, you approve the ship, a pull request is opened for each repo (and one for the docs in a multi-repo workspace), and the worktrees are removed. A .ignore hides docs/plans/ from search, so agents read an old plan only when named.

Agents

Agent Role
Keystone Planner. Brainstorms (grill-the-idea), designs (system-design) and writes plan.md
Brew Implementer. Writes code and tests, then fixes what the checks and reviews find
Birbal Reviewer. Reviews plans, code and docs in a findings table that tracks each fix
Litmus Tester. Writes tests, or runs them and classifies each failure
Sherlock Debugger. Reproduces a bug, finds the root cause and writes rca.md
Socrates Knowledge keeper. Builds the docs, or updates them after each change
Worker Has no skill and does exactly what the step says (worktrees, commits, PRs)

Agent skills never mention Maestro, so you can also use them on their own, for example "use the sherlock skill on this crash".

Workflows

A workflow is a list of steps:

name: bug-fix
max_steps: 30                     # total step runs, including retries
steps:
  - id: investigate
    agent: sherlock               # keystone | brew | birbal | litmus | sherlock | socrates | worker
    model: opus
    instructions: Investigate ${run}/requirements.md. Write the root cause to ${run}/rca.md.
  - id: confirm
    mode: gate                    # ask the person
    prompt: Root cause is in ${run}/rca.md. Approve?
    on_reject: investigate
  - id: checks
    mode: exec                    # run a command
    foreach: repo
    command: [build, lint, test]  # names from .maestro/workspace.yaml, or a shell string
    on_fail: fix                  # loop back; the lead passes the failure along

Steps can also be run: inline (the agent talks to you in the main conversation), grouped under parallel:, or another workflow (mode: workflow). A fix step with next: is reached only through on_fail, and sends the run back to the step it names once the fix passes. All the step fields are described in skills/maestro/SKILL.md.

Edit the installed copies in .maestro/workflows/ freely; upgrades keep them. To change an agent's output format, put your own template in .maestro/templates/ and pass it with template: on the step.

Multi-repo workspaces

Run Maestro from an umbrella folder with each service repo cloned under codebase/. /maestro-init lists them in .maestro/workspace.yaml with their stack skills and commands. Steps marked foreach: repo then run once per repo the plan touches, each in its own worktree under .maestro/worktrees/<slug>/<repo>. The umbrella folder must itself be a git repo: it holds docs/, and doc updates ship from it as their own pull request.

Stack skills

React (with Next.js and React Native), Node.js + TypeScript (with NestJS), Python (with Django and FastAPI) and Java (with Spring Boot). /maestro-init records the stacks your repos use, and install.sh installs only those into .claude/skills/.

Contributing

Read AGENTS.md first. Keep every skill within 200 lines, and run bash scripts/check.sh before committing.

License

MIT. See LICENSE and ATTRIBUTIONS.md.

About

for sdlc

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages