شعار Doctor

Doctor

مؤسسة
onebrain-ai
doctor

Diagnose vault and plugin health — checks broken links, orphan notes, stale memory/ files, inbox backlog, and plugin config validity. Use when the user asks to check vault health, notices something broken, or wants a system audit — 'run /doctor', 'check my vault', 'something seems off'. Do NOT use for: searching vault content (search directly), processing inbox (use consolidate), or updating the system (use update).

نظرة عامة

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

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

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

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

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

ثبّت مهارة الذكاء الاصطناعي Doctor في 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/doctor
  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/doctor .claude/skills/doctor
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Doctor

Diagnose the health of your OneBrain vault and plugin configuration. Inspired by brew doctor and npm doctor.

Usage:

  • /doctor — full check (vault + config + memory)
  • /doctor --vault — vault content checks only (skips CLI doctor)
  • /doctor --config — plugin config + CLI doctor only (skips vault content)
  • /doctor --fix — auto-fix safe issues (CLI fix recipes + skill fixes)

Flag detection: Determine active flags from the user's message. --vault = user mentions vault-only or content health; --config = user mentions config or plugin check; --fix = user explicitly asks to fix or auto-fix. Default (no flags) = run all checks.

Two-source architecture (post-v3.0.0 GA):

  • CLI doctor (onebrain doctor --json) handles the built-in checks, grouped into four sections: Config (onebrain.yml, onebrain.yml-keys, vault-config-migration, legacy-qmd-collection), Vault structure (folders, plugin-files, plugin-cache), Integration (settings-hooks, claude-settings), Index & state (orphan-checkpoints, search). Rust-native, single subprocess call, structured JSON output. (search replaced the v3.3 qmd-embeddings probe; legacy-qmd-collection migrates a top-level qmd_collection → search.collection.)
  • Skill checks handle vault-content + state-machine checks the CLI doesn't cover: broken wikilinks, orphan notes, stale memory/ files, MEMORY.md size, inbox backlog, log folder size, scheduler health, pause-thread state, memory health.

The skill merges both into one unified report.


Step 1: Read onebrain.yml

Read onebrain.yml. If it's missing → ⛔ onebrain.yml not found — OneBrain may not be configured correctly. Stop.

Resolve folder variables ([inbox_folder], [projects_folder], etc.) from onebrain.yml or defaults.


Step 2a: Run CLI doctor (skip if --vault flag)

Run onebrain doctor --json (or onebrain doctor --fix --json if --fix is active). Parse the JSON envelope:

json
{
  "ok": true|false,
  "summary": {"total": N, "errors": N, "warnings": N, "passing": N},
  "checks": [
    {"check": "<name>", "status": "ok|warn|error", "message": "...", "details": ["..."], "hint": "..."}
  ],
  "fix": [
    {"check": "<name>", "outcome": "fixed|partial|failed|manual", "message": "..."}
  ]
}

fix is a top-level array, a sibling of checks — not a field inside each check object. It is present only when --fix --json was invoked, and its entries are matched back to checks by the check name.

Status → render emoji: ok → ✅, warn → 🟡, error → 🔴.

Detection logic (run in this order):

  1. PATH lookup first. If onebrain is not on PATH (which onebrain / where onebrain empty): emit 🔴 onebrain CLI not installed — hooks will not fire; install via brew install onebrain-ai/onebrain/onebrain (or npm install -g @onebrain-ai/cli) — and skip the rest of CLI doctor. Skill checks still run.

  2. Otherwise, parse stdout as JSON regardless of exit code. The CLI is sysexits-compliant: exit 1 is the normal "issues found" path when summary.errors > 0 — JSON is still emitted on stdout and is still the source of truth. Only fall back to "CLI absent" if the parse fails AND stderr contains "command not found" or similar — surface the parse error in one line and fall through to skill checks only.

  3. Defensive field handling. Treat details as optional — it may be absent, null, or an empty array; render nothing in those cases. hint is also optional. fix is present only when --fix --json was invoked.

When --fix --json returned fix[], render each entry's outcome under the matching check; the post-fix checks[] reflects state after the fix attempts. The CLI emits exactly four outcomes:

outcomeRenderMeaning
fixed✓ fixedRecipe ran cleanly; the issue should be resolved.
partial🟡 partially fixedRecipe made real progress but part of the issue remains. message itemises both halves — show it.
failed✕ failedRecipe was attempted and did not finish. message explains why.
manual→ manualNo automated recipe exists. message is the command for the user to run. Not a failure — do not render it as one.

manual is common, not exceptional. On a vault with a warm daemon — the normal configuration — the CLI's lex-index check reports "could not verify" as a warning with no automated repair, so manual appears on nearly every --fix run. Treat any outcome string outside this table as unknown: render it verbatim and carry on. Never treat an unrecognised outcome as an error — that would report a healthy vault as broken.

Why pass --json: WebFetch / shell text parsing of onebrain doctor's human format is fragile. --json is the stable contract (frozen for v3.x — see CLI CHANGELOG).


Step 2b: Run skill-only checks (skip if --config flag)

The CLI doctor does NOT cover the following — they remain in the skill:

Broken wikilinks

  • Grep [projects_folder], [areas_folder], [knowledge_folder], [resources_folder], [agent_folder] for \[\[.*?\]\] in .md files.
  • Skip wikilinks inside fenced code blocks (between ``` fences), blockquote lines (lines beginning with >), inline code spans (the entire [[...]] enclosed in backticks on that line), or YAML frontmatter (between the leading --- and the closing ---).
  • For each wikilink, extract note name: strip |display text suffix AND #anchor fragment. Preserve original text for accurate replacement.
  • Check if a .md file matching the note name exists anywhere in the vault (case-insensitive), testing BOTH the raw slug AND its _→- normalized form. Flag as unresolved only when neither form matches a vault .md. Record as {broken_link, display_text, anchor, source_file, source_line}.
  • Classify each unresolved wikilink into one of two buckets (auto-memory slugs live in Claude's auto-memory store OUTSIDE the vault, so they never resolve in Obsidian — these are structurally distinct from typos and missing notes):
    1. Build the auto-memory slug set, scoped to the CURRENT vault: derive this vault's project-dir name from the vault root absolute path using Claude Code's encoding — replace every / and . with - (e.g. vault /Users/keng/Library/Mobile Documents/iCloud~md~obsidian/Documents/ob-1 → project dir -Users-keng-Library-Mobile-Documents-iCloud~md~obsidian-Documents-ob-1). Glob ~/.claude/projects/<derived-dir>/memory/*.md (on Unix expand $HOME, don't pass a literal ~ to file tools). Take basenames without the .md extension. Scoping to the current vault avoids cross-vault false positives — globbing all projects would pull in unrelated vaults' auto-memory slugs and misclassify links. If the derived project dir is absent, skip classification entirely — leave the unresolved links as a single undifferentiated broken-link list and emit nothing for the buckets below. Do NOT fall back to globbing all projects (that reintroduces cross-vault pollution).
    2. For each unresolved wikilink, take its slug (strip any memory/ prefix, |display suffix, and #anchor fragment). Also compute a hyphen-normalized form (_ → -).
    3. Bucket (VAULT-NOTE-WINS is invariant — a wikilink only reaches this step when NO vault .md matches its raw slug OR its _→- normalized form, per the resolution check above):
      • (raw slug OR normalized slug) ∈ auto-memory slug set → 🔴 auto-memory mislink — points outside the vault; fixable via the de-link pass in Step 4.
      • else → 🟡 missing note / typo — report only; needs human judgment (existing behavior).
    4. The 🔴 bucket must never claim a link that a vault note could satisfy (raw or _→- normalized). Any link whose raw or normalized slug resolves to a vault .md is NOT 🔴 — it is already resolved (not flagged at all), or, if only a fuzzy near-match exists, it belongs in the 🟡 missing-note / fuzzy-fix bucket (Pass C territory), never in 🔴 auto-de-link.
  • Report the two buckets separately under 📁 Vault, each with a count. The 🔴 auto-memory bucket lists file:line — [[slug]]; the 🟡 missing-note bucket keeps the existing broken-link reporting.

Orphan notes

  • Find notes in [knowledge_folder]/ and [resources_folder]/ with zero inbound wikilinks from any other note. Report only — no auto-fix (linking requires semantic judgment; use /connect).

Stale memory/ files

  • If [agent_folder]/MEMORY.md is absent: 🟡 MEMORY.md not found — run /onboarding (skip this + MEMORY.md size check).
  • If memory/ folder is absent: skip.
  • Read memory/ files with status: active or needs-review (skip deprecated).
  • Flag: verified: older than 90 days OR no verified: field OR (conf: low AND verified: absent/older than 30 days).

MEMORY.md size

  • Count lines in [agent_folder]/MEMORY.md. Warn if > 180: suggest pruning Critical Behaviors.

Inbox backlog

  • Count [inbox_folder]/*.md. Warn if > 10: suggest /consolidate.

Old unmerged checkpoints (>7 days)

  • The CLI's orphan-checkpoints check uses an active-session threshold (max(60min, 2 * checkpoint.minutes)) — anything younger may still be a live session.
  • The skill check is complementary: glob [logs_folder]/checkpoint/*-checkpoint-*.md, keep files whose date prefix is older than 7 days. If any → 🟡 suggest /wrapup for the stragglers. (Pre-v2.2.0 vaults may contain merged: true field — ignore it; any file present is unmerged by definition.)

07-logs structure

  • Verify the 4 subfolders exist under [logs_folder]/: session/, checkpoint/, update/, log/. If [logs_folder]/YYYY/MM/ still contains legacy log files: 🟡 legacy log structure — run /update to migrate (and skip the per-subfolder warnings).
  • Otherwise warn per missing subfolder: 🟡 07-logs/<name>/ missing — first <type> will create it. No warning when all 4 present.

Log folder size (housekeeping)

  • Count [logs_folder]/log/YYYY/ for the current year. Warn if > 1000: 🟡 log/ folder: N files in YYYY — consider archive (move stale log/YYYY/MM/ folders to 06-archive/ manually). User decides retention; OneBrain has no automatic policy. Skip silently if log/ doesn't exist.

onebrain.yml recap: block (the CLI's onebrain.yml-keys schema check covers required keys; recap: may be optional)

  • If recap: block is absent: 🟡 recap: block missing — /recap will use defaults (min_sessions: 6, min_frequency: 2); run /update to add it.

Plugin install path (CLI plugin-files validates structural integrity but not the install-path registry)

  • Read $HOME/.claude/plugins/installed_plugins.json (Unix) or $env:USERPROFILE/.claude/plugins/installed_plugins.json (Windows PowerShell). Don't pass an unexpanded ~ to file-reading tools — they don't expand it.
  • Find the entry where key starts with onebrain@ and scope == "project" and projectPath matches the current vault.
  • If not found: 🟡 onebrain not found in installed_plugins.json — run /onboarding or /plugin to install.
  • Before any path comparison, normalize installPath separators with installPath.replaceAll('\\', '/') — Windows paths can mix backslashes and forward slashes, and substring matches against '/.claude/plugins/cache/' will silently fail otherwise.
  • If the normalized installPath contains /.claude/plugins/cache/: 🔴 Plugin loading from user cache — run /doctor --fix to pin to vault (Pass A in references/autofix-procedures.md handles the fix).
  • If the normalized installPath ends with .claude/plugins/onebrain: ✅ Plugin: vault-level.

AUTO-SUMMARY.md existence

  • Check .claude/plugins/onebrain/skills/startup/AUTO-SUMMARY.md exists. If missing: 🔴 AUTO-SUMMARY.md not found — auto session summary disabled; run /update to restore. (The CLI plugin-files check counts skills + agents + INSTRUCTIONS.md but does NOT validate every individual skill reference file.)

Stale PLUGIN-CHANGELOG.md at vault root (post-v3.0.2 migration cleanup)

  • Check if PLUGIN-CHANGELOG.md exists at vault root. If yes: 🟡 Stale PLUGIN-CHANGELOG.md at vault root — renamed to CHANGELOG.md in plugin v3.0.2. Run \rm PLUGIN-CHANGELOG.md` to clean up`. (vault sync currently doesn't delete files renamed-away from upstream — tracked for a future CLI fix.)

Scheduler health — cross-platform since CLI v3.4.20 (macOS launchd · Windows Task Scheduler · Linux systemd user timers). Ask the CLI, not the filesystem: onebrain schedule list reports each entry's real state by querying the OS scheduler (launchctl print / schtasks /Query / systemctl --user is-active), and it owns the label derivation — command-mode labels carry an args/cron/at discriminator since v3.4.16, so re-deriving artifact names in this skill WILL drift. The log-file checks run only when onebrain.yml has a schedule: block; the per-entry state check runs whenever schedule list reports entries; the orphan-artifact check runs whenever installed artifacts exist, regardless of the block.

  • Errors: glob [logs_folder]/scheduler/**/*.err.md from the last 7 days. If any → 🟡 report count + most recent 3 as wikilinks.
  • Consecutive failures: for each schedule: entry, count consecutive .err.md files from newest with no intervening success .md. If ≥ 3 → 🔴 CRITICAL — suggest onebrain schedule register --resume <skill>.
  • Entry state (replaces the old Missing plist drift check): run onebrain schedule list and read each entry's status glyph. Per entry: ✗ (nothing installed) → 🟡 schedule entry {label} not installed — onebrain schedule register to repair; ⚠ (artifact present but the OS scheduler is not running it) → 🟡 schedule entry {label} installed but inactive — onebrain schedule register to re-activate. If the CLI is older than v3.4.20 and schedule list fails, fall back to the macOS-only plist-existence check and note the CLI is outdated.
  • Orphan artifacts (an artifact left behind after the user cleared or renamed its schedule: entry). Per host OS, list installed artifacts and flag any that schedule list does not account for → 🟡 stale schedule artifact: {name} — onebrain schedule register --remove (then re-register if entries remain). When unsure whether an artifact maps to a current entry, do not flag it (favor false-negative over false-positive).
    • macOS: glob ~/Library/LaunchAgents/com.onebrain.*.plist
    • Windows: schtasks /Query /FO CSV | findstr \OneBrain\ (tasks live under the \OneBrain\ folder; no files on disk by design)
    • Linux: glob ~/.config/systemd/user/onebrain-*.timer (each entry also has a matching .service; a .timer/.service present without its sibling is itself a 🟡 finding)
  • One-shot reachability: for each at: entry, verify the timestamp hasn't already passed. One-shots self-delete after firing on every platform, so passed timestamp + artifact still installed → 🟡 expired one-shot {label} not cleaned up — onebrain schedule register --remove.
  • Last-run outcome (onebrain#230): ask the OS scheduler how each installed entry's most recent run ended — this is the detection gap behind the 2026 silent-failure incident (a schedule that fired exit 78 for months with no visible signal). Never run an entry to find out; only query state:
    • macOS: launchctl print gui/$(id -u)/com.onebrain.<label> → parse last exit code = N. N ≠ 0 → 🟡 last run of {label} failed (exit {N}) — check ~/Library/Logs/onebrain/. Field absent (never ran) → skip.
    • Linux: systemctl --user show onebrain-<label>.service --property=ExecMainStatus,ExecMainExitTimestamp → nonzero ExecMainStatus with a real exit timestamp → 🟡 last run of {label} failed (exit {N}) — journalctl --user -u onebrain-<label>.service -n 20. Empty timestamp (never ran) → skip.
    • Windows: schtasks /Query /TN "\OneBrain\<label>" /FO LIST /V → parse Last Result. Nonzero and not 267011 (= task has never run) → 🟡 last run of {label} failed (result {code}) — see Task Scheduler history.
    • Get <label> per entry from onebrain schedule list output — do not re-derive it.
  • Unsupported host: if onebrain schedule list reports the platform has no scheduler backend, emit one explicit line — ⏭ scheduler checks skipped: no scheduler backend on this OS — instead of silently omitting the section. (All three major desktop platforms have backends since v3.4.20; this line exists so exotic hosts don't read "no findings" as "healthy".)

The pre-v2.3.3 stale plist content-shape check (Bun-era --headless/run-skill/.ts argv shapes) was removed 2026-07-29 per its own sunset note — the Bun CLI was deprecated 2026-06-30 and any plist that old now trips the orphan/state checks above instead.

Pause: orphan pointer

  • Read [logs_folder]/pause/_active.md. If absent → skip. Parse slug. Glob [logs_folder]/pause/*-{slug}-pause-*.md. If empty match → ⚠️ Pause pointer references {slug} but no snapshot files exist. Fix: rm 07-logs/pause/_active.md (or create initial /pause).

Pause: missing pointer

  • Glob [logs_folder]/pause/*-pause-*.md. If empty → skip. If _active.md exists → skip. Otherwise → ⚠️ Pause files exist but no active pointer: + list slugs + counts + latest date. Fix: echo "{chosen-slug}" > 07-logs/pause/_active.md.

Pause: idle thread

  • Read _active.md. If absent → skip. Glob files for the slug. Get max date prefix. If (today - max_date).days > 14 → ⚠️ Pause thread {slug} idle for N days (last snapshot YYYY-MM-DD). Fix: /wrapup to consolidate, or /pause to refresh, or /resume to continue.

Memory health — run all checks from references/memory-health-checks.md. Findings go under the 🧠 Memory section.


Step 3: Merge + Report

Combine CLI doctor findings (Step 2a) and skill findings (Step 2b) into one unified report. Omit any section that has zero findings to keep the report focused — empty section headers add noise without information.

──────────────────────────────────────────────────────────────
🏥 OneBrain Doctor · YYYY-MM-DD
──────────────────────────────────────────────────────────────
⚙️ Config (from `onebrain doctor`)   (omit under --vault flag, or when CLI ran and emitted 0 findings worth showing)
  <one line per CLI check — use the JSON `message` and emoji from status>

📁 Vault                              (omit under --config flag, or when 0 vault findings)
  <broken-links, orphan-notes, inbox-backlog, 07-logs structure, old checkpoints, log folder size, plugin install path, AUTO-SUMMARY.md, stale PLUGIN-CHANGELOG.md>

🧠 Memory                              (omit under --config flag, or when 0 memory findings)
  <MEMORY.md size, stale memory/ files, MEMORY.md structure, memory-health checks>

📅 Scheduler                          (only when there are scheduler findings — orphan-artifact findings can occur even with no `schedule:` block; the ⏭ unsupported-host line always shows when it applies)
  <errors, consecutive failures, entry state (✗ missing / ⚠ inactive), orphan artifacts, expired one-shots>

⏸️ Pause                              (only if pause state has findings)
  <orphan pointer, missing pointer, idle thread>

──────────────────────────────────────────────────────────────
{summary line}

Summary line:

  • All green → ✅ Everything looks healthy. N checks · 0 issues.
  • Otherwise → 🔴 N issues found (M critical, P warnings). Run /doctor --fix to repair safe issues. (use CLI's summary + skill issue count)

For each finding, prefer the CLI's message verbatim when it's from onebrain doctor (single source of truth for the built-in checks). For skill findings, render the action-oriented form (Fix: <command>).


Step 4: Auto-fix (--fix flag only)

Two-stream fix:

  1. CLI fixes — already executed by onebrain doctor --fix --json in Step 2a. The top-level JSON fix[] array reports outcomes (fixed, partial, failed, manual — see the outcome table in Step 2a). Render under each affected check.

  2. Skill fixes — Read references/autofix-procedures.md and run Pass A, B, C, D, E in order. Each pass confirms with the user before writing. After all passes, run onebrain search reindex as the Final step. Pass E de-links the 🔴 auto-memory mislinks detected in Step 2b (the 🟡 missing-note bucket is never auto-fixed).

The CLI fix recipes cover: settings-hooks, plugin-files, onebrain.yml-keys, folders, claude-settings, plugin-cache, vault-config-migration, and legacy-qmd-collection (migrates a top-level qmd_collection → search.collection). The skill fix passes cover: stale confidence-score updates, broken-wikilink fuzzy-match repair, auto-memory wikilink de-linking, MEMORY.md structure migration. Together: CLI handles config, skill handles content.


On Completion

  1. Update onebrain.yml stats.last_doctor_run: YYYY-MM-DD. If --fix ran: also update stats.last_doctor_fix: YYYY-MM-DD.

  2. Write doctor log entry. Follow ../_shared/audit-log-format.md (canonical frontmatter, append-per-day algorithm, run-section heading, failure mode) with:

    • Filename: YYYY-MM-DD-doctor.md — one file per day.
    • Tags: [audit-log, doctor].
    • Skill: /doctor
    • Per-skill discriminator: flags: [--vault, --config, --fix] (subset active this run; empty list = default — all checks).

    Body template:

    markdown
    ## Run HH:MM
    
    - Flags: --vault, --config (or "default" when no flags)
    
    ### Findings
    - 🔴/🟡/✅ <one line per finding>
    
    ### Fixes Applied
    - <one line per fix; or "(none — diagnostic only)">
    
    ### Recommendations
    - <one line per actionable recommendation>
  3. Read and follow references/migration-safety-net.md at the end of every /doctor run.


Known Gotchas

  • Wikilinks in frontmatter YAML values are not navigable links. Fields like superseded_by: [[old-file]] contain wikilink syntax but Obsidian doesn't resolve them. The broken-link checker already skips fenced code blocks and blockquotes; also skip any [[...]] that appears on a line before the closing --- of the frontmatter block.

  • --fix is not transactional. If Pass C is interrupted (user says "stop", a file write fails), previously edited files are already changed but later ones are not. Report each fixed file immediately as it completes so the user has a clear record of what was and wasn't changed.

  • onebrain.yml with Windows line endings (CRLF). YAML values may have a trailing \r if edited on Windows. Strip trailing whitespace from any onebrain.yml-derived path string (e.g. value.replace(/\s+$/, '')) before passing it to file-existence checks, Glob, or Read — otherwise a folder named 00-inbox\r will silently fail to match the on-disk 00-inbox/.

  • CLI doctor JSON is the v3.x stable contract. If the JSON shape changes in a future v3.x release, the skill MUST update accordingly (CLI repo's CHANGELOG announces schema changes). If onebrain doctor --json fails to parse, treat it like CLI-not-installed (fall back to skill checks only) and surface the parse error.

  • onebrain doctor already handles the schema-policy checks. Don't duplicate them in skill body: onebrain.yml-keys, plugin-files integrity, settings-hooks (Stop checkpoint + PostToolUse search-reindex + Stop embed), and claude-settings (stale marketplace) are CLI-side. The skill's job is content-level checks (wikilinks, memory, pause, scheduler) the CLI doesn't know about.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

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

Diagnose vault and plugin health — checks broken links, orphan notes, stale memory/ files, inbox backlog, and plugin config validity. Use when the user asks to check vault health, notices something broken, or wants a system audit — 'run /doctor', 'check my vault', 'something seems off'. Do NOT use for: searching vault content (search directly), processing inbox (use consolidate), or updating the system (use update).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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