new-diagram

仓库创建 2026年2月7日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

避免从零写TikZ的繁琐,内置规范与自动编译反馈环节

▸ 风险提示

会在本地调用LaTeX/TikZ编译器和生成文件,存在命令执行风险

这个 Skill 做什么

从模板生成TikZ图,应用规范检查并自动编译直至通过审查

从模板快速生成 TikZ 图,自动套用规范检查(如节点尺寸、坐标映射、方向标签),独立编译并调用 tikz-reviewer 反复修正直到通过。适合需要高质量 LaTeX 图且不想从零开始调试的场景,省去反复编译和格式纠错的麻烦。最后产出可编译的 .tex 文件和通过审查的版本。

▸ 展开 SKILL.md 英文原文

Scaffold a new TikZ diagram from the snippet gallery with prevention rules pre-applied (explicit node dimensions, coordinate map, directional edge labels). Compiles standalone, invokes tikz-reviewer with citations from tikz-measurement.md, and loops on revisions until APPROVED.

开发编程TikZ图形脚手架自动编译通用
1.4k
Stars
2.8k
Forks
40
仓库内 Skill
+65
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/new-diagram/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/new-diagram/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Create a New TikZ Diagram

Scaffold a diagram from `templates/tikz-snippets/`, check it against the prevention rules, compile standalone, run the reviewer with measurement citations, and loop until the diagram passes. Use this **instead of** writing TikZ from scratch; the snippets embed the invariants that `tikz-prevention.md` requires.

## Inputs

- `$0` (optional) — snippet name (without `.tex`). One of the filenames in `templates/tikz-snippets/`. If omitted, list the gallery and ask the user to pick.
- `$1` (optional) — output path. Defaults to `Figures/new_diagram.tex` — ask the user if this target exists so we don't clobber.

## Workflow

### Step 1: Pick a snippet

```bash
ls -1 temp
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有