---
name: Install Loop Engineering
slug: install-loop-engineering
category: Automation
description: Install Loop Engineering scaffolds a report-only loop in a project using the unified CLI npx @cobusgreyling/loop. Use it to set up daily triage, PR babysitter, CI sweeper, or dependency sweeper loops, with doctor and cost checks before high-cadence runs.
github: "https://github.com/cobusgreyling/loop-engineering/tree/main/skills/install-loop"
language: JavaScript
stars: 10380
forks: 1410
install: "npx degit https://github.com/cobusgreyling/loop-engineering/tree/main/skills/install-loop ~/.claude/skills/install-loop"
installs_to: ~/.claude/skills/install-loop
source_path: skills/install-loop/SKILL.md
collection_size: 23
category_size: 1523
collection_url: "https://dirskills.com/collections/cobusgreyling/loop-engineering"
added: 2026-08-15T06:50:26.952Z
last_synced: 2026-08-15T06:50:26.952Z
canonical_url: "https://dirskills.com/skills/install-loop-engineering"
---

# Install Loop Engineering

Install Loop Engineering scaffolds a report-only loop in a project using the unified CLI npx @cobusgreyling/loop. Use it to set up daily triage, PR babysitter, CI sweeper, or dependency sweeper loops, with doctor and cost checks before high-cadence runs.

**Install:**

```bash
npx degit https://github.com/cobusgreyling/loop-engineering/tree/main/skills/install-loop ~/.claude/skills/install-loop
```

## README

# Install Loop Engineering

## Goal

Leave the repo with a scaffolded **report-only** loop, a **Loop Ready** score, and clear next actions — using the **single** CLI:

```bash
npx @cobusgreyling/loop
```

Do **not** deprecate or remove existing `loop-init` / `loop-audit` usages you find; both doors stay valid. Prefer `loop` for new work.

## Steps

1. **Detect context**
   - If `LOOP.md` or `STATE.md` already exists, run doctor only (skip init unless human asks to re-scaffold):
     ```bash
     npx @cobusgreyling/loop doctor . --json
     npx @cobusgreyling/loop status .
     ```
   - Otherwise continue.

2. **Pick pattern** (default: `daily-triage`)
   | Pain | Pattern |
   |------|---------|
   | Morning chaos / unclear priorities | `daily-triage` |
   | PRs stalling | `pr-babysitter` |
   | CI red / flakes | `ci-sweeper` |
   | CVE / Dependabot noise | `dependency-sweeper` |
   | Post-merge TODOs | `post-merge-cleanup` |
   | Stale release notes | `changelog-drafter` |
   | Noisy issues | `issue-triage` |

3. **Pick tool** — `grok` | `claude` | `codex` | `opencode` (default `grok`).

4. **Scaffold**
   ```bash
   npx @cobusgreyling/loop init . --pattern <pattern> --tool <tool>
   ```
   Optional harness (only if human wants Foundry): add `--with-foundry`.

5. **Doctor**
   ```bash
   npx @cobusgreyling/loop doctor .
   ```
   - Exit `0` = healthy · `1` = warnings · `2` = blocked  
   - Follow the **top 3** printed actions; do not invent extra architecture.

6. **Cost check** before high-cadence schedules:
   ```bash
   npx @cobusgreyling/loop cost -p <pattern> -l L1 -c 1d
   ```

7. **Week-one rule**
   - Report only. No auto-fix, no auto-merge.
   - Tell the human the first `/loop` or scheduler command from init output.
   - Suggest badge only when score is strong: `npx @cobusgreyling/loop badge .`

## Compatibility

These remain fully supported (do not rewrite existing docs/scripts unless asked):

```bash
npx @cobusgreyling/loop-init .
npx @cobusgreyling/loop-audit . --suggest
```

## Stop conditions

- Stop after doctor + first-run instructions unless the human asks for L2+.
- Never expand into fleet/memory/foundry unless score ≥ 80 **and** human opts in.
