install-putior
について
このスキルは、ワークフロー可視化のためのRパッケージ`putior`をインストールおよび設定し、CRANとGitHubの両方のインストール方法とオプションの依存関係を扱います。アノテーションからダイアグラムまでの完全なパイプラインが機能することを検証します。初期セットアップ、環境準備、またはアップグレード後の環境復旧時にご利用ください。
クイックインストール
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/install-putiorこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Install putior
Install putior R pkg + optional deps → annotation-to-diagram pipeline ready.
Use When
- First-time setup in project/env
- Prep machine for workflow viz
- Downstream skill (analyze-codebase-workflow, generate-workflow-diagram) needs it
- Restore after R ver upgrade / renv wipe
In
- Required: R install (≥4.1.0)
- Optional: CRAN (default) or GitHub dev ver
- Optional: opt deps: MCP (
mcptools,ellmer), interactive (shiny,shinyAce), logging (logger), ACP (plumber2)
Do
Step 1: Verify R install
R.Version()$version.string
# Must be >= 4.1.0
# From WSL with Windows R
"/mnt/c/Program Files/R/R-4.5.2/bin/Rscript.exe" -e "cat(R.version.string)"
→ R version printed, ≥4.1.0.
If err: install/upgrade R. Windows → https://cran.r-project.org/bin/windows/base/. Linux → sudo apt install r-base.
Step 2: Install putior
# CRAN (recommended)
install.packages("putior")
# GitHub dev version (if latest features needed)
remotes::install_github("pjt222/putior")
→ Installs no errors. library(putior) loads silently.
If err: CRAN fails "not available for R ver" → use GitHub. GitHub fails → check remotes installed: install.packages("remotes").
Step 3: Optional deps
# MCP server integration (for AI assistant access)
remotes::install_github("posit-dev/mcptools")
install.packages("ellmer")
# Interactive sandbox
install.packages("shiny")
install.packages("shinyAce")
# Structured logging
install.packages("logger")
# ACP server (agent-to-agent communication)
install.packages("plumber2")
→ Each installs no errors.
If err: mcptools → remotes first. Linux system dep errs → install libs (e.g., sudo apt install libcurl4-openssl-dev for httr2).
Step 4: Verify
library(putior)
# Check package version
packageVersion("putior")
# Verify core functions are available
stopifnot(
is.function(put),
is.function(put_auto),
is.function(put_diagram),
is.function(put_generate),
is.function(put_merge),
is.function(put_theme)
)
# Test basic pipeline with a temp file
tmp <- tempfile(fileext = ".R")
writeLines("# put id:'test', label:'Hello putior'", tmp)
cat(put_diagram(put(tmp)))
→ Mermaid flowchart w/ test + Hello putior.
Key defaults: All scan fns (
put(),put_auto(),put_generate(),put_merge()) defaultrecursive = TRUE, scan subdirs auto. Breaking change from pre-0.2.0 where default was FALSE. All acceptexcludeparam for regex file filtering (e.g.,put("./src/", exclude = "test_")).
If shiny installed → interactive sandbox:
putior::run_sandbox()
Browser-based editor for PUT annotation syntax + real-time diagrams.
If err: put not found → pkg didn't install correctly. Reinstall install.packages("putior", dependencies = TRUE). Empty diagram → verify temp file + annotation uses single quotes inside double.
Check
-
library(putior)loads no errors -
packageVersion("putior")valid version -
put()on valid PUT annotation → DF w/ 1 row -
put_diagram()→ Mermaid startingflowchart - All requested opt deps load no errors
Traps
- Wrong quote nesting: PUT uses single quotes inside annotation:
id:'name'notid:"name"(conflicts w/ comment string delim). - Missing Pandoc for vignettes: build local → set
RSTUDIO_PANDOCin.Renviron. - renv isolation: renv project → install inside renv lib:
renv::install("putior")notinstall.packages(). - GitHub rate limits:
mcptoolsfrom GitHub may fail w/oGITHUB_PAT. Set viausethis::create_github_token().
→
analyze-codebase-workflow— next step post-installconfigure-putior-mcp— MCP server after opt depsmanage-renv-dependencies— putior within renv envconfigure-mcp-server— general MCP config
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を選択してください。
