본문으로 건너뛰기
Skillpedia
에이전트280k · #266

autonomous-loops

하는 일

이 도구는 사용자의 개입 없이 AI가 프로그래밍 작업을 반복해서 수행하도록 자동화된 워크플로를 만듭니다. 단순한 순서부터 여러 에이전트가 있는 복잡한 시스템까지, 작업을 구성하는 여러 방식을 제공합니다.

사용하는 경우

  • ✓반복적인 코드 개발 작업을 자동화할 때.
  • ✓프로그래밍 프로젝트를 작은 순차적 단계로 나눌 때.
  • ✓CI/CD와 비슷한 지속적인 개발 파이프라인을 만들 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/skills/autonomous-loops/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/autonomous-loops/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“새 기능을 구현하고, 테스트하고, 코드를 정리하는 워크플로를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI가 순서대로 따를 일련의 명령이나 단계를 정의합니다. 각 단계는 코드 작성, 테스트, 검토 같은 특정 작업일 수 있으며, AI가 하나씩 차례로 실행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Autonomous Loops Skill

Compatibility note (v1.8.0): autonomous-loops is retained for one release. The canonical skill name is now continuous-agent-loop. New loop guidance should be authored there, while this skill remains available to avoid breaking existing workflows.

Patterns, architectures, and reference implementations for running Claude Code autonomously in loops. Covers everything from simple claude -p pipelines to full RFC-driven multi-agent DAG orchestration.

When to Use

  • Setting up autonomous development workflows that run without human intervention
  • Choosing the right loop architecture for your problem (simple vs complex)
  • Building CI/CD-style continuous development pipelines
  • Running parallel agents with merge coordination
  • Implementing context persistence across loop iterations
  • Adding quality gates and cleanup passes to autonomous workflows

Loop Pattern Spectrum

From simplest to most sophisticated:

Pattern Complexity Best For
Sequential Pipeline Low Daily dev steps, scripted workflows
NanoClaw REPL Low Interactive persistent sessions
Infinite Agentic Loop Medium Parallel content generation, spec-driven work
Continuous Claude PR Loop Medium Multi-day iterative projects with CI gates
De-Sloppify Pattern Add-on Quality cleanup after any Implementer step
Ralphinho / RFC-Driven DAG High Large features, multi-unit parallel work with merge queue

1. Sequential Pipeline (claude -p)

The simplest loop. Break daily development into a sequence of non-interactive claude -p calls. Each call is a focused step with a clear prompt.

Core Insight

If you can't figure out a loop like this, it means you can't even drive the LLM to fix your code in interactive mode.

The claude -p flag runs Claude Code non-interactively with a prompt, exits when done. Chain calls to build a pipeline:

#!/bin/bash
# daily-dev.sh — Sequential pipeline for a feature branch

set -e

# Step 1: Implement the feature
claude -p "Read the spec in docs/auth-spec.md. Implement OAuth2 login in src/auth/. Write tests first (TDD). Do NOT create any new documentation files."

# Step 2: De-sloppify (cleanup pass)
claude -p "Review all files changed by the previous commit. Remove any unnecessary type tests, overly defensive checks, or testing of language features (e.g., testing that TypeScript generics work). Keep real business logic tests. Run the test suite after cleanup."

# Step 3: Verify
claude -p "Run the full build, lint, type check, and test suite. Fix any failures. Do not add new features."

# Step 4: Commit
claude -p "Create a conventional commit for all staged changes. Use 'feat: add OAuth2 login flow' as the message."

Key Design Principles

  1. Each step is isolated — A fresh context window per claude -p call means no context bleed between steps.
  2. Order matters — Steps execute sequentially. Each builds on the filesystem state left by the previous.
  3. Negative instructions are dangerous — Don't say "don't test type systems." Instead, add a separate cleanup step (see De-Sloppify Pattern).
  4. Exit codes propagate — set -e stops the pipeline on failure.

Variations

With model routing:

# Research with Opus (deep reasoning)
claude -p --model opus "Analyze the codebase architecture and write a plan for adding caching..."

# Implement with Sonnet (fast, capable)
claude -p "Implement the caching layer according to the plan in docs/caching-plan.md..."

# Review with Opus (thorough)
claude -p --model opus "Review all changes for security issues, race conditions, and edge cases..."

With environment context:

# Pass context via files, not prompt length
echo "Focus areas: auth module, API rate limiting" > .claude-context.md
claude -p "Read .claude-context.md for priorities. Work through them in order."
rm .claude-context.md

With --allowedTools restrictions:

# Read-only analysis pass
claude -p --allowedTools "Read,Grep,Glob" "Audit this codebase for security vulnerabilities..."

# Write-only implementation pass
claude -p --allowedTools "Read,Write,Edit,Bash" "Implement the fixes from security-audit.md..."

…
자주 묻는 질문

루프 유형 간의 차이는 무엇인가요?

루프마다 복잡도가 다릅니다. ‘순차 파이프라인’은 단순한 작업 목록이고, ‘무한 에이전트 루프’는 여러 에이전트가 함께 병렬로 더 정교한 계획에 따라 작업합니다.

각 단계마다 다른 AI 모델을 사용할 수 있나요?

네. 워크플로 각 단계의 복잡도나 작업 종류에 따라 Opus나 Sonnet 같은 다른 모델을 사용하도록 설정할 수 있습니다.

단계가 실패하면 어떻게 되나요?

시스템이 올바르게 설정되어 있다면(`set -e` 사용) 단계가 실패할 때 전체 작업 순서가 멈춰, 이후 단계가 오류와 함께 실행되는 것을 막습니다.

상세 정보

작성자의 원본 설명

Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems. Retained for compatibility only: when new autonomous loop guidance is needed, use continuous-agent-loop instead.

repo: affaan-m/ECC

인기도

GitHub 스타
280k
순위
#266
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬