用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/crossxwill/IML4Finance --skill quarto-qmd-cli-rendering命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Edit Quarto (.qmd) and Markdown (.md) files with proper nested code block handling to prevent parser errors and truncated output; standalone utility with no skill dependencies.
Consolidated AutoGluon skill covering end-to-end TabularPredictor workflow (constructor, fit, predict_proba, fit_summary, save/load, set_model_best), binary threshold calibration and setting, sklearn wrapper integration, and monotonic constraints. Use for any AutoGluon Tabular questions, training/ensembling configuration, inference/probabilities, threshold tuning, deployment persistence, or sklearn interoperability.
Create a concise plan. Use when a user explicitly asks for a plan related to a coding task.
基于 SOC 职业分类
正在显示 SKILL.md
| name | quarto-qmd-cli-rendering |
| description | 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.