Self Improving Agent logo

Self Improving Agent

Organization
zeroclaw-labs
self-improving-agent

Agent that evaluates its own performance and iterates on prompts. Scores agent outputs against defined criteria, diagnoses weaknesses, and proposes prompt modifications to improve outcomes. Use when the user wants to evaluate, benchmark, or improve agent prompt performance.

Overview

Publisherzeroclaw-labs
Repositoryzeroclaw-skills
Skill nameself-improving-agent
Stars
66
Forks
54
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zeroclaw-labs on GitHub. Read the source before you install it.

Installation

Install the Self Improving Agent AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/self-improving-agent
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Self Improving Agent in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Self Improving Agent on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Self Improving Agent is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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).

Frequently asked questions

What does the Self Improving Agent AI skill do?

Agent that evaluates its own performance and iterates on prompts. Scores agent outputs against defined criteria, diagnoses weaknesses, and proposes prompt modifications to improve outcomes. Use when the user wants to evaluate, benchmark, or improve agent prompt performance.

Why use Self Improving Agent on TypingMind?

Because you install it once and use it with any model. Self Improving Agent is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Self Improving Agent in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/self-improving-agent. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Self Improving Agent?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Self Improving Agent?

As many as you like. As long as a model supports skills, you can use Self Improving Agent with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Self Improving Agent AI skill free?

Yes. It is published on GitHub by zeroclaw-labs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇