Maestro Setup
Tune a Maestro-enabled repository harness from current repository evidence.
Activate:
maestro hook record --event skill_activation --skill maestro-setup
Use
- After
maestro init. - After
maestro install. - When
maestro doctorreports setup or local agent integration problems. - When a repo's build/test/harness instructions are missing or stale.
Do
- Run
pwd, thenmaestro status. - If the repo is not initialized, run
maestro init --dry-run. - If dry-run prints
operating on <path>and that path is not the intended current project root, stop and ask the user to pick or create the root before any write. - Only after the root is correct, run
maestro init --yes. - Run
maestro doctor. - If no agent integration is installed, run
maestro install --agent codexunless the user asked for another agent. - Inspect repo structure, build/test commands, and workflow constraints.
- Read in the existing agent and doc instructions as a BOUNDED set: at the
repo root, and under each folder matched by the
projects:globs in.maestro/harness/harness.yml, readAGENTS.md,CLAUDE.md,README.md, and top-leveldocs/*.md. Stay shallow (one level per location, no deep crawl) and skip outsized files (roughly 64 KB and up) so a vendored doc dump cannot flood context. With noprojects:declared, this is the repo root alone. - Synthesize what you read into the SINGLE root harness guidance, one section
per project (a single section when nothing is declared). This is read-in
only: never write maestro-managed guidance into a sub-project's own
AGENTS.md/CLAUDE.md--maestro install/syncwrite managed blocks at the repo root alone. Cite the inspected files; do not tune from guesses. - Run
maestro doctor, thenmaestro status.
Stop
maestro init --dry-runwrites nothing; use it before init writes.maestro init --yeskeeps existing files and creates missing files.- Use
maestro init --forceonly for deliberate refresh; it backs up managed files first. - Do not tune the harness from guesses, package-manager defaults, or stale chat memory.
- Per-project docs are read-in only. Maestro owns one root scope; never write
maestro-managed guidance into a sub-project's
AGENTS.md/CLAUDE.md.
Done
- Setup is healthy, or the remaining setup blocker is explicit.
- The next handoff is visible from
maestro status. - Harness guidance changes cite inspected files or commands.