Loop Patterns

July 1, 2026 · View on GitHub

Documented, reusable loop patterns that have been (or can be) run in real environments.

Each pattern answers:

  • What problem it solves
  • Recommended scheduling
  • Required skills / state shape
  • Verification approach
  • Human hand-off strategy
  • Tool-specific notes (Grok, Claude Code, Codex, OpenClaw, Opencode, GitHub Actions)

Pattern Registry

PatternCadenceRiskFile
PR Babysitter5–15mMediumpr-babysitter.md
Daily Triage1d–2hLowdaily-triage.md
Issue Triage (new)2h–1dLowissue-triage.md
CI Sweeper5–15mMediumci-sweeper.md
Post-Merge Cleanup1d–6hLowpost-merge-cleanup.md
Dependency Sweeper6h–1dMediumdependency-sweeper.md
Changelog Drafter1dLowchangelog-drafter.md

Machine-readable index: registry.yaml

How to Use a Pattern

  1. Pick a pattern: pattern-picker.md
  2. Scaffold with npx @cobusgreyling/loop-init . --pattern <name> --tool grok (or --tool opencode / --tool claude) or copy from starters/
  3. Copy skills from templates/ if customizing beyond the starter
  4. Set up scheduling (/loop, scheduler_create, GitHub Action, Codex Automation)
  5. Run week one in L1 report-only mode before enabling fixes
  6. Audit with npx @cobusgreyling/loop-audit . --suggest

Adding a Pattern

Use templates/pattern-template.md, add an entry to registry.yaml, and open a PR. See CONTRIBUTING.md.