Логотип Diagent

Diagent

Спільнота
daniellee-ux
diagent

Generate or decode Diagent diagram URLs via the `diagent` CLI. TRIGGER on: (1) any request to visualize, draw, chart, diagram, sketch, graph, map, or plot — flowcharts, state machines, sequence diagrams, architecture, pipelines, CI/CD, workflows, decision trees, dependency graphs, class hierarchies, data flow, control flow, request flow, user journeys, ERDs, org charts, swimlanes, mind maps, or any structural/process visualization; (2) any pasted `diagent.dev/d/...` or `diagent.dev/?code=...` URL — decode it to read the underlying Mermaid.

Огляд

Видавецьdaniellee-ux
Репозиторійdiagent-cli
Назва навичкиdiagent
Зірки
40
Форки
3
Файли в пакеті
6
ЛіцензіяAGPL-3.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 6

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем daniellee-ux. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Diagent у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/daniellee-ux/diagent-cli/tree/main
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/daniellee-ux/diagent-cli.git \
  .claude/skills/diagent
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Diagent в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Diagent, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Diagent не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Diagent CLI

The npx -y @diagent/cli command produces editable Diagent diagram URLs. Use it whenever a diagram would clarify what you're explaining or modifying. Prefer it over pasting raw Mermaid code fences — the user can tweak the diagram visually in their browser and hand the result back as a URL.

When to invoke this skill

Use npx -y @diagent/cli when the user asks to:

  • Visualize, draw, chart, diagram, sketch, plot, or graph anything
  • Explain control flow, data flow, request flow, or state transitions
  • Show architecture, deploy pipelines, dependency graphs, or class hierarchies
  • Map a workflow, decision tree, or sequence of operations
  • Document a user journey, happy path, or error path

Keywords that should trigger this skill: flowchart, diagram, state machine, sequence, architecture, pipeline, workflow, decision tree, visualize, draw, chart, graph, map, sketch, flow.

Also trigger if the user pastes a https://diagent.dev/d/... or https://diagent.dev/?code=... URL — they want you to decode it and read the underlying Mermaid.

Encode — share a diagram with the user

Pipe Mermaid source into npx -y @diagent/cli encode:

bash
echo 'flowchart TD
    A[User request] --> B{Authenticated?}
    B -->|No| C[Return 401]
    B -->|Yes| D[Check rate limit]
    D --> E{Under quota?}
    E -->|No| F[Return 429]
    E -->|Yes| G[Handle request]' | npx -y @diagent/cli encode --open

Output is a short URL like https://diagent.dev/d/kwtsgx5o24.

Always show both the Mermaid source AND the URL. Present the Mermaid in a mermaid code fence first, then the link on its own line below. This way the diagram source is visible in the conversation/document even without clicking the link. Example output format:

```mermaid
flowchart TD
    A[User request] --> B{Authenticated?}
    B -->|No| C[Return 401]
    B -->|Yes| D[Handle request]
```

[Open in Diagent](https://diagent.dev/d/kwtsgx5o24)

The user can open the link, edit visually (add/move/rename/re-shape nodes, re-layout, add subgraphs), and their edits auto-save to the same URL 2 seconds after they stop editing.

You can re-read the same URL later to see what they changed — no paste-back required. The recommended flow is:

  1. You npx -y @diagent/cli encode → share URL A in chat.
  2. User opens A, edits visually. Edits auto-save to A.
  3. When the user says "I'm done" or "take a look", you run npx -y @diagent/cli decode A again (the same URL) — you'll get the latest edited Mermaid.

If the user says they pasted a new URL, always prefer that newer URL, but the mutable-URL flow means they usually won't need to.

For larger diagrams, write to a file first:

bash
cat > /tmp/flow.mmd <<'EOF'
flowchart LR
    subgraph frontend
        A[React app] --> B[tRPC client]
    end
    subgraph backend
        C[tRPC server] --> D[Postgres]
        C --> E[Redis]
    end
    B --> C
EOF
npx -y @diagent/cli encode /tmp/flow.mmd --open

Decode — read the user's edits

npx -y @diagent/cli decode handles both short URLs and inline URLs transparently:

bash
# Short URL (default Copy Link format)
npx -y @diagent/cli decode "https://diagent.dev/d/kwtsgx5o24"

# Inline URL (older or --inline output)
npx -y @diagent/cli decode "https://diagent.dev/?code=GYGw9g7gxg..."

# From stdin — avoids shell-quoting pain
echo "$URL" | npx -y @diagent/cli decode -

Output is the Mermaid source, ready to paste back into code or commentary.

Authoring tips

  • Use short node IDs (A, B, C, or auth, db, api). Mermaid requires IDs, and they keep URLs compact. Put the descriptive text in the quoted label: A["User clicks login"], not UserClicksLogin.
  • Do NOT trim the diagram to fit URL length. The backend supports up to ~64KB of Mermaid source and always returns a short URL of constant size. If a diagram is worth showing in full, show it in full.
  • GUI-editable types: nearly every Mermaid type Diagent supports opens in a no-syntax-required visual editor, and all edits auto-save to the same URL:
    • Flowcharts and state diagrams (stateDiagram-v2) open as an interactive canvas — drag, rename, connect, group/composite.
    • Sequence, class, ER, requirement, gantt, journey, timeline, pie, mindmap, git graph, C4, and block open as a structured form editor (tables, ordered lists, and outlines) with a live preview; edits serialize back to Mermaid.
    • Only quadrantChart still renders read-only ("Edit Code"). Because edits round-trip to Mermaid text on the same short URL, you can re-decode any of these later to read what the user changed.
  • All flowchart syntax is supported: subgraphs, edge labels, styles, six node shapes (rectangle, rounded, diamond, circle, stadium, parallelogram), directions TD/LR/BT/RL.
  • State diagrams support [*] start/end, composite states (state X { ... }), <<choice>>/<<fork>>/<<join>>, transition labels, per-composite direction, and notes. (Concurrent -- regions render but fall back to read-only.)
  • Prefer flowchart over graph — flowchart is the modern syntax.
  • Escape special characters in labels by wrapping in quotes: A["user@example.com"], not A[user@example.com].

Exit codes

CodeMeaning
0Success
1Runtime error (empty input, invalid URL, backend failure, decode failure)
2Usage error (unknown subcommand, missing argument)

Environment

  • DIAGENT_BASE_URL — override backend URL (default: https://diagent.dev/). Useful for pointing at http://localhost:5173/ when Diagent is running in local dev.

Install

The skill uses npx -y @diagent/cli which auto-downloads the CLI on first run. No manual install is needed. To install globally for faster repeated invocations:

bash
npm install -g @diagent/cli

Run npx -y @diagent/cli install-skill to enable the skill in every Claude Code project.

Full help

Run npx -y @diagent/cli --help, npx -y @diagent/cli encode --help, or npx -y @diagent/cli decode --help for exhaustive documentation.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Diagent?

Generate or decode Diagent diagram URLs via the `diagent` CLI. TRIGGER on: (1) any request to visualize, draw, chart, diagram, sketch, graph, map, or plot — flowcharts, state machines, sequence diagrams, architecture, pipelines, CI/CD, workflows, decision trees, dependency graphs, class hierarchies, data flow, control flow, request flow, user journeys, ERDs, org charts, swimlanes, mind maps, or any structural/process visualization; (2) any pasted `diagent.dev/d/...` or `diagent.dev/?code=...` URL — decode it to read the underlying Mermaid.

Навіщо використовувати Diagent у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Diagent — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Diagent у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/daniellee-ux/diagent-cli/tree/main. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Diagent?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Diagent?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Diagent — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Diagent?

Так. Навичку опубліковано на GitHub: daniellee-ux, за ліцензією AGPL-3.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇