/ 目錄 / 演練場 / skills
● 社群 posit-dev ⚡ 即開即用

skills

作者 posit-dev · posit-dev/skills

Posit's curated Claude Skills collection — R, data-science, Quarto, and workflow skills from the people behind RStudio and Shiny.

Posit Skills is the skill pack from Posit (RStudio/Shiny). It's biased toward R and data-science workflows but covers Quarto authoring, package development, and reproducible analysis patterns. Higher quality bar than most community collections because Posit ships it as a vendor-maintained catalog.

為什麼要用

核心特性

即時演示

實際使用效果

skills-skill-2.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "skills-skill-2": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/posit-dev/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "skills-skill-2": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/posit-dev/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "skills-skill-2": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/posit-dev/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "skills-skill-2": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/posit-dev/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "skills-skill-2",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/posit-dev/skills",
        "~/.claude/skills/skills"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "skills-skill-2": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/posit-dev/skills",
          "~/.claude/skills/skills"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add skills-skill-2 -- git clone https://github.com/posit-dev/skills ~/.claude/skills/skills

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: skills

How to scaffold a proper R package

👤 R developers starting a new package and wanting usethis/devtools conventions ⏱ ~30 min intermediate

何時使用: You're tired of hand-writing DESCRIPTION, NAMESPACE, and roxygen2 boilerplate.

前置條件
  • Skill installed — git clone https://github.com/posit-dev/skills ~/.claude/skills/posit-skills
  • R + devtools — install.packages('devtools')
步驟
  1. Scaffold
    Use Posit R-package skill. Create a new package 'tidylaundry' with 2 exported functions: wash() and fold().✓ 已複製
    → Directory with DESCRIPTION, NAMESPACE, R/, tests/testthat/, README
  2. Add roxygen
    Add roxygen2 docs with @param, @return, @examples for each function.✓ 已複製
    → Inline docs that devtools::document() converts to man/
  3. Smoke test
    Write testthat tests covering happy path + one edge case each.✓ 已複製
    → Tests passing under devtools::test()

結果: A package that passes R CMD check on day one.

注意事項
  • Generated code uses base R where tidyverse would be clearer (or vice versa) — State the style preference upfront

Author a reproducible Quarto report

👤 Analysts publishing reports with code + narrative ⏱ ~45 min intermediate

何時使用: You need to share analysis with stakeholders in a reproducible format.

步驟
  1. Scaffold Quarto doc
    Use Posit Quarto skill. Create a report template with YAML header, exec defaults, and Tufte theme.✓ 已複製
    → .qmd file with chunked code + narrative
  2. Fill with analysis
    Load data/sales.csv and produce a monthly revenue chart with ggplot + a 2-paragraph insight.✓ 已複製
    → Chunks that render to HTML/PDF
  3. Pin environment
    Capture versions with renv::snapshot().✓ 已複製
    → renv.lock produced

結果: A reproducible report anyone can re-render given the data.

注意事項
  • Quarto render fails silently on missing system deps — Check quarto check output; common issue is missing tinytex or chromium for PDF

Scaffold a Shiny app with modern patterns

👤 R developers building internal apps ⏱ ~40 min intermediate

何時使用: New Shiny app, want modules + bslib theming from the start.

步驟
  1. Scaffold
    Use Posit Shiny skill. Create an app with bslib::page_fluid, 2 modules: upload + plot.✓ 已複製
    → app.R with module files in R/
  2. Add reactive flow
    Wire upload module's reactive output into plot module's input.✓ 已複製
    → Reactives connected; app runs

結果: A modular Shiny app that's easy to extend.

組合

與其他 MCP 搭配,撬動十倍槓桿

Use Posit skills as reference patterns when authoring new skills

Show me the structure of a Posit skill, then /build a parallel skill for Julia package dev.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
R package scaffolding - New package 0
Quarto authoring - Reports and docs 0
Shiny patterns - Internal app dev 0
Reproducibility (renv) - Pinning environment 0

成本與限制

運行它的成本

API 配額
None
每次呼叫 Token 數
Varies per skill
費用
Free
提示
R package scaffolds are small token-wise; Quarto with data analysis can balloon.

安全

權限、密鑰、影響範圍

憑證儲存: No credentials
資料出站: None by default

故障排查

常見錯誤與修復

Generated R code uses outdated tidyverse APIs

State target package versions: 'dplyr 1.1+, tidyselect 1.2+'

Skill not triggered on R contexts

Claude auto-triggers on file extensions; explicitly invoke 'Use Posit R skills ...' to guarantee

替代方案

skills 對比其他方案

替代方案何時用它替代權衡
Hand-written with usethisYou already know the conventions coldMore control, slower setup

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills