Integrator Agent (amia-)

August 29, 2026 · View on GitHub

version

Overview

The Integrator Agent handles quality gates, testing, merging, and release candidates. It ensures code quality before integration into the main branch.

Core Responsibilities

  1. Code Review: Review PRs for quality and correctness
  2. Quality Gates: Enforce TDD, tests, and standards
  3. Branch Protection: Prevent direct pushes to protected branches
  4. Issue Closure Gates: Verify requirements before closing issues
  5. GitHub Integration: Manage PRs, issues, and projects

Components

Agents

AgentDescription
ai-maestro-integrator-agent-main-agent.mdMain integrator agent
amia-api-coordinator.mdCoordinates GitHub API operations
amia-bug-investigator.mdInvestigates reported bugs
amia-code-reviewer.mdReviews code for quality
amia-committer.mdHandles git commit operations
amia-debug-specialist.mdDebugs CI/CD and test failures
amia-github-sync.mdSyncs GitHub state
amia-integration-verifier.mdVerifies integration success
amia-pr-evaluator.mdEvaluates PR readiness
amia-screenshot-analyzer.mdAnalyzes screenshots for visual regressions
amia-test-engineer.mdManages test execution and coverage

Skills

SkillDescription
amia-github-integrationGitHub Projects integration, label setup, PR workflows
amia-github-pr-workflowPR review orchestration with delegation and verification
amia-github-pr-checksCI status monitoring and PR readiness verification
amia-github-pr-mergePR merge strategies and auto-merge configuration
amia-github-pr-contextPR metadata, diff, and changed files retrieval
amia-github-issue-operationsIssue creation, labels, milestones, assignees, comments
amia-kanban-orchestrationGitHub Kanban board state and card management
amia-github-projects-syncGitHub Projects V2 synchronization via GraphQL
amia-github-thread-managementPR review thread management and resolution
amia-code-review-patternsTwo-stage PR review with 8-dimension analysis
amia-multilanguage-pr-reviewMulti-language PR review routing
amia-tdd-enforcementTDD enforcement via RED-GREEN-REFACTOR
amia-ci-failure-patternsCI/CD failure diagnosis and pattern matching
amia-git-worktree-operationsParallel PR processing with git worktrees
amia-integration-protocolsShared utilities and cross-skill protocols
amia-quality-gatesPre-review, review, pre-merge, post-merge checkpoints
amia-release-managementVersion bumping, changelogs, release coordination
amia-ai-pr-review-methodologyEvidence-based PR review (4 phases, 5 dimensions)
amia-label-taxonomyGitHub label taxonomy for PR/issue management
amia-prrd-trdd-kanbanINTEGRATOR's role in the PRRD/TRDD/Kanban workflow (ai_review, publish, deploy, live_auditing columns)

Hooks

HookEventDescription
amia-branch-protectionPreToolUseBlock pushes to main/master
amia-issue-closure-gatePreToolUseVerify before issue closure
amia-stop-checkStopBlock exit until integration work is complete

Quality Gates

  1. Branch Protection: No direct pushes to main/master
  2. Issue Closure Gate: Requires:
    • Merged PR linked to issue
    • All checkboxes checked
    • Evidence of testing
    • TDD compliance

Workflow

  1. Receives completion signal from Orchestrator
  2. Reviews code changes
  3. Runs quality gates
  4. Verifies tests pass
  5. Creates/reviews PR
  6. Merges when approved
  7. Reports to Assistant Manager

Prerequisites

  • Python 3.8+ (recommended: 3.12)
  • gh CLI installed and authenticated (gh auth login)
  • uv for running Python scripts (pip install uv)
  • AI Maestro installed and running (for inter-agent messaging)
  • ai-maestro-plugin — the home of the governance pillar scripts this plugin's PRRD/TRDD/Kanban workflow drives on PATH: get-prrd.py, prrd-edit.py, findprrd.py, findtrdd.py, kanban.py. The amia-prrd-trdd-kanban and amia-release-management skills invoke these; without ai-maestro-plugin installed those commands are absent and the governance steps fail (command-not-found) rather than running silently. Install ai-maestro-plugin from the Emasoft/ai-maestro-plugins marketplace.
  • Claude Code 2.1.132+ recommended. Hooks read $CLAUDE_CODE_SESSION_ID (added in 2.1.132) and $CLAUDE_EFFORT (2.1.133) for cross-hook log correlation, run without terminal access since 2.1.139 (so stderr is captured safely), and honor the $CLAUDE_CODE_STOP_HOOK_BLOCK_CAP consecutive-block cap added in 2.1.143 (default 8). Older Claude Code versions still work — the env vars are simply absent and $CLAUDE_PROJECT_ROOT is the legacy fallback for $CLAUDE_PROJECT_DIR.
  • From Claude Code 2.1.233 the todo/task tools (TaskCreate, TaskGet, TaskUpdate, TaskList, TodoWrite) are unavailable on Opus 4.8, Sonnet 5, Fable 5, Mythos 5 and newer — the models this plugin's agents pin. The skills therefore read GitHub issue checklists as plain - [ ] / - [x] Markdown and write task records directly, with no todo-tool call. Setting CLAUDE_CODE_ENABLE_TODO_TOOLS=1 restores the tools but is not required.

Installation

Clone the plugin repo and load it with --plugin-dir:

git clone https://github.com/Emasoft/ai-maestro-integrator-agent.git
claude --plugin-dir ./ai-maestro-integrator-agent

Or start a session with the main agent directly:

claude --agent ai-maestro-integrator-agent-main-agent --plugin-dir ./ai-maestro-integrator-agent

Note: Marketplace distribution is TBD. For now, use --plugin-dir with a local clone.

Non-Standard Directories

DirectoryPurpose
shared/Shared Python modules (thresholds, constants) used by multiple plugin scripts across skills and hooks
tests/Plugin test suites (e.g. test_governance_compliance.py); run with uv run python tests/<file>.py
git-hooks/Optional pre-push validation hook (runs CPV remote validation via uvx); installed via cp git-hooks/pre-push .git/hooks/pre-push. Note: this repo's own checkout uses core.hooksPath=.githooks (the publish.py ancestry gate), which takes precedence over .git/hooks/

Platform Requirements

All plugin scripts are written in Python for cross-platform compatibility (Linux, macOS, Windows).

Skill Architecture

Skills use a progressive discovery pattern: each SKILL.md is a compact index (under 4000 chars) that agents read first, with detailed content in references/*.md files discovered on demand. Most skill scripts (54 of 70 at last count) support --output-file <path> to write full JSON to a file and print only a summary to stdout, minimizing token consumption.

Validation

cd ai-maestro-integrator-agent
uvx --from git+https://github.com/Emasoft/claude-plugins-validation \
    cpv-remote-validate plugin . --strict --verbose

(The same command CI runs in .github/workflows/validate.yml — the legacy in-repo validator script was retired in favor of CPV remote validation.)

Current status: 0 CRITICAL, 0 MAJOR, 0 MINOR, 0 NIT issues.