design-control-loop
できること
このスキルは、小さな段階を通じてコードベースを改善し続ける、自動化されたループを設計する方法をエージェントに教えます。最初に質問し、リポジトリに合う案を示し、合意された設計を作ります。
使う場面
- ✓古いパターンなどのコードベースの性質を、小さな変更を通じて、少しずつ目標に近づけたいチームがあるとき。
- ✓スケジュールされたエージェントに、人がレビューする低リスクの変更をさせたいとき。
- ✓繰り返されるコードベースの作業を自動化したいが、まず設計がほしいとき。
スキルのリンク
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちのコードベースから古いAPIの呼び出しを少しずつなくしたいです。人がレビューする、自動化されたループを設計してください。”
毎週5つの新しいスキル。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
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
build-iterated-agentic-loop
5.5kエージェントが、繰り返されるコーディングの作業を、リポジトリのスキルと、ワークフローのメモリファイルとスケジュールされたGitHub Actionsのワークフロー(ループごとに開くPRは一つ)に変えられるよう支援します。
improve-claude-md
5.5kエージェントが、CLAUDE.mdファイルを、条件付きのブロックで書き直せるよう支援します。重要な指示は該当するときに守られ、それ以外は邪魔にならないようにします。
rpi
5.5kエージェントが、変更について調べ、その設計を検討し、明確な段階に分けて実装する作業を、段階ごとにレビューできる文書とともに進められるよう支援します。
visual-pr
5.5kエージェントが、変更がなぜ存在し、どのように作られているかを、明確なテンプレートと短い視覚的な概要で説明するプルリクエストの説明を書いたり更新したりできるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。