quarkdown
它能做什么
Quarkdown 是一种写作格式,在纯 Markdown 的基础上增加了版式、函数和数学公式。这个技能适合希望制作排版精美的文章、报告或幻灯片的人。
适用场景
- ✓当你想制作比普通 Markdown 版式控制更强的精美文章、报告或书籍时。
- ✓当你需要把计划转换为可用于演示的文档或幻灯片时。
- ✓当你正在编辑现有的 .qd 文件,需要添加函数或版式时。
技能链接
https://github.com/iamgio/quarkdown/blob/main/skills/quarkdown/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 Quarkdown 格式为我写一份简短报告,我可以导出为 PDF。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用简单的函数调用和版式命令编写文本,然后 Quarkdown 工具会把文件编译为 HTML、PDF 或纯文本。该技能会指引智能体查阅随附的 wiki 获取帮助。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Quarkdown
Quarkdown is a Markdown flavor and typesetting system. It compiles .qd source files to HTML, PDF, or plaintext, extending CommonMark/GFM with function calls, variables, layouts, math, custom themes, and document types. Think of it as a more readable LaTeX.
When to use
Use this skill when the user wants to write or edit a .qd file, or asks for typeset output (PDF, slides, paged article, themed wiki) instead of plain Markdown. Also when they want a polished, shareable version of a plan or report.
Do not use it when plain Markdown is the final target (chat, READMEs, GitHub issues).
New projects
If the user wants to start a new Quarkdown project, tell them to run quarkdown create [dir] themselves. It's an interactive wizard that prompts for values. Don't scaffold project files by hand.
Locating the bundled docs
Quarkdown ships a full offline copy of its wiki and stdlib API reference. Resolve the install dir once:
QUARKDOWN_INSTALL="$(quarkdown doctor get install-dir)"
Resources under $QUARKDOWN_INSTALL:
docs/wiki/_nav.qd: wiki index. Start here to find pages by topic.docs/wiki/*.qd: individual wiki pages.docs/wiki/quickstart.qd: read this first if you are new to Quarkdown.docs/quarkdown-stdlib/: stdlib API reference (function signatures, parameters, return types) as HTML.
Read the relevant wiki pages before writing anything non-trivial.
Workflow
- Locate the install dir (snippet above).
- Read
docs/wiki/_nav.qd, thendocs/wiki/quickstart.qdif you don't know the syntax yet. - Read the specific wiki pages relevant to the task, and stdlib API pages under
docs/when you need exact function signatures. - Write the
.qdfile. - Compile to verify:
quarkdown c <main>.qd --strict --out /tmp/quarkdown-verify.<main>is usuallymain.qdbut confirm against the project.--strictsurfaces errors;--out /tmp/quarkdown-verifykeeps build artifacts out of the user's project (otherwise output lands in./quarkdown-outputrelative to your CWD).- PDF export (
--pdf) is slower because it spins up a headless browser. Only use it when the user asks for a PDF. - Never run live preview (
-p,-w) yourself; it starts a long-running web server. Suggest the command to the user instead.
- PDF export (
- Report any compile errors back to the user.
常见问题
我需要先了解 Markdown 吗?
了解会有帮助,因为 Quarkdown 是在 Markdown 基础上扩展的。不过该技能的写法让智能体能够跟随随附的指南工作。
它能为我创建新项目吗?
该技能要求你自己运行 quarkdown create 命令,因为它是一个交互式向导。
帮助信息从哪里来?
Quarkdown 安装包中包含离线 wiki 和标准库参考,智能体会读取它们。
详情
作者的原始描述
Author Quarkdown (.qd) documents, a Markdown-superset typesetting language that compiles to HTML, PDF, or plaintext. Use when the user wants to write or edit .qd files, produce typeset output (articles, reports, slides, books, wikis, notes, static sites) beyond what plain Markdown offers, or share structured plans in a presentation-ready format. Quarkdown adds function calls (`.func {arg}`), variables, layouts, math, diagrams, and document types (plain/paged/slides/docs).
repo: iamgio/quarkdown
热度
- GitHub 星标
- 16k
- 排名
- #10802
- 许可证
- GPL-3.0
- 更新时间
- 2026/11/1
评论
- …