شعار Companion Docs

Companion Docs

المجتمع
grimmerk
companion-docs

Where to put a document that belongs with a repository but must not be committed to it: a translation or annotated copy of one of its files (for example a Traditional Chinese version of an English doc in a repository you cannot commit personal documents to (an employer's, a client's)), or a note about the repository that maps to no single file (an evaluation, a review write-up, a hand-off). Use when the user asks for a translation or a version of a document in another language, in any language however they name it (中文版, 日本語版, 한국어판, en français; examples only), a companion or side-by-side version of a document, a note / write-up / evaluation about a repository that should not be committed to it, when reading a document that may already have one, or when the user mentions a companion, or memsaga's data repo by any name (the memories repo, memsaga KB, memsaga memory, memsaga data, memsaga memories) and its companion/ directory. Not for a request to reply in some language (answer in Japanese, reply in French), which is about the conversation language, not a document.

نظرة عامة

الناشرgrimmerk
المستودعmemsaga
اسم المهارةcompanion-docs
النجوم
21
التفريعات
0
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/grimmerk/memsaga.git /tmp/memsaga
mkdir -p .claude/skills
cp -r /tmp/memsaga/skills/companion-docs .claude/skills/companion-docs
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Companion docs

A companion is a file that belongs with a repository but must not land in it. Two kinds:

  • A companion of one file: a translation, a commentary, a summary of a specific document. Its path mirrors the source's path.
  • A note about the repository: an evaluation, a review write-up, a hand-off, anything tied to the repository (or to several of its files, a PR, an issue) but not to one file. It lives under _notes/.

Both live in the memsaga data repo, which commits them automatically at the end of the turn.

Path convention

<memsaga repo>/companion/<repo name>/<path inside that repo>.<lang>.md
  • <memsaga repo> is the data repository, the path memsaga repo prints (~/git/memories in the examples here).
  • <repo name> is the last component of the source repository's path (webapp for ~/git/webapp or ~/code/webapp), not the GitHub full name. The same repository on two machines shares that name, which is the point. Two different repositories with the same name (~/git/webapp and ~/code/webapp on one machine) would collide: when the existing companions' sources point into another folder, use <parent>-<name> (code-webapp) for the new repository.
  • <path inside that repo> keeps the source's relative path and extension, then adds the language tag: docs/architecture.md -> docs/architecture.zh-tw.md. The tag is the companion's language (zh-tw, ja, de, fr); the examples below use zh-tw because that is the author's case, not a rule.

Example: the companion of ~/git/webapp/docs/architecture.md is ~/git/memories/companion/webapp/docs/architecture.zh-tw.md.

Notes about a repository

<memsaga repo>/companion/<repo name>/_notes/<name>.md

<name> is short and descriptive (open-code-review-evaluation.md, pr-2107-review.md). Frontmatter is the same as for any companion (see Frontmatter below) with two differences: type: Note, and relates_to listing what it concerns (files relative to the repository, PRs and issues as owner/repo#N) in place of sources. A note has no source file for a later session to read, so add the same one-line pointer to the repository's MEMORY.md as for a draft (below), and keep it while the note is still useful.

yaml
---
type: Note
title: open-code-review evaluation
description: Whether open-code-review could replace the bot reviewers on webapp
relates_to:
  - docs/review-process.md
  - acme/webapp#2107
generated:
  by: claude-code/claude-opus-5-5
  at: 2026-09-30T10:00:00Z
status: stable
---

When the source does not exist yet

A document may be drafted in the companion language first (a design written in Traditional Chinese to discuss before any English version exists) in a repository where it cannot be committed. Use the same path rule with the path the source will have once it is written, so the companion is found the day the source appears: ~/git/memories/companion/webapp/docs/new-design.zh-tw.md for a future ~/git/webapp/docs/new-design.md. Set status: draft and leave sources empty; fill sources in when the source is committed. Ask the user where the source will live if it is not obvious.

A draft has no source file for a later session to read, so also add one line to that repository's auto-memory index (MEMORY.md under ~/.claude/projects/<slug>/memory/): the topic, the companion's path, and "no source yet". The pointer is what a fresh session in that repository loads; the content stays in the companion. Remove the line once the source is committed, since the path rule finds the companion from then on.

Frontmatter

Every companion starts with YAML frontmatter following the Open Knowledge Format core fields plus provenance, so the source and its version are recorded and any OKF consumer can read it:

yaml
---
type: Translation            # or Commentary, Summary; Note for _notes/ (with relates_to instead of sources)
title: architecture (zh-TW)
description: Traditional Chinese translation of webapp docs/architecture.md
sources:
  - resource: ~/git/webapp/docs/architecture.md
    last_modified: 2026-09-18T09:12:00Z     # commit time of the source revision translated
    commit: 3f9a85f6                         # source repo commit the companion was made from
generated:
  by: claude-code/claude-fable-5-1
  at: 2026-09-18T10:05:00Z
status: stable                               # draft | stable | deprecated
---

Get the source commit with git -C <source repo> log -1 --format='%h %cI' -- <path>.

When writing

  1. Resolve the companion path from the source path as above; create parent directories as needed.
  2. Write the frontmatter, then the content. Keep headings parallel to the source so the two files can be read side by side.
  3. Do not add anything to the source repository, its .gitignore, or its docs; the companion is complete on its own.
  4. Nothing else to do: memsaga commits companion/ at the next Stop.

Listing what exists

memsaga companions [repo name] prints every companion with its status and source (for a note, what it relates to); in a session the user can type /companions webapp (or ! memsaga companions webapp) to see the same list directly.

When reading a document

Before summarising or translating a file inside a git repository, check whether its companion exists at the path above and mention it to the user if it does. If the source has moved, sources[].resource in the companion's frontmatter names the old path; search by file name under companion/<repo>/ and suggest updating the frontmatter.

Updating

When the source changes, regenerate or patch the companion and bump sources[].commit, sources[].last_modified and generated.at. Mark a companion that is no longer maintained with status: deprecated rather than deleting it; history stays in git either way.

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

ماذا تفعل مهارة الذكاء الاصطناعي Companion Docs؟

Where to put a document that belongs with a repository but must not be committed to it: a translation or annotated copy of one of its files (for example a Traditional Chinese version of an English doc in a repository you cannot commit personal documents to (an employer's, a client's)), or a note about the repository that maps to no single file (an evaluation, a review write-up, a hand-off). Use when the user asks for a translation or a version of a document in another language, in any language however they name it (中文版, 日本語版, 한국어판, en français; examples only), a companion or side-by-side ve...

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

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

كيف أثبّت Companion Docs في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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