From maestro
Sets up repository for Maestro-guided agent work: generates context docs, root AGENTS.md, language style guides from repo evidence, and setup report before implementation.
npx claudepluginhub reinamaccredy/maestro --plugin maestroThis skill uses the workspace's default tool permissions.
Use this skill to create or refresh Maestro-owned project context. This is the
reference/context-templates/architecture.mdreference/context-templates/index.mdreference/context-templates/planning.mdreference/context-templates/product-sense.mdreference/context-templates/quality-gates.mdreference/context-templates/security.mdreference/context-templates/workflow.mdreference/init-deep.mdreference/setup-report-template.mdreference/styleguides/INDEX.mdreference/styleguides/LICENSE.mdreference/styleguides/angularjs.mdreference/styleguides/common-lisp.mdreference/styleguides/cpp.mdreference/styleguides/csharp.mdreference/styleguides/go.mdreference/styleguides/html-css.mdreference/styleguides/java.mdreference/styleguides/javascript.mdreference/styleguides/json.mdGenerates AGENTS.md with project overview, setup commands, dev workflow, testing, code style, build/deployment guidelines for AI coding agents in repositories.
Generates hierarchical AGENTS.md structures for codebases to optimize AI agent token usage. Use for repo analysis, monorepos, JIT indexing, and token-efficient root/sub-folder docs.
Creates repo-specific AGENTS.md contributor guide for AI agents via /init or /init <path>. Inspects structure, docs, build tools, and tests to tailor concise guidelines.
Share bugs, ideas, or general feedback.
Use this skill to create or refresh Maestro-owned project context. This is the
canonical v1 setup behavior. Future maestro setup CLI commands must match this
skill's behavior rather than inventing a separate setup model.
maestro setup CLI command..maestro/context/.AGENTS.md is generated by Step 4 (init-deep workflow): a hierarchical PROJECT KNOWLEDGE BASE with the Maestro pointer absorbed inside, still wrapped by <!-- maestro-setup:start --> / <!-- maestro-setup:end --> markers..maestro/setup-report.md on each run.reference/styleguides/.Use these exact markers.
Root AGENTS.md block:
<!-- maestro-setup:start -->
...
<!-- maestro-setup:end -->
Generated context section:
<!-- maestro-setup:generated:start -->
...
<!-- maestro-setup:generated:end -->
If a managed block exists, replace only the block body. If it does not exist, append a new block. Never rewrite the whole file unless the file is new.
Read:
AGENTS.md, CLAUDE.md, README*, and package manifests when presentpackage.json, pyproject.toml, Cargo.toml, go.mod,
pom.xml, build.gradle, Makefile, CMakeLists.txt, Package.swift.maestro/context/ docs when presentRecord every evidence source used for .maestro/setup-report.md.
Detect languages from manifests first, then file extensions. Copy only matched
frozen snapshots from reference/styleguides/ to
.maestro/context/code_styleguides/.
Use this map:
| Guide | Signals |
|---|---|
angularjs.md | AngularJS dependency, angular.module, Angular 1 style files |
common-lisp.md | .lisp, .lsp, .asd |
cpp.md | .cc, .cpp, .cxx, .hh, .hpp, CMakeLists.txt |
csharp.md | .cs, .csproj, .sln |
go.md | go.mod, .go |
html-css.md | .html, .css, .scss, .sass, .less |
javascript.md | .js, .jsx, JavaScript package metadata |
java.md | .java, pom.xml, build.gradle |
json.md | .json, JSON schema files |
markdown.md | .md, .mdx |
objective-c.md | .m, .mm, .h with Objective-C patterns |
python.md | .py, pyproject.toml, requirements.txt, setup.py |
r.md | .R, .r, DESCRIPTION |
shell.md | .sh, .bash, .zsh, shell shebangs |
swift.md | .swift, Package.swift, Xcode Swift targets |
typescript.md | .ts, .tsx, tsconfig.json |
vimscript.md | .vim, .vimrc, Vim plugin metadata |
xml.md | .xml, .xsd, XML schemas |
If Dart or Kotlin is detected, do not copy external guides in v1. Mention that external Dart/Kotlin references were detected but intentionally excluded.
Ensure .maestro/context/ exists. Create or update these files using the
templates in reference/context-templates/:
index.mdarchitecture.mdproduct-sense.mdquality-gates.mdsecurity.mdworkflow.mdplanning.mdEach new file must contain:
## User Notes section outside the managed blockFor existing files, update only the generated block. Preserve all user-written content outside it.
Run the workflow defined verbatim in reference/init-deep.md.
This step owns the root AGENTS.md end-to-end and produces:
PROJECT KNOWLEDGE BASE AGENTS.mdAGENTS.md files in qualifying subdirectories<!-- AGENTS-HIERARCHY:START --> block per file linking parent and childrenAbsorbed Maestro pointer block. The root AGENTS.md body must include the
maestro-setup pointer placed immediately after the ## OVERVIEW section, wrapped
in the start/end markers (text identical to the prior standalone pointer):
<!-- maestro-setup:start -->
## Maestro Context
Before non-trivial work:
- Load `.maestro/context/index.md` first.
- Open only the specific context docs relevant to the task.
- Follow detected language guides under `.maestro/context/code_styleguides/`.
- Preserve user content outside managed setup sections.
- If context docs conflict with closer repo instructions, follow the closer
instruction file and report the conflict.
<!-- maestro-setup:end -->
The block content is identical to the prior standalone pointer; only its home moves. Preserve handwritten content elsewhere in the file.
Failure handling. Each background explore agent retries once on failure.
Remaining failures degrade to bash + manifest-only scoring. Failed agents and
the resulting fallback are listed in .maestro/setup-report.md.
Non-interactive. This step never prompts. Ambiguity becomes a warning in the setup report, not a question to the user.
--create-new is not exposed at the maestro-setup level. Default behavior
is non-destructive update: edit AGENTS.md files in place and preserve
handwritten content. The destructive mode described in reference/init-deep.md
stays internal and is not advertised by this skill.
Overwrite .maestro/setup-report.md from reference/setup-report-template.md.
The report must include:
Report:
Do not claim setup is complete unless root AGENTS.md, context docs,
language guides, and .maestro/setup-report.md have all been checked.
architecture.md: current repo shape, owned modules, boundaries, known
pressure points.product-sense.md: audience, product goals, UX/product guardrails.quality-gates.md: build/test/lint/typecheck commands and review bar.security.md: trust boundaries, sensitive files, approval gates.workflow.md: human/agent delivery loop, review expectations, completion bar.planning.md: thin policy bridge to maestro-brainstorm, maestro-plan,
.maestro/plans/, maestro-task, and handoff.index.md: map of all context docs and copied style guides.The later CLI should mirror this skill exactly:
maestro setup --dry-run --jsonmaestro setup --jsonmaestro setup check --jsonmaestro setup languages --jsonDo not design extra CLI behavior while running this skill.