Back to Skills

install-putior

pjt222
Updated 2 days ago
8 views
17
2
17
View on GitHub
Metaaiapimcpautomationdesign

About

This skill installs and configures the `putior` R package for workflow visualization, handling both CRAN and GitHub installations along with optional dependencies. It verifies the complete annotation-to-diagram pipeline and is used for initial setup, environment preparation, or restoring installations after upgrades. Developers should use it when a downstream skill requires `putior` or when setting up a machine for workflow visualization tasks.

Quick Install

Claude Code

Recommended
Primary
npx skills add pjt222/agent-almanac -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternative
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/install-putior

Copy and paste this command in Claude Code to install this skill

Documentation

裝 putior

裝 putior R 包及其可選依賴使注解至圖之管線可用。

用時

  • 於項目或環境首次設 putior
  • 為工作流可視化任務備機
  • 下游技能(analyze-codebase-workflow、generate-workflow-diagram)需 putior 已裝
  • R 版升或 renv 清後還原環境

  • 必要:可達之 R 裝(>= 4.1.0)
  • 可選:自 CRAN(默)或 GitHub 開發版裝
  • 可選:所裝之可選依組:MCP(mcptoolsellmer)、交互(shinyshinyAce)、日志(logger)、ACP(plumber2

第一步:驗 R 裝

確 R 可得且合最低版需。

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 版串已印,>= 4.1.0。

敗則: 裝或升 R。Windows 者自 https://cran.r-project.org/bin/windows/base/ 下。Linux 用 sudo apt install r-base

第二步:裝 putior

自 CRAN(穩)或 GitHub(開發)裝。

# CRAN (recommended)
install.packages("putior")

# GitHub dev version (if latest features needed)
remotes::install_github("pjt222/putior")

得: 包無誤裝。library(putior) 默載。

敗則: 若 CRAN 裝敗報「此 R 版無」,用 GitHub 版。若 GitHub 敗,察 remotes 已裝:install.packages("remotes")

第三步:裝可選依賴

依所需功能裝可選包。

# 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")

得: 每包無誤裝。

敗則: mcptools 者,確 remotes 先裝。Linux 系統依誤者,裝所需庫(如 httr2 依之 sudo apt install libcurl4-openssl-dev)。

第四步:驗裝

行基本管線以確皆作。

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 流程圖碼印於控制台含 testHello putior

要默認:所有掃函(put()put_auto()put_generate()put_merge())默 recursive = TRUE,自動掃子目錄。此為 0.2.0 前版默 FALSE 之破變。所有掃函亦受 exclude 參為正則檔過(如 put("./src/", exclude = "test_"))。

若可選 shiny 包已裝,試交互沙盒:

putior::run_sandbox()

此啟瀏覽器編輯器,可試 PUT 注解語法並實時見圖渲染。

敗則:put 未找,包未正裝。以 install.packages("putior", dependencies = TRUE) 重裝。若圖空,驗臨檔已創且注解語法用雙引號內單引號。

  • library(putior) 無誤載
  • packageVersion("putior") 返有效版
  • put() 於含有效 PUT 注解之檔返一行資料框
  • put_diagram() 生始以 flowchart 之 Mermaid 碼
  • 所請可選依賴皆無誤載

  • 引號嵌套誤:PUT 注解內用單引號:id:'name'
  • 如此:非 id:"name"(某語境中與注解串分隔衝)
  • vignettes 缺 Pandoc:若擬本地建 putior vignettes
  • 需確 .RenvironRSTUDIO_PANDOC
  • renv 隔離:若項目用 renv,必於 renv 庫中裝 putior
  • renv::install("putior")install.packages("putior")
  • GitHub 速限:無 GITHUB_PAT 自 GitHub 裝 mcptools 或敗
  • 宜以 usethis::create_github_token() 設之

  • analyze-codebase-workflow — 裝後次步察庫
  • configure-putior-mcp — 裝可選依後設 MCP 伺服器
  • manage-renv-dependencies — 於 renv 環境管 putior
  • configure-mcp-server — 通用 MCP 伺服器配置
  • generate-workflow-diagram — 裝後生工作流圖之下游技能
  • annotate-source-files — 注源檔為前提步驟

GitHub Repository

pjt222/agent-almanac
Path: i18n/wenyan/skills/install-putior
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

polymarket

Meta

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

View skill

creating-opencode-plugins

Meta

This skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill