Add Svgのロゴ

Add Svg

コミュニティ
QIANJINYDX
add-svg

Add, collect, design, audit, and integrate SVG elements into editable diagrams.net/draw.io scientific figures. Use when the user asks to supplement a draw.io diagram with SVG icons, mechanisms, biological objects, model components, pathway symbols, instruments, graphical abstract elements, or publication-style vector assets. Every execution must first ask the user to choose the SVG source mode: network search or self-designed SVG. For network mode, search for multiple relevant SVG candidates for later user selection, record sources and license notes, and fall back to self-designed SVG for concepts with no suitable result. For self-design mode, create restrained, editable, Nature-style SVGs from simple vector primitives. Use with .drawio, SVG, diagrams.net, 科研流程图, 论文示意图, SVG补图, 图标补充, and draw.io配图.

概要

公開者QIANJINYDX
リポジトリresearch-drawio-skill
スキル名add-svg
スター
45
フォーク
2
同梱ファイル
10
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 10個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    QIANJINYDXがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Add Svg」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/QIANJINYDX/research-drawio-skill/tree/main/skills/add-svg
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/QIANJINYDX/research-drawio-skill.git /tmp/research-drawio-skill
mkdir -p .claude/skills
cp -r /tmp/research-drawio-skill/skills/add-svg .claude/skills/add-svg
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAdd Svgを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAdd Svgを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Add Svgは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Add SVG Skill

Add SVG assets to draw.io research figures as evidence-aware visual elements, not decorative stickers. This skill follows the nature-figure and draw-science philosophy: establish the scientific message and visual role first, decide the SVG source explicitly, then integrate only assets that serve the diagram's logic and pass layout/export QA.

Mandatory Source Gate

Before doing any SVG search, drawing, download, file edit, or draw.io insertion, ask exactly one blocking question and stop:

text
SVG 来源选择:网络搜索,还是自行绘制?

Do this on every invocation. Continue only after the user answers. The answer sets source_mode:

  • network / 网络搜索: search the web for multiple SVG candidates.
  • self_design / 自行绘制: design new SVGs from vector primitives.

If the user already describes a preference in the same message, still confirm briefly before execution unless the conversation already contains an explicit answer to this exact source gate for the current invocation.

Routing Protocol

  1. Read manifest.yaml.
  2. Read every file listed under always_load:
    • static/core/contract.md
    • static/core/stance.md
  3. Ask the mandatory source gate and wait for the user's answer.
  4. Load the reference file for the chosen mode:
    • network search: references/network-svg-search.md
    • self design: references/self-design-svg.md
  5. Load references/drawio-svg-integration.md before editing .drawio.
  6. Load references/svg-qa-contract.md before final delivery.

Core Workflow

After the source gate is answered, create a compact SVG contract:

text
Scientific message:
Target draw.io file:
SVG role:
Source mode:
Needed concepts:
Candidate plan:
Integration targets:
Style constraints:
License/provenance notes:
Fallback plan:
QA checks:

Network Mode

Search for multiple SVG candidates for each requested concept. Keep candidates for later user selection rather than silently choosing one. For each candidate, record:

  • concept
  • preview/name
  • source URL
  • direct SVG URL if available
  • license or usage note
  • style fit for Nature-style draw.io figures
  • any required attribution

If no suitable SVG is found for a concept, mark it as self-designed fallback and create a simple original SVG following references/self-design-svg.md.

Self-Design Mode

Create original SVGs from simple vector primitives. Keep them restrained, editable, and compatible with draw.io. Use one neutral family, one signal family, and one accent family. Avoid complex illustration, gradients, shadows, bitmap effects, and decorative detail.

Draw.io Integration Rules

  • Preserve the user's existing .drawio content and layout.
  • Insert SVGs as editable/vector-friendly draw.io image cells when possible.
  • Encode SVG image values as draw.io-safe URL-encoded data:image/svg+xml, URIs. Do not use raw data:image/svg+xml;base64,... inside style=, because the semicolon in svg+xml;base64 breaks mxGraph style parsing.
  • Treat an inserted SVG as the visual glyph for that concept. Do not also draw duplicate draw.io primitive glyphs for the same object unless the user asks for a hybrid editable reconstruction.
  • After SVG insertion, re-balance the layout and remove empty placeholder zones so the figure remains compact rather than leaving the old self-drawn glyph space unused.
  • Keep SVG labels separate from the icon body unless text is a scientific mark.
  • Match the diagram's grid, spacing, color semantics, and connector rules.
  • Run available QA checks and export a draw.io PNG/SVG preview when draw-science/scripts/export_drawio_preview.py is available. Do not treat XML validity as sufficient for SVG insertion; the exported preview must show the SVG assets rendered, nonblank, unclipped, and not overlapping labels.

Related Files

FileOpen when
references/network-svg-search.mdUser chooses network search
references/self-design-svg.mdUser chooses self-designed SVGs or network search fails
references/drawio-svg-integration.mdNeed to insert, encode, or edit SVGs in .drawio
references/svg-qa-contract.mdBefore final delivery or candidate handoff
scripts/svg_data_uri.pyNeed to convert a local SVG into a draw.io data URI

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Add Svg」では何ができますか?

Add, collect, design, audit, and integrate SVG elements into editable diagrams.net/draw.io scientific figures. Use when the user asks to supplement a draw.io diagram with SVG icons, mechanisms, biological objects, model components, pathway symbols, instruments, graphical abstract elements, or publication-style vector assets. Every execution must first ask the user to choose the SVG source mode: network search or self-designed SVG. For network mode, search for multiple relevant SVG candidates for later user selection, record sources and license notes, and fall back to self-designed SVG for c...

TypingMindでAdd Svgを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Add Svgはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAdd Svgをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/QIANJINYDX/research-drawio-skill/tree/main/skills/add-svgを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Add Svgを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Add Svgで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAdd Svgを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Add Svg」は無料ですか?

QIANJINYDXがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇