Logo de Self Improve

Self Improve

Comunidade
thumperL
self-improve

Self-improving interaction skill that learns from user corrections and steering patterns. TRIGGER THIS SKILL when any of the following occur during a session: (1) The user corrects Claude's approach 3 or more times (e.g., "no, do X instead", "that's not what I meant", "actually...", rephrasing the same request, asking to redo work, expressing dissatisfaction). (2) At periodic context checkpoints (~25%, ~50%, ~75%) — this is routine logging, not a signal to stop. Capture learnings silently and continue working on the current task without interruption. (3) The user explicitly says "learn this", "remember this preference", "improve how you work with me", or similar self-improvement triggers. Also trigger when Claude notices repeated patterns of correction across a conversation, even before hitting the 3-correction threshold, if the pattern is clear. This skill is about making Claude better at working with this specific user over time. Use it liberally — it's better to learn too often than to miss patterns. IMPORTANT: This skill is about capturing learnings, NOT about managing context. Never suggest ending the session, starting fresh, or doing a handoff. After logging, resume the task seamlessly.

Visão geral

Publicado porthumperL
Repositórioclaude-worktrace
Nome da habilidadeself-improve
Estrelas
30
Forks
1
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por thumperL no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Self Improve no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/thumperL/claude-worktrace/tree/main/skills/self-improve
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thumperL/claude-worktrace.git /tmp/claude-worktrace
mkdir -p .claude/skills
cp -r /tmp/claude-worktrace/skills/self-improve .claude/skills/self-improve
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Self Improve em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Self Improve automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Self Improve não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Self-Improve: Adaptive Interaction Learning

Analyze how the user has been steering you, identify patterns, and — with confirmation — persist those learnings for all future sessions.

Why this matters

Every correction is signal. Without this skill, the user re-trains Claude every session. This skill closes the loop by capturing preferences and making them permanent.

When to activate

Trigger 1: Steer count ≥ 3

A "steer" is ANY input where the user shapes HOW you work. The bar is intentionally low:

  • Explicit corrections: "No", "Wrong", "I meant X", "Actually..."
  • Directional guidance: "Use this for that", "Try it with X", "Go with Z approach"
  • Rephrased requests: Same request, different words (first attempt missed)
  • Redo requests: "Try again", "Do it differently", "Go back and..."
  • Scope adjustments: "Skip that", "Also include X", "That's too much"
  • Tool/method steering: "Use pandas", "Don't use that library", "Do it in bash"
  • Style nudges: "Shorter", "More detail", "Less formal", "Just the code"
  • Approach overrides: "Don't plan, just code", "Check with me first"
  • Expressed dissatisfaction: Frustration, terse responses, sarcasm
  • Implicit steers: Context about preferences, even if not framed as correction

Key insight: if the user is telling you HOW to do something (not just WHAT), that's a steer.

Trigger 2: Periodic context checkpoints (~25%, ~50%, ~75%)

At each checkpoint, capture any learnings accumulated since the last checkpoint. This is routine periodic logging — NOT a signal that context is running out. After capturing, resume the current task immediately without comment. Do not suggest compacting, ending the session, or starting fresh.

Trigger 3: Explicit request

"Learn this", "remember this", "always do it this way", "improve yourself".

Checkpoint mode vs. interactive mode

Checkpoint triggers (~25/50/75% context):

  1. Spawn the analyzer subagent to detect patterns
  2. Auto-save worklog silently (worklog doesn't need confirmation)
  3. If no patterns worth noting — skip entirely, resume task without interrupting the user
  4. If patterns were found, present them with options:
📋 Checkpoint — patterns detected:

1. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

2. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

Options:
[1] Save these
[2] Skip, save nothing
[3] Let me edit/add my own

On [1]: persist via write_preferences.py --target log-only (logged, not auto-applied to CLAUDE.md) On [2]: discard and continue On [3]: accept user input, then persist

After the user responds, immediately resume the current task.

All other triggers (steer count ≥ 3, explicit request) use the full interactive flow below, which can write directly to CLAUDE.md on confirmation.

The Analysis Process (interactive mode)

Step 1: Delegate to a subagent

This is critical. Do NOT analyze your own conversation directly — you have blind spots about your own mistakes. Instead, spawn a subagent to analyze the transcript with fresh eyes.

Use the Agent tool to spawn an analyzer:

Prompt for the subagent:
"Read the analyzer instructions at ${CLAUDE_PLUGIN_ROOT}/agents/analyzer.md

Then analyze this conversation transcript for user steering patterns:

<transcript>
[Paste or summarize the key parts of the conversation — focus on user messages
that steered, corrected, or guided behavior. Include what Claude did before
each steer so the analyzer has context.]
</transcript>

Also check these existing preferences for conflicts:
[Include current contents of ~/.claude/CLAUDE.md if available]

Return your analysis as JSON following the format in the analyzer instructions."

The subagent returns structured JSON with steers found, patterns identified, and any conflicts.

Step 2: Review the subagent's findings

Read the JSON response. Sanity-check:

  • Do the identified patterns make sense?
  • Are there any false positives (one-offs classified as patterns)?
  • Are there conflicts with existing preferences?

Step 3: Present to the user

Show EXACTLY what was learned, concisely:

📋 Patterns detected from this session:

1. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

2. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

[If conflicts:] ⚠️ Conflict: Previously you preferred X, but this session suggests Y. Which should I keep?

Save these to your global preferences?

Keep it SHORT. The user wants to see what you learned and confirm quickly.

Step 4: On confirmation, persist

Write preferences using the bundled script:

bash
python "${CLAUDE_PLUGIN_ROOT}/scripts/write_preferences.py" \
  --preferences '[{"category": "...", "preference": "...", "context": "...", "evidence": "..."}]' \
  --target global

The script handles:

  • Writing to ~/.claude/CLAUDE.md (global, cross-project, active in all sessions)
  • Writing to ~/Documents/AI/self-improve/preferences-log.md (detailed log with timestamps, synced across devices)
  • Deduplication (won't add preferences that already exist)

If the script isn't available, write directly to ~/.claude/CLAUDE.md under a ## User Preferences (Auto-Learned) section.

Step 5: Trigger worklog

After saving preferences, also trigger the worklog-logging skill to capture what was accomplished. Present both outputs together for a single confirmation.

Step 6: Resume work

After logging, immediately continue with the current task. Do not suggest compacting, ending the session, starting fresh, or doing a handoff. The purpose of periodic logging is to capture learnings incrementally — it is not a stopping point.

Handling conflicts

If a new preference contradicts an existing one:

  • Show both to the user with the conflict clearly labeled
  • On confirmation, replace the old preference
  • Log the change in the preferences log with a note about the update

What NOT to learn

  • One-off task-specific requests (user said "use pandas for this" but normally prefers R)
  • Project-specific preferences unless user says to generalize
  • Anything explicitly marked as temporary

Storage paths

  • Active preferences: ~/.claude/CLAUDE.md (auto-loaded by Claude in every session)
  • Detailed log: ~/Documents/AI/self-improve/preferences-log.md (synced across devices, includes evidence and timestamps)
  • Fallback log: ~/.claude/self-improve-preferences.md

Automatic steer capture (hooks)

Hooks in hooks/hooks.json automatically detect steering patterns on PreCompact/SessionEnd and log them to ~/Documents/AI/self-improve/preferences-log.md. Steers are never auto-applied — the manual flow (conversation-based, user-confirmed) remains the only path to CLAUDE.md.

Reviewing detected steers: Say "review detected steers", "what have you learned", or "show auto-detected preferences" to review and promote unconfirmed items.

Recovery

Users can always:

  • Edit ~/.claude/CLAUDE.md directly
  • Say "forget that preference" or "undo last learning"
  • Say "show my preferences" to see what's saved
  • Review the preferences log for full history

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Self Improve faz?

Self-improving interaction skill that learns from user corrections and steering patterns. TRIGGER THIS SKILL when any of the following occur during a session: (1) The user corrects Claude's approach 3 or more times (e.g., "no, do X instead", "that's not what I meant", "actually...", rephrasing the same request, asking to redo work, expressing dissatisfaction). (2) At periodic context checkpoints (~25%, ~50%, ~75%) — this is routine logging, not a signal to stop. Capture learnings silently and continue working on the current task without interruption. (3) The user explicitly says "learn this...

Por que usar Self Improve no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Self Improve é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Self Improve no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/thumperL/claude-worktrace/tree/main/skills/self-improve. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Self Improve?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Self Improve?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Self Improve com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Self Improve é gratuita?

Sim. A habilidade é publicada no GitHub por thumperL sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇