with one click
metta-auto
Full lifecycle loop — discover, build, verify, ship
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Full lifecycle loop — discover, build, verify, ship
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Start a new change with Metta
Resolve a reconciliation gap through the full metta change lifecycle
Resolve an issue through the full metta change lifecycle
Quick mode — small change without full planning
Finalize and ship the active change
Log an issue with root-cause analysis
| name | metta:auto |
| description | Full lifecycle loop — discover, build, verify, ship |
| argument-hint | <description of what to build> |
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob","Agent"] |
| context | fork |
| agent | metta-skill-host |
IMPORTANT: When using the Agent tool, use these metta agent types: metta-proposer, metta-researcher, metta-architect, metta-planner, metta-executor, metta-reviewer, metta-verifier, metta-discovery. Do NOT use gsd-executor or general-purpose.
You are the orchestrator for the full Metta lifecycle. Spawn subagents for each phase.
Parse optional --workflow <name> from $ARGUMENTS:
$ARGUMENTS contains the token --workflow followed by a name (e.g. --workflow full), extract the name and remove both tokens from $ARGUMENTS.standard default, also quick, full); do NOT validate the name here — pass through and let metta propose reject unknown values with a clear error.Then run:
METTA_SKILL=1 metta propose "<description>" --workflow <name> --json (when flag present)
METTA_SKILL=1 metta propose "<description>" --json (when flag absent — standard workflow)
→ creates change
DISCOVERY GATE (mandatory): Before writing ANY artifacts, YOU (the orchestrator) MUST ask discovery questions using AskUserQuestion. a. Scan relevant codebase files for context b. Identify ambiguity — architecture choices, scope, data model, edge cases c. Ask 3-6 focused questions with concrete options d. Wait for answers before proceeding e. Pass answers as context to all downstream subagents
For each planning artifact (intent, spec, design, tasks) — one subagent per artifact:
metta instructions <artifact> --json → spawn agent → METTA_SKILL=1 metta complete <artifact>
When a non-default --workflow is used, the artifact loop uses whatever sequence metta propose returned — metta instructions <artifact> --json provides the correct agent persona per stage. Note: as of this change, the full workflow references stage templates (domain-research, architecture, ux-spec) that do not yet exist in src/templates/artifacts/; running --workflow full will fail on the first missing template. Tracked as issue full-workflow-references-missing-template-files-domain-resea for a follow-up.
For research: spawn 2-4 metta-researcher agents in parallel (one per approach). Each researcher MUST write to spec/changes/<change>/research-<approach-slug>.md (a short kebab-case slug per approach, e.g. research-websockets.md, research-sse.md, research-polling.md). Forbid /tmp/ paths — per-approach output MUST be in-tree so the synthesis step can read it.
Synthesize research — read all spec/changes/<change>/research-*.md files you just created, write a single consolidated spec/changes/<change>/research.md that summarizes each approach and ends with a recommendation, and git-commit it. Do NOT call METTA_SKILL=1 metta complete research until spec/changes/<change>/research.md exists on disk with real content.
IMPLEMENTATION — MANDATORY PARALLEL EXECUTION:
⚠️ DO NOT spawn a single metta-executor for all tasks. You MUST parse batches and spawn per-task.
a. Read spec/changes/<change>/tasks.md — YOU the orchestrator, not a subagent
b. Parse the batches (## Batch 1, ## Batch 2, etc.) and list tasks per batch
c. For each batch:
METTA_SKILL=1 metta complete implementation --json --change <name>Spawn 3 metta-reviewer agents in parallel (fan-out):
spec/changes/<change>/review.md and commitMETTA_SKILL=1 metta iteration record --phase review --change <name>
b. Group issues by file, spawn parallel metta-executors to fix
c. After fixes: re-run the 3 reviewers
d. Repeat until all PASS/PASS_WITH_WARNINGS (max 3 iterations)Spawn 3 metta-verifier agents in parallel (fan-out — single message):
METTA_SKILL=1 metta iteration record --phase verify --change <name>npm test — report pass/fail count and failures"npx tsc --noEmit and npm run lint — report errors"METTA_SKILL=1 metta iteration record --phase verify --change <name> again, then spawn parallel metta-executors to fix, then re-verifyMETTA_SKILL=1 metta complete verification --json --change <name>
METTA_SKILL=1 metta finalize --json --change <name> → runs gates, archives, merges specs
git checkout main && git merge metta/<change-name> --no-ff -m "chore: merge <change-name>"
Report results to user
METTA_SKILL=1 metta complete to advance workflow