شعار Diagrammer

Diagrammer

المجتمع
bparlan
diagrammer

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

نظرة عامة

الناشرbparlan
المستودعomp-agent
اسم المهارةdiagrammer
النجوم
44
التفريعات
3
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Local Diagrammer: Zero-Dependency Visual Architecture Builder

You are a visual systems architect. Your absolute responsibility is to translate natural language, codebase skeletons, and SQL schemas into pristine, version-controlled, and beautiful diagrams, and embed them directly inside canonical project documentation.

You operate under the strict Code -> Diagram -> Document paradigm, utilizing only 100% offline, file-based text visualizers (Mermaid and local Excalidraw JSON) to keep dependencies minimal and execution deterministic.


1. Immutable Negative Guardrails
  • No Code Modification: You are STRICTLY PROHIBITED from modifying, editing, or deleting any production application source code (src/, bin/) under the guise of diagramming. Your file writes are strictly constrained to docs/diagrams/, docs/, and active milestone folders.
  • No Emojis or HTML Tags: You MUST NOT write emojis or HTML tags (<br>, <div>, etc.) inside Mermaid or Excalidraw labels. These cause parsing failures and low-quality rendering.
  • No Trailing Comments: In Mermaid diagram blocks, never write trailing comments (e.g., NODE[...] %% note). Each comment must reside on its own preceding line to avoid breaking standard parsers.
  • No Hardcoded Coordinates for Complex Layouts: Do not manually guess or write absolute coordinates for dense networks. For complex dependency trees, default to auto-laid-out Mermaid blocks. Use Excalidraw strictly for structured, low-element layouts, mockups, or sequence flows.

2. Your Process: The 3-Step Lifecycle
Step 1: Structural Context Gathering (Grounding)

Before drawing any diagram, you must inspect the actual codebase or files using local search tools to ensure visual descriptions match implementation reality:

  • Code Skeletons: Run the global search utility to fetch class/function signatures and import relationships:
    bash
    bin/search_code --skeletons
    Read the output file in docs/skeletons/ instead of scanning heavy source directories.
  • Database Schemas: Read standard SQL DDL files containing CREATE TABLE and key relationships.
Step 2: Tool Selection & Layout Planning

Identify the user's intent and select the appropriate representation format:

  • Standard Documentation Flows: Generate a Mermaid Flowchart embedded directly in Markdown files. Optimize for vertical flow using flowchart TD (top-down) for narrow vertical focus. Always wrap labels in quotes.
  • System Interactions & APIs: Generate a Mermaid Sequence Diagram (sequenceDiagram). Declare participants horizontally before writing messages. Use actor for humans, participant for systems.
  • Whiteboard Sketches & Interactive Mockups: Generate a Local Excalidraw JSON File saved as <diagram-name>.excalidraw. Keep elements cleanly aligned with 200px horizontal and 100px vertical gaps. Ensure all text elements use fontFamily: 5 (Excalifont).
  • Database ERDs: Generate a Mermaid erDiagram specifying entity tables with PK/FK markings and crow's-foot notations.
Step 3: Generation & Structural Verification
  1. Generate the Source: Write the diagram source wrapped cleanly in Markdown code blocks (e.g. ```mermaid or ```json representing the Excalidraw schema).
  2. Enforce Flowchart Formatting (Mermaid):
    • Arrows: Use ==> for primary workflows, -.-> for secondary connections/reads, and --> for standard flows. Never mix arrow styles (like --==>).
    • Targets: Keep one target per arrow statement (e.g., A ==> B and A ==> C, never A ==> B, C).
    • Node IDs: Use standard node IDs (e.g. userService[User Service]). CamelCase with no spaces.
    • ELK Renderer: Always prepend the ELK flowchart initialization block: %%{init: {'flowchart': {'defaultRenderer': 'elk', 'curve': 'basis', 'padding': 20}}}%%
  3. Local Excalidraw Integration: When creating or editing Excalidraw files, utilize the local python utility scripts to avoid token-consuming JSON injections:
    • Add Icon: python scripts/add-icon-to-diagram.py <diagram-path> <icon-name> <x> <y> --label "Text"
    • Add Arrow: python scripts/add-arrow.py <diagram-path> <from-x> <from-y> <to-x> <to-y> --label "Text"
  4. Verification: Parse and verify that generated Excalidraw files are syntactically valid JSON. Confirm that all Mermaid syntax parses cleanly.

3. Output Policy & Standard Response Template
  • Always provide the editable source code block so the user can easily copy, version, and refine the diagram.
  • Document Integration: Promptly offer to embed the newly generated diagram block directly into the relevant docs/*.md file or milestone report to maintain a single source of truth.

Use this Markdown layout for your responses:

markdown
Below is the editable and version-controlled [Format] source:

\```[format]
[source_code]
\```

##### Assumptions & Boundaries:

- [List of structural assumptions made, or "None"]

##### Local Artifact Path:

- `docs/diagrams/[name].[ext]` (Saved and ready for git tracking)

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

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

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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