Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.
日本語の概要は準備中です。原文の説明を表示しています。
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
インストールする前に、エージェントに与えられる指示の中身を確認できます。
/design-control-loop) for a recurring improvement loop in CI. It is not a pipeline node and not part of /startcycle-graph; the dispatcher never calls it. After shipping, it is an optional follow-up.--dangerously-skip-permissions and API secrets, so the AOS GO gate does not cover them. That is a deliberate design choice; you decide per loop. When generating workflows, pin CLI versions instead of @latest and keep secrets in the CI secret store.ca7c8088db69e315a8b2deea43820270457f8f3c (MIT, see THIRD_PARTY_NOTICES.md). Everything below this section is upstream text.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:
.claude/skills/<skill-name>/SKILL.md — the actuator skill capturing the agent's judgement (path may be .agents/skills/... per repo convention).Read the following references: references/example-control-loop.md.
Read before asking setup questions:
.github/workflows/*.yml, .github/actions/**, or the repo's non-GitHub CI config — runner, checkout, dependency install, cache, and PR conventions.package.json, bun.lock, pnpm-lock.yaml, yarn.lock, package-lock.json, pyproject.toml, go.mod, Cargo.toml, …)..claude/skills / .agents/skills and any existing agent loops (workflows, agent-memory, where glue scripts live) to mirror conventions instead of inventing new ones.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.
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.
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.
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 over time from loop output — start simple and expect to revise it.
Actuator. A coding agent plus a repo-local skill applies the change.
references/agent-runner-templates.md.Disturbances + dampener (offer). Name what changes the system outside the loop (teammates shipping concurrently, dependency bumps, generated code). Then offer a dampener: a check that keeps the measured problem from getting worse while the scheduled loop chips away at it — for example a PR check that compares the sensor's output against a baseline and surfaces (or eventually blocks) newly introduced deviations. This is optional; some loops do not need one.
Completion criterion: a short written design naming the set point, sensor, controller, actuator (agent + skill + validation), and disturbances/dampener — with each component something the user can run locally.
Read the following references: references/skill-template.md, references/example-skill.md, references/response-template.md.
Write a repo-local skill that captures the actuator's judgement for this task. It can use repo-specific paths, package names, and conventions since it lives in the repository.
SKILL.md as steps with checkable completion criteria; move long templates and examples into sibling reference files.references/response-template.md) defining how the agent formats its final output, which becomes the PR body. Instruct the skill to read and follow it.references/skill-template.md as the skeleton and references/example-skill.md as a concrete example. See https://agentskills.io/specification for the skill spec.IMPORTANT: the name in the skill's frontmatter must match its directory slug — a skill named migrate-foo lives at .claude/skills/migrate-foo/SKILL.md (or .agents/skills/migrate-foo/SKILL.md).
Completion criterion: the skill explains the job clearly enough that the agent can do it unattended, including how to format its final response.
Read the following references: references/agent-runner-templates.md.
Before any CI exists, land the sensor and controller as version-controlled commands or scripts (follow the repo's convention for where such scripts live), and verify the whole loop works by hand:
Only proceed to CI once each piece runs locally on its own. This keeps the loop debuggable and makes the workflow a thin orchestrator of things the user can already run.
Completion criterion: the user can run sensor, controller, and actuator locally and independently.
Read the following references: references/workflow-template.yml, references/prompt-template.md, references/agent-runner-templates.md.
Assemble the components into a recurring job. GitHub Actions is the default because it already has the code, the secrets, version control, and scheduling/dispatch — but use whatever CI the repo uses.
references/workflow-template.yml as the base and references/prompt-template.md for the embedded prompt. Pull the agent run + response-extraction steps from references/agent-runner-templates.md (each agent outputs differently; get the final response into /tmp/pr-body.md).Completion criterion: the workflow can run from workflow_dispatch without relying on files that do not exist.
Read the following references: references/memory-template.md, references/agent-iteration.ts.
A scheduled loop drifts without steering. Give the human two channels, both of which should change future behavior, not just the current PR:
.github/agent-memory/<task-slug>.md) loaded deterministically into the actuator's context after the controller on every run. Use references/memory-template.md. Good entries: permanent scope exclusions, known false-positive areas, and reviewer feedback that should change future selections — not one-off instructions or single-run logs./iterate on the PR. Label each loop's PRs and embed a hidden marker so each workflow only handles comments on PRs it created. When a maintainer comments /iterate, the matching workflow loads the PR context (diff, comments) and the feedback, and the agent updates its memory and the PR. Install references/agent-iteration.ts (modes: footer and prompt) where the repo keeps CI scripts.Frame this for the user as how you tune the controller and skill over time — the loop gets better because a human keeps correcting it.
Completion criterion: standing feedback survives between runs, and /iterate (if enabled) updates the existing PR.
Read the following references: references/workflow-template.yml.
Bound work-in-progress so the loop never produces PRs faster than they can be reviewed. Recommended default: one open PR per loop.
workflow_dispatch runs bypass the check.Without this, a daily loop can stack up duplicate or conflicting PRs while no one is reviewing. Completion criterion: scheduled runs no-op when the open-PR bound for this loop is already met.
Read the following references: references/workflow-template.yml.
Validate the workflow YAML (bunx js-yaml file.yml, python -c "import yaml,sys; yaml.safe_load(open(sys.argv[1]))" file.yml, or yq) and confirm every path named by the skill, workflow, and memory file exists or is created by this task.
Dry-run. A workflow cannot be workflow_dispatch-ed until it has run once. Temporarily add a push trigger for the current branch, push, watch it run, then remove the trigger. Review any PR it opens to confirm the loop's behavior.
Ready to iterate faster (once the loop is tuned and producing consistent, high-quality output): increase the schedule frequency; widen the controller's batch (e.g. select N targets per run); run the sense→control→actuate cycle N times per workflow run; or run the workflow multiple times and assign one PR to each teammate.
Completion criterion: the workflow YAML parses, all referenced files exist, and the loop has produced at least one reviewed PR.
Each phase above names the references relevant to it — read each one when you reach that phase. Full index:
references/control-loop-taxonomy.md — the control-loop components and the design questions to ask; read this first and use it to teach the user.references/example-control-loop.md — one fully worked loop, annotated component-by-component. An illustration, not a template.references/agent-runner-templates.md — local + CI headless commands and secrets for Claude Code, Codex, OpenCode, and CodeLayer, with response extraction.references/workflow-template.yml — recurring loop workflow skeleton with discrete sensor/controller/actuator steps.references/prompt-template.md — embedded prompt structure for the actuator step.references/memory-template.md — memory/feedback file skeleton.references/skill-template.md — skeleton for the generated actuator skill.references/response-template.md — examples for how the agent should format its final response (the PR body).references/example-skill.md — a concrete example of a well-formed task skill.references/agent-iteration.ts — helper for /iterate support (PR footer marker + iteration prompt building).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.
日本語の概要は準備中です。原文の説明を表示しています。
Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).
日本語の概要は準備中です。原文の説明を表示しています。
Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.
日本語の概要は準備中です。原文の説明を表示しています。
Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.
日本語の概要は準備中です。原文の説明を表示しています。
Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.
日本語の概要は準備中です。原文の説明を表示しています。
agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.
日本語の概要は準備中です。原文の説明を表示しています。