managing-streamlit-apps — Claude Code skill: features and setup
managing-streamlit-apps controls Streamlit apps in PostHog sandboxes using MCP tools, handling everything from provisioning to safe code patching.
no license 179 installs ★ 101 updated 2026-10-24
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a claude-codeWhat managing-streamlit-apps does
This skill guides the agent through operating Streamlit data apps inside PostHog sandboxes via streamlit-apps-* MCP tools. The model initializes the app entry, uploads app.py alongside extra text files or binary assets, triggers container boot, and surfaces the internal authenticated URL.
Code modifications follow a strict two-step pattern: reading active files with streamlit-apps-get-source and applying precise diffs with streamlit-apps-edit-source. If a teammate commits a revision in the meantime, the tool returns a 409 conflict to prevent overwriting newer work. Inactive versions past 30 days are pruned automatically.
Without the streamlit-apps feature flag enabled for the PostHog organization, all tool calls fail with HTTP 403. Bumping container memory beyond the default 1 GB will not fix failing HogQL queries, because the data bridge enforces an immutable 256 MB cap and a 30-second runtime ceiling.
What it helps with
- deploy a Streamlit sandbox directly within a PostHog organization
- apply safe text patches without clobbering concurrent revisions
- adjust sandbox CPU allocations and memory limits
- inspect sandbox boot errors and restart stopped instances
Example prompts for the agent
- Deploy a new Streamlit app in PostHog using the code from app.py
- Check sandbox status and start the app again if it went idle
- Patch the active version of the PostHog dashboard to update metrics logic
How to install managing-streamlit-apps
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a claude-code2Manually: put the files in place
~/.claude/skills/managing-streamlit-apps/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/managing-streamlit-apps/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a codex2Manually: put the files in place
.agents/skills/managing-streamlit-apps/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a cursor2Manually: put the files in place
.cursor/skills/managing-streamlit-apps/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/managing-streamlit-apps2Manually: put the files in place
.github/skills/managing-streamlit-apps/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/managing-streamlit-appsManually: put the files in place
.devin/skills/managing-streamlit-apps/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about managing-streamlit-apps
How to install managing-streamlit-apps in Claude Code?
Run npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a claude-code.
What does managing-streamlit-apps do?
It equips the agent with workflows to create, update, size, and monitor Streamlit sandboxes hosted in PostHog through MCP tools.
Why does adding more RAM to the sandbox fail to resolve query errors?
The PostHog query bridge has a separate server limit of 256 MB and 30 seconds. Allocating more memory to the sandbox process does not alter that boundary.