搜索

PythonReactSEOPDF
GitHub Skill

quarto-qmd-cli-rendering

Render or build or compile Quarto .qmd files from the command line.

crossxwill☆ 5 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Goal

When asked to “render”, “build”, “preview”, or “compile” a Quarto .qmd, respond with quarto CLI commands that are copy-pastable and include brief, practical notes.

Include a short note that the terminal will show per-cell progress lines like:

Cell 1/3 '{cell-label}'.....Done
Cell 2/3 '{cell-label}'.....Done
Cell 3/3 '{cell-label}'.....Done

Output created: {file-name}

Some cells finish quickly while others can take a long time; the agent should be patient and wait for completion. For example, the following terminal indicates that cell 2 is still running:

Cell 1/3 '{cell-label}'.....Done
Cell 2/3 '{cell-label}'.....

Assumptions

  • Quarto CLI is installed and available as quarto.
  • The user can run commands from a terminal in the relevant directory, or will provide an explicit path.
  • The target output format is either defined in YAML, or the user will specify it.

Core rules

  • Single-file render: use quarto render <file.qmd>.
  • Project/directory render: use quarto render or quarto render <dir> (named project directory).
  • Prefer explicit success signaling in scripts, but match the user's shell:
    • PowerShell: append ; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
    • bash/sh: append && echo "Render finished"
  • If the user says “render sequentially” or “low RAM”, render one file at a time (do not suggest parallel execution).

Render a single .qmd

Minimal pattern:

quarto render <file.qmd>

Optional explicit success signal (choose ONE depending on shell):

quarto render <file.qmd> ; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
quarto render <file.qmd> && echo "Render finished"

Sequential rendering (low RAM)

Use sequential rendering when the user requests:

  • “One at a time.”
  • “No parallelism.”
  • “Low RAM” or “don’t run everything at once.”
  • “Render each qmd and stop on error.”

Instructions:

  1. Render exactly one file:
    • PowerShell: quarto render <file.qmd> ; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
    • bash/sh: quarto render <file.qmd> && echo "Render finished"
  2. Wait until the command exits (i.e., when the terminal shows "Render finished") before proceeding to the next file.
  3. If it fails, fix the current .qmd, then re-run the same command until it succeeds.
  4. Continue to the next .qmd only after the current one succeeds.
  5. The command succeeds when there are no error messages in the terminal and you see Render finished.

Skill scope

Use this skill when:

  • The user mentions .qmd, Quarto, “render/build/compile/preview”, CI, Makefiles, or scripting.

Do not use this skill when:

  • The user explicitly wants GUI-only steps (RStudio/VS Code) with no CLI commands.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!