بنقرة واحدة
metta-fix-gap
Resolve a reconciliation gap through the full metta change lifecycle
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Resolve a reconciliation gap through the full metta change lifecycle
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | metta:fix-gap |
| description | Resolve a reconciliation gap through the full metta change lifecycle |
| argument-hint | <gap-slug or --all> |
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob","Agent"] |
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 reconciliation gaps. Each gap becomes a full metta change lifecycle.
If $ARGUMENTS is empty (no gap-slug and no --all):
metta gaps list --json to get all open gaps| # | Slug | Severity | Summary |
|---|
For a given <gap-slug>:
Validate — metta gaps show <gap-slug> --json → confirm gap exists and is open. If not found, report error and stop.
Propose — METTA_SKILL=1 metta propose "fix gap: <gap-slug> — <gap-summary>" --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 Gap — metta gaps remove <gap-slug> --json → archives gap to spec/archive/ then removes from spec/gaps/
⚠️ MUST process ALL gaps from critical → medium → low. Do NOT stop after any severity tier.
When $ARGUMENTS is --all (optionally with --severity <level>):
METTA_SKILL=1 metta fix-gap --all --json (or METTA_SKILL=1 metta fix-gap --all --severity critical --json if user specified a severity filter) to get gaps sorted by severityMETTA_SKILL=1 metta fix-gap --remove-gap <slug> for each resolved gap in the batch[N/M] <slug>: resolved or [N/M] <slug>: failed at <phase>| Batch | Gaps | Files | Result |
|---|---|---|---|
Show per-batch and total counts: Resolved: X / Failed: Y / Total: Z |
METTA_SKILL=1 metta complete to advance workflowStart a new change with Metta
Full lifecycle loop — discover, build, verify, ship
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