شعار Learn

Learn

مؤسسة
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).

نظرة عامة

الناشرonebrain-ai
المستودعonebrain
اسم المهارةlearn
النجوم
31
التفريعات
3
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها onebrain-ai على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Learn في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/learn
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Learn في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Learn تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Learn بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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).

لماذا تستخدم Learn على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Learn عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Learn في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/learn. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Learn؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Learn؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Learn معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Learn مجانية؟

نعم. نشرها onebrain-ai على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇