design-control-loop
interview the user to design an agentic control loop (sensor, controller, actuator under…
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
$ npx -y skills add humanlayer/skills --skill build-iterated-agentic-loop --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/build-iterated-agentic-loopContext preview
The summary Claude sees to decide when to auto-load this skill.
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
name: build-iterated-agentic-loop description: build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
Use this skill when the user wants to turn a repeatable agent task into a repo-local skill plus a GitHub Actions workflow that runs a coding agent on a schedule, manually, or both.
The target shape is an iterated agentic loop: a focused skill defines the agent's judgement, a workflow invokes a coding agent with a repo-specific prompt, an agent-memory file carries standing feedback between runs, and each workflow labels its PRs so only one open PR exists per loop. The `narrow-react-prop-types` skill is the concrete reference pattern.
Create or update these files in the target repo:
Read before asking setup questions:
Completion criterion: you can name the repo's package manager, install command, likely validation commands, and existing workflow conventions.
Walk the user through these decisions. Recommend defaults from repo evidence instead of presenting a blank form.
1. **Coding Agent**: Claude Code, Codex, OpenCode, or CodeLayer. Explain the required secret and headless command for the recommended choice. Use `references/agent-runner-templates.md`. CodeLayer is Humanlayer's ultra-lightweight agent harness. 2. **Cadence**: daily, weekly, weekdays, monthly, manual-only, or custom cron. Recommend a cadence based on task risk and review burden - most likely weekdays, daily, or weekly. 3. **Task**: What task should the agent loop accomplish?
4. **Scope**: which directories/packages the loop may change and which it may only inspect 5. **Validation**: which commands must pass before the agent commits (You should propose this to the user based on your earlier research and ask them to confirm) 6. **PR bounding**: Ask if scheduled runs should no-op when open PRs from this agent already exist, and if so, how many open PRs to allow before blocking new runs.
7. **PR metadata**: label name, PR title prefix, and branch prefix.
8. **Response format**: How should the CI agent format its final response (which becomes the PR body)?
9. **Iteration behavior**: whether `/iterate` comments should update the existing PR.
Completion criterion: every placeholder in the workflow, prompt, and memory template has a chosen value or an explicit default.
Extract the smallest repeatable job the agent should perform. Work through these three questions with the user:
**What are we finding?** How does the agent identify targets for this run?
**What are we changing?** What transformation does the agent apply to each target?
**How do we validate?** What proves the change is
Repo: humanlayer/skills
interview the user to design an agentic control loop (sensor, controller, actuator under…
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…