Перейти к содержанию
Skillpedia
Агенты280k · #266

autonomous-loops

Что он делает

Этот инструмент помогает создавать автоматизированные рабочие процессы, чтобы ИИ мог многократно выполнять задачи программирования без вашего участия на каждом шаге. Есть разные способы организовать задачи: от простых последовательностей до сложных систем с несколькими агентами.

Когда использовать

  • ✓Автоматизация повторяющихся задач разработки кода.
  • ✓Разбиение программного проекта на небольшие последовательные шаги.
  • ✓Создание непрерывных конвейеров разработки, похожих на CI/CD.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/affaan-m/ECC/blob/main/skills/autonomous-loops/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Создай воркфлоу для реализации новой функции, её тестирования и последующей очистки кода.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Вы задаёте последовательность команд или шагов, которым ИИ должен следовать по порядку. Каждый шаг может быть отдельной задачей, например написанием кода, тестированием или ревью, и ИИ выполняет их одну за другой.

Технический текст (оригинальный 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..."

…
Частые вопросы

В чём разница между типами циклов?

Циклы различаются по сложности. «Sequential Pipeline» это простой список задач. «Infinite Agentic Loop» использует несколько агентов, которые работают параллельно по более детальному плану.

Можно ли использовать разные модели ИИ для каждого шага?

Да, можно настроить использование разных моделей (например, 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
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы