跳到正文
Skillpedia
写作16k · #10802

quarkdown

它能做什么

Quarkdown 是一种写作格式,在纯 Markdown 的基础上增加了版式、函数和数学公式。这个技能适合希望制作排版精美的文章、报告或幻灯片的人。

适用场景

  • ✓当你想制作比普通 Markdown 版式控制更强的精美文章、报告或书籍时。
  • ✓当你需要把计划转换为可用于演示的文档或幻灯片时。
  • ✓当你正在编辑现有的 .qd 文件,需要添加函数或版式时。

技能链接

https://github.com/iamgio/quarkdown/blob/main/skills/quarkdown/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/iamgio/quarkdown/blob/main/skills/quarkdown/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Locate the install dir (snippet above).
  2. Read docs/wiki/_nav.qd, then docs/wiki/quickstart.qd if you don't know the syntax yet.
  3. Read the specific wiki pages relevant to the task, and stdlib API pages under docs/ when you need exact function signatures.
  4. Write the .qd file.
  5. Compile to verify: quarkdown c <main>.qd --strict --out /tmp/quarkdown-verify. <main> is usually main.qd but confirm against the project. --strict surfaces errors; --out /tmp/quarkdown-verify keeps build artifacts out of the user's project (otherwise output lands in ./quarkdown-output relative 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.
  6. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能