Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill managing-streamlit-apps -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/managing-streamlit-apps/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/managing-streamlit-apps/

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.

Similar skills

All skills for Data and databases →

From the same set82

The whole set →
copying-endpoints-across-projects copying-endpoints-across-projects duplicates PostHog API endpoints across projects in the same organization or clones them under a new name. Useful for promoting HogQL endpoints between environments. CX Codex +1 183installs signals-scout-conversations The signals-scout-conversations skill checks PostHog Conversations analytics for SLA breaches, slow first replies, and support-queue imbalances. Use it to spot operational changes across tickets. CX Codex +1 183installs setting-up-data-catalog setting-up-data-catalog fills a project's data catalog: canonical metric definitions, trust marks on warehouse tables, and reviewed join proposals. CX Codex +1 182installs signals-scout-tasks signals-scout-tasks — a scout skill for PostHog Tasks: it tracks how task runs get delivered and, on a slower pass, looks for the same request coming up again in tasks people wrote. CX Codex +1 179installs modeling-activation-metrics modeling-activation-metrics builds an activation model: a per-user or per-account activated flag plus an activation-rate metric. Useful while the “aha moment” is still a guess. CX Codex +1 178installs modeling-conversion-metrics modeling-conversion-metrics builds a reusable conversion model: funnel steps, a conversion window, drop-off and time to convert. Works on PostHog warehouse views in HogQL or in a dbt project. CX Codex +1 178installs writing-streamlit-apps The writing-streamlit-apps skill guides Python code for Streamlit apps that read PostHog data inside a sandbox. Use it when building or debugging dashboards with tables and charts. CX Codex +1 177installs modeling-revenue-metrics modeling-revenue-metrics builds reusable revenue models for MRR, ARR, churn, ARPU and LTV from PostHog views or dbt. Use it for revenue analysis by customer, product or period. CX Codex +1 175installs

Project sponsors

Companies that keep this analytics open