npx skills add https://github.com/clearsmog/claude-skills --skill create-document一个提示 → 一份出版质量的文档。内部质量循环自动运行。
Slides/ 目录 → Beamer LaTeXSource/ 或主要为 .typ 文件 → TypstQuarto/ 目录 → Quarto.typ 文件)根据用户请求关键词检测文档类型:
typst/references/touying-guide.md)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
请求确实模糊不清且无项目上下文可供消歧:
.typ 文件,没有 PDF,提示中没有明确的主题在这种情况下:提出 一个 AskUserQuestion(主题 + 类型),然后自主进行。
对于其他所有情况 — 无需询问,直接进行。模板自动选择的正确率超过 90%;如果出错,用户可以重新调用并明确指定覆盖项。
在起草前静默运行所有这些步骤:
*.pdf、*.md、*.typ、images/
* 如果找到 PDF → 检查每个 PDF 旁边是否有 .parsed.md;如果存在则读取
* 如果没有 .parsed.md → 使用 PDF 处理规则解析(大文件在后台处理).typ 文件:
* 读取最近同级文件的前 30 行
* 匹配字体、颜色、qk 预设
* 仅继承使用 @local/qk 预设的文件;忽略原始内联样式@local/qk:1.0.0 并设置智能默认值#warning[...]#keypoint[...]#tip[...]#trap[...]#memorize[...]/image-search / /mindmap / gemini-generate-image MCP。| 内容模式 | 视觉呈现 | 工具 |
|---|---|---|
| 2+ 项比较,属性网格 | 表格或网格 | Typst 原生 |
| 标注框,样式化布局 | rect(), block() | Typst 原生 |
| 顺序流程,决策逻辑 | 流程图 / 决策树 | fletcher |
| 系统架构,ER 图 | 块 / 实体图 | fletcher |
| 层次结构或分类法 | 树状图 | fletcher 或 /mindmap |
| 主题概述,概念图 | 思维导图 | /mindmap |
| 请求-响应,API 流程 | 序列图 | chronos |
| 项目进度,阶段 | 甘特图 | timeliney |
| 历史事件,演变 | 时间线 | herodot |
| 数据趋势,分布(< 3 个系列) | 折线/面积/散点图 | cetz-plot |
| 复杂图表(4+ 系列,标注) | 出版级图表 | lilaq |
| 公司徽标,品牌标记 | 徽标 | /image-search --logo |
| 真实世界照片 | 照片 | /image-search |
| 概念性插图,隐喻 | AI 生成图像 | gemini-generate-image MCP |
完整细节、示例和备用链请参见 typst/references/tool-routing.md。
alt: 文本#set figure(placement: auto).typ 文件 — 不是分批编写\pause 或覆盖命令(检查项目规则)typst compile FILE.typ(或格式相应的命令)
* 硬性要求:退出码必须为 0typst compile FILE.typ /tmp/create-preview-{0p}.png --pages [SAMPLE]typst query 获取标题数量、图表数量交付摘要:
## 已创建:[文件名]
| 指标 | 值 |
|--------|-------|
| 页数 | [N] |
| 章节 | [N] |
| 视觉元素 | [N 个图表,N 个图示] |
| 编译 | 通过 |
| 视觉检查 | 通过 / [注明的问题] |
| 模板 | [使用的模板] |
| 样式继承自 | [同级文件或"无"] |
| 发现的材料 | [列表或"无"] |
**可能出错的地方:**[列出风险]
**后续步骤:** `/review` 进行深度审核 · `/finish` 运行完整流水线 · `/excellence` 用于里程碑
.png/.svg 以供 Typst 嵌入,.parquet 用于数据持久化[ ] 文档编译无错误
[ ] 无溢出问题(通过 PNG 验证)
[ ] 所有引用均能解析
[ ] 每个定义都有动机 + 实例演示
[ ] 每页/幻灯片最多 2 个彩色框/标注
[ ] 嵌入 2-3 个苏格拉底式问题(针对幻灯片)
[ ] 章节间有过渡幻灯片(针对幻灯片)
[ ] 在内容受益处提供视觉辅助
[ ] 新符号已添加到知识库
#pause(touying)进行分步显示 — 每张幻灯片最多 2-3 步#speaker-note[...] 添加演讲者备注,提供演示者上下文typst/references/touying-guide.md)\pause 或覆盖命令每周安装数
1
仓库
GitHub 星标数
2
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
One prompt → one publication-quality document. Internal quality loop runs automatically.
Slides/ directory → Beamer LaTeXSource/ or mainly .typ files → TypstQuarto/ directory → Quarto.typ)Detect document type from user request keywords:
typst/references/touying-guide.md)Request is genuinely ambiguous AND no project context to disambiguate:
.typ files, no PDFs, no clear topic in the promptIn this case: ONE AskUserQuestion (topic + type), then proceed autonomously.
For everything else — proceed without asking. Template auto-selection is correct 90%+ of the time; user can re-invoke with explicit overrides if wrong.
Run all of these silently before drafting:
*.pdf, *.md, *.typ, images/ in the project directory.parsed.md next to each; read if exists.parsed.md → parse using PDF handling rules (background for large files).typ files exist in the project:
Always import @local/qk:1.0.0 and set smart defaults
Apply qk components per the typst skill's component auto-use table:
#warning[...]#keypoint[...]#tip[...]#trap[...]#memorize[...]Visual auto-detection (proactive): as content is drafted, match patterns to the best tool. Route by content type: diagrams → native Typst (fletcher/chronos/timeliney/herodot, NEVER Python); charts → cetz-plot (simple) → lilaq (complex) → matplotlib (last resort); images → /image-search / /mindmap / MCP.
| Content pattern | Visual | Tool |
|---|---|---|
| Comparison of 2+ items, attribute grids | Table or grid | Typst native |
| Callout boxes, styled layouts | rect(), block() | Typst native |
| Sequential process, decision logic | Flowchart / decision tree | fletcher |
| System architecture, ER diagrams | Block / entity diagram | fletcher |
| Hierarchy or taxonomy | Tree diagram | fletcher or |
See typst/references/tool-routing.md for full details, examples, and fallback chains.
Always add alt: text on all images
Always #set figure(placement: auto)
Write COMPLETE .typ file — not batches
For large docs (>30 pages): write in sections but don't pause between them
\pause or overlay commands (check project rules)typst compile FILE.typ (or format-appropriate command)
typst compile FILE.typ /tmp/create-preview-{0p}.png --pages [SAMPLE]typst query for heading count, figure countDeliver a summary:
## Created: [filename]
| Metric | Value |
|--------|-------|
| Pages | [N] |
| Sections | [N] |
| Visuals | [N figures, N diagrams] |
| Compile | PASS |
| Visual check | PASS / [issues noted] |
| Template | [template used] |
| Style inherited from | [sibling file or "none"] |
| Materials discovered | [list or "none"] |
**What could break:** [list risks]
**Next steps:** `/review` for deep audit · `/finish` for full pipeline · `/excellence` for milestone
.png/.svg for Typst embedding, .parquet for data persistence[ ] Document compiles without errors
[ ] No overflow issues (verified via PNG)
[ ] All citations resolve
[ ] Every definition has motivation + worked example
[ ] Max 2 colored boxes/callouts per slide/page
[ ] 2-3 Socratic questions embedded (for slides)
[ ] Transition slides between sections (for slides)
[ ] Visual aids present where content benefits from them
[ ] New notation added to knowledge base
#pause (touying) — max 2-3 per slide#speaker-note[...] for presenter contexttypst/references/touying-guide.md)\pause or overlay commandsWeekly Installs
1
Repository
GitHub Stars
2
First Seen
1 day ago
Security Audits
Gen Agent Trust HubWarnSocketFailSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
31,600 周安装
@local/qkgemini-generate-image/mindmap| Topic overview, concept map | Mind map | /mindmap |
| Request-response, API flows | Sequence diagram | chronos |
| Project schedule, phases | Gantt chart | timeliney |
| Historical events, evolution | Timeline | herodot |
| Data trend, distribution (< 3 series) | Line/area/scatter chart | cetz-plot |
| Complex chart (4+ series, annotations) | Publication chart | lilaq |
| Company logo, brand mark | Logo | /image-search --logo |
| Real-world photo | Photo | /image-search |
| Conceptual illustration, metaphor | AI-generated image | gemini-generate-image MCP |