Loop Runnerのロゴ

Loop Runner

コミュニティ
frankxai
loop-runner

Execute exactly one disciplined iteration of a designed loop from .loop/<name>/ (LOOP.md charter + state.json + journal.md). Use when asked to "run the loop", "run one iteration of <loop>", "continue the <name> loop", or when invoked on a cadence (cron, /loop, while-loop) against a loop directory. Works identically under Claude Code, Codex, Gemini CLI, or any coding agent — state lives in files, not in this conversation.

概要

公開者frankxai
リポジトリclaude-skills-library
スキル名loop-runner
スター
47
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    frankxaiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルLoop RunnerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-runner
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/frankxai/claude-skills-library.git /tmp/claude-skills-library
mkdir -p .claude/skills
cp -r /tmp/claude-skills-library/free-skills/loop-runner .claude/skills/loop-runner
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでLoop Runnerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にLoop Runnerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Loop Runnerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Loop Runner

You are one iteration of a durable loop. You start cold, you finish clean, and everything you learn goes into files — the next iteration (possibly a different agent, possibly you tomorrow) knows only what the loop directory says. Run exactly one unit; resist finishing "just one more".

The iteration protocol

Execute in order. Do not skip, reorder, or batch steps.

0 · Load

Read, in this order: .loop/<name>/LOOP.md (the whole charter), .loop/<name>/signs.md (every line is a binding rule earned from a past failure — treat them like Guardrails), .loop/<name>/state.json, the last 3 entries of .loop/<name>/journal.md, and .loop/<name>/backlog.md if the archetype uses one. Do not read the full journal — old entries are archive, not context.

1 · Gate

Refuse to run (exit with one journal line explaining why) if ANY of:

  • .loop/STOP or .loop/<name>/STOP exists — the operator's kill switch. Never delete a STOP file.
  • status is paused, stalled, blocked, done, or retired — only an operator or the orchestrator changes those.
  • iteration >= budget.max_iterations.
  • Done-when already passes → set status: done, journal it, report, stop.
  • The working tree is dirty with changes this loop didn't journal → set status: blocked, escalate per charter (H4 debris — a prior iteration died; a human or the orchestrator must adjudicate, not you).

Then check .loop/<name>/STEER.md. If present, it is live operator steering: incorporate it into this iteration's choices, quote it in the journal entry, then delete the file. Steering outranks the journal's Next: hint but never overrides Guardrails or promotion mode.

2 · Pick

Select the single unit per the charter's Iteration contract (top eligible backlog item; next failing test; the current blocker for a babysitter; …). If the last journal entry's Next: names a unit, prefer it unless it's now ineligible. If the same unit appears in the last 2 entries with ❌, you MUST take a different approach or escalate — never re-run a failed approach verbatim.

3 · Do

Complete the unit within the charter's Guardrails and wall-clock budget. Touch only what the unit requires. If mid-unit you discover it's oversized, stop at a coherent boundary, split the remainder into new backlog items, and treat the completed part as your unit.

4 · Verify

Run every command in the charter's Verification section and read the ratchet via its "Read via" command. This step is not optional and not skippable under time pressure — an unverified unit is a failed unit. Evidence, not assertions: the journal gets the actual command output (exit code, counts, failing test names), never "tests pass". You may not record a result you did not observe this iteration. An iteration that produced no changes counts as no ratchet movement (stall_count+1), even if nothing failed.

  • All pass + ratchet moved right (or held, for non-ratchet units) → proceed.
  • Ratchet regressed → revert your changes now (git restore / revert), journal the regression with the ❌ flag. Do not debug forward. Do not leave the regression for the next iteration.
  • Verification fails → fix within budget or revert. Never record a ❌ unit as done.
  • Any failure with an identifiable cause → append one line to .loop/<name>/signs.md: a rule that would have prevented it ("do not edit generated files under X — regenerate", "run the schema migration before the type check"). Signs come only from observed failures — never add speculative ones.
  • You overran the wall-clock budget noticeably? Treat it as a drift alarm even if verification passed — journal what made the unit slow; it usually means a wrong mental model or an oversized unit (propose the split in Next:).

5 · Record

In this order (order matters — a crash between steps must never leave done-looking state with no evidence):

  1. Append the journal entry to .loop/<name>/journal.md (format in the loop's state-schema reference — Unit / Did / Verify with actual command output / Ratchet old→new / Next / Flags).
  2. Update .loop/<name>/state.json: iteration+1, ratchet.value (and ratchet.best), ratchet.stall_count (0 if moved, +1 if not), promotion.clean_cycles (+1 if clean; reset to 0 on any ❌, regression, or guardrail near-miss), last_run, last_agent.
  3. Strike through / advance the unit in .loop/<name>/backlog.md.
  4. Commit if the loop's promotion mode allows it; otherwise leave the change as a proposal per the charter (branch, PR, or staged diff — whatever the charter says). Working tree must end clean-or-committed either way.

6 · Report & handoff

  • ratchet.stall_count >= ratchet.stall_threshold → before escalating to a human, take one in-loop escalation if the charter allows it: hand the blocker (files + failed approaches from the journal) to a stronger reasoner or a fresh different-vendor model for a hypothesis. If that iteration also fails → set status: stalled and escalate per the charter's Escalation channel — a real message to a human, not a journal line. Recommend a backlog regeneration if the journal shows circling.
  • Done-when now passes → status: done, escalate the good news the same way.
  • Nothing needed attention (watch loops, no-change cycles) → reply exactly the charter's OK-token (default LOOP_OK) and suppress any channel report — the silence contract is what keeps the human reading the reports that matter.
  • Otherwise: one-line report (iteration N: <unit> ✅, ratchet X→Y, next: <unit>) and stop. Never start iteration N+1 yourself — cadence belongs to the scheduler (cron, /loop, while-loop, orchestrator), not to you.

Hard rules

  1. One unit per iteration. The loop's convergence proof depends on it.
  2. Files are the only memory. Anything worth knowing goes in .loop/<name>/ (journal/state/backlog/signs) before you exit.
  3. Propose-only means propose-only. If promotion.mode is propose-only, you do not commit to protected branches, publish, send, deploy, or spend — no matter what the unit seems to need. The gate is the point.
  4. Escalations must leave the loop directory. Slack, PR comment, inbox file — per charter. Journal-only escalation is a silent failure.
  5. Never edit LOOP.md. Charter changes are the designer's/operator's job. If the charter is wrong, escalate with the specific defect.

Running under different harnesses

The protocol is identical everywhere; only the scheduler differs.

HarnessOne iterationCadence
Claude Codeclaude -p "run one iteration of .loop/<name> per loop-runner" --output-format jsonnative /loop 30m <same>, Stop-hook driver, or cron
Codex CLIcodex exec --sandbox workspace-write --output-last-message /tmp/out.md "run one iteration of .loop/<name> per the loop-runner skill"while :; do codex exec "…"; sleep 1800; done or cron
Gemini / Grok / otherequivalent one-shot exec with the same instructioncron / while-loop
Cloud (CCR routines, Actions)schedule the one-iteration instructionplatform cron

Driver-loop notes: agent progress streams to stderr, final message to stdout — keep stdout clean for the driver to parse. In CI, scope API keys to the single exec invocation (never job-level env — repo-controlled code inside the loop can read job env). Fresh context per iteration is a feature — do not "optimize" it away by running many iterations in one long session; that reintroduces the context rot the loop exists to prevent.

よくある質問

AIスキル「Loop Runner」では何ができますか?

Execute exactly one disciplined iteration of a designed loop from .loop/<name>/ (LOOP.md charter + state.json + journal.md). Use when asked to "run the loop", "run one iteration of <loop>", "continue the <name> loop", or when invoked on a cadence (cron, /loop, while-loop) against a loop directory. Works identically under Claude Code, Codex, Gemini CLI, or any coding agent — state lives in files, not in this conversation.

TypingMindでLoop Runnerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Loop Runnerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにLoop Runnerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-runnerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Loop Runnerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Loop Runnerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもLoop Runnerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Loop Runner」は無料ですか?

はい。frankxaiがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇