Skip to content
Agent Orchestration
Skill

/loopx-self-repair

Diagnose and repair LoopX control-plane drift or agent behavior drift. Use when a LoopX task makes unexpectedly small progress, follows a stale or contradictory recommended_action, ignores a higher-priority blocked item while doing fallback work, reports vague owner/user gates,

From plugin
loopx
6.7k15 skills1 command

Claude Code

$ npx -y skills add loopx-project/loopx --skill loopx-self-repair --agent claude-code

SKILL.md

loopx-self-repair.SKILL.md
name: loopx-self-repair
description: Diagnose and repair LoopX control-plane drift or agent behavior drift. Use when a LoopX task makes unexpectedly small progress, follows a stale or contradictory recommended_action, ignores a higher-priority blocked item while doing fallback work, reports vague owner/user gates, loses todo projection, misaligns benchmark treatment with the real product path, mixes temporary artifacts into commits, or when the user asks for root-cause analysis, self-repair, or why the harness/agent behaved unexpectedly.

LoopX Self Repair

Use this skill to turn a surprising LoopX behavior into a durable fix, not only an apology or a one-off explanation.

Repair Loop

1. **Pause delivery selection.** Do not spend quota or continue adapter work until the control-plane facts explain why that work is valid. 2. **Reuse evidence before collecting more.** Start with the current failed command's structured response, error code and operation identity. An already loaded packet is evidence for that observation, not permission for a later write. Fetch fresh authority when required by its admission/lease contract. Read [targeted diagnostics](references/targeted-diagnostics.md) when deciding which missing fact to collect or investigating slow commands. Do not run diagnose, status, quota and history as a fixed preflight: diagnose already composes status and quota work. Recording an already-understood repair Todo does not require rediscovering the incident. 3. **Look up the symptom.** Run `python3 scripts/find_pattern.py --query '<error code or symptom terms>'` from this skill directory, or invoke its absolute path. Use `--id <returned-id>` to read the relevant full guidance. [Search instructions](references/pattern-lookup.md) explain pagination and fallback. Do not load the complete catalog, paginate it into context, or reread unchanged references already available in this task. If no pattern fits, diagnose from current facts and add one after the fix. 4. **Assign the responsible layer.** Separate:

  • agent behavior mistake;
  • state projection or quota payload bug;
  • active-state authoring gap;
  • benchmark harness mismatch;
  • docs/process hygiene gap.

5. **Repair at the lowest durable layer.**

  • If it is a one-off agent mistake, write back the correct state/todo and

size the next scoped effort to its verifiable result, evidence and risk.

  • If the machine projection misled the agent, fix CLI/status/quota

projection and add a focused smoke.

  • If a direct user correction changes what counts as success, first update

the matching durable outcome requirements through [outcome refinement](../loopx-project/references/outcome-refinement.md). Read back and reconcile affected work before dependent execution. Preserve unaffected requirements. A changed purpose or added lasting responsibility in the current Goal uses its objective revision route. For an addition, keep existing commitments and reconcile Todos in that Goal. Use existing creation for an explicit separate Goal and reconcile scope conflicts before revising. Chat, a peer message, a report or Vision alone cannot update acceptance. Do not invent a new approval, goal or text classifier.

  • If the corrected requirements also change the execution route, the agent

missed the intended loop, or a product bottleneck is invisible in quota/status, write a bounded `goal_vision_replan_contract_v0` packet with `replan_trigger_summary` through normal `loopx refresh-state --vision-*` fields, using the same `--agent-id` as the current lane, or `--agent-vision-json` for generated multi-field patches, before returning to delivery. If the next executable step is already known, also add or link the concrete successor todo; do not leave the correction only in chat or an incident note.

  • If a design rule is missing, update the interaction model or todo list

before implementing broad behavior.

  • If benchmark evidence is not attributable, add posthoc trace/parity

checks before claiming uplift or regression. 6. **Validate before resuming.** Run the smallest smoke or CLI check that would have caught the issue, plus `loopx check` on changed public surfaces when docs/contracts changed. 7. **Write back the lesson.** Update active goal state, docs, contributor tasks, or this skill so the same failure mode is visible next time.

When work repeatedly enters a receipt-owned retry, first check the caller's typed outcome against the selected Todo. Rejecting a candidate with new, validated evidence can advance an evaluation Todo while leaving the broader stage open; it is not automatically an execution blocker. Pure reuse or setup does not qualify as progress. Use `blocked` only when the Todo's actual next step cannot execute, preserve genuine retry clocks, and replan finite answered questions through the existing Todo/vision. Finishing one question or submitting its PR does not close an ongoing user objective. Use the retained requirements and already authorized sources to select the next useful independent slice; source discovery does not need a new human assignment. Missing cost, comprehension, adoption or review evidence limits the corresponding claim or dependent operation, not all research or implementation. Do not retire an ongoing vision merely to suppress replan. If an earlier authoring mistake did so, repair the original Todo/vision, keep genuine dependency waits scoped, and verify that the public entrypoint admits independent work before continuing it. Preserve actual authority, budget and stop conditions; when no useful authorized work remains, retain the evidenced wait rather than inventing activity. Never erase receipts or fabricate progress to escape a wait. See [settlement classification](https://github.com/loopx-project/loopx/blob/main/docs/quota-allo

Read more
@loopx-project
Ships withloopx

The control plane for 24/7 always-on agents. Turn long-horizon goals into verifiable results across Codex, Claude Code, and custom runtimes—from local SQLite to team scale.

Stars on GitHub

Momentum

stars in total
6.7k
Star history of loopx-project/loopx on GitHub, a chart by star-history.com

Other skills on loopx.

loochat-ask

loochat-ask

把飞书里转来的消息或问题交给 LooChat 助手(私人事项 Router),由它找到相关事项和会话,直接给答案或交给 agent 推进,再把它的回复原样发回。用户转发一条飞书消息、引用别人的 @、说「交给 loochat」「问问助手」「跟进下」时使用。

@loopx-project@loopx-projectInstall Skill
loochat-tools

loochat-tools

需要借用其他 Agent 的能力时,通过 LooChat CLI 按需发现、调用和读取结果。支持生图、搜索、网页读取,以及由 Codex 操作 LooChat 独立浏览器的 Computer use。

@loopx-project@loopx-projectInstall Skill
tb4-five-arm

tb4-five-arm

在 Terminal-Bench 4.0 上做 codex harness 五臂对照(裸 codex / 原生 /goal / LoopX 三模式)。复用 SWE-Marathon 那套驱动,靠 WEN_BENCH 切换。重点是 TB4 相对…

@loopx-project@loopx-projectInstall Skill
loopx-manager

loopx-manager

Inspect authorized LoopX Goals, Todos and deliveries to explain progress, identify owner decisions and delegate intent to the…

@loopx-project@loopx-projectInstall Skill
loopx-benchmark

loopx-benchmark

Operate or analyze LoopX-managed benchmark experiments through benchmark-toolkit, including trajectory-based effectiveness and…

@loopx-project@loopx-projectInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about loopx-self-repair.

Which coding agents can use loopx-self-repair?
loopx-self-repair installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.