Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
.claude/skills/aiskillstore-tikzjax-diagramming/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 105% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 27% | 0% |
TikZJax enables LaTeX/TikZ diagrams in Obsidian. Use for complex technical drawings where Mermaid lacks precision:
tikz\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:
tikz\begin{document} and \end{document}\begin{tikzpicture}...\end{tikzpicture}scale=1 (smaller values reduce text readability)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 |
Load with \usetikzlibrary{}:
latex\usepackage{tikz} \usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc} \begin{document} % Drawing commands here \end{document}
TikZJax plugin can automatically invert black ↔ white in dark mode (configurable in plugin settings).
Omit color specification in \node for automatic theme adaptation:
latex% Explicit color - fixed, won't adapt \node[black] at (2,0) {Label}; % No color - adapts automatically (recommended) \node at (2,0) {Label};
When dark mode inversion is enabled:
black becomes white (and vice versa)\definecolor{} custom colors are NOT inverted| 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 |
tikz\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}
tikz\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}
tikz\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}
tikz\usepackage{chemfig} \begin{document} \chemfig{H-C(-[2]H)(-[6]H)-C(-[2]H)(-[6]H)-H} \end{document}
tikz\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}
tikz\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}
| 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 |
For complete syntax reference, color tables, and advanced examples, see reference.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 35,399 | 21,696 | -39% | 1 | 1 | 0% | 6,448 | 4,783 | -26% | 0 | 0 | — |
case-02 | fail→pass | 8,101 | 13,071 | +61% | 1 | 1 | 0% | 1,493 | 3,056 | +105% | 0 | 0 | — |
case-03 | fail→pass | 12,660 | 4,961 | -61% | 1 | 1 | 0% | 2,364 | 2,384 | +1% | 0 | 0 | — |
case-04 | pass→pass | 18,681 | 12,846 | -31% | 1 | 1 | 0% | 2,185 | 3,139 | +44% | 0 | 0 | — |
case-05 | pass→pass | 16,827 | 12,037 | -28% | 1 | 1 | 0% | 1,912 | 2,598 | +36% | 0 | 0 | — |
case-06 | pass→pass | 5,917 | 5,280 | -11% | 1 | 1 | 0% | 995 | 2,369 | +138% | 0 | 0 | — |
case-07 | fail→pass | 18,863 | 10,279 | -46% | 1 | 1 | 0% | 2,589 | 2,477 | -4% | 0 | 0 | — |
case-08 | pass→pass | 16,336 | 13,580 | -17% | 1 | 1 | 0% | 2,631 | 3,075 | +17% | 0 | 0 | — |
case-09 | pass→pass | 12,887 | 6,854 | -47% | 1 | 1 | 0% | 2,038 | 2,741 | +34% | 0 | 0 | — |
case-10 | fail→pass | 16,696 | 5,646 | -66% | 1 | 1 | 0% | 2,010 | 2,560 | +27% | 0 | 0 | — |
case-11 | pass→pass | 11,962 | 7,725 | -35% | 1 | 1 | 0% | 1,170 | 1,991 | +70% | 0 | 0 | — |
case-12 | fail→pass | 13,108 | 10,180 | -22% | 1 | 1 | 0% | 1,786 | 2,484 | +39% | 0 | 0 | — |
case-13 | fail→pass | 13,462 | 3,144 | -77% | 1 | 1 | 0% | 1,483 | 1,993 | +34% | 0 | 0 | — |
case-14 | pass→pass | 11,910 | 6,685 | -44% | 1 | 1 | 0% | 1,236 | 2,843 | +130% | 0 | 0 | — |
case-15 | fail→pass | 14,524 | 14,027 | -3% | 1 | 1 | 0% | 2,235 | 3,007 | +35% | 0 | 0 | — |
case-16 | pass→pass | 14,185 | 12,300 | -13% | 1 | 1 | 0% | 2,276 | 2,610 | +15% | 0 | 0 | — |
case-17 | fail→pass | 20,335 | 9,757 | -52% | 1 | 1 | 0% | 2,258 | 2,265 | +0% | 0 | 0 | — |
case-18 | fail→pass | 13,370 | 10,662 | -20% | 1 | 1 | 0% | 1,357 | 2,425 | +79% | 0 | 0 | — |
case-19 | pass→pass | 13,418 | 8,716 | -35% | 1 | 1 | 0% | 2,238 | 3,147 | +41% | 0 | 0 | — |
case-20 | fail→pass | 15,597 | 13,701 | -12% | 1 | 1 | 0% | 2,090 | 2,987 | +43% | 0 | 0 | — |
case-21 | pass→pass | 17,393 | 12,575 | -28% | 1 | 1 | 0% | 2,115 | 2,811 | +33% | 0 | 0 | — |
case-22 | fail→pass | 13,750 | 12,102 | -12% | 1 | 1 | 0% | 2,326 | 3,872 | +66% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +55 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.