loopx-self-repair
它能做什么
该技能帮助你的智能体调查 LoopX 出现令人意外的行为时的原因,例如进展很小,或遵循了过时的指令。适合运行 LoopX 任务、并希望问题根源得到修复的人。
适用场景
- ✓当 LoopX 任务的进展远低于预期,或忽略了更高优先级的事项时。
- ✓当 LoopX 给出相互矛盾的下一步,或丢失了待办清单时。
- ✓当你希望记录一次持久的修复,而不是对 LoopX 问题做一次性的解释时。
技能链接
https://github.com/loopx-project/loopx/blob/main/skills/loopx-self-repair/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“LoopX 总是跳过重要的任务,而去做一些小事。你能找出原因并记录一个修复吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在已知模式目录中查找错误或症状,阅读相关的指导,并在建议修复之前核实当前的事实。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Pause delivery selection. Do not spend quota or continue adapter work until the control-plane facts explain why that work is valid.
- 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 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.
- 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 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. - 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.
- 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 the user correction changes the goal acceptance, says the agent missed
the intended loop, or exposes a product bottleneck that is not visible in
quota/status, write a bounded
goal_vision_replan_contract_v0packet withreplan_trigger_summarythrough normalloopx refresh-state --vision-*fields, using the same--agent-idas the current lane, or--agent-vision-jsonfor 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.
- Validate before resuming. Run the smallest smoke or CLI check that would
have caught the issue, plus
loopx checkon changed public surfaces when docs/contracts changed. - 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 evidence
常见问题
它会在每个任务上都运行诊断吗?
不会。它用于处理令人意外的行为,并且在原因已经清楚时避免收集额外的信息。
它涵盖哪些类型的问题?
例如过时的指令、不清楚的所有者关卡、丢失的待办清单,以及混入提交中的临时文件。
它会自行进行更改吗?
它专注于找出原因并记录修复,对于任何需要写入的操作,会先请求新的许可。
详情
作者的原始描述
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.
repo: loopx-project/loopx
热度
- GitHub 星标
- 6.5k
- 排名
- #13879
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
loopx
6.5k教你的智能体设置并运行 LoopX,这是一个本地工具,可在多次聊天会话之间持续跟踪长期目标、任务和证据。
loopx-change-quality
6.5k指导你的智能体为 LoopX 目标审查最终的代码改动,在合并前检查质量,并生成质量回执。
loopx-doc-registry
6.5k教你的智能体记录并索引持久的项目材料,例如设计文档和研究笔记,使未来的智能体能够找到它们。
loopx-material
6.5k指导你的智能体管理项目的已存储研究材料,包括盘点、在各阶段之间移动条目、排序,以及经所有者批准的更改。