loopx-self-repair
Skill này làm gì
Skill này giúp agent điều tra khi LoopX hoạt động bất ngờ, như tiến triển rất ít hoặc làm theo chỉ dẫn cũ. Nó dành cho người chạy tác vụ LoopX và muốn nguyên nhân được sửa.
Khi nào nên dùng
- ✓Khi một tác vụ LoopX tiến triển ít hơn nhiều so với mong đợi hoặc bỏ qua một mục ưu tiên cao hơn.
- ✓Khi LoopX đưa ra các bước tiếp theo mâu thuẫn nhau hoặc làm mất danh sách việc cần làm.
- ✓Khi bạn muốn một bản sửa lâu dài được ghi lại thay vì một giải thích một lần về sự cố LoopX.
Liên kết skill
https://github.com/loopx-project/loopx/blob/main/skills/loopx-self-repair/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“LoopX cứ bỏ qua tác vụ quan trọng và làm các việc nhỏ thay thế. Bạn có thể tìm xem vì sao và ghi lại một bản sửa không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tra cứu lỗi hoặc triệu chứng trong một danh mục các mẫu đã biết, đọc hướng dẫn tương ứng, và kiểm tra dữ kiện hiện tại trước khi đề xuất sửa chữa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có chạy chẩn đoán trên mọi tác vụ không?
Không. Nó dành cho hành vi bất ngờ, và tránh thu thập thêm thông tin khi nguyên nhân đã rõ.
Nó bao quát những loại vấn đề nào?
Ví dụ gồm hướng dẫn cũ, cổng phê duyệt chủ sở hữu không rõ, danh sách việc cần làm bị mất, và file tạm lẫn vào commit.
Nó có tự thực hiện thay đổi không?
Nó tập trung vào tìm nguyên nhân và ghi lại bản sửa, và hỏi lại quyền trước khi thực hiện bất kỳ thao tác ghi nào cần quyền.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #13879
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
loopx
6.5kDạy agent thiết lập và chạy LoopX, một công cụ cục bộ giữ các mục tiêu, nhiệm vụ và bằng chứng dài hạn đi đúng hướng qua các phiên trò chuyện.
loopx-change-quality
6.5kHướng dẫn agent review đúng bản thay đổi code cuối cùng của một mục tiêu LoopX, kiểm tra chất lượng trước khi merge và ghi biên nhận chất lượng.
loopx-doc-registry
6.5kDạy agent ghi lại và lập chỉ mục các tài liệu dự án lâu dài, như tài liệu thiết kế và ghi chú nghiên cứu, để các agent sau có thể tìm thấy.
loopx-material
6.5kHướng dẫn agent quản lý kho tài liệu nghiên cứu của dự án, gồm kiểm kê, chuyển mục giữa các giai đoạn, xếp hạng và thay đổi có chủ sở hữu phê duyệt.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.