build-iterated-agentic…
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference…
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
Claude Code
$ npx -y skills add humanlayer/skills --skill design-control-loop --agent claude-code
Codex
$ npx skills add humanlayer/skills --skill design-control-loop -a codex -y
Cursor
$ npx skills add humanlayer/skills --skill design-control-loop -a cursor -y
Gemini CLI
$ npx skills add humanlayer/skills --skill design-control-loop -a gemini-cli -y
GitHub Copilot
$ npx skills add humanlayer/skills --skill design-control-loop -a github-copilot -y
OpenCode
$ npx skills add humanlayer/skills --skill design-control-loop -a opencode -y
Windsurf
$ npx skills add humanlayer/skills --skill design-control-loop -a windsurf -y
name: design-control-loop description: 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
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.
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:
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.
Create or update these in the target repo, tailored to the agreed design:
**Read the following references:** `references/example-control-loop.md`.
Read before asking setup questions:
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.
**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.
1. **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 packages"), or a direction ("reduce occurrences each run"). Also pin the **scope**: which directories/packages the loop may change, and which it may only read.
2. **Sensor.** How will the loop measure the gap to the set point? Inspect the codebase and the user's existing tooling and propose the options that fit *their* stack — a static-analysis or lint tool, a structural/AST search, a test suite, a type checker, a telemetry or error query, a custom script, or even an agent-based check. Discuss the trade-offs that matter to them (stability, cost, repeatability, and whether the measurement can be silently disabled) instead of mandating any property. Aim for a measurement the controller can act on repeatably.
3. **Controller.** How will the loop choose the next increment from the measurement, sized to stay low-risk and reviewable? Design this *with* the user: how to prioritize targets, how big one increment is, and what "one reviewable unit of work" means here. A controller can be anything from fully deterministic (a script that selects the next target) to fully agentic (an agent that decides from natural-language criteria), and it may be **fused** with the sensor or the actuator. The controller is the part you will **tune
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference…
improve a CLAUDE.md file using <important if> blocks to improve instruction adherence
narrow React component prop types to match live code paths
Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration