AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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, .env files, or keychains.
  • Triages common failures: auth errors, missing requirements.txt, self-signed TLS, and the -n vs CONNECT_SERVER conflict.

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

  1. "Deploy this Streamlit app to dogfood" → confirms the framework, runs posit connect deploy streamlit ./my-app -n dogfood, and unsets a conflicting CONNECT_SERVER.
  2. "Publish just this R Markdown report" → selects rsconnect::deployDoc() and suggests passing appTitle.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/posit-dev/skills.git /tmp/posit-skills
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill in: cp -r /tmp/posit-skills/connect/deploy-to-connect ~/.claude/skills/
  5. Restart Claude Code and ask something like "deploy this app to Posit Connect" to trigger it.
  6. (Optional) Pre-install the CLI with uv tool install posit-cli or pip install posit-cli for a smoother run.