Logo de Learn

Learn

Organização
onebrain-ai
learn

Teach the agent a new fact or behavioral preference and save it to memory/ for future recall. Use when the user says 'remember that', 'from now on', 'always do X', or corrects agent behavior they want persisted. Do NOT use for: capturing a general note or idea (use capture), saving a session summary (use wrapup), or promoting recurring patterns from many sessions (use recap).

Visão geral

Publicado poronebrain-ai
Repositórioonebrain
Nome da habilidadelearn
Estrelas
31
Forks
3
Arquivos incluídos
Somente instruções
LicençaApache-2.0
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.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

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

Instalação

Instale a habilidade de IA Learn 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/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/learn
  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/onebrain-ai/onebrain.git /tmp/onebrain
mkdir -p .claude/skills
cp -r /tmp/onebrain/.claude/plugins/onebrain/skills/learn .claude/skills/learn
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Learn 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 Learn 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, Learn 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á.

Learn

Teach the agent a new fact or behavioral preference. Writes immediately to memory/ — no batch processing.

One-File-Per-Concept Rule

If the user provides multiple facts in one /learn call, create separate files for each concept. Do not combine multiple facts into one file.

Why: Memory files are the unit of deprecation. If fact A becomes outdated but B stays valid, a combined file forces you to either keep stale A or discard still-valid B. Separate files let each fact be independently deprecated or superseded.

Active Projects Intent Detection

Write to MEMORY.md ## Active Projects ONLY when the user message explicitly references a project lifecycle event.

Triggers Active Projects update (write to MEMORY.md):

  • "starting project X", "project Y is done", "adding project Z", "updating status of project A"

Does NOT trigger (write to memory/ file instead):

  • "in project X we use Y", "I worked on project X before"

When unclear → AskUserQuestion: "Add to Active Projects in MEMORY.md, or create a memory file?" Options: active-projects / memory-file

Contradiction Detection

Before writing a new file, grep memory/ for files with overlapping topics or similar content. Scan ONLY files with status: active or status: needs-review — skip deprecated files.

Why: Deprecated files are intentionally retired. Re-surfacing them as conflicts would create ghost conversations about facts the user has already decided to discard.

If a potential conflict is found, show this display block first: ⚠️ Possible conflict with memory/{filename}.md New: "{new fact}" Existing: "{existing fact}"

Then AskUserQuestion:

  • question: "How should I handle this conflict?"
  • header: "Conflict"
  • multiSelect: false
  • options:
    • label: "update", description: "Merge new fact into existing file (old content still partially correct)"
    • label: "supersede", description: "Create new file, deprecate old (old content fully outdated)"
    • label: "separate", description: "Create new file separately (no conflict, keep both)"

update → read existing file, merge new fact in-place, bump verified to today. No new file created, MEMORY-INDEX.md unchanged.

supersede → create new file; set old file status: deprecated (regardless of previous status); remove old file's row from MEMORY-INDEX.md; add supersedes: old-file.md to new file's frontmatter. Also set superseded_by: new-file.md on the old file's frontmatter.

separate → create new file as normal, no changes to existing file.

Filename Collision Check

Before writing a new file, check if memory/X.md already exists (where X is the kebab-case name derived from the concept). If yes — even with different topics — surface via AskUserQuestion: overwrite / rename / cancel

Rename suffix: -NN, auto-incrementing until a free slot is found. Example: dev-workflow.md exists → try dev-workflow-02.md → dev-workflow-03.md, etc.

After Writing a New File (applies only when creating a new file — not when choosing update)

  1. Infer type from content semantics:

    • "always do X" / "use Y when Z" → behavioral
    • "repo path / config / setup" → context
    • "dev workflow / git / PR" → dev
    • "decision about project X" → project
    • "external link / reference" → reference
    • If ambiguous → AskUserQuestion with these 5 options as choices
  2. Extract topics (2–4 keywords from content)

  3. Write memory file frontmatter:

    yaml
    ---
    tags: [agent-memory]
    created: YYYY-MM-DD
    source: /learn
    topics: [keyword1, keyword2]
    type: [inferred type]
    status: active
    conf: medium
    verified: YYYY-MM-DD
    updated: YYYY-MM-DD
    ---
  4. Add row to MEMORY-INDEX.md table: | [[memory/filename]] | topic1, topic2 | type | active | description |

  5. Update MEMORY-INDEX.md frontmatter:

    • updated: → today
    • total_active → increment by 1
  6. If supersede was chosen: additionally set supersedes: old-file.md in new file's frontmatter and superseded_by: new-file.md in old file's frontmatter.

Confirmation

After writing or updating the file, say in one line: 🧠 Learned: {brief description of what was saved or updated}.


Write Log Entry

Follow ../_shared/audit-log-format.md (canonical frontmatter, append-per-day algorithm, failure mode) with:

  • Filename: YYYY-MM-DD-memory.md — shared file. /learn and /memory-review both append to this same daily file.
  • Tags: [audit-log, memory]
  • Skill: skill: [/learn, /memory-review] (YAML list — file is shared)
  • Run heading exception: because the file is shared, /learn writes its sections as ## Run HH:MM /learn (and /memory-review writes ## Run HH:MM /memory-review). This is the only audit-log file where the run heading carries a discriminator.
  • Entry types written by /learn: created (new memory file) or updated (update conflict resolution merged into existing file). If supersede was chosen, also log a **deprecated** bullet for the superseded file.

Per-skill body template (the appended block, when today's file already exists):

markdown
## Run HH:MM /learn
- **created** memory/feedback_new_workflow.md
  - Content: "always run /update after PR merge"
  - Source: user instruction in this session

The full file (creation form) — frontmatter + heading + first run:

markdown
---
tags: [audit-log, memory]
skill: [/learn, /memory-review]
date: YYYY-MM-DD
---

# Memory Changes — YYYY-MM-DD

## Run HH:MM /learn
- **created** memory/feedback_new_workflow.md
  - Content: "always run /update after PR merge"
  - Source: user instruction in this session

For each memory file touched in this call, write one bullet under the section, with **created** or **updated** as the entry type.


In-Skill Examples

Input: "always run 3 review rounds before merging any PR — we got burned when a PR slipped through with a broken import"

Good output (behavioral memory file body):

Run minimum 3 independent review rounds before merging any PR.

**Why:** A PR slipped through with a broken import when fewer rounds were used — multiple independent reviewers catch different issue types.
**How to apply:** After implementation is complete, dispatch 3 review sub-agents before running `gh pr create`.

Input: "remember that the OneBrain source repo is at $HOME/projects/onebrain"

Good output (context memory file — minimal one-liner body):

OneBrain source repo is at $HOME/projects/onebrain (use `$env:USERPROFILE` on Windows PowerShell).

(Simple factual memories do not need Why: / How to apply: structure — use it only when the rule needs reasoning to be applied correctly in edge cases.)

Known Gotchas

  • Conflict detection is shallow by default. Grepping MEMORY-INDEX.md Topics column may miss a file whose topics field is broad but whose content overlaps. When a candidate file is found, read its first 20 lines before concluding there is or is not a conflict.

  • type inference edge case. "I always use library X for Y in project Z" reads as behavioral but is often project context. When uncertain between behavioral and context, prefer behavioral — it triggers in more situations and is easier to deprecate if the project changes.

  • -NN collision suffix must keep incrementing. If dev-workflow.md through dev-workflow-05.md all exist, increment to -06. Do not stop at the first suffix you try.

  • update vs supersede distinction. update is for facts that are partially still true (add new nuance to existing file). supersede is when the old fact is fully wrong or replaced. If unsure, surface both options rather than guessing.

Perguntas frequentes

O que a habilidade de IA Learn faz?

Teach the agent a new fact or behavioral preference and save it to memory/ for future recall. Use when the user says 'remember that', 'from now on', 'always do X', or corrects agent behavior they want persisted. Do NOT use for: capturing a general note or idea (use capture), saving a session summary (use wrapup), or promoting recurring patterns from many sessions (use recap).

Por que usar Learn no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Learn é 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 Learn no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/learn. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Learn?

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 Learn?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Learn 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 Learn é gratuita?

Sim. A habilidade é publicada no GitHub por onebrain-ai sob a licença Apache-2.0. 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 👇