render-puzzle-docs
について
このスキルは、GitHub Pages用にjigsawR Quartoドキュメントサイトをレンダリングし、完全な新規/キャッシュ済みビルドと単一ページレンダリングをサポートします。Quartoファイルの更新公開、反復編集、またはデバッグに使用されます。このツールは、バンドルされたスクリプト経由、またはWSLからの直接Quarto呼び出しによって動作します。
クイックインストール
Claude Code
推奨npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/render-puzzle-docsこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Render Puzzle Docs
Render the jigsawR Quarto documentation site.
When to Use
- Building the full documentation site after content changes
- Rendering a single page during iterative editing
- Preparing documentation for a release or PR
- Debugging render errors in Quarto .qmd files
Inputs
- Required: Render mode (
fresh,cached, orsingle) - Optional: Specific .qmd file path (for single-page mode)
- Optional: Whether to open the result in a browser
Procedure
Step 1: Choose Render Mode
| Mode | Command | Duration | Use when |
|---|---|---|---|
| Fresh | bash inst/scripts/render_quarto.sh | ~5-7 min | Content changed, cache stale |
| Cached | bash inst/scripts/render_quarto.sh --cached | ~1-2 min | Minor edits, cache valid |
| Single | Direct quarto.exe | ~30s | Iterating on one page |
Got: Render mode selected based on the current situation: fresh for content changes or stale cache, cached for minor edits, single for iterating on one page.
If fail: If unsure whether the cache is stale, default to fresh render. It takes longer but guarantees correct output.
Step 2: Execute Render
Fresh render (clears _freeze and _site, re-executes all R code):
cd /mnt/d/dev/p/jigsawR && bash inst/scripts/render_quarto.sh
Cached render (uses existing _freeze files):
cd /mnt/d/dev/p/jigsawR && bash inst/scripts/render_quarto.sh --cached
Single page (render one .qmd file directly):
QUARTO_EXE="/mnt/c/Program Files/RStudio/resources/app/bin/quarto/bin/quarto.exe"
"$QUARTO_EXE" render quarto/getting-started.qmd
Got: Render completes without errors. Output in quarto/_site/.
If fail:
- Check for R code errors in .qmd chunks (look for
#| label:markers) - Verify pandoc is available via
RSTUDIO_PANDOCenv var - Try clearing cache:
rm -rf quarto/_freeze quarto/_site - Check that all R packages used in .qmd files are installed
Step 3: Verify Output
ls -la /mnt/d/dev/p/jigsawR/quarto/_site/index.html
Confirm the site structure:
quarto/_site/index.htmlexists- Navigation links resolve correctly
- Images and SVG files render properly
Got: index.html exists and is non-empty. Navigation links resolve, and images/SVGs render correctly in the browser.
If fail: If index.html is missing, the render likely failed silently. Re-run with verbose output and check for R code errors in .qmd chunks. If only some pages are missing, verify those .qmd files are listed in _quarto.yml.
Step 4: Preview (Optional)
Open in Windows browser:
cmd.exe /c start "" "D:\\dev\\p\\jigsawR\\quarto\\_site\\index.html"
Got: The documentation site opens in the Windows default browser for visual inspection.
If fail: If the cmd.exe /c start command fails from WSL, try explorer.exe "D:\\dev\\p\\jigsawR\\quarto\\_site\\index.html" instead. Alternatively, navigate to the file manually in the browser.
Validation
-
quarto/_site/index.htmlexists and is non-empty - No render errors in console output
- All R code chunks executed successfully (check for error messages)
- Navigation between pages works
- All .qmd files have
#| label:on code chunks for clean output
Pitfalls
- Stale freeze cache: If R code changed, use fresh render to regenerate
_freezefiles - Missing R packages: Quarto .qmd files may use packages not in renv; install them first
- Pandoc not found: Ensure
RSTUDIO_PANDOCis set in.Renviron - Long render times: Fresh render takes 5-7 minutes (14 pages with R execution); use cached mode during iteration
- Code chunk labels: All R code chunks should have
#| label:for clean rendering
Related Skills
generate-puzzle— generate puzzle output referenced in documentationrun-puzzle-tests— ensure code examples in docs are correctcreate-quarto-report— general Quarto document creation
GitHub リポジトリ
関連スキル
content-collections
メタこのスキルは、Content Collections(Markdown/MDXファイルを型安全なデータコレクションに変換するTypeScriptファーストのツール)の本番環境でテストされた設定を提供します。Zodバリデーションによる型安全性を実現し、ブログ、ドキュメントサイト、コンテンツ重視のVite + Reactアプリケーション構築時にご利用ください。Viteプラグインの設定、MDXコンパイルから、デプロイ最適化、スキーマバリデーションまで、すべてを網羅しています。
polymarket
メタこのスキルは、開発者がPolymarket予測市場プラットフォームを活用したアプリケーション構築を可能にします。API統合による取引や市場データの取得に加え、WebSocketを介したリアルタイムデータストリーミングにより、ライブ取引や市場活動を監視できます。取引戦略の実装や、ライブ市場更新を処理するツールの作成にご利用ください。
creating-opencode-plugins
メタこのスキルは、開発者がコマンド、ファイル、LSP操作など25種類以上のイベントタイプにフックするOpenCodeプラグインを作成することを支援します。JavaScript/TypeScriptモジュール向けに、プラグイン構造、イベントAPI仕様、および実装パターンを提供します。カスタムイベント駆動ロジックでOpenCode AIアシスタントのライフサイクルをインターセプト、監視、または拡張する必要がある場合にご利用ください。
sglang
メタSGLangは、高性能なLLMサービングフレームワークであり、RadixAttentionプレフィックスキャッシュを活用したJSON、正規表現、エージェントワークフロー向けの高速で構造化された生成を特長とします。特にプレフィックスが繰り返されるタスクにおいて、大幅に高速な推論を実現し、複雑な構造化出力やマルチターン対話に最適です。制約付きデコードが必要な場合や、広範なプレフィックス共有を伴うアプリケーションを構築する場合は、vLLMなどの代替案ではなくSGLangを選択してください。
