Autonomous Loops

affaan-m/ECC/docs/ja-JP/skills/autonomous-loops

by affaan-mef648e01899ba3e8dc6371642deaaf64b4477775No license275K starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 4 days ago

自動Claude Codeループのパターンとアーキテクチャ — シンプルな順序パイプラインからRFC駆動マルチエージェントDAGシステムまで。

Instructions onlyAI & Agents
AI-generated overview

Documents patterns and architectures for running Claude Code autonomously in loops, from simple pipelines to multi-agent DAG orchestration.

What it does
This skill is a reference guide describing loop patterns for running Claude Code non-interactively, ranging from simple sequential claude -p pipelines to RFC-driven multi-agent DAG orchestration. It presents a spectrum table of patterns with complexity levels and use cases, and illustrates the simplest pattern with a shell pipeline example covering implementation, cleanup, verification, and commit steps. It also lists design principles such as step isolation, ordering, avoiding negative instructions, and exit-code propagation. It produces guidance and reference material rather than executable artifacts.
When to use it
Use it when setting up automated development workflows that run without human intervention, or when choosing a loop architecture for a given problem. It also fits building CI/CD-style continuous development pipelines, running parallel agents with merge coordination, or adding quality gates and cleanup passes to automated workflows.
Requirements
No scripts or assets are included; it is instructions and reference documentation only. Following the examples assumes access to Claude Code and its non-interactive claude -p mode, plus a shell environment for the pipeline examples.

自動ループスキル

互換性に関する注記(v1.8.0):autonomous-loopsは1つのリリースのために保持されます。 正規スキル名はcontinuous-agent-loopです。新しいループガイダンスは そこで作成される必要があります。このスキルは既存のワークフローの破断を避けるために利用可能なままです。

Claude Codeをループで自動的に実行するためのパターン、アーキテクチャ、参照実装。シンプルなclaude -pパイプラインから完全なRFC駆動マルチエージェントDAGオーケストレーションまですべてをカバーします。

使用時期

  • 人間の介入なしで実行される自動化開発ワークフローを設定
  • 問題に対して正しいループアーキテクチャを選択(シンプル対複雑)
  • CI/CDスタイルの継続的開発パイプラインを構築
  • マージ調整を備えた平行エージェントを実行
  • ループ反復全体のコンテキスト永続性を実装
  • 品質ゲートとクリーンアップパスを自動化ワークフローに追加

ループパターンスペクトラム

最も単純なものから最も洗練されたものまで:

PatternComplexityBest For
順序パイプライン低日次開発ステップ、スクリプト化されたワークフロー
NanoClaw REPL低インタラクティブな永続的なセッション
無限エージェントループ中平行コンテンツ生成、仕様駆動作業
継続的なClaude PRループ中CIゲートを備えた複数日の反復的プロジェクト
De-Sloppifyパターンアドオン任意の実装ステップ後の品質クリーンアップ
Ralphinho / RFC駆動DAG高大規模機能、マージキューを備えた複数ユニット平行作業

1. 順序パイプライン(claude -p)

**最も単純なループ。**日次開発を非対話的なclaude -p呼び出しの順序に分割します。各呼び出しは、明確なプロンプトを持つ焦点を絞ったステップです。

コア洞察

このようなループを理解できない場合、対話型モードでもLLMをコード修正に駆動することさえできないことを意味します。

claude -pフラグはClaude Codeを非対話的にプロンプト付きで実行し、完了時に終了します。パイプラインを構築するための呼び出しをチェーンします:

bash
#!/bin/bash# daily-dev.sh — 機能ブランチの順序パイプライン
set -e
# ステップ1:機能を実装claude -p "docs/auth-spec.mdのスペックを読む。src/auth/にOAuth2ログインを実装します。TDDを最初にテストを書いてください。新しいドキュメントファイルを作成しないでください。"
# ステップ2:De-sloppify(クリーンアップパス)claude -p "前回のコミットで変更されたすべてのファイルを確認します。不要なタイプテスト、過度に防御的なチェック、またはテスト言語機能を削除します(例:TypeScriptジェネリクスが機能するテスト)。実際のビジネスロジックテストを保つ。クリーンアップ後にテストスイートを実行します。"
# ステップ3:検証claude -p "完全なビルド、lint、型チェック、テストスイートを実行します。失敗を修正します。新しい機能を追加しないでください。"
# ステップ4:コミットclaude -p "ステージングされたすべての変更の従来的なコミットを作成します。メッセージとして「feat: add OAuth2 login flow」を使用します。"

主要な設計原則

  1. 各ステップは分離されている — claude -p呼び出しごとの新鮮なコンテキストウィンドウは、ステップ間でコンテキストブリードがないことを意味します。
  2. 順序が重要である — ステップは順序を実行します。各々は前回によって残されたファイルシステム状態に基づいています。
  3. ネガティブな指示は危険 — 「テスト型システムを実行しないでください」と言わないでください。代わりに、別のクリーンアップステップを追加してください(De-Sloppifyパターンを参照)。
  4. 終了コードは伝播する — set -eは失敗でパイプラインを停止します。

モデルルーティングおよび他の高度な機能

詳細についてはドキュメントを参照してください。

Source and attribution

Source:affaan-m/ECCindocs/ja-JP/skills/autonomous-loopsat commitef648e0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal