मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट280k · #353

loop-design-check

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

यह tool दोहराए जाने वाले AI tasks के लिए 'loop' बनाने या उसकी जांच करने में मदद करता है। यह सुनिश्चित करता है कि AI तय किए गए लक्ष्य का पालन करे और न अटके, न गलत नतीजे दे।

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

  • ✓ऐसा task बनाते समय जिसे AI को कई बार दोहराना है।
  • ✓जब आपको शक हो कि AI का दोहराने वाला काम अटक गया है या गलत नतीजे दे रहा है।
  • ✓यह पक्का करने के लिए कि AI एक साफ और मापने योग्य लक्ष्य को समझे और उस पर चले।

Skill का लिंक

https://github.com/affaan-m/ECC/blob/main/skills/loop-design-check/SKILL.md

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

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

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

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

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

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

“मैं एक loop बनाना चाहता हूँ जिससे AI मेरी साप्ताहिक रिपोर्ट अपने आप देखे और किसी भी गड़बड़ी की सूचना मुझे दे।”

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

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

यह एक साफ लक्ष्य तय करके काम करता है, जिसे AI खुद verify कर सके। फिर tool loop को इस तरह सेट करता है कि AI उस लक्ष्य तक पहुँचने की कोशिश करे, और ऐसी व्यवस्था हो जो उसे भटकने या खराब होने से रोके।

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

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

Loop Design + Review

Premise. An LLM is a feed-forward system: prompt in → tokens out, with no built-in "steer toward the goal" across turns. To make it behave like a goal-oriented system, you wrap a feedback loop around it. This skill helps you write that loop correctly and review it so it won't run away.

When to use / not

Use it when:

  • You want to hand a repeating task to an agent that runs over and over (write→test, test→fix, fix→verify…).
  • You already have a loop and worry it spins, cheats, or runs a wrong answer to completion.

Don't use it for:

  • A one-off task → just do it; don't wrap a loop around it.
  • A plain timer / poll → use /loop; no design needed.
  • How to wire the loop architecture (pipelines → DAGs, long-run recovery) → that's the mechanism layer; see autonomous-loops / continuous-agent-loop. This skill only covers "is the goal right, and will it run away" — it does not re-explain mechanism.

Red-line premise: two levels of feedback

Level Who owns it What it does
Execution (low) machine / agent Measures "how far from the literal goal" and grinds it to zero. The machine is strong here.
Judgment (high) human Decides "is this goal itself right, should it change, should it stop." The machine can't step outside its own loop to question the goal.

A thermostat can feed back "how far from 26°C," but when you have a fever and want 28°C it can't judge whether 26 is the right target — it just grinds toward 26. "What to set today" is always the human's call. Handing judgment / sign-off / the last switch to the machine = removing the high-level feedback = it sprints, fast and hard, toward a goal no one questioned → wrong output.


Action 1 — Write a loop (5 steps)

Step 0 · Subtract first: should you even build it? (4-condition gate, any miss = veto)

① the task repeats weekly or more ② verification can be automated ③ the token budget can take it ④ the agent has tools that actually run and see the result

Miss any one → don't build a loop; do it by hand or another way.

What stops most people isn't "can I write a loop," it's "does my repo deserve one." A repo that deserves a loop has a reconciliation baseline (golden sample / upstream total) + tests + a lint guard. A repo that doesn't deserve a loop will only have its errors amplified by one.

Step 1 · Define a machine-decidable goal (the hard part — the loop lives or dies here)

The whole loop rides on the comparator's "is it done yet?" The comparator can only work if your exit condition can be judged yes/no by a machine.

  • Bad: Vague ("make it good," "write it sharper") → the comparator can't judge → either it never passes (stuck retrying) or it guesses (passes/blocks at random).
  • Good: Decidable ("all 96 unit tests green AND a change-list is produced," "module-02 fields filled, pytest passes, business logic untouched") → one check settles it; the loop converges cleanly.

Five-point goal framework:

  1. Done-criterion is machine-verifiable.
  2. Boundary conditions defined alongside the done-criterion ("what it must NOT do") — anti-Goodhart; missing boundaries = a license to cheat.
  3. Has a failure fallback — retry cap N + escalate to a human when exceeded.
  4. Goal is layered.
  5. Prefer reconciliation over assertion for the done-criterion — anchor to external fact (golden sample / upstream total / financial tie-out / platform back-office numbers) before your own assertions. "All tests pass" can be gamed (loosen asserts, fake mocks, swallow exceptions); "diff vs the reference < 0.01" can't.

Self-check: read the goal to someone who doesn't know the domain — can they run one command and tell whether it's done? If not, it isn't decidable enough. Go back.

Step 2 · Pick the loop type

Your task Loop type (cybernetic) How it stops
Has a clear "done" test (write to done / a batch of images processed) servo (/goal-style closed-loop) stops on reaching the goal
No endpoint, must keep maintaining a state (inventory alert / scheduled health check) regulator (/loop-style thermostat) never stops; acts only on change (dead-band suppresses noise)
Periodic sampling, stop on a condition (watch a PR until CI is green) regulator with an exit stops when the exit condition holds

…

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

AI 'loop' क्या है?

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

AI क्यों अटक सकता है या गलत नतीजे दे सकता है?

बिना साफ और जांचे जा सकने वाले लक्ष्य के, AI अंदाज़ा लगा सकता है कि आप क्या चाहते हैं, एक ही काम अंतहीन दोहरा सकता है (spin), या बिना सही नतीजा दिए पूरा होने का दिखावा करने वाले 'shortcuts' ढूंढ सकता है।

'execution level' और 'judgment level' में क्या अंतर है?

execution level पर AI लक्ष्य तक कदम-दर-कदम पहुँचने की कोशिश करता है। judgment level पर आप (इंसान) तय करते हैं कि लक्ष्य सही है या नहीं, AI सही दिशा में है या नहीं, और उसे रुकना चाहिए या नहीं। AI लक्ष्य को तय नहीं कर सकता, वह सिर्फ उसका पालन कर सकता है।

जानकारी

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

Design a goal-oriented agent loop or review one for failure modes: spinning, Goodhart-gaming the verifier, or running a wrong answer to completion. Covers machine-decidable goals, loop types, plan/build/judge skeletons, and runaway prevention; mechanism wiring lives in autonomous-loops. Use when designing, writing, or checking an agent loop. 中文触发:写 loop、设计 loop、做一个 loop、检查 loop 对不对、loop 体检、loop 会不

repo: affaan-m/ECC

लोकप्रियता

GitHub स्टार
280k
रैंकिंग में स्थान
#353
लाइसेंस
MIT
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

accessibility

280k

यह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

agent-architecture-audit

280k

यह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।

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

agent-eval

280k

यह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।

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

agent-harness-construction

280k

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

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

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