Logo von Auto Optimize

Auto Optimize

Community
LeeJuOh
auto-optimize

Autonomously optimize an existing skill's output quality by running it repeatedly, scoring against binary evals, mutating the prompt, and keeping improvements. Started only by the user, because it edits the skill in place and runs many paid model calls.

Add to TypingMind

Übersicht

HerausgeberLeeJuOh
Repositoryclaude-code-zero
Skill-Nameauto-optimize
Sterne
53
Forks
4
Mitgelieferte Dateien
3
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 3

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von LeeJuOh auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Auto Optimize in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/skill-creator-pro/skills/auto-optimize
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeJuOh/claude-code-zero.git /tmp/claude-code-zero
mkdir -p .claude/skills
cp -r /tmp/claude-code-zero/plugins/skill-creator-pro/skills/auto-optimize .claude/skills/auto-optimize
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auto Optimize in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Auto Optimize automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Auto Optimize nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Autoresearch for Skills

Bundled with skill-creator-pro. This skill reads design guidance from its sibling via ${CLAUDE_SKILL_DIR}/../skill-creator-pro/. The two skills ship together in the skill-creator-pro plugin and cannot be installed separately.

Most skills work about 70% of the time. The other 30% you get garbage. The fix isn't to rewrite the skill from scratch. It's to let an agent run it dozens of times, score every output, and tighten the prompt until that 30% disappears.

This skill adapts Andrej Karpathy's autoresearch methodology to Claude Code skills, enhanced with:

  • Reflection-driven mutation -- reads failed outputs to diagnose WHY they failed, then proposes targeted fixes. The difference between throwing darts blindfolded and throwing them with your eyes open.
  • Per-eval tracking -- tracks each eval separately so improving one at another's expense gets caught.
  • Structured archive -- session-surviving changelog that new sessions read to avoid repeating failed experiments.
  • Stuck detection -- recognizes when incremental mutations hit a wall and escalates strategy.

The Core Job

Take any existing skill, define what "good output" looks like as binary yes/no checks, then run an autonomous loop that:

  1. Generates outputs from the skill using test inputs
  2. Scores every output against the eval criteria
  3. Reflects on failed outputs -- reads the actual failures and diagnoses the root cause
  4. Mutates the skill prompt to fix the diagnosed issue
  5. Keeps mutations that improve the score, discards the rest
  6. Repeats until the score ceiling is hit or the user stops it

Output: An improved SKILL.md + results.json log + structured changelog.md + a live HTML dashboard.


Before Starting: Gather Context

STOP. Do not run any experiments until the fields below are confirmed with the user. Ask for any missing fields before proceeding.

  1. Target skill -- Which skill to optimize? (exact path to SKILL.md)
  2. Test inputs -- 3-5 different prompts/scenarios to test with. Variety matters -- pick inputs that cover different use cases so we don't overfit to one scenario.
  3. Runs per input (R) -- How many times each test input runs in one experiment. Default: 2 (3 inputs x 2 = 6 runs). More runs = more reliable scores but slower and costlier.
  4. Budget cap -- Optional. Max number of experiment cycles before stopping. Default: no cap (runs until you stop it).

Do NOT ask the user for eval criteria yet. Evals come from observing real failures, not from guessing upfront.


Step 1: Read the Skill and Learn Design Principles

Before changing anything, read and understand the target skill completely.

  1. Read the full SKILL.md file
  2. Read any files in references/ that the skill links to
  3. Identify the skill's core job, process steps, and output format
  4. Note any existing quality checks or anti-patterns already in the skill
  5. Read skill design principles to inform your mutations:
    • ${CLAUDE_SKILL_DIR}/../skill-creator-pro/SKILL.md -- the "Skill Writing Guide", "Progressive Disclosure", and "Description Optimization" sections cover gotchas, progressive disclosure, and description-as-trigger
    • If the skill uses platform features (hooks, allowed-tools, frontmatter) and something seems wrong, fetch https://code.claude.com/docs/llms.txt and the relevant page to verify against the latest spec

Do NOT skip this. You need to understand both the skill AND what makes skills work before you can improve it.


Step 2: Discovery Runs

Run the skill AS-IS for one full experiment: every test input, R times each. These outputs become the baseline in Step 5, so they must match what each later experiment runs. Do NOT score anything yet -- just collect outputs and observe.

  1. Create the workspace ${CLAUDE_PLUGIN_DATA}/autoresearch-[skill-name]/ -- never next to the target skill, where it would ship with the skill
  2. Back up the original SKILL.md there as SKILL.md.baseline
  3. Run the skill as described in "How to run the skill" below, saving to exp-0/
  4. Save every output in full -- you'll need these for reflection later. Don't summarize; keep the raw transcript.

While reviewing outputs, identify failure patterns:

  • What goes wrong consistently?
  • What works well that we should protect?
  • Are there formatting issues, missing steps, wrong defaults?
  • What would a user complain about?

The highest-signal content comes from real failure points, not theoretical checklists.

How to run the skill

Every run -- discovery and experiment alike -- goes to a fresh subagent, because this session knows the evals and would quietly write toward them, and a subagent that saw earlier runs would copy them. Give each subagent only the target skill's path, one test input, and the file to save its output to; never the eval criteria or other outputs. Launch all of one experiment's runs (every input x R) in the same turn so they finish together, and save them under exp-[N]/.


Step 3: Propose Evals

Based on the failure patterns you observed in discovery runs, propose 3-6 binary eval criteria to the user.

Format each eval as:

EVAL [number]: [Short name]
Question: [Yes/no question about the output]
Pass condition: [What "yes" looks like -- be specific]
Fail condition: [What triggers a "no"]

Present the proposed evals and explain which observed failures each one targets. The user confirms, adjusts, or adds their own.

Rules for good evals (the assertion schema lives in ${CLAUDE_SKILL_DIR}/../skill-creator-pro/references/schemas.md):

  • Binary only. Yes or no. No scales.
  • Specific enough that two different agents would agree on the verdict.
  • Not so narrow the skill can game the eval without actually improving.
  • 3-6 evals is the sweet spot.

Max score calculation:

max_score = [number of evals] x [number of test inputs] x R

IMPORTANT: Do not proceed to the experiment loop until the user confirms the eval criteria.


Step 4: Set Up Dashboard

Before running experiments, write results.json in the workspace (schema below), render the dashboard, and open it:

bash
python3 ${CLAUDE_SKILL_DIR}/scripts/render_dashboard.py <workspace>/results.json <workspace>/dashboard.html
open <workspace>/dashboard.html

The script inlines the data into the page -- a page that fetches results.json is blocked from file:// -- and the page reloads every 10 seconds while status is "running". It shows the pass-rate progression, a colored bar per experiment, per-eval pass rates with trend arrows, and the experiment table.

Update results.json and re-run the script after every experiment so the dashboard stays current:

json
{
  "skill_name": "[name]",
  "status": "running",
  "current_experiment": 3,
  "baseline_score": 70.0,
  "best_score": 90.0,
  "consecutive_discards": 0,
  "experiments": [
    {
      "id": 0,
      "score": 14,
      "max_score": 20,
      "pass_rate": 70.0,
      "status": "baseline",
      "description": "original skill -- no changes",
      "reflection": null,
      "per_eval": [
        {"name": "Text legibility", "passed": 4, "total": 5},
        {"name": "Color contrast", "passed": 3, "total": 5}
      ]
    }
  ]
}

When the run finishes, set status to "complete" and render once more.


Step 5: Establish Baseline

Now score the discovery run outputs (from Step 2) against the confirmed evals. This is experiment #0.

  1. Score every output from discovery runs against every eval
  2. Record the baseline score per-eval (not just total) and update results.json
  3. Re-render the dashboard

IMPORTANT: After establishing baseline, confirm the score with the user before proceeding. If baseline is already 90%+, the skill may not need optimization -- ask if they want to continue.


Step 6: Run the Experiment Loop

This is the core autoresearch loop. Once started, run autonomously until stopped.

LOOP:

6.1 Reflect on Failures

This is where auto-optimize diverges from blind mutation. Instead of guessing what might help, you read the evidence.

  1. Collect failed outputs. From the most recent experiment, gather every output that failed at least one eval.

  2. Read the failures. Actually read the failing outputs -- not just the scores. Look for:

    • Common patterns across failures (same section wrong, same format broken, same step skipped)
    • Partial successes (output was 80% right -- what's the missing 20%?)
    • Regression patterns (something that used to pass now fails)
  3. Diagnose the root cause. Map each failure pattern back to a specific gap or ambiguity in the SKILL.md. Ask: "What instruction caused this, or what missing instruction allowed this?"

  4. Form a targeted hypothesis. Not "maybe I should add something about X" but a specific, falsifiable claim:

    Bad: "Adding a color instruction might help" Good: "Eval 3 fails because the skill says 'use appropriate colors' -- the model picks neon green 60% of the time. Replacing with a specific hex palette should fix this."

The hypothesis must be specific enough that after running the experiment, you can say whether it was right or wrong. If you can't articulate what you expect to change and why, you're guessing.

For detailed reflection techniques and examples, read ${CLAUDE_SKILL_DIR}/references/reflection-guide.md.

6.2 Mutate

Based on the reflection, make ONE targeted change to SKILL.md.

For mutation strategies, consult the "Skill Writing Guide", "Writing Patterns", and "Writing Style" sections of ${CLAUDE_SKILL_DIR}/../skill-creator-pro/SKILL.md. Key principle: one change at a time so you know what helped.

Bad mutations:

  • Rewriting the entire skill from scratch
  • Adding 10 new rules at once
  • Making the skill longer without a specific reason
  • Adding vague instructions like "make it better"
  • Adding ALL CAPS directives instead of explaining the reasoning

6.3 Run and Score

Run the mutated skill for one full experiment (every input x R, see "How to run the skill"), saving to exp-[N]/. Score every output against every eval. Record both total score and per-eval scores.

6.4 Keep or Discard

Before deciding, check two things:

Per-eval regression check. Compare each eval's pass count against the current best. If any single eval dropped by 2+ passes while the total score went up, that's the "balloon effect" -- one area improving while another quietly breaks. Flag it in the log and discard unless the overall gain clearly outweighs the regression.

Marginal improvement check. If the total score improved by less than 5% absolute (e.g., 70% to 73%), mark the experiment as "marginal" in the log. Still keep it, but note the uncertainty. If you accumulate 3+ marginal keeps in a row without a clear win, be suspicious -- the score may have drifted up through luck, not real improvement. Consider re-running the current SKILL.md against baseline to verify the cumulative gain is real.

Decision:

  • Score improved (not marginal) and no eval regressed -> KEEP. Log it. This is the new baseline.
  • Score improved but marginal -> KEEP with note. Log as "marginal". Watch for drift.
  • Score improved but an eval regressed badly -> DISCARD. The balloon effect isn't real improvement.
  • Score stayed the same or got worse -> DISCARD. Revert SKILL.md to previous version.

After deciding, update results.json and the structured archive.

6.5 Stuck Detection

Track consecutive discards. When the count hits thresholds, escalate:

3 consecutive discards -- soft reset:

  1. Re-read ALL failing outputs from the last 3 experiments
  2. Look for a pattern you missed -- are the failures all the same root cause, or different?
  3. Re-read the original SKILL.md baseline to check if you've drifted
  4. Try combining elements from two previously successful mutations

5 consecutive discards -- hard reset:

  1. Everything from above, plus:
  2. Re-read the sibling skill-creator-pro/SKILL.md design sections -- there may be a structural pattern you haven't tried
  3. Try the OPPOSITE of your recent approach (if you've been adding instructions, try removing them)
  4. Try a radical structural change (move content to references, add hooks, bundle scripts)
  5. If the skill uses platform features, fetch official docs to check for spec misalignment

8 consecutive discards -- plateau:

  • The skill may have hit its ceiling for this set of evals. Log the plateau, present results to the user, and ask whether to continue with different test inputs, adjusted evals, or stop.

Reset the consecutive discard counter whenever a mutation is kept.

Loop Control

Once the loop starts, keep going without pausing to ask the user -- they started a hands-off run and may be away, so a question just stalls it. Run until:

  • The user manually stops you
  • You hit the budget cap (if set)
  • You hit 95%+ pass rate for 3 consecutive experiments (diminishing returns)
  • You hit 8 consecutive discards (plateau -- present results and ask)

Step 7: Maintain the Structured Archive

The changelog is NOT just a flat log -- it's a structured document that future sessions (or fresh contexts) can read to continue where you left off.

Maintain changelog.md in the workspace with three sections -- Current Understanding (update after every kept mutation), Experiment Log (append after every experiment), and Ideas Backlog (add during reflection, prune after trying). Templates: ${CLAUDE_SKILL_DIR}/references/changelog-template.md.


Step 8: Deliver Results

When the user returns or the loop stops, present:

  1. Score summary: Baseline score -> Final score (percent improvement)
  2. Total experiments run: How many mutations were tried
  3. Keep rate: How many mutations were kept vs discarded
  4. Per-eval progression: How each eval improved from baseline to final
  5. Top 3 changes that helped most (from the changelog)
  6. Remaining failure patterns (what the skill still gets wrong)
  7. The improved SKILL.md (already saved in place)
  8. Workspace path (dashboard.html, results.json, changelog.md, SKILL.md.baseline, exp-*/)

The Test

A good autoresearch run:

  1. Started with a baseline -- never changed anything before measuring
  2. Used binary evals only -- no scales, no vibes
  3. Reflected on failures -- read actual outputs, diagnosed root causes, formed specific hypotheses
  4. Changed one thing at a time -- so you know what helped
  5. Tracked per-eval scores -- caught regressions in individual evals, not just totals
  6. Maintained a structured archive -- future sessions can continue without repeating failed experiments
  7. Detected plateaus -- escalated strategy instead of repeating the same failing approach
  8. Ran autonomously -- didn't stop to ask permission between experiments

If the skill "passes" all evals but the actual output quality hasn't improved -- the evals are bad, not the skill. Go back to Step 3 and write better evals.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Auto Optimize?

Autonomously optimize an existing skill's output quality by running it repeatedly, scoring against binary evals, mutating the prompt, and keeping improvements. Started only by the user, because it edits the skill in place and runs many paid model calls.

Warum Auto Optimize in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auto Optimize besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Auto Optimize in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/skill-creator-pro/skills/auto-optimize ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Auto Optimize nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Auto Optimize verwenden?

So viele Sie möchten. In TypingMind können Sie Auto Optimize mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Auto Optimize kostenlos?

Ja. Der Skill wird von LeeJuOh auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇