Chat Retry Resilienceのロゴ

Chat Retry Resilience

組織
prokopai
chat-retry-resilience

Jean2 provider retry lifecycle, sandbox simulation, and package-first Čapek relocation boundaries.

概要

公開者prokopai
リポジトリprokop
スキル名chat-retry-resilience
スター
35
フォーク
5
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

When to Use

Use when changing or relocating Jean2 provider retries, retry status events, failed-attempt transcript handling, circuit breaking, sandbox retry simulation, or the model-run boundary into packages/capek.

Procedure

  1. Read .architecture-specs/00-principles.md, the active phase in .architecture-specs/07-migration-phases.md, and the current retry implementation before editing.
  2. During relocation, move the working retry path without changing policy. Keep one production implementation and use server compatibility re-exports where needed.
  3. Preserve one outer operation with a shared abort signal, runningAt, backoff, and cleanup. Keep exponential jitter, provider Retry-After as a minimum, and the existing retry count unless a separate behavior phase changes them. After interruption cleanup completes, drain queued turns FIFO, including their attachments; an empty queue must finish normally.
  4. Classify errors before retrying. Quota or billing exhaustion is non-retryable. Retryable failed attempts use mode: 'retry_failed' and stay out of future model context.
  5. Stop automatic retry after any tool activity, including tool-part creation or update, to avoid replaying side effects.
  6. Keep retry state session-scoped in the client. Drive UI from chat.retry statuses (scheduled, started, exhausted, cancelled), not connection retry counters or polling.
  7. Simulate recovery through the sandbox with one failed stream response followed by success. Keep event delivery failures separate from provider failure classification.
  8. Update .architecture-specs/01-current-runtime.md and the active phase ledger before claiming relocation complete.

Pitfalls

  • Do not use the old capek branch's parallel runAgentTurn migration as the capekv2 baseline.
  • Do not combine file relocation with retry-policy redesign or wire-event changes.
  • Do not retry after tool activity.
  • Do not treat backoff as an operation timeout. It must remain cancellable through the session interrupt path.
  • Do not show intermediate failed attempts as final completion or notification events.
  • Do not let event-sink failures become provider failures, and do not hide synchronous ask-delivery failures behind an unobserved async callback.

Verification

  • Run focused retry, stream, tool-activity, cancellation, sandbox, and package/server compatibility tests for the changed batch.
  • Confirm the chat.retry sequence and final success or exhaustion event remain compatible.
  • Confirm failed assistant attempts use retry_failed and are excluded from the next model request.
  • Confirm abort interrupts active streaming and backoff delay.
  • Run affected package typechecks and lint. Do not run the full repository suite by default.
  • Confirm any required server smoke check is user-run before completing the phase.

よくある質問

AIスキル「Chat Retry Resilience」では何ができますか?

Jean2 provider retry lifecycle, sandbox simulation, and package-first Čapek relocation boundaries.

TypingMindでChat Retry Resilienceを使うメリットは何ですか?

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

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

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

Chat Retry Resilienceを使えるAIモデルはどれですか?

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

Chat Retry Resilienceで使えるAIモデルの数に制限はありますか?

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

AIスキル「Chat Retry Resilience」は無料ですか?

はい。prokopaiがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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