Render or build or compile Quarto .qmd files from the command line.
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}'.....
quarto.quarto render <file.qmd>.quarto render or quarto render <dir> (named project directory).; if ($LASTEXITCODE -eq 0) { echo "Render finished" }&& echo "Render finished".qmdMinimal 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"
Use sequential rendering when the user requests:
Instructions:
quarto render <file.qmd> ; if ($LASTEXITCODE -eq 0) { echo "Render finished" }quarto render <file.qmd> && echo "Render finished".qmd, then re-run the same command until it succeeds..qmd only after the current one succeeds.Render finished.When Quarto reports a failing cell:
Cell 47/124: 'calibration-s2')..qmd plus one neighboring chunk that implements the same pattern.Prefer local chunk comparisons over broad repo exploration; most render failures are plain code or markdown defects inside the current .qmd.
Use this skill when:
.qmd, Quarto, “render/build/compile/preview”, CI, Makefiles, or scripting.Do not use this skill when:
Quarto looks for python3 on the PATH, but conda environments only provide python (not python3). Fix by setting the QUARTO_PYTHON environment variable to the full path of the Python executable before running quarto render.
First, find the Python path:
conda activate <env_name>; python -c "import sys; print(sys.executable)"
Then use it when rendering:
conda activate <env_name>; $env:QUARTO_PYTHON = "<full-python-path>"; quarto render <file.qmd>; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
Example:
conda activate env_AutoGluon_202502; $env:QUARTO_PYTHON = "C:\Users\chiuw\miniforge3\envs\env_AutoGluon_202502\python.exe"; quarto render Labs/Lab_01.qmd; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
This occurs when Quarto's internal cache is stale or was created by a different Quarto version. The error often manifests during Sass compilation for revealjs themes.
Fix: Clear all Quarto cache directories recursively before rendering:
conda activate <env_name>; Get-ChildItem -Recurse -Directory -Filter "_quarto*" | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue; Get-ChildItem -Recurse -Directory -Filter ".quarto*" | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue; Get-ChildItem -Recurse -Directory -Filter "_site*" | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue; echo "All caches cleared"
Then retry the render with --no-cache:
conda activate <env_name>; $env:QUARTO_PYTHON = "<full-python-path>"; quarto render <file.qmd> --no-cache; if ($LASTEXITCODE -eq 0) { echo "Render finished" }
Harmless cleanup error. Use -ErrorAction SilentlyContinue on Remove-Item commands to suppress it. Does not affect render output.
This is common for notebook-backed .qmd files that train models or generate large reports. A terminal line such as:
Cell 29/124: 'lab04-fit-autogluon-s1'...............
does not imply a hang by itself.
Before treating it as stalled:
If those checks show activity, keep waiting. Long AutoGluon or SHAP cells can legitimately run for many minutes.
Do not restart broad debugging. Use the exact failing cell and traceback to inspect the local chunk first.
Common causes in .qmd code cells:
displayBefore rendering any .qmd in this project, always:
conda activate env_AutoGluon_202502$env:QUARTO_PYTHON to the conda env's Python executable--no-cache if cache issues persist; if ($LASTEXITCODE -eq 0) { echo "Render finished" }time_limit settings. Cells that train models (e.g., TabularPredictor.fit()) are the bottleneckAlways use mode='async' when running render commands and poll with get_terminal_output until the success signal appears.
npx skills add crossxwill/quarto-qmd-cli-rendering下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer