
一个代理技能,用于将书面提示、截图、纸质图形和草图转化为经过编辑、视觉检查的TikZ/PGF图表和animate.sty动画。
概览
一个代理技能,用于将书面提示、截图、纸质图形和草图转化为经过编辑、视觉检查的TikZ/PGF图表和animate.sty动画。 安装整个文件夹,而不仅仅是 SKILL.md。文件夹包含脚本、参考、夹具和可重复使用的模板,使工作流程更可靠。 同一个文本提示词会根据模式产生不同版本。底层的情节几何结构保持不变;教学模式为学习者添加解释性信息,而研究模式则保持论文、研讨会或附录时图形清晰。 当图片本身需要简短提示或提醒时,使用教学模式。当周围的论文、幻灯片文本或讲者笔记承载解读时,使用研究模式。 门检查:两个版本都通过渲染的可视化质量保证,使用相同的曲线几何,并保持DiD反事实逻辑:处理后与对照间隙在处理前和处理后反事实处保持不变。
概述(AI 翻译)
一个代理技能,用于将书面提示、截图、纸质图形和粗略草图转化为经过编辑、视觉检查的TikZ/PGF图表和animate.sty动画。
可安装的技能是文件夹:
安装整个文件夹,而不仅仅是SKILL.md。文件夹包含脚本、参考、夹具和可重复使用的模板,使工作流程更可靠。
静态图表文本提示:教学与研究
同一个文本提示词会根据模式产生不同版本。底层的情节几何结构保持不变;教学模式为学习者添加解释性信息,而研究模式则保持论文、研讨会或附录时图形清晰。
提示:
| 教学模式 | 研究模式 |
|---|---|
当图片本身需要简短提示或提醒时,使用教学模式。当周围的论文、幻灯片文本或讲者笔记承载解读时,使用研究模式。
门检查:两个版本都通过渲染的可视化质量保证,使用相同的曲线几何,并保持DiD反事实逻辑:处理后与对照间隙在处理前和处理后反事实处保持不变。
快速入门:安装与使用
存储库网址:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
TikZ Diagrams Agent Skill
An agent skill for turning written prompts, screenshots, paper figures, and rough sketches into compiled, visually checked TikZ/PGF diagrams and animate.sty animations.
The installable skill is the folder:
skills/tikz-diagrams/
Install the whole folder, not only SKILL.md. The folder contains the scripts, references, fixtures, and reusable templates that make the workflow reliable.
Text Prompt To Static Diagram: Teaching vs Research
The same text prompt can produce different versions depending on mode. The underlying plot geometry stays the same; teaching mode adds explanatory information for learners, while research mode keeps the figure clean for a paper, seminar, or appendix.
Prompt:
Use the tikz-diagrams skill to create a standalone TikZ diagram of parallel trends in difference-in-differences. Compile it, render it, run visual Quality Assurance (QA), and include a QA note.
| Teaching mode | Research mode |
|---|---|
Use teaching mode when the image itself needs a short cue or reminder. Use research mode when the surrounding paper, slide text, or speaker notes will carry the interpretation.
Gate check: both versions pass rendered visual QA, use identical curve geometry, and preserve the DiD counterfactual logic: the treated-control gap is constant before treatment and at the post-treatment counterfactual.
Quickstart: Install And Use
Repository URL:
https://github.com/Patrick-Healy/tikz-diagrams-skill
Easiest Install: Ask Your Agent
You can copy-paste this into Codex, Claude Code, Cursor, Gemini CLI, Copilot Chat, or another coding agent and ask it to install the skill for you:
Install this TikZ diagrams skill from GitHub:
https://github.com/Patrick-Healy/tikz-diagrams-skill
Install only the skill folder at:
skills/tikz-diagrams/
Put it in the correct global or project skill location for this agent. After installing, confirm that SKILL.md, scripts/, references/, templates/, and tests/ are present. Do not install missing TeX, Python, Poppler, ffmpeg, or ImageMagick dependencies without asking me first and explaining what each dependency is needed for.
This is usually the best route if you are not sure where your agent stores skills. The agent should clone the repository, copy the whole skills/tikz-diagrams/ folder, and then tell you whether rendering dependencies are already available.
After installation, restart or reload the agent session so it discovers the new skill.
Codex
$skill-installer install https://github.com/Patrick-Healy/tikz-diagrams-skill/tree/main/skills/tikz-diagrams
Manual install:
mkdir -p ~/.codex/skills
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add patrick-healy/tikz-diagrams-skill