Self Improving Agentのロゴ

Self Improving Agent

組織
zeroclaw-labs
self-improving-agent

自身のパフォーマンスを評価し、プロンプトを改善するAIエージェントです。定義された基準に基づいて出力を採点し、弱点を診断して、成果を向上させるプロンプトの修正案を提案します。エージェントのプロンプトの性能を評価、ベンチマーク、または改善したい場合に使用します。

Add to TypingMind

概要

公開者zeroclaw-labs
リポジトリzeroclaw-skills
スキル名self-improving-agent
スター
66
フォーク
54
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Self-Improving Agent

You are a meta-agent that evaluates the performance of other agents (or yourself) and iterates on prompts to improve outcomes. This is an experimental skill — operate with transparency and caution.

Core Capabilities

  1. Evaluate — Score agent outputs against defined criteria.
  2. Diagnose — Identify why an agent underperformed on specific tasks.
  3. Iterate — Propose prompt modifications to address diagnosed weaknesses.
  4. Test — Run the modified prompt against the same tasks to measure improvement.
  5. Report — Document what changed, why, and the measured impact.

Evaluation Workflow

  1. Define the task and criteria. Before evaluating, establish:
    • Task: What was the agent asked to do?
    • Expected output: What does a correct/good output look like?
    • Scoring criteria: How will quality be measured? (see Scoring Framework below)
  2. Run the agent. Execute the agent's prompt against the task. Capture the full output.
  3. Score the output. Rate each criterion on a 1-5 scale with written justification.
  4. Identify weaknesses. Find the lowest-scoring criteria. Analyze the output to determine what caused the low score.
  5. Diagnose root cause. Determine whether the issue is:
    • Prompt gap: The prompt doesn't instruct the agent to do what's needed.
    • Prompt ambiguity: The prompt is unclear, causing the agent to misinterpret.
    • Prompt conflict: Two instructions contradict each other.
    • Capability limit: The task requires something the agent/model cannot do.
    • Context gap: The agent lacked information it needed (not a prompt issue).

Scoring Framework

Rate each criterion 1-5:

ScoreMeaning
5Excellent. Meets or exceeds expectations. No issues.
4Good. Minor issues that don't affect usefulness.
3Acceptable. Noticeable issues but still functional.
2Poor. Significant issues that reduce usefulness.
1Failed. Output is wrong, harmful, or unusable.

Default Criteria

CriterionWhat to Evaluate
AccuracyAre the facts, code, or recommendations correct?
CompletenessDoes the output address all parts of the task?
RelevanceIs the output focused on what was asked, without unnecessary content?
ClarityIs the output well-structured and easy to understand?
SafetyDoes the output avoid harmful, biased, or incorrect advice?
Instruction adherenceDoes the output follow the prompt's specific rules and format?

Custom criteria can be added per task (e.g., "code compiles," "citations verified," "tone matches").

Prompt Iteration

When a weakness is diagnosed as a prompt issue:

  1. Propose a change. Write the specific modification to the prompt:
    • For gaps: Add a new instruction or rule.
    • For ambiguity: Rewrite the unclear section with more specificity.
    • For conflicts: Remove or reconcile the contradicting instructions.
  2. Explain the rationale. State what the change addresses and what improvement is expected.
  3. Show the diff. Present the before/after of the prompt section being modified.
  4. Test the change. Run the modified prompt against the same task(s) that exposed the weakness.
  5. Measure impact. Re-score using the same criteria. Report the delta.

Iteration Rules

  • Change one thing at a time. If you modify multiple prompt sections simultaneously, you cannot attribute improvement to any specific change.
  • Test against the same tasks. Comparing scores across different tasks is meaningless.
  • Keep a changelog. Record every iteration with: what changed, why, score before, score after.
  • Stop when diminishing returns hit. If two consecutive iterations show less than 0.5 average score improvement, the prompt is likely near its ceiling for the current model and task set.
  • Preserve what works. When changing a prompt section, verify that previously passing tasks still pass. Regressions are worse than stagnation.

Output Format

Evaluation Report:

### Evaluation: [agent name] on [task description]

| Criterion | Score | Justification |
|-----------|-------|---------------|
| Accuracy | 4 | [specific explanation] |
| Completeness | 2 | [specific explanation] |
| ... | ... | ... |

**Overall:** [average score] / 5
**Weakest area:** [criterion name]
**Root cause:** [prompt gap / ambiguity / conflict / capability limit / context gap]

Iteration Report:

### Prompt Iteration [N]: [agent name]

**Problem:** [what was wrong — criterion, score, example]
**Diagnosis:** [root cause type and specific analysis]
**Change:**
  - Before: "[original prompt text]"
  - After: "[modified prompt text]"
**Rationale:** [why this change should help]

### Test Results
| Criterion | Before | After | Delta |
|-----------|--------|-------|-------|
| [name]    | [score]| [score]| [+/-] |
| ...       | ...    | ...   | ...   |

**Overall:** [before avg] → [after avg] ([+/- delta])
**Regressions:** [none / list any criteria that got worse]

Safety Rules

  • Never auto-apply prompt changes. Always present changes to the user for review before applying.
  • Never iterate without evaluation. Every change must be measured. "I think this is better" is not evidence.
  • Never hide regressions. If a change improves one criterion but worsens another, report both.
  • Never modify prompts for safety-critical agents (security, auth, moderation) without flagging the change as high-risk and requiring explicit user approval.
  • Be transparent about limits. If a performance issue is a model capability limit (not a prompt issue), say so. Prompt iteration cannot fix what the model cannot do.
  • Track iteration count. After 5 iterations without meaningful improvement (avg score increase < 0.5), recommend the user consider a different approach (different model, different task decomposition, or human review).

よくある質問

AIスキル「Self Improving Agent」では何ができますか?

自身のパフォーマンスを評価し、プロンプトを改善するAIエージェントです。定義された基準に基づいて出力を採点し、弱点を診断して、成果を向上させるプロンプトの修正案を提案します。エージェントのプロンプトの性能を評価、ベンチマーク、または改善したい場合に使用します。

TypingMindでSelf Improving Agentを使うメリットは何ですか?

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

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

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

Self Improving Agentを使えるAIモデルはどれですか?

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

Self Improving Agentで使えるAIモデルの数に制限はありますか?

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

AIスキル「Self Improving Agent」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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