tikz-figure-code SKILL.md skillA
tikz-figure-code from kendrick-stein/mcislab_deepread is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kendrick-stein/mcislab_deepread/tikz-figure-code@git:20260728.634c4b7Pins git:20260728.634c4b7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kendrick-stein/mcislab_deepread
- Path
skills/4-writing/tikz-figure-code/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260728.634c4b7, committed Jul 28, 2026
- First version recorded
- Jul 28, 2026
- Size
- 9,364 bytes
- Repository stars
- 12
- License
- none declared
写出高质量、一次过编译、编辑安全的 TikZ/LaTeX 配图代码的工程基础技能。 教 agent 用「按构造布局」(positioning/fit/chains/anchor) 而非「手填绝对坐标」, 附 8 条硬约束、canonical 箭头、before/after 范例、一个静态检查入口 (lint.sh)。 Use when: 写/审 TikZ 或 LaTeX 图代码、修图的排版/对齐/溢出/箭头问题、 tikz layout、latex figure code、tikz 编译报错、CJK 中文图渲染成色块。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# TikZ Figure Code — 写对 + 编辑安全的工程基础
## Purpose
这是**确定性地基**:怎么写出编译干净、不重叠、改一处不崩的 TikZ 代码。
它**不**管"画什么图才美"——那是设计/编排层(见 [academic-diagram](../academic-diagram/SKILL.md))的事。
本技能管的是:无论画什么,代码本身得**写对、扛得住编辑**。
输入是待写/待修的 TikZ 代码或排版 bug,输出是按构造布局、通过 lint 的 .tex。
> 一句话定位:academic-diagram 决定**画什么**,本技能保证**怎么写不出错**。
## Steps
1. 写新图 / 审已有图前,按「5 条 idiom」检查布局写法(相对定位、anchor 连线、fit 容器)。
2. 修排版/对齐/箭头 bug 时,先对照「8 条硬约束」定位违反项(全集加载 `references/hard-constraints.md`)。
3. 写完/改完跑 `bash references/lint.sh figure.tex`(validator → 编译 → missing-char → overlap-checker → design-linter)。
4. lint 退出码 0 后**仍必须 Read 渲染 PNG 亲眼确认**——static checker 对 zone 重叠/边框切穿内容类崩坏全盲。
## Guard
- **禁止手填绝对坐标搭宏观骨架**——模块/zone 层必须按构造布局(嵌入 viz 内部可局部手画,但须挂父节点 anchor)。
- **禁止把同一间距/边界数字抄写在多处**——布局节奏只定义一次。
- **禁止手写 `-{Stealth[scale=X]}` 箭头**——只用 canonical styles,调 `line width` 三档。
- 8 条硬约束(CJK rotate=90、`\texttt` 中文、missing-char 静默、直线 rounded corners、
缺 bending library、`|-` pierce 等)违反必失败,不可绕过。
- lint 通过 ≠ 图没问题——**不允许跳过看图直接交付**。
## Verify
- [ ] `bash references/lint.sh figure.tex` 退出码 0(无硬 bug)
- [ ] `grep "Missing character" *.log` 为空
- [ ] 渲染 PNG 已用 Read 亲眼查看,无 zone 重叠/切穿/大空白
- [ ] 宏观骨架无绝对坐标、连线全部走节点 anchor
## 为什么需要它(问题的根)
…Read the whole file at its exact version.
How to install
mdr add kendrick-stein/mcislab_deepread/tikz-figure-code@sha256:d87a66f62787c086The line at the top of this page pins the label git:20260728.634c4b7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fzierqggydhw3j5x)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Jul 28, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260728.634c4b7 latest | 2026-07-28 | 634c4b7 | 9,364 B | A | view · diff |
| git:20260728.a0fcf5b | 2026-07-28 | a0fcf5b | 7,714 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9364 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
kendrick-stein/mcislab_deepread · 12 stars · license none declared · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_fzierqggydhw3j5x GET https://markdownregistry.com/api/v1/resolve?ref=kendrick-stein/mcislab_deepread/tikz-figure-code GET https://markdownregistry.com/api/v1/blob/d87a66f62787c0860f1fdeb5c779574326ccd106a5e8120877a39903529d434c
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.