deploy-to-connect
БесплатноБез исполняемых скриптовНе проверенDeploy or publish Python and R content to a Posit Connect server using rsconnect-python or the R rsconnect package. Handles interactive apps and dashboards…
от posit-dev★ 578 звёзд на GitHubОб этом скилле
Deploying to Posit Connect
This guide covers Python, R, and static content on a Connect server. A registered Connect Model Context Protocol (MCP) server can also provide publishing tools.
Choose the deployment route that matches the content and available tools:
- Python — posit-cli, which provides the
positCLI and is published on PyPI. Itsposit connectcommands wrap rsconnect-python. - R — the R
rsconnectpackage, pointed at a Connect server. - A registered Connect MCP server — use its publishing tools when they support the content.
If the user asks a question ("how do I…", "what is the command…") rather than asking for a deploy, answer from this guide and stop.
At the end, report which server you deployed to, which content type you picked, any tool you installed, and any assumption you made.
Stage 1 — Detect the content
Infer the language and framework from the files in the project directory. Common signals:
| Signal in project dir | Likely content |
|---|---|
app.py |
Python web app — Shiny for Python, Streamlit, Dash, Gradio, Panel, or Bokeh |
app.R, or ui.R + server.R |
Shiny for R |
plumber.R / entrypoint.R containing plumb() |
Plumber API (R) |
*.qmd |
Quarto document |
*.Rmd |
R Markdown |
*.ipynb |
Jupyter notebook / Voila |
index.html, or a directory containing HTML, CSS, JavaScript, or image files |
Static HTML site |
manifest.json |
Prebuilt bundle — deploy it directly, no framework guess needed |
A bare .py or .R — no framework import, no ui.R/server.R/plumber.R/entrypoint.R alongside |
Script — a batch/ETL job that Quarto renders and Connect can schedule |
Confirm the guess
The imports in app.py name the framework:
grep -Eo 'import (shiny|streamlit|dash|gradio|panel|bokeh)|from (shiny|streamlit|dash|gradio|panel|bokeh)' app.py
A bare ASGI or WSGI object means fastapi or flask.
Dependency files confirm the language: requirements.txt and pyproject.toml for Python, DESCRIPTION and renv.lock for R.
Quarto renders a script only if it opens with a front-matter comment: # %% [markdown] around a --- block in Python, #' --- in R. Most scripts lack one — add it before the deploy (Stage 5).
If the content is ambiguous (both Python and R files, or an app.py with no recognizable import), use your discretion, and report the assumption you made.
Stage 2 — Inventory your tools
Probe the environment and build a capability set:
command -v posit # posit-cli on PATH
command -v rsconnect # rsconnect-python on PATH
command -v uv # uv (installs and runs Python tools)
uv tool list 2>/dev/null | grep posit-cli # posit-cli installed via uv
command -v Rscript # R present
Rscript -e 'cat(requireNamespace("rsconnect", quietly=TRUE))' 2>/dev/null # R rsconnect package
command -v quarto # quarto CLI
command -v git # git
With uv present, Python content needs no install step. uv tool run --from posit-cli posit ... fetches and runs the CLI on demand.
If an authenticated Connect MCP server is registered, include its publishing tools in the capability set.
Stage 3 — Pick a route
Cross the detected content (Stage 1) with your capabilities (Stage 2).
Registered Connect MCP server
If a registered Connect MCP server offers publishing tools for this content, follow the guidance provided by that server. Otherwise, use a publishing client below.
Python content
Use posit-cli. With posit on PATH:
posit connect deploy <framework> ./my-app
Off PATH but with uv present:
uv tool run --from posit-cli posit connect deploy <framework> ./my-app
Both forms take identical arguments. The rest of this guide writes the bare posit connect ... form. Prefix it with uv tool run --from posit-cli when you use the second route.
posit connect mounts the full rsconnect command set, so posit connect <command> and rsconnect <command> take the same arguments and share the same saved servers. If rsconnect is on PATH and you cannot get posit, run rsconnect <command> in place of posit connect <command>.
<framework> is one of api, bokeh, bundle, dash, fastapi, flask, git, gradio, html, manifest, nodejs, notebook, panel, pyproject, quarto, shiny, streamlit, tensorflow, voila. For anything outside that list, posit connect deploy other-content prints guidance.
The frameworks and flags depend on the instal
Установить deploy-to-connect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл deploy-to-connect?
Deploy or publish Python and R content to a Posit Connect server using rsconnect-python or the R rsconnect package. Handles interactive apps and dashboards, web APIs, rendered documents, and prepared bundles/manifests. Use whenever the user asks to deploy, publish, or redeploy content to Posit Connect, or mentions rsconnect. Consult this skill instead of guessing flags or commands.
Как установить скилл deploy-to-connect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deploy-to-connect запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic