Skip to content

Specialist Reference

maestria defines a main loop and one reviewer specialist. The main loop investigates, designs, implements, and delivers each outcome itself, loading method skills when a task needs them. Only reviewer remains as a separate agent, for independent blind review of meaningful changes. Native profiles and tool controls vary by host; role guidance alone is advisory. On Agent Plugins hosts the main session takes the main-loop role through the global policy, so @maestria/agent-plugins ships reviewer as a profile; OpenCode registers both. Direct-route turns execute on the host; platform invocation syntax lives in the plugin documentation.

The main loop owns each outcome end to end: it investigates the code, designs the change, implements it, and drives delivery. It loads method skills instead of handing work to a role: recon before changing code it has not read or when the affected surface is unclear, architecture-plan for trade-offs or a multi-phase plan, and diagnose for a bug with an unknown cause. It dispatches only reviewer, for independent blind review of meaningful changes.

For a more independent check, give reviewer a different model from the main session with maestria configure, for example maestria configure opencode --set reviewer=<model-id>.

For multi-slice implementation, it plans reviewable PR boundaries early and commits coherent slices after validating them. Each PR receives its own review and evidence; the integrated outcome receives final verification. When an architecture-plan design guides implementation, the main loop first presents a concise design brief so the user can understand the intended changes, sequence, and trade-offs. Tables or diagrams are used when they help explain the design.

The full method groups the work into three concerns:

  • Understand - reconnaissance, diagnosis, design, planning
  • Make - implementation, documentation
  • Check - independent validation, quality gates

The main loop handles understand and make itself with skills; the check terminates when reviewer accepts the result.

See When to Use maestria for when review is worth its coordination cost.

Three workflow modes control method depth; activation and enforcement depend on the platform:

Mode Full Form Pipeline Use Case
fein Full method recon and architecture-plan skills -> implementation in the main loop -> required blind review Production-grade work, mandatory validation
sonar Research only recon or architecture-plan in the main loop, read-only, change no files and dispatch no subagents - STOP before implementation Understanding before committing
blitz Fast implementation Direct execution in the main loop when permitted; otherwise report the host limit, skipping optional skill loads but keeping required safeguards and review. Quick fixes, known territory

The modes are defined by ModeKeyword in packages/shared/mode/src/index.ts as the full-method, research-only, and fast modes. Where keyword detection is supported, mode keywords are recognized anywhere in a message and case-insensitively; matches inside code fences or inline code are ignored, and the most restrictive mode wins when several appear (full-method over research-only over fast).

Specialist Role When to Use Key Constraints
Main loop Investigator, designer, maker, and owner - investigates, designs, implements, and delivers each outcome itself Every task; loads recon, architecture-plan, diagnose, implement, docs-update, create-pull-request, or review-loop when the task needs them Does recon, design, diagnosis, and implementation itself. Dispatches only reviewer. Presents an architecture-plan design before dependent edits.
Reviewer Code review - correctness, edge cases, security, performance, maintainability Post-implementation validation, pre-merge review, security audit Read-only - cannot edit; one general review plus only risk-matched lenses, with blind review, observation-first verification, and [fix]/[dismiss]/[escalate] triage

The consolidated Agent Plugins package exports two portable utilities, handoff for briefing delegates and tracking work across sessions and review-loop for briefing the reviewer and bounding repair passes, alongside the bundled methodology skills. Full methodology uses host-specific native profiles, commands, and policy entry points. Portable utilities alone do not activate this roster or its modes.

The main loop’s skill map names maestria’s method skills, so every maestria package ships them: @maestria/agent-plugins (Claude Code, Codex, Cursor, Kimi Code, Devin, ZCode, OMP, Hermes), @maestria/opencode, and @maestria/pi. They update with the package; there is nothing extra to install or select.

  • create-pull-request - Title, body, and visual-evidence conventions for a reviewable PR. Agents load it before drafting when the task owns an active PR, follow the project template while preserving the required information, and stop on explicit project opt-out.
  • docs-update - Documentation and changeset procedure. Agents load it before finishing a change to behavior, interfaces, configuration, or user-facing workflows, and follow it to classify and update affected docs; ordinary docs work proceeds without it.
  • diagnose - Systematic debugging that traces errors from symptom to root cause. The main loop loads it for a bug, regression, failure, or crash with an unknown cause.
  • recon - Maps unfamiliar code before a change: entry points, call chains, boundaries, and every consumer the change must reach. The main loop loads it before changing code it has not read.
  • implement - Implementation judgment (reuse, the smallest change shaped like its siblings, guards sized to evidence, shared-interface migration), behavior-level testing, and comments. The main loop loads it before writing or changing code or tests, and the reviewer profile embeds it.
  • architecture-plan - Compares approaches and writes a phased plan, including rollback for migrations and rollouts. The main loop loads it for trade-offs, boundaries, ADR decisions, and multi-phase work, and presents the plan before dependent edits.

Supported agents get these skills with their maestria plugin; that is the recommended install. Only for an agent maestria does not package, install them with skills.sh; this offers the plugin’s eight skills, including handoff and review-loop:

Terminal window
npx skills add agustinusnathaniel/maestria

Agents load these when the assignment calls for them. Every one is optional: a missing skill never blocks the work, and the core directives still apply.

The main loop loads architecture-decision-framework when a consequential trade-off benefits from a structured comparison. It lives in the separate agustinusnathaniel/skills repository with other general-purpose engineering skills. That repository is independent of maestria and ships all its skills as one plugin for Claude Code, Codex CLI, Cursor, Kimi Code, ZCode, OMP, and Devin. In Claude Code:

Terminal window
/plugin marketplace add agustinusnathaniel/skills
/plugin install agustinusnathaniel-skills@agustinusnathaniel-skills

Its README covers the other hosts. To pick individual skills instead, use skills.sh (drop -g to install into the current project):

Terminal window
npx skills add agustinusnathaniel/skills -g

The main loop also loads community skills on a matching trigger, such as agent-browser for UI verification or tdd for explicit test-driven work. The list lives in the Skills section of the main-loop and reviewer definitions; install any of them from their own sources if you want that behavior.