Install any skill in seconds. Free to start, no credit card required.
Get Started Free →LaTeX drawing examples for Bayesian networks, tensors, and diagrams
.claude/skills/brycewang-stanford-latex-drawing-collection/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 182% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 41% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 56% | 0% |
A skill providing ready-to-use LaTeX drawing examples and guidance for creating publication-quality scientific figures using TikZ, PGFPlots, and related packages. Based on awesome-latex-drawing (2K stars), this skill covers Bayesian networks, tensor decompositions, neural architectures, time series visualizations, and more.
High-quality figures are essential for effective scientific communication. While external tools like Matplotlib or Inkscape can produce figures, native LaTeX drawings offer superior integration with the document, consistent typography, vector-quality output at any resolution, and automatic style matching with the surrounding text.
This skill equips the agent with knowledge of 30+ LaTeX drawing patterns commonly used in academic publications. Each pattern includes the required packages, a description of the drawing approach, and guidance on customization for specific research contexts.
The following LaTeX packages form the foundation for scientific drawing:
TikZ (tikz)
\usepackage{tikz} and relevant libraries via \usetikzlibrary{...}PGFPlots (pgfplots)
\usepackage{pgfplots} and \pgfplotsset{compat=1.18}TikZ Libraries
arrows.meta - customizable arrowhead stylespositioning - relative node placement (above=of, right=of)fit - bounding boxes around groups of nodesmatrix - grid-based node layoutsdecorations.pathreplacing - braces, zigzag, snake decorationscalc - coordinate arithmeticbackgrounds - layered drawing with background regionsBayesian networks are among the most common diagrams in probabilistic modeling papers:
Node Styles
Construction Approach
Common Patterns
For linear algebra and tensor decomposition papers:
Tensor Representations
Decomposition Visualizations
For deep learning and machine learning papers:
Layer Representations
Architecture Patterns
For data analysis and forecasting papers:
Time Series Elements
Spatiotemporal Grids
When adapting templates for specific publications:
This skill supports the Research-Claw writing workflow:
\footnotesize or \scriptsize for labels inside dense diagrams\includegraphics| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 40,907 | 42,334 | +3% | 1 | 1 | 0% | 8,256 | 9,455 | +15% | 0 | 0 | — |
case-02 | pass→pass | 6,025 | 6,645 | +10% | 1 | 1 | 0% | 855 | 2,409 | +182% | 0 | 0 | — |
case-03 | pass→pass | 17,808 | 16,542 | -7% | 1 | 1 | 0% | 3,207 | 4,537 | +41% | 0 | 0 | — |
case-04 | pass→pass | 10,283 | 9,300 | -10% | 1 | 1 | 0% | 1,946 | 3,036 | +56% | 0 | 0 | — |
case-05 | pass→pass | 15,099 | 14,868 | -2% | 1 | 1 | 0% | 2,645 | 3,856 | +46% | 0 | 0 | — |
case-06 | fail→pass | 41,079 | 29,300 | -29% | 1 | 1 | 0% | 8,230 | 7,014 | -15% | 0 | 0 | — |
case-07 | fail→fail | 23,849 | 22,275 | -7% | 1 | 1 | 0% | 3,642 | 4,616 | +27% | 0 | 0 | — |
case-08 | pass→pass | 15,574 | 18,245 | +17% | 1 | 1 | 0% | 2,777 | 3,987 | +44% | 0 | 0 | — |
case-09 | pass→pass | 18,114 | 16,873 | -7% | 1 | 1 | 0% | 2,927 | 4,272 | +46% | 0 | 0 | — |
case-10 | pass→pass | 10,921 | 7,211 | -34% | 1 | 1 | 0% | 1,958 | 2,512 | +28% | 0 | 0 | — |
case-11 | pass→pass | 7,215 | 5,965 | -17% | 1 | 1 | 0% | 1,249 | 2,271 | +82% | 0 | 0 | — |
case-12 | pass→pass | 6,593 | 5,294 | -20% | 1 | 1 | 0% | 1,022 | 2,175 | +113% | 0 | 0 | — |
case-13 | pass→pass | 12,364 | 14,820 | +20% | 1 | 1 | 0% | 2,035 | 3,489 | +71% | 0 | 0 | — |
case-14 | pass→pass | 11,380 | 14,989 | +32% | 1 | 1 | 0% | 1,918 | 3,758 | +96% | 0 | 0 | — |
case-15 | pass→pass | 38,006 | 51,911 | +37% | 1 | 1 | 0% | 6,299 | 9,417 | +49% | 0 | 0 | — |
case-16 | pass→pass | 6,894 | 10,001 | +45% | 1 | 1 | 0% | 1,237 | 2,652 | +114% | 0 | 0 | — |
case-17 | pass→pass | 27,857 | 30,586 | +10% | 1 | 1 | 0% | 4,222 | 5,771 | +37% | 0 | 0 | — |
case-18 | pass→pass | 8,280 | 7,831 | -5% | 1 | 1 | 0% | 1,246 | 2,371 | +90% | 0 | 0 | — |
case-19 | fail→pass | 20,309 | 17,167 | -15% | 1 | 1 | 0% | 2,896 | 4,039 | +39% | 0 | 0 | — |
case-20 | pass→pass | 16,100 | 20,446 | +27% | 1 | 1 | 0% | 3,377 | 5,152 | +53% | 0 | 0 | — |
case-21 | pass→pass | 21,679 | 15,105 | -30% | 1 | 1 | 0% | 3,309 | 4,048 | +22% | 0 | 0 | — |
case-22 | pass→pass | 17,534 | 11,022 | -37% | 1 | 1 | 0% | 3,654 | 2,953 | -19% | 0 | 0 | — |
case-23 | pass→pass | 17,305 | 15,200 | -12% | 1 | 1 | 0% | 4,351 | 4,604 | +6% | 0 | 0 | — |
case-24 | pass→pass | 10,397 | 12,260 | +18% | 1 | 1 | 0% | 2,180 | 3,210 | +47% | 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. 24 cases were attempted. The headline lift of +8 percentage points is the difference between those two pass rates over the 24 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.