Agent skill

extract-tikz

Extract TikZ diagrams from Beamer source, compile to PDF, convert to SVG with 0-based indexing. Use when updating TikZ diagrams for Quarto slides.

brycew6m4,252★ · +31/wk · 3 repos on radarProfile →
claude-codecan modify filesNOASSERTION
Install
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill extract-tikz --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Allowed tools: ReadBashGlob
Path: skills/12-pedrohcgs-claude-code-my-workflow/dot-claude/skills/extract-tikz/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 3,244
Language: Stata
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Extract TikZ Diagrams to SVG Extract TikZ diagrams from the Beamer source, compile to multi-page PDF, and convert each page to SVG for use in Quarto slides. ## Steps ### Step 0: Freshness Check (MANDATORY) **Before compiling, verify that `extract_tikz.tex` matches the current Beamer source.** 1. Find the Beamer source: `ls Slides/$ARGUMENTS*.tex` 2. Extract all `\begin{tikzpicture}` blocks from Beamer 3. Compare with `Figures/$ARGUMENTS/extract_tikz.tex` 4. If ANY difference exists: update extract_tikz.tex from the Beamer source 5. If extract_tikz.tex doesn't exist: create it from scratch ### Step 1: Navigate to the lecture's Figures directory ```bash cd Figures/$ARGUMENTS ``` ### Step 2: Compile the extract_tikz.tex file ```bash TEXINPUTS=../../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode extract_tikz.tex ``` ### Step 3: Count the number of pages ```bash pdfinfo extract_tikz.pdf | grep "Pages:" ``` ### Step 4: Convert each page to SVG using 0-BASED INDEXING **CRITICAL: PDF pages are 1-indexed, but output SVG files are 0-indexed!** ```bash PAGES=$(pdfinfo extract_tikz.pdf | grep "Pages:" | awk '{print $2}') for i in $(seq 1 $PAGES); do idx=$(printf "%02d" $((i-1))) pdf2s

What's inside
Steps it walks through
  1. Steps
  2. Step 0: Freshness Check (MANDATORY)
  3. Step 1: Navigate to the lecture's Figures directory
  4. Step 2: Compile the extracttikz.tex file
  5. Step 3: Count the number of pages
  6. Step 4: Convert each page to SVG using 0-BASED INDEXING
  7. Step 5: Sync to docs/ for deployment
  8. Step 6: Verify SVG files
  9. Step 7: Report results
  10. Source of Truth Reminder
Commands it runs
cd Figures/$ARGUMENTS
pdfinfo extract_tikz.pdf | grep "Pages:"
for i in $(seq 1 $PAGES); do
pdf2svg extract_tikz.pdf tikz_exact_$idx.svg $i
done
cd ../..
More from Auto-Empirical-Research-Skills
All skills →
About this skill
What does the extract-tikz skill do?

Extract TikZ diagrams from Beamer source, compile to PDF, convert to SVG with 0-based indexing. Use when updating TikZ diagrams for Quarto slides.

How do I install it?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill extract-tikz --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going