design-control-loop
Fungsinya
Skill ini mengajari agent cara merancang loop otomatis yang terus memperbaiki codebase dalam langkah kecil. Agent mengajukan pertanyaan lebih dulu, mengusulkan opsi yang cocok dengan repo, lalu membangun desain yang disepakati.
Kapan dipakai
- โSaat tim ingin suatu properti codebase, seperti pola lama, dipindahkan secara bertahap menuju target lewat perubahan kecil.
- โSaat pengguna ingin agent terjadwal membuat perubahan berisiko rendah yang kemudian ditinjau orang.
- โSaat pengguna belum tahu cara mengotomatiskan pekerjaan berulang di codebase dan ingin desainnya dulu.
Link skill
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin codebase kami secara bertahap berhenti memakai panggilan API lama. Bantu saya merancang loop otomatis untuk itu yang bisa ditinjau orang.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mewawancarai Anda tentang tujuan dan risikonya, membaca alat yang ada di repo, lalu mengusulkan desain memakai model sensor, pengendali, dan aktuator. Setelah Anda setuju, agent membangun bagian lokal dan alur kerja terjadwal.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa itu sensor dalam desain ini?
Itu bagian yang mengukur seberapa jauh codebase dari tujuan.
Apakah perubahan diterapkan tanpa peninjauan?
Tidak. Skill ini menjaga agar orang tetap mengendalikan loop, dan perubahan datang sebagai pull request yang bisa ditinjau.
Apakah skill ini mengasumsikan kumpulan alat yang tetap?
Tidak. Skill ini menyebutkan desain harus cocok dengan codebase dan alat yang sudah Anda pakai.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.5k
- Peringkat
- #14775
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
build-iterated-agentic-loop
5.5kMembantu agent Anda mengubah tugas coding berulang menjadi skill repo dan alur kerja GitHub Actions terjadwal, dengan file memori dan satu PR terbuka per putaran.
improve-claude-md
5.5kMembantu agent Anda menulis ulang file CLAUDE.md dengan blok bersyarat, sehingga instruksi penting diikuti saat berlaku dan sisanya tidak mengganggu.
rpi
5.5kMembantu agent Anda meneliti perubahan, membahas desainnya, lalu mengimplementasikannya dalam fase yang jelas, dengan dokumen untuk tiap langkah.
visual-pr
5.5kMembantu agent Anda menulis atau memperbarui deskripsi pull request yang menjelaskan alasan perubahan dan cara pembuatannya, dengan templat dan ringkasan visual.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.