loop-worker
यह क्या करती है
यह स्किल काम करते समय सुरक्षा और टेस्ट-गैप जाँच जैसे Ruflo बैकग्राउंड वर्कर्स को नियमित शेड्यूल पर चलाती है। जो लोग कम मेहनत में नियमित जाँच चाहते हैं, उनके लिए यह है।
कब इस्तेमाल करें
- ✓जब आप काम के सत्र में सुरक्षा या टेस्ट-कवरेज जाँच दोहराना चाहें।
- ✓जब कोई बैकग्राउंड वर्कर चल रहा हो और आप बाद में उसकी स्थिति देखना चाहें।
- ✓जब कुछ नया न मिलने पर दोहराई जाने वाली जाँचें रुक जाएँ।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“काम करते समय हर कुछ मिनट पर ऑडिट वर्कर बैकग्राउंड में चलाते रहिए, और जब कुछ नया न मिले तो रोक दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल एक वर्कर बैकग्राउंड में शुरू करती है, उसकी स्थिति जाँचती है और थोड़ी देर बाद अगला रन शेड्यूल करती है। अगर वर्कर लगातार दो बार कुछ नया न बताए, तो लूप रुक जाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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
ScheduleWakeuptool 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.
अक्सर पूछे जाने वाले सवाल
यह कितनी बार जाँच करती है?
हर वर्कर का सुझाया अंतराल होता है, जैसे ऑडिट वर्कर के लिए लगभग 270 सेकंड। सत्र में लंबा कैश विंडो हो तो लंबे अंतराल सुझाए जाते हैं।
कौन से वर्कर उपलब्ध हैं?
स्किल बारह वर्कर सूचीबद्ध करती है, जो सुरक्षा विश्लेषण, प्रदर्शन, predictive preloading और टेस्ट कवरेज जैसे क्षेत्र कवर करते हैं।
क्या सत्र बंद करने के बाद भी लूप चलता है?
नहीं। यह मौजूदा सत्र के भीतर चलता है, इसलिए वह सत्र खत्म होते ही रुक जाता है।
जानकारी
लेखक का मूल विवरण
Run Ruflo background workers using Claude Code native /loop scheduling
repo: ruvnet/ruflo
लोकप्रियता
- GitHub स्टार
- 81k
- रैंकिंग में स्थान
- #1642
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।