/agentloop:repo-setupfrom agentloop
Bootstraps a repository for agentloop skills: scaffolds repo-profile, creates controlled labels, and preflights the environment. Run once per repo after plugin install.
Ships in agentloop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run once per repo to go from "plugin installed" to "loop skills can actually run here".
The supporting environment the sweep/review skills assume (a repo-profile, the coordination
labels, a working toolchain + gh auth) is otherwise implicit — this makes it
explicit and reproducible. All scripts live in <plugin_root>/bootstrap/ and are idempotent
(the directory keeps its name: there it means "the scripts that bootstrap a repo", which is
unambiguous — the skill was renamed because /agentloop:bootstrap alone did not say what
it bootstrapped, and now pairs with /agentloop:fleet-setup).
This is hybrid by design. The split, and why it matters:
This is adoption, not scheduling. How you run the skills on an interval (cron / CI / a cloud routine system) is your repo's own infra — see
docs/scheduling-recipe.md. Repo-setup deliberately does not touch that.
PR=<plugin_root> # from .claude/repo-profile.md, or wherever the plugin is checked out
bash "$PR/bootstrap/check-env.sh"
check-env is a read-only probe: it reports what's missing and exits non-zero, but it never
installs anything. If it reports a missing tool, that's your cue to fix it — install it for
this platform (macOS → brew, Debian/Ubuntu → apt install -y, bun → its curl installer),
then re-run until green. The script even prints a suggested command per tool; you judge
platform / permissions / fallback and actually run it. (This mirrors CLAUDE.md's "install missing
CLI deps, don't give up" discipline — repairing the env is an agent action, not a script's.)
bash "$PR/bootstrap/init-profile.sh" # writes .claude/repo-profile.md (won't overwrite)
Auto-fills repo_slug / plugin_root / default_branch / package_manager. Then you open
.claude/repo-profile.md and replace the remaining <FILL: …> by READING the repo — these are
exactly the values a script can't reliably infer:
package.json "scripts", turbo.json, biome.json / prettier, tsconfig<FILL> for a humanRule: don't invent a value you can't ground in a file. If you can't determine it, leave the
<FILL> in place for a human — a wrong profile value fails silently later.
bash "$PR/bootstrap/sync-labels.sh" # or --dry-run to preview
Creates only the loop's coordination vocabulary (agent:* / needs-* / pr-sweep:*). This one is deliberately not agentic — the label set is fixed; a script gets colours/names right every time. Your repo's own work-type / priority / status labels are yours to add to the profile.
bash "$PR/bootstrap/check-env.sh" # should now be all green (exit 0)
init-profile.sh — writes a .claude/repo-profile.md skeleton with every key the skills read.
Detects repo_slug (git remote), plugin_root (its own location), default_branch (origin/HEAD →
current branch → main), package_manager (lockfile). Leaves judgement fields as <FILL> for you.
Refuses to overwrite (--force to replace).sync-labels.sh — gh label create/edit for the coordination vocabulary only. Idempotent.check-env.sh — preflight: bun/git/gh/jq present, gh authenticated (a real REST
probe, not gh auth status), an origin remote, repo-profile present with the required keys, and
plugin_root resolving to a real plugin checkout. Suggests install commands on a miss but never
runs them. Skills run this at Step 0; non-zero = don't proceed.Arc (ArcBlock/arc) is the reference implementation — copy its .claude/repo-profile.md. The bundled skills (issue-graph / design-review / build-phases) need no
setup; the repo-specific companions (e2e-verify / ui-verify) you supply or drop.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
repo-setup, agentloop, bootstrap, repo-profile, environment-preflight
npx claudepluginhub arcblock/agent-skills --plugin agentloop24 skills in this plugin
/build-phasesExecute a phased implementation plan (tasks.md) autonomously, one phase at a time: implement, then verify (static + dynamic + adversarial) before advancing. Use for a multi-phase build of one issue, attended or unattended./codex-review-backlogScan merged (optionally open) PRs for unhandled Codex / bot review comments, re-validate each against main, fix the easy ones, track the hard ones. Use for "codex backlog", "scan Codex reviews", late bot findings after a merge wave, or a daily routine./design-reviewIterative clean-context review of a design / plan document or issue: independent reviewers per round, scored and synthesized without prior-round bias. Use to review an implementation plan, architecture doc or design proposal before building.