关于
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 is functional. Use it for initial setup, environment preparation, or when restoring an environment after upgrades.
快速安装
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 仓库
Frequently asked questions
What is the install-putior skill?
install-putior is a Claude Skill by pjt222. Skills package instructions and resources that Claude loads on demand, so Claude can perform install-putior-related tasks without extra prompting.
How do I install install-putior?
Use the install commands on this page: add install-putior to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does install-putior belong to?
install-putior is in the Meta category, tagged ai, api, mcp, automation and design.
Is install-putior free to use?
Yes. install-putior is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
相关推荐技能
Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
