شعار Debug Mycelium

Debug Mycelium

المجتمع
conradomateu
debug-mycelium

Use when mycelium sync fails, items not appearing in tools, enable/disable not working, MCP not connecting, config conflicts between levels, EACCES permission errors, or any unexpected mycelium CLI behavior.

نظرة عامة

الناشرconradomateu
المستودعmycelium
اسم المهارةdebug-mycelium
النجوم
31
التفريعات
3
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Debug Mycelium

Systematic diagnostic workflow using Mycelium's built-in SQLite trace database. Traces capture 16 dimensions per operation — filter to the exact slice that matters, never read the full DB.

When to Use

  • mycelium sync fails or skips items
  • Item shows as enabled but doesn't appear in tool config
  • Enable/disable has no effect
  • MCP server not connecting after sync
  • Config conflicts between global/machine/project levels
  • Permission errors (EACCES, EPERM)
  • Migration imports wrong or missing items
  • "It worked before but stopped" scenarios

Step 1: Gather Context

Ask the user:

  • What command were you running? (sync, enable, disable, add, remove, migrate)
  • What item is affected? (MCP name, skill name, plugin name)
  • Which tool? (cursor, claude-code, vscode, etc.)
  • What did you expect vs what happened?

Step 2: Pull Filtered Traces

Run the mycelium report command with appropriate filters. Always start narrow:

bash
# If user mentions a specific item:
mycelium report --item <name> --since 1h --format table

# If user mentions a specific tool:
mycelium report --tool <tool> --level error,warn --since 1h --format table

# If user mentions a specific command:
mycelium report --cmd <command> --since 1h --format table

# For full context (JSONL for analysis):
mycelium report --item <name> --full --format jsonl

Important: Always use --since to limit results. Never pull the full DB.

Step 3: Check Health

bash
mycelium doctor --json

Look for:

  • Failed config checks (broken YAML/JSON/TOML)
  • Broken symlinks (skills not properly linked)
  • Missing directories
  • MCP connectivity failures

Step 4: Check Manifest State

bash
# Read the manifest directly
cat ~/.mycelium/global/manifest.yaml

# Or for project-level:
cat .mycelium/manifest.yaml

Look for:

  • state field: is the item enabled, disabled, or deleted?
  • source field: where did this item come from?
  • Missing items: was the item never added?

Step 5: Check Tool Config

Read the tool's native config file to verify the sync result:

ToolConfig Path
Claude Code~/.claude.json or .claude/settings.json
Cursor~/.cursor/mcp.json
VS Code~/.vscode/settings.json
Codex~/.codex/config.toml
Gemini CLI~/.gemini/settings.json
OpenCode~/.opencode/config.json
OpenClaw~/.openclaw/plugins.json

Verify the MCP entry exists and has correct structure for that tool's format.

Step 6: Analyze the Trace

Read the JSONL output from Step 2. Look for these patterns:

Common Issues

Item not syncing (state bug):

  • Check trace for op: "filter" entries — was the item filtered out?
  • Check state dimension — is it disabled or deleted?
  • Check source — was it from a plugin that got removed?

Permission errors:

  • Check trace for error containing "EACCES" or "EPERM"
  • Check path dimension — which file had the permission issue?
  • Fix: chmod the file or run with appropriate permissions

Config parse errors:

  • Check trace for format dimension — which format failed?
  • Check path — which config file is malformed?
  • Validate the file manually: cat <path> | python3 -m json.tool

Adapter method fallback:

  • Check method dimension — did it try "cli" then fall back to "file"?
  • Check if the tool's CLI is installed and accessible

Merge conflicts:

  • Check trace for configLevel — which level caused the conflict?
  • Check phase: "merge" entries for warnings
  • Read all 3 config levels: global, machine, project

MCP still in tool config after disable:

  • mycelium disable <mcp> updates manifest but MCP remains in ~/.claude.json (or other tool configs)
  • Root cause: item was registered in wrong manifest section (e.g. skills.massive instead of mcps.massive)
  • Check manifest: cat ~/.mycelium/manifest.yaml — verify item is in mcps: section, not skills:
  • Fix: move the entry to the correct section, then run mycelium disable <name> again
  • After fix, disable now calls adapter.remove() on tool configs and enable calls adapter.add()

Item not found (typo):

  • Check item dimension — does the name have a typo? (e.g., postgress-mcp vs postgres-mcp)
  • Query with LIKE: mycelium report --item postgres to find all variants
  • Compare against manifest to find the correct name

Step 7: Generate Report

Once you've identified the issue, create a structured report:

markdown
## Problem
[1-2 sentence summary of what's broken]

## Root Cause
[What the trace analysis revealed]

## Relevant Trace
\`\`\`
[Paste the key 5-10 trace entries that show the problem]
\`\`\`

## Doctor Output
[Any relevant failed/warning checks]

## Manifest State
[Item state and source from manifest]

## Environment
- OS: [from mycelium report --full]
- Node: [version]
- Mycelium: [version]
- Tool: [affected tool and version]

## Fix
[Suggested fix — either a command to run or a code change to make]

Step 8: Apply Fix or File Issue

If the fix is a user action (config change, permission fix):

  • Guide the user through the fix
  • Run mycelium sync to verify
  • Run mycelium report --item <name> --since 5m to confirm no more errors

If the fix requires a code change:

  • Save the report to a file: mycelium report --item <name> --full --output /tmp/mycelium-report.jsonl
  • The user can paste the report into a GitHub issue
  • Or create a PR directly with the fix

Plugin Takeover Debugging

When plugin takeover isn't working (skills/agents/commands from Claude Code plugins not appearing or disappearing):

Quick diagnosis

bash
# All plugin operations
mycelium report --scope plugin --since 1h --format table

# Specific operation type (takeover, release, symlink-create, symlink-remove, health-check)
mycelium report --op takeover --since 1d --format table

# Symlink operations only
mycelium report --op symlink-create,symlink-remove --since 1h --format table

# Plugin health check results
mycelium report --op health-check --scope plugin --since 1h --format table

# All operations on a specific plugin
mycelium report --item superpowers@skillsmp --since 1d --format table

Common plugin issues

Component missing after disable/enable cycle:

  1. Check symlink operations: mycelium report --op symlink-create,symlink-remove --since 1h
  2. Check if the component type is correct: look for itemType in trace entries (skill, agent, command)
  3. Run doctor: mycelium doctor — check "Plugin Takeover" section for invariant violations
  4. Fix: mycelium sync re-runs syncPluginSymlinks() to reconcile state

Plugin shows as taken over but components aren't working:

  1. Check health: mycelium doctor — invariant checks verify symlinks, settings.json, cache
  2. Check sync: mycelium report --cmd plugin-sync --level error,warn
  3. Verify cache: ls ~/.claude/plugins/cache/<marketplace>/<plugin>/

Release didn't re-enable plugin:

  1. Check settings.json: cat ~/.claude/settings.json | grep enabledPlugins
  2. Check traces: mycelium report --op release --since 1h
  3. Check if all components were re-enabled: mycelium report --scope manifest --item <plugin-component>

Dashboard Debug Logging

For UI issues (sidebar flicker, toggle state, graph reloads), enable browser-side debug logging. Run in the browser console on localhost:3378:

js
localStorage.setItem("mycelium:debug:panel", "1")  // [panel] animation lifecycle
localStorage.setItem("mycelium:debug:store", "1")  // [store] state operations

Refresh, reproduce the issue, then read [panel]/[store] logs in the console. Remove keys and refresh to disable.

Dimension Reference

These are the filterable dimensions in mycelium report:

FlagDescriptionValues
--cmdCLI commandsync, enable, disable, add, remove, migrate, doctor, plugin-sync, mcp
--scopeWhat typemcp, skill, config, memory, hook, plugin, manifest
--opOperationtakeover, release, symlink-create, symlink-remove, health-check, inject, sync, disable, enable
--toolWhich toolclaude-code, cursor, vscode, codex, gemini, opencode, openclaw, antigravity
--itemItem nameany MCP/skill/hook/plugin name
--levelSeveritydebug, info, warn, error
--stateManifest stateenabled, disabled, deleted
--sourceItem sourceplugin name or "manual"
--traceTrace IDsync-abc123 (from trace output)
--projectProject namedirectory name
--sinceTime range1h, 30m, 7d, 2026-02-10

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

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

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

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

Use when mycelium sync fails, items not appearing in tools, enable/disable not working, MCP not connecting, config conflicts between levels, EACCES permission errors, or any unexpected mycelium CLI behavior.

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

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

كيف أثبّت Debug Mycelium في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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