Chuyển đến nội dung
Skillpedia
Tự động hóa81k · #1642

loop-worker

Skill này làm gì

Skill này chạy các worker nền của Ruflo, như phân tích bảo mật và kiểm tra khoảng trống test, theo lịch lặp lại khi bạn làm việc. Nó dành cho người muốn các kiểm tra định kỳ chạy với ít thao tác thủ công hơn.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra bảo mật hoặc độ phủ test lặp lại trong một phiên làm việc.
  • ✓Khi một worker nền đang chạy và bạn muốn xem lại sau.
  • ✓Khi bạn muốn các kiểm tra lặp dừng lại khi không còn phát hiện mới.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tiếp tục chạy worker kiểm toán ở nền mỗi vài phút trong lúc tôi làm việc, và dừng khi nó không tìm thấy gì mới.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill khởi động một worker ở nền, kiểm tra trạng thái của nó và lên lịch lần chạy kế tiếp sau một khoảng trễ ngắn. Vòng lặp dừng khi worker báo không có gì mới hai lần liên tiếp.

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.

Use /loop for in-session periodic workers. Pick the delay from what you are waiting for:

  • With the 5-minute prompt-cache TTL, min(270, cache_ttl * 0.9) = 270s keeps the cache warm (ruflo-autopilot ADR-0001 owns that heartbeat).
  • If the ScheduleWakeup tool description says this session uses the 1-hour TTL, a 270s wake buys nothing; poll at 1200-1800s unless the worker finishes faster.

Dispatch a worker via MCP: mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: "WORKER_NAME" }). It runs in the background by default (background: true), so check on it with hooks_worker-status instead of waiting inline.

Then schedule the next iteration. ScheduleWakeup needs the loop prompt back so the next firing re-enters the loop: ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration", prompt: "/loop <the same /loop input>", noop: false })

Stop the loop when the worker reports nothing new twice in a row: ScheduleWakeup({ stop: true }).

Available Workers (12, per ADR-0001 and /ruflo-loop)

Worker Priority Interval Description
audit critical 270s Security analysis
optimize high 270s Performance optimization
predict normal 270s Predictive preloading
testgaps normal 270s Test coverage analysis
ultralearn normal 600s Deep knowledge acquisition
deepdive normal 600s Deep code analysis
map normal 600s Codebase mapping
document normal 600s Auto-documentation
refactor normal 600s Refactoring suggestions
benchmark normal 600s Performance benchmarking
consolidate low 600s Memory consolidation
preload low 270s Resource preloading

The intervals are suggested cadences, not enforced by the dispatcher: 270s keeps the prompt cache warm, and the heavier analysis workers run at 600s because one iteration rarely finishes sooner.

Work you start in the background (a build, a long job) finishes with its own completion notification. Do not poll it with short ScheduleWakeup calls; use a long fallback delay (1200s or more) so the loop survives a hung job.

MCP tool responses include [LOOP_SUGGESTION] and [CRON_SUGGESTION] hints -- follow them.

Câu hỏi thường gặp

Nó kiểm tra bao lâu một lần?

Mỗi worker có một khoảng thời gian gợi ý, ví dụ khoảng 270 giây với worker kiểm toán. Khoảng dài hơn được gợi ý khi phiên dùng cửa sổ cache dài hơn.

Có những worker nào?

Skill liệt kê mười hai worker, bao gồm các lĩnh vực như phân tích bảo mật, hiệu năng, tải trước dự đoán và độ phủ test.

Vòng lặp có tiếp tục sau khi tôi đóng phiên không?

Không. Nó chạy trong phiên hiện tại nên sẽ dừng khi phiên đó kết thúc.

Chi tiết

Mô tả gốc của tác giả

Run Ruflo background workers using Claude Code native /loop scheduling

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1642
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự