refit
Skill này làm gì
Skill này xem xét hiệu suất của thiết lập làm việc qua nhiều phiên, như kiểm tra lặp lại thất bại hoặc các lần chạy bị đình trệ. Skill dành cho người muốn môi trường của họ mượt hơn theo thời gian.
Khi nào nên dùng
- ✓Khi cùng một kiểm tra hoặc bước cứ thất bại qua nhiều phiên.
- ✓Khi các lần chạy tự động liên tục bị đình trệ hoặc lặp lại những bước lãng phí.
- ✓Khi bạn muốn xem định kỳ môi trường làm việc và các vấn đề của nó.
Liên kết skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/refit/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
“Hãy xem lại các phiên gần đây của chúng ta và cho tôi biết những vấn đề lặp lại nào trong thiết lập đang làm chậm chúng ta.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc dòng thời gian phiên, báo cáo ma sát, log và ghi chú lập kế hoạch mà oh-my-claudecode ghi lại. Nó phân loại từng phát hiện theo nơi cần sửa và đề xuất thay đổi, nhưng không ghi gì cho đến khi bạn duyệt.
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.
Refit
Refit surveys the environment the agent worked in — not the code it produced (review and verify own that) and not one launch run's lessons (the sediment pass owns that). Every kind of work leaves friction behind: a ralph loop that kept tripping on the same check, an autopilot run that stalled waiting for a signal, a debugging session where the decisive output was never captured anywhere. OMC instruments all of it. Refit reads the instruments and converts recorded friction into environment changes, so the next run starts in a better yard.
Evidence first
The survey starts from OMC's instruments, not from a checklist. Read before asking the user anything:
trace_timeline/trace_summary— where turns stalled, repeated, or fanned out wastefullyomc session friction report— friction the session recorded about itself.omc/logs/and session state — errors, retries, swallowed failures- plan notepads
.omc/notepads/*/issues.mdandproblems.md— problems that accumulated across a plan - the repo's own check surface (
package.jsonscripts, CI workflows) — read before proposing any new check, because a check that exists but sits unwired or silently broken is the finding, not a reinvention
Findings emerge from what the data shows. An empty survey is a valid result and is stated plainly; an invented finding is the same violation as skipping the survey. A repo with no wired automated checks is itself a finding, not a neutral default.
Four fix-owner surfaces
Every finding names the surface that owns its fix. A finding that fits no surface is declined, explicitly and with the reason.
- Deterministic check — the failure was mechanical: a fixed syntactic pattern, a banned API, an import shape, a file-location rule. The fix is a lint rule, hook, or CI job — whichever the repo's existing guardrails make cheapest. Default to building the check over writing the rule.
- Steering surface — the failure was a judgement call no guardrail substitutes for: cross-file consistency, matches-surrounding-style. The fix lands in the matching
docs/standards/volume, or inCLAUDE.md/AGENTS.mdwithin the thin-entry budget the launch sediment pass defines. Navigation pointers over prose. - Tool surface — the drag was tooling itself: expensive or token-inefficient MCP calls, missing automation, checks too slow to be run when they matter. The fix lands in
.mcp.json,scripts/, hooks, or OMC config. - Information surface — the agent needed a signal it could not reach: dev-server logs, service state, third-party readonly access. The fix tees the log, exposes the state, or documents the access path.
The split rests on where enforcement pressure lives: implementation contexts carry the most of it (exploration, writing, and debugging all at once); review contexts receive a diff with none of it. Standards therefore belong to reviewers and checks — never to more instructions loaded onto the implementer.
Proposal and landing
- Present findings ranked by severity, each as
finding → surface → intended change, with one line of instrument evidence (which instrument, what it showed). - Stop for user approval. Each line is individually approvable or vetoable.
- Write approved findings to their surfaces. Before writing any steering prose, call the Skill tool with
agent-doc-disciplineand pass its verification checklist. A newly installed deterministic check must be proven to bite before it counts as landed: run it clean once, then demonstrate it failing on a deliberately introduced violation, then revert the violation. A check that cannot be shown failing goes back to the proposal — a guardrail nobody has seen fire is decoration, not protection. - Record where each finding landed — one file location per line — so the next refit starts from the record, not from memory. A refit on a launch-run session starts from that run's sediment list; a launch run may defer a lesson to a later refit by naming it.
Headless refit (unattended invocation)
Refit is user-invoked, but its survey does not need the user at the keyboard to run — only to dispose. A host scheduler (cron, CI timer, an automation tool) may start a headless agent session that invokes this skill; the survey runs to its natural boundary under the same contract:
- The survey reads the same instruments and lands nothing anywhere: headless refit produces the proposal list only —
finding → surface → intended change, each with one line
Câu hỏi thường gặp
Nó có thay đổi gì mà không hỏi không?
Không. Không có gì được ghi mà không có sự phê duyệt của bạn.
Nếu không tìm thấy vấn đề nào thì sao?
Skill nói rõ điều đó, vì kết quả rỗng cũng là một kết quả hợp lệ.
Nó có review chính mã không?
Không. Review mã và xác minh xử lý mã, còn skill này nhìn vào môi trường xung quanh công việc.
Chi tiết
Mô tả gốc của tác giả
Cross-session environment retrospective driven by OMC's own instrumentation — trace timelines, friction reports, logs, and plan notepads. Every finding lands on the surface that owns the fix (deterministic check, steering volume, tooling, or information access); nothing is written without user approval.
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #7019
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-doc-discipline
41kDạy agent của bạn viết hướng dẫn mà các agent AI khác có thể tự làm theo, với các quy tắc có thể kiểm tra và lý do rõ ràng đằng sau mỗi quy tắc.
ai-slop-cleaner
41kGiúp agent của bạn dọn dẹp mã do AI viết mà chạy được nhưng cồng kềnh hoặc lặp lại, loại bỏ mã thừa mà không thay đổi những gì nó làm.
architecture-survey
41kGiúp agent của bạn xem xét cấu trúc một codebase và liệt kê các phần ngày càng khó thay đổi, kèm bằng chứng, mà không tự thay đổi gì.
ask-navigator
41kGiúp agent của bạn biến một dự án còn mơ hồ thành bản đồ các câu hỏi quyết định rõ ràng, rồi giải quyết từng câu một cho đến khi con đường trở nên rõ.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.