jpskill.com
💬 コミュニケーション コミュニティ

tikzjax-diagramming

ObsidianのTikZJaxプラグインを活用し、幾何学図形や回路図、化学構造など、正確な配置が求められる複雑な技術図面を可視化するSkill。

📜 元の英語説明(参考)

Create TikZ diagrams in Obsidian using TikZJax plugin. Use when visualizing geometric shapes, coordinate systems, game scenes, circuit diagrams, chemical structures, or complex technical drawings that require precise positioning.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ObsidianのTikZJaxプラグインを活用し、幾何学図形や回路図、化学構造など、正確な配置が求められる複雑な技術図面を可視化するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o tikzjax-diagramming.zip https://jpskill.com/download/17550.zip && unzip -o tikzjax-diagramming.zip && rm tikzjax-diagramming.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17550.zip -OutFile "$d\tikzjax-diagramming.zip"; Expand-Archive "$d\tikzjax-diagramming.zip" -DestinationPath $d -Force; ri "$d\tikzjax-diagramming.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して tikzjax-diagramming.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → tikzjax-diagramming フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Obsidian 用 TikZJax ダイアグラム作成

TikZJax を使用すると、Obsidian で LaTeX/TikZ ダイアグラムを使用できます。Mermaid では精度が不足する複雑な技術図面に使用します。

  • 幾何学的形状と座標系
  • 正確な位置決めによるゲームシーン
  • 回路図 (circuitikz)
  • 化学構造 (chemfig)
  • 3D プロット (tikz-3dplot, pgfplots)
  • 可換図式 (tikz-cd)

基本構文

\begin{document}
\begin{tikzpicture}[scale=1]
  \draw[thick] (0,0) rectangle (4,2);
  \fill[cyan] (1,0.5) rectangle (3,1.5);
\end{tikzpicture}
\end{document}

必須構造:

  • コードブロックの言語: tikz
  • \begin{document}\end{document} を含める必要があります
  • \begin{tikzpicture}...\end{tikzpicture} の中に描画コードを記述します
  • 推奨: scale=1 (値を小さくするとテキストの可読性が低下します)

サポートされているパッケージ

\usepackage{} でロードします。

パッケージ 目的
tikz コア描画 (暗黙的)
tikz-cd 可換図式
circuitikz 電子回路
pgfplots データ可視化、プロット
chemfig 化学構造
tikz-3dplot 3D 座標系
array テーブル環境
amsmath 数学組版
amsfonts 数学フォント
amssymb 数学記号

TikZ ライブラリ

\usetikzlibrary{} でロードします。

\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{calc}
\begin{document}
  % Drawing commands here
\end{document}

ダークモードの動作

TikZJax プラグインは、ダークモードで blackwhite を自動的に反転できます (プラグイン設定で構成可能)。

テキストの色

自動的なテーマ適応のために、\node で色の指定を省略します。

% 明示的な色 - 固定、適応しません
\node[black] at (2,0) {Label};

% 色なし - 自動的に適応します (推奨)
\node at (2,0) {Label};

黒/白の反転

ダークモードの反転が有効になっている場合:

  • blackwhite になります (逆も同様)
  • その他の名前付きの色は変更されません
  • \definecolor{} カスタムカラーは反転されません

サポートされていない機能

機能 ステータス 代替手段
色の混合 (blue!30, cyan!20!white) サポートされていません 基本色のみを使用してください
韓国語のテキスト サポートされていません 英語を使用してください
\definecolor{}{RGB}{} ダークモードで反転されません 反転が必要な場合は名前付きの色を使用してください
\definecolor{}{HTML}{} ダークモードで反転されません 反転が必要な場合は名前付きの色を使用してください

クイックスタートの例

塗りつぶしのある単純な長方形

\begin{document}
\begin{tikzpicture}[scale=1]
  \draw[thick, gray] (0,0) rectangle (4,3);
  \fill[cyan, opacity=0.3] (0.5,0.5) rectangle (3.5,2.5);
  \node at (2,1.5) {Content Area};
\end{tikzpicture}
\end{document}

座標系

\begin{document}
\begin{tikzpicture}[scale=1]
  % Axes
  \draw[thick, gray, ->] (-0.5,0) -- (4,0) node[right] {$x$};
  \draw[thick, gray, ->] (0,-0.5) -- (0,3) node[above] {$y$};

  % Point
  \fill[red] (2,1.5) circle (3pt) node[above right] {$P(2,1.5)$};

  % Dashed guides
  \draw[dashed, yellow] (2,0) -- (2,1.5);
  \draw[dashed, yellow] (0,1.5) -- (2,1.5);
\end{tikzpicture}
\end{document}

回路図

\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[scale=1]
  \draw (0,0) to[R, l=$R_1$] (2,0)
              to[C, l=$C_1$] (4,0)
              to[short] (4,-2)
              to[battery1, l=$V$] (0,-2)
              to[short] (0,0);
\end{circuitikz}
\end{document}

化学構造

\usepackage{chemfig}
\begin{document}
\chemfig{H-C(-[2]H)(-[6]H)-C(-[2]H)(-[6]H)-H}
\end{document}

可換図式

\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
  A \arrow[r, "f"] \arrow[d, "g"'] & B \arrow[d, "h"] \\
  C \arrow[r, "k"'] & D
\end{tikzcd}
\end{document}

3D プロット

\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
  view={60}{30},
  colormap/cool
]
\addplot3[
  surf,
  domain=-2:2,
  domain y=-2:2
] {exp(-x^2-y^2)};
\end{axis}
\end{tikzpicture}
\end{document}

TikZJax と他のツールの使い分け

ユースケース ツール
フローチャート、シーケンス、ER 図 Mermaid
数学関数、インタラクティブグラフ Desmos
インライン数式、方程式 MathJax
正確な幾何学、座標系 TikZJax
ゲームシーン、スプライト、位置決め TikZJax
回路図 TikZJax
化学構造 TikZJax
3D 可視化 TikZJax

リファレンス

完全な構文リファレンス、カラーテーブル、および高度な例については、reference.md を参照してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

TikZJax Diagramming for Obsidian

TikZJax enables LaTeX/TikZ diagrams in Obsidian. Use for complex technical drawings where Mermaid lacks precision:

  • Geometric shapes and coordinate systems
  • Game scenes with precise positioning
  • Circuit diagrams (circuitikz)
  • Chemical structures (chemfig)
  • 3D plots (tikz-3dplot, pgfplots)
  • Commutative diagrams (tikz-cd)

Basic Syntax

\begin{document}
\begin{tikzpicture}[scale=1]
  \draw[thick] (0,0) rectangle (4,2);
  \fill[cyan] (1,0.5) rectangle (3,1.5);
\end{tikzpicture}
\end{document}

Required Structure:

  • Code block language: tikz
  • Must include \begin{document} and \end{document}
  • Drawing code inside \begin{tikzpicture}...\end{tikzpicture}
  • Recommended: scale=1 (smaller values reduce text readability)

Supported Packages

Load with \usepackage{}:

Package Purpose
tikz Core drawing (implicit)
tikz-cd Commutative diagrams
circuitikz Electronic circuits
pgfplots Data visualization, plots
chemfig Chemical structures
tikz-3dplot 3D coordinate systems
array Table environments
amsmath Math typesetting
amsfonts Mathematical fonts
amssymb Mathematical symbols

TikZ Libraries

Load with \usetikzlibrary{}:

\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{calc}
\begin{document}
  % Drawing commands here
\end{document}

Dark Mode Behavior

TikZJax plugin can automatically invert blackwhite in dark mode (configurable in plugin settings).

Text Color

Omit color specification in \node for automatic theme adaptation:

% Explicit color - fixed, won't adapt
\node[black] at (2,0) {Label};

% No color - adapts automatically (recommended)
\node at (2,0) {Label};

Black/White Inversion

When dark mode inversion is enabled:

  • black becomes white (and vice versa)
  • Other named colors remain unchanged
  • \definecolor{} custom colors are NOT inverted

Unsupported Features

Feature Status Alternative
Color mixing (blue!30, cyan!20!white) Not supported Use base colors only
Korean text Not supported Use English
\definecolor{}{RGB}{} Not inverted in dark mode Use named colors if inversion needed
\definecolor{}{HTML}{} Not inverted in dark mode Use named colors if inversion needed

Quick Start Examples

Simple Rectangle with Fill

\begin{document}
\begin{tikzpicture}[scale=1]
  \draw[thick, gray] (0,0) rectangle (4,3);
  \fill[cyan, opacity=0.3] (0.5,0.5) rectangle (3.5,2.5);
  \node at (2,1.5) {Content Area};
\end{tikzpicture}
\end{document}

Coordinate System

\begin{document}
\begin{tikzpicture}[scale=1]
  % Axes
  \draw[thick, gray, ->] (-0.5,0) -- (4,0) node[right] {$x$};
  \draw[thick, gray, ->] (0,-0.5) -- (0,3) node[above] {$y$};

  % Point
  \fill[red] (2,1.5) circle (3pt) node[above right] {$P(2,1.5)$};

  % Dashed guides
  \draw[dashed, yellow] (2,0) -- (2,1.5);
  \draw[dashed, yellow] (0,1.5) -- (2,1.5);
\end{tikzpicture}
\end{document}

Circuit Diagram

\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[scale=1]
  \draw (0,0) to[R, l=$R_1$] (2,0)
              to[C, l=$C_1$] (4,0)
              to[short] (4,-2)
              to[battery1, l=$V$] (0,-2)
              to[short] (0,0);
\end{circuitikz}
\end{document}

Chemical Structure

\usepackage{chemfig}
\begin{document}
\chemfig{H-C(-[2]H)(-[6]H)-C(-[2]H)(-[6]H)-H}
\end{document}

Commutative Diagram

\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
  A \arrow[r, "f"] \arrow[d, "g"'] & B \arrow[d, "h"] \\
  C \arrow[r, "k"'] & D
\end{tikzcd}
\end{document}

3D Plot

\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
  view={60}{30},
  colormap/cool
]
\addplot3[
  surf,
  domain=-2:2,
  domain y=-2:2
] {exp(-x^2-y^2)};
\end{axis}
\end{tikzpicture}
\end{document}

When to Use TikZJax vs Other Tools

Use Case Tool
Flowcharts, sequences, ER diagrams Mermaid
Mathematical functions, interactive graphs Desmos
Inline math, equations MathJax
Precise geometry, coordinate systems TikZJax
Game scenes, sprites, positioning TikZJax
Circuit diagrams TikZJax
Chemical structures TikZJax
3D visualizations TikZJax

Reference

For complete syntax reference, color tables, and advanced examples, see reference.md.