render-puzzle-docs
について
このスキルは、GitHub Pages向けにjigsawR Quartoドキュメントサイトをレンダリングし、サイト全体のビルド、単一ページのレンダリング、キャッシュ済みまたは新規レンダリングモードの両方をサポートします。バンドルされたスクリプト、またはWSL経由での直接Quarto呼び出しのいずれかを使用します。開発者は、ドキュメントの更新、反復編集、リリース準備、または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 jigsawR Quarto documentation site.
When Use
- Build full documentation site after content changes
- Render single page during iterative editing
- Prepare documentation for release or PR
- Debug 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 result in browser
Steps
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 current situation: fresh for content changes or stale cache, cached for minor edits, single for iterating on one page.
If fail: Unsure whether cache is stale? Default to fresh render. 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 available via
RSTUDIO_PANDOCenv var - Try clear 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 site structure:
quarto/_site/index.htmlexists- Navigation links resolve correctly
- Images and SVG files render properly
Got: index.html exists and non-empty. Navigation links resolve. Images/SVGs render correctly in browser.
If fail: index.html missing? Render likely failed silently. Re-run with verbose output. Check for R code errors in .qmd chunks. Only some pages missing? Verify those .qmd files 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: Documentation site opens in Windows default browser for visual inspection.
If fail: cmd.exe /c start command fails from WSL? Try explorer.exe "D:\\dev\\p\\jigsawR\\quarto\\_site\\index.html" instead. Or navigate to file manually in browser.
Checks
-
quarto/_site/index.htmlexists and 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: 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_PANDOCset 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
See Also
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を選択してください。
