Deploy to Posit Connect
A staged playbook for publishing Python, R, and static content to a Posit Connect server with the correct commands and flags.
Dev & CodingIntermediate★ 574⑂ 62AI score 8/10Last updated: Nov 12, 2026
What it does
- Detects content type and framework from project files (
app.py,app.R,plumber.R,*.qmd,manifest.json, bare scripts). - Inventories available tooling (
posit,rsconnect,uv,Rscript,quarto, Connect MCP server) and picks the most viable deploy route. - Gives exact commands —
posit connect deploy <framework>,rsconnect::deployApp()/deployDoc()/deploySite()— plus non-obvious flags like-N,-a,-E, and--draft. - Defaults to browser-based OAuth login and explicitly forbids scavenging API keys from env vars,
.envfiles, or keychains. - Triages common failures: auth errors, missing
requirements.txt, self-signed TLS, and the-nvsCONNECT_SERVERconflict.
Who it's for
- Data scientists shipping Shiny, Streamlit, Dash, Panel, or Quarto content to an internal Posit Connect server.
- Mixed R/Python teams who keep forgetting which publish function to call.
- Engineers automating deploys in CI or headless environments.
Examples
- "Deploy this Streamlit app to dogfood" → confirms the framework, runs
posit connect deploy streamlit ./my-app -n dogfood, and unsets a conflictingCONNECT_SERVER. - "Publish just this R Markdown report" → selects
rsconnect::deployDoc()and suggests passingappTitle. - "No Rscript in this container but I need to ship an R app" → routes through
manifest.json, or surfaces it clearly as a blocker.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/posit-dev/skills/HEAD/connect/deploy-to-connect/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the connect/deploy-to-connect folder from the GitHub repo posit-dev/skills into my ~/.claude/skills/deploy-to-connect/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/posit-dev/skills.git /tmp/posit-skills && mkdir -p ~/.claude/skills && cp -r /tmp/posit-skills/connect/deploy-to-connect ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/posit-dev/skills.git /tmp/posit-skills - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r /tmp/posit-skills/connect/deploy-to-connect ~/.claude/skills/ - Restart Claude Code and ask something like "deploy this app to Posit Connect" to trigger it.
- (Optional) Pre-install the CLI with
uv tool install posit-cliorpip install posit-clifor a smoother run.
View source on GitHub ↗License: MIT