design-control-loop
यह क्या करती है
यह स्किल एजेंट को एक स्वचालित लूप डिज़ाइन करना सिखाती है, जो छोटे चरणों में कोडबेस को बेहतर बनाता रहे। यह पहले सवाल पूछती है, रिपो के अनुकूल विकल्प सुझाती है, और फिर आपकी सहमति वाला डिज़ाइन बनाती है।
कब इस्तेमाल करें
- ✓जब टीम चाहती है कि कोडबेस का कोई गुण, जैसे कोई पुराना पैटर्न, छोटे बदलावों से समय के साथ एक लक्ष्य की ओर बढ़े।
- ✓जब उपयोगकर्ता चाहता है कि शेड्यूल्ड एजेंट कम जोखिम वाले बदलाव करे, जिन्हें कोई व्यक्ति समीक्षा करे।
- ✓जब उपयोगकर्ता को दोहराए जाने वाले कोडबेस काम को स्वचालित करने का तरीका नहीं पता और पहले डिज़ाइन चाहता है।
Skill का लिंक
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं चाहता हूँ कि हमारा कोडबेस धीरे-धीरे अपने पुराने API कॉल छोड़ दे। इसके लिए मुझे एक स्वचालित लूप डिज़ाइन करने में मदद कीजिए, जिसे कोई व्यक्ति समीक्षा करे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपसे लक्ष्य और जोखिमों के बारे में पूछता है, रिपो के टूल पढ़ता है, और सेंसर, कंट्रोलर और एक्चुएटर मॉडल का उपयोग करके डिज़ाइन सुझाता है। आपकी सहमति के बाद वह स्थानीय हिस्से और एक शेड्यूल्ड वर्कफ़्लो बनाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Design Control Loop
Use this skill when a user wants to drive some property of their codebase toward a target with small, low-risk, reviewable changes on a schedule — an agentic control loop.
Your job is to interview the user, design the loop with them, and then build it for them. The design must be tailored to their codebase and the tooling they already use. There is no fixed toolset and no template to reproduce: propose options grounded in what you find in the repo, discuss trade-offs, agree on a design, then implement it.
The mental model
Borrow from control theory. The codebase is a dynamic system being changed continuously (by teammates, dependencies, and generated code — the disturbances). A control loop drives it toward a desired state instead of all at once:
- Set point — the desired end state for some property of the codebase.
- Sensor — measures the current state, producing the gap to the set point.
- Controller — decides the next small, low-risk change from that measurement.
- Actuator — a coding agent that applies the change and opens a PR.
- The result feeds back into the next run. A human stays on the loop to steer it.
Read references/control-loop-taxonomy.md and walk the user through these concepts before designing anything. For one fully worked example, see references/example-control-loop.md — treat it as an illustration, not a blueprint.
How to run this skill
- Read the repo before you ask (Phase A). Come to the interview with proposals, not a blank form.
- Tailor every component. The right sensor, controller, and actuator depend entirely on the user's problem and stack. The lists in the references are examples to spark discussion, never a checklist to push.
- Make each component runnable locally and standalone before wiring it into CI (Phase D). The workflow should only orchestrate pieces the user can already run by hand.
- Capture the agreed design in writing before building, so the user can correct it cheaply.
Outputs
Create or update these in the target repo, tailored to the agreed design:
- The sensor and controller as version-controlled commands/scripts the user can run locally.
.claude/skills/<skill-name>/SKILL.md— the actuator skill capturing the agent's judgement (path may be.agents/skills/...per repo convention).- The recurring workflow that runs the loop and opens a PR (GitHub Actions by default; whatever CI the repo uses).
- A memory/feedback file that carries standing feedback between runs.
- Optionally, a dampener (regression gate) that keeps the problem from getting worse while the loop improves it.
Workflow
Phase A — Understand the system
Read the following references: references/example-control-loop.md.
Read before asking setup questions:
- Existing CI:
.github/workflows/*.yml,.github/actions/**, or the repo's non-GitHub CI config — runner, checkout, dependency install, cache, and PR conventions. - Package manager files (
package.json,bun.lock,pnpm-lock.yaml,yarn.lock,package-lock.json,pyproject.toml,go.mod,Cargo.toml, …). - Existing validation scripts: typecheck, lint, test, quality, format, and package-scoped commands.
- Existing
.claude/skills/.agents/skillsand any existing agent loops (workflows,agent-memory, where glue scripts live) to mirror conventions instead of inventing new ones. - The static-analysis, linting, codegen, and test tooling already in the repo — these are the most likely raw material for a sensor.
- Discover packages, services, and repo purpose at a high level.
Completion criterion: you can name the repo's package manager, install command, likely validation commands, CI platform, and any existing loop conventions. You understand the packages/services/applications it contains at a high level.
Phase B — Design the loop with the user
Read the following references: references/control-loop-taxonomy.md, references/example-control-loop.md, references/agent-runner-templates.md.
This is an interview. Work through each component below. Start by asking the user questions about the set point. Proposing options grounded in Phase A and surfacing trade-offs rather than mandating any choice. Record the decisions as you go.
- Set point. What property are we driving, and to what target? Examples: an invariant ("no procedures use the old pattern"), a threshold ("test coverage ≥ X in these pack
अक्सर पूछे जाने वाले सवाल
इस डिज़ाइन में सेंसर क्या है?
यह वह हिस्सा है जो मापता है कि कोडबेस लक्ष्य से कितनी दूर है।
क्या यह बिना समीक्षा के बदलाव लागू करती है?
नहीं। स्किल लूप में एक व्यक्ति को रखती है, और बदलाव समीक्षा योग्य पुल रिक्वेस्ट के रूप में आते हैं।
क्या यह एक तय टूलसेट मानती है?
नहीं। स्किल कहती है कि डिज़ाइन उपयोगकर्ता के कोडबेस और उसके पहले से इस्तेमाल होने वाले टूल के अनुकूल होना चाहिए।
जानकारी
लेखक का मूल विवरण
interview the user to design an agentic control loop (sensor, controller, actuator under disturbances) tailored to their codebase, then build it as locally-runnable components plus a scheduled coding-agent workflow
repo: humanlayer/skills
लोकप्रियता
- GitHub स्टार
- 5.5k
- रैंकिंग में स्थान
- #14775
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
build-iterated-agentic-loop
5.5kआपके एजेंट को बार-बार होने वाले कोडिंग काम को रिपो स्किल और एक शेड्यूल्ड GitHub Actions वर्कफ़्लो में बदलने देती है, जो कोडिंग एजेंट चलाता है, एक मेमोरी फ़ाइल और हर लूप के लिए एक खुला PR रखते हुए।
improve-claude-md
5.5kआपके एजेंट को शर्तीय ब्लॉक के साथ CLAUDE.md फ़ाइल दोबारा लिखने देती है, ताकि ज़रूरी निर्देश तब माने जाएँ जब वे लागू हों, और बाकी रास्ते से हटे रहें।
rpi
5.5kआपके एजेंट को किसी बदलाव पर शोध करने, उसका डिज़ाइन सोचने और उसे साफ़ चरणों में लागू करने देती है, हर चरण के लिए समीक्षा योग्य दस्तावेज़ के साथ।
visual-pr
5.5kआपके एजेंट को पुल रिक्वेस्ट का विवरण लिखने या अपडेट करने देती है, जो बताए कि बदलाव क्यों है और वह कैसे बना है, एक साफ़ टेम्पलेट और छोटी दृश्य रूपरेखा के साथ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।