ワンクリックで
metta-fix-issues
Resolve an issue through the full metta change lifecycle
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Resolve an issue through the full metta change lifecycle
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Start a new change with Metta
Full lifecycle loop — discover, build, verify, ship
Resolve a reconciliation gap 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:fix-issues |
| description | Resolve an issue through the full metta change lifecycle |
| argument-hint | <issue-slug or --all> |
| 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 resolving issues. Each issue becomes a full metta change lifecycle.
If $ARGUMENTS is empty (no issue-slug and no --all):
metta issues list --json to get all open issues| # | Slug | Severity | Summary |
|---|
For a given <issue-slug>:
Validate — metta issues show <issue-slug> --json → confirm issue exists and is open. If not found, report error and stop.
From the returned JSON, display the ## Symptom, ## Root Cause Analysis (including any ### Evidence subsection), and ## Candidate Solutions sections of the description field to the orchestrator. If one or more sections are absent (legacy shallow issue), display whatever body content is present and continue — do not error.
Propose — METTA_SKILL=1 metta propose "fix-<issue-slug>" --json → creates change on branch metta/<change-name>
Per-Artifact Loop — For each planning artifact (intent, spec, design, tasks), spawn one subagent per artifact:
metta instructions <artifact> --json --change <name> → spawn agent → METTA_SKILL=1 metta complete <artifact>
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>Review — spawn 3 metta-reviewer agents in parallel (fan-out — single message):
spec/changes/<change>/review.md and commitReview-Fix Loop (repeat until clean):
a. Run METTA_SKILL=1 metta iteration record --phase review --change <name>
b. If any critical issues found:
Verify — 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-verifyFinalize — METTA_SKILL=1 metta finalize --json --change <name> → runs gates, archives, merges specs
Merge — git checkout main && git merge metta/<change-name> --no-ff -m "chore: merge <change-name>"
Remove Issue — METTA_SKILL=1 metta fix-issue --remove-issue <issue-slug> --json → archives issue to spec/issues/resolved/ then removes from spec/issues/
⚠️ MUST process ALL issues from critical → major → minor. Do NOT stop after any severity tier.
When $ARGUMENTS is --all (optionally with --severity <level>):
METTA_SKILL=1 metta fix-issue --all --json (or METTA_SKILL=1 metta fix-issue --all --severity critical --json if user specified a severity filter) to get issues sorted by severityMETTA_SKILL=1 metta fix-issue --remove-issue <slug> for each resolved issue in the batch[N/M] <slug>: resolved or [N/M] <slug>: failed at <phase>| Batch | Issues | Files | Result |
|---|---|---|---|
Show per-batch and total counts: Resolved: X / Failed: Y / Total: Z |
METTA_SKILL=1 metta complete to advance workflow