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 워크플로와 메모리 파일로 실행하도록 돕고, 루프마다 열린 풀 리퀘스트를 하나만 유지합니다.
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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.