design-control-loop
Skill này làm gì
Skill này dạy agent cách thiết kế một vòng tự động liên tục cải thiện codebase theo từng bước nhỏ. Skill hỏi trước, đề xuất các phương án phù hợp với repo, rồi xây dựng thiết kế bạn đã đồng ý.
Khi nào nên dùng
- ✓Khi một nhóm muốn một thuộc tính của codebase, như mẫu code cũ, được đưa về mục tiêu qua các thay đổi nhỏ theo thời gian.
- ✓Khi người dùng muốn một agent theo lịch thực hiện các thay đổi rủi ro thấp để người thật xem xét.
- ✓Khi người dùng chưa chắc cách tự động hóa công việc lặp lại trên codebase và muốn có thiết kế trước.
Liên kết skill
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn codebase của chúng tôi bỏ dần các lệnh gọi API cũ. Hãy giúp tôi thiết kế một vòng tự động để người thật xem xét.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent phỏng vấn bạn về mục tiêu và rủi ro, đọc các công cụ của repo, rồi đề xuất thiết kế theo mô hình cảm biến, bộ điều khiển và bộ thực thi. Sau khi bạn đồng ý, agent xây dựng các phần cục bộ và một workflow theo lịch.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Cảm biến trong thiết kế này là gì?
Đó là phần đo mức độ codebase còn cách xa mục tiêu.
Nó có áp dụng thay đổi mà không cần xem xét không?
Không. Skill giữ một người trong vòng lặp để điều hướng, và các thay đổi đến dưới dạng pull request có thể xem xét.
Nó có giả định một bộ công cụ cố định không?
Không. Skill nói thiết kế phải phù hợp với codebase và các công cụ người dùng đang dùng.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14775
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
build-iterated-agentic-loop
5.5kGiúp agent của bạn biến một tác vụ lập trình lặp lại thành skill của repo cùng workflow GitHub Actions chạy theo lịch, có file bộ nhớ và một PR mở mỗi vòng.
improve-claude-md
5.5kGiúp agent của bạn viết lại file CLAUDE.md với các khối có điều kiện, để các chỉ dẫn quan trọng được tuân theo khi áp dụng, còn phần còn lại không gây cản trở.
rpi
5.5kGiúp agent của bạn nghiên cứu một thay đổi, làm việc qua thiết kế và triển khai theo các giai đoạn rõ ràng, với tài liệu cho từng bước để bạn xem xét.
visual-pr
5.5kGiúp agent của bạn viết hoặc cập nhật mô tả pull request, giải thích vì sao có thay đổi và nó được xây dựng thế nào, theo mẫu rõ ràng và một sơ đồ tóm tắt ngắn.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.