मुख्य सामग्री पर जाएँ
Skillpedia
ऑटोमेशन14k · #11330

loop

यह क्या करती है

यह स्किल एक निश्चित अंतराल पर चलने वाला दोहराव वाला काम सेट करती है। यह उन लोगों के लिए है जो चाहते हैं कि उनका एजेंट कोई चीज़ लगातार देखता रहे या कोई रूटीन बार-बार चलाए।

कब इस्तेमाल करें

  • ✓जब आप कोई काम हर कुछ मिनट, घंटे या दिन पर दोहराना चाहते हैं।
  • ✓जब आप चाहते हैं कि एजेंट किसी स्थिति या प्रक्रिया पर नज़र रखे।
  • ✓जब कोई रूटीन आपके शुरू किए बिना बार-बार चलता रहे।

Skill का लिंक

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/loop/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/loop/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे डिप्लॉय की स्थिति हर 15 मिनट पर जाँचिए, और अगर वह फ़ेल हो तो मुझे बताइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट अंतराल और प्रॉम्प्ट पढ़ता है, शेड्यूल तय करता है, उसे रजिस्टर करता है, और एक बार तुरंत चलाकर दिखाता है कि वह काम कर रहा है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

/loop — schedule a recurring prompt

This skill turns a free-form [interval] <prompt> line into a cron tool call and runs the prompt once right away.

1. Parse the input

The user's text is whatever appears after /loop . Apply the three rules below in order and stop at the first match.

  1. Leading interval token. If the first whitespace-separated token matches the regex ^\d+[smhd]$ (case-insensitive), that token is the interval. Examples: 5m, 2h, 1d, 30s. The rest of the input is the prompt.

  2. Trailing every <N><unit> clause. Otherwise, look for a clause at the end of the input of the form every <N><unit> or every <N> <unit-word> where <unit> is s|m|h|d and <unit-word> is second(s)|minute(s)|hour(s)|day(s). Strip the clause; what's left is the prompt; the captured <N><unit> is the interval. Examples: every 20m, every 5 minutes, every 2 hours.

  3. Default. No interval found → interval is 10m, the whole input is the prompt.

If the input is empty, or is only an interval with no prompt body, reply with a one-line usage hint (/loop [interval] <prompt>) and stop. Do not schedule anything.

2. Special: empty prompt with autonomous opt-in

When the user types /loop <interval> (interval only) and the project has explicitly opted into autonomous-loop mode (a session-level flag the runtime sets), the prompt body is the sentinel <<autonomous-loop>>. The scheduler expands this sentinel at fire time into a self-directed tick instruction. If autonomous mode is not enabled, treat empty as the usage-hint case above.

3. Map interval → 5-field cron expression

Pattern Cron expression
Ns treat as ceil(N/60)m; minimum is 1m
Nm where N is 1–59 and divides cleanly (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30) */N * * * *
Nm where N ≥ 60 and N/60 divides 24 (1, 2, 3, 4, 6, 8, 12) 0 */(N/60) * * *
Nh where N is 1–23 and divides 24 0 */N * * *
Nd where N divides 31 sensibly (1, 2) 0 0 */N * *

Cron fields are UTC. These interval patterns are timezone-agnostic; the Nd row fires at midnight UTC, not local midnight.

Rounding rule. If N does not divide its wrap-around cleanly (e.g. 7m, 90m, 5h, 7d), pick the nearest interval that does and tell the user explicitly what you rounded to and why. Acceptable nearby values:

  • minutes < 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30
  • hours: 1, 2, 3, 4, 6, 8, 12
  • days: 1, 2

Examples of rounding messages:

  • 7m → "rounding 7m to 6m so the fires stay evenly spaced; */7 skews at the hour wrap"
  • 90m → "rounding 90m to 2h; cron's hour field can't express 1.5h"

4. Call the cron tool

With the parsed cron expression and prompt, invoke the cron tool's schedule verb. Use whichever call form the tool's own prompt describes — pass cron and prompt as required, leave durable: false (the default; only set true when the user explicitly asked the job to persist across sessions), leave it recurring (the default; one-shot is wrong for /loop — one-shots come from natural-language scheduling).

The cron tool returns a job id. Mention it briefly so the user can cancel with /loops cancel <id>.

5. Execute the prompt once immediately

After the cron call succeeds, do not wait for the first scheduled tick. Run the prompt body once right now:

  • If the prompt starts with / (e.g. /loop 5m /standup → prompt is /standup), invoke it as a slash command — load the corresponding skill or command via the skill tool.
  • Otherwise, act on the prompt directly in this turn.

This is the "don't make the user wait" rule. The cron job carries the recurring behavior; the immediate run is for responsiveness.

6. Examples

User input Interval Cron Prompt
/loop 5m /babysit-prs 5m (leading) */5 * * * * /babysit-prs
/loop check the deploy every 20m 20m (trailing) */20 * * * * check the deploy
/loop /standup every 2 hours 2h 0 */2 * * * /standup
/loop tidy inbox 10m (default) */10 * * * * tidy inbox
/loop 30s ping 30s → 1m */1 * * * * ping
/loop 7m ping 7m → 6m (rounded, explain) */6 * * * * ping
/loop (usage hint) — —
/loop 5m autonomous-only (if enabled) <<autonomous-loop>>

7. Do not

  • Do not invent intervals the user didn't ask for. If unsure, default to 10m and sa
अक्सर पूछे जाने वाले सवाल

कौन-सा अंतराल फ़ॉर्मेट चलता है?

आप 5m या 2h जैसे अंतराल से शुरू कर सकते हैं, या every 20 minutes लिख सकते हैं। छोड़ देने पर डिफ़ॉल्ट 10 मिनट है।

क्या यह अभी एक बार चलता है?

हाँ। स्किल प्रॉम्प्ट को तुरंत एक बार चलाती है, फिर तय शेड्यूल पर।

खाली अनुरोध दिया जाए तो क्या होता है?

स्किल एक छोटा उपयोग संकेत दिखाती है और कोई शेड्यूल नहीं बनाती।

जानकारी

लेखक का मूल विवरण

Schedule a prompt to fire on a fixed cadence (recurring loop). Use when the user asks to "run X every N minutes/hours/days", "loop X", "babysit Y", "be proactive about Y every N", or invokes `/loop` directly. Parses `[interval] <prompt>`, picks a clean cron expression, registers the job via the `cron` tool, and executes the prompt once immediately so the user sees activity without waiting for the first cron tick.

repo: XiaomiMiMo/MiMo-Code

लोकप्रियता

GitHub स्टार
14k
रैंकिंग में स्थान
#11330
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

effect

14k

आपके एजेंट को Effect TypeScript फ़्रेमवर्क के सवालों के जवाब देने में मदद करती है, याददाश्त पर भरोसा करने के बजाय उसका सोर्स कोड और दस्तावेज़ जाँचकर।

कोडिंगसामान्य कोडिंग

arxiv

14k

आपके एजेंट को arXiv पर शोधपत्र खोजने, पढ़ने, उद्धृत करने और उन पर नज़र रखने में मदद करती है, जिसमें सार, BibTeX उद्धरण, PDF डाउनलोड और उद्धरण लिंक शामिल हैं।

लेखन और डॉक्यूमेंटरिसर्च

claude-code

14k

आपके एजेंट को कोडिंग का काम Claude Code कमांड-लाइन टूल को सौंपने में मदद करती है, एक बार चलने वाले रन, इंटरैक्टिव सेशन या पृष्ठभूमि जॉब के रूप में।

AI और एजेंटएजेंट

codex

14k

आपके एजेंट को बिना चैट विंडो के OpenAI Codex कमांड-लाइन टूल चलाने में मदद करती है, कोडिंग काम, स्क्रिप्ट और स्वचालित पाइपलाइन के लिए।

AI और एजेंटएजेंट

मिलती-जुलती skills