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

define-loop

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

यह स्किल असिस्टेंट को एक ऐसी नियमित दिनचर्या बनाने देती है जो सपोर्ट टिकट या बग अलर्ट जैसी कामों की सूची पर काम करती है। नतीजे किसी व्यक्ति के जाँचने तक रुके रहते हैं। यह उन टीमों के लिए है जिनका काम लगातार चलता रहता है।

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

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

Skill का लिंक

https://github.com/yc-software/qm/blob/main/skills-seed/define-loop/SKILL.md

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

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

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

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

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

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

“हर सुबह हमारे सपोर्ट टिकट की जाँच कीजिए और जवाबों के ड्राफ़्ट बनाइए, ताकि मैं उन्हें देख सकूँ।”

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

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

असिस्टेंट कुछ सवाल पूछता है, एक आइटम का परीक्षण चलाता है, और फिर एक प्लेबुक सेव करता है। लूप समय-सारणी पर चलता है और पूरे हो चुके आइटम का रिकॉर्ड रखता है।

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

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

define-loop — author a Loop

A Loop is a cron with a memory and a gate: a trigger, a playbook, a ledger of work items that survives across fires, ship-ready outputs held for a person, and a governor watching its health. Reach for one when the ask is "keep doing this kind of work", not "do this".

Intake, work, and judge turns use the loop's existing owner/scope authorization, credentials, command policy, and security posture. They run without surface tools or addressed delivery. Intake reads candidates; work prepares outputs; the judge inspects the work and executes the declared checks. Final external actions belong in the approved ship stage. The review gate controls loop output shipping; it is not a read-only sandbox for arbitrary shell commands or API calls in earlier stages.

A cron is enough when each fire is independent and nothing needs reviewing. Prefer the cron; a loop earns its complexity only when work items persist, must not be worked twice, and produce artifacts someone should see before they go out.

The one rule: never arm a loop you have not watched work. Stage 2 is not optional.

Stage 1 — Interview

Get these, in the user's own words. Ask about them one or two at a time, not as a form.

What Why it matters
Source of work How to enumerate candidates each fire, and the stable id per item (Sentry issue id, Front conversation id). That id is the dedupe key — get it right or work repeats.
Trigger A cadence (calendar cron in their timezone) or an event. Ask when output is actually useful, not just how often.
Success condition What "done" means for ONE item.
Ship actions Which externally-visible actions the loop may take (open_pr, send_email, front_reply). Anything not declared is a quarantine when it happens.
Caps Optional. Propose defaults; record a decline without argument.
Escalation Who the governor pings, and where.

Writing the success condition

Free text, and it's the most load-bearing sentence in the loop. A good one has:

  • one measurable end state — a test result, a linked PR, an empty queue
  • a stated check — how the agent proves it ("npm test exits 0", "the PR shows CI green")
  • the constraints that matter — what must not change on the way ("touches only the implicated module")
  • a bound — "or park with a diagnosis after 5 turns", so a hopeless item stops burning money

The Sentry issue has a linked PR whose tests pass and CI is green, the fix touches only the implicated module, or park with a diagnosis after 5 turns.

Add successChecks for anything a command can settle (npm test, npm run lint). The judge runs each check and reports its command and result. A missing or failed reported check prevents completion even when the judge claims success. Check results are model-reported, not an independent deterministic execution attestation.

Stage 2 — Shadow run (never skip)

Work one real item end to end, in this conversation, with the user watching. No loop record exists yet.

  1. Pull one real candidate from the source.
  2. Do the whole job to the ship line — write the actual PR or the actual reply — and stop.
  3. Show the user the finished artifact. Ask directly: would you have sent this?
  4. Fix what they flag. Repeat on a second item if the first needed real correction.

Then write the playbook from what you just did — the steps that actually worked, the dead ends worth skipping, the exact success condition you'd have wanted. A playbook written before the shadow run is a guess; one written after is a procedure.

Stage 3 — Emit

Create the loop with t

अक्सर पूछे जाने वाले सवाल

असिस्टेंट पहले एक परीक्षण आइटम क्यों चलाता है?

परीक्षण से आप शुरू होने से पहले काम देख सकते हैं, ताकि समय-सारणी के नतीजे आपको अचानक न लगें।

क्या नियमित शेड्यूल्ड टास्क काफ़ी है?

अगर हर चलना एक-दूसरे से स्वतंत्र है और किसी समीक्षा की ज़रूरत नहीं, तो सरल शेड्यूल काफ़ी है। लूप उस काम के लिए है जिसे ट्रैक और जाँचना ज़रूरी है।

अंतिम आउटपुट कौन मंज़ूर करता है?

बाहर की कोई भी कार्रवाई होने से पहले एक व्यक्ति रोके गए आउटपुट की समीक्षा करता है। यही समीक्षा चरण तय करता है कि क्या भेजा जाए।

जानकारी

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

Define a Loop — a durable scaffold that works a queue of recurring tasks autonomously (Sentry issues, Front tickets, small perf PRs) with its outputs held for human review. Use when someone wants an agent to keep doing a kind of work on a schedule, rather than one-off. Walks the interview, runs one real item live before arming anything, then writes the playbook and creates the loop.

repo: yc-software/qm

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

deploy-qm

16k

यह आपके एजेंट को QM पैकेज को Fly.io, AWS या Render पर डिप्लॉय करने और पहला एडमिन सेट करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

onboarding

16k

यह आपके एजेंट को एक छोटी बातचीत में खाते जोड़ने, आपका काम समझने, आवाज़ चुनने और पहली मदद सेट करने में मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

admin

16k

यह आपके एजेंट को सत्यापित एडमिन के लिए चैट से संस्था-स्तर की सेटिंग्स देखने और बदलने में मदद करती है, हर बदलाव से पहले पुष्टि के साथ।

अन्यविविध

browse

16k

यह आपके एजेंट को असली स्टेल्थ ब्राउज़र से वेबसाइट पर साइन इन करने और फ़ॉर्म भरने जैसे काम करने देती है। यह पढ़ने के लिए नहीं, कार्रवाई के लिए है।

प्रोडक्टिविटीऑटोमेशन

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