Omnibus
200 skills · 1230 min
Omnibus
Skill 93 of 200
Create, deploy, and operate Streamlit apps in PostHog via the streamlit-apps MCP tools — create an app, set its source, start and stop its sandbox, poll status, list versions…
3 minutes · 639 words · 6 sections
Install
npx skills add PostHog/skills --skill managing-streamlit-appsnpx skills add PostHog/skills/plugin marketplace add PostHog/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
A Streamlit app is a Python data app running in an isolated sandbox inside PostHog.
Each app has immutable versions of its code; one version is active; a sandbox process serves the active version.
The full lifecycle is driven with the streamlit-apps-* MCP tools.
streamlit-apps-create with a name (optionally description, cpu_cores 0.25–8, memory_gb 0.5–16, defaults 0.5 / 1).
The app exists but has no code yet.streamlit-apps-set-source with the complete app.py source as one string.
Extra files ride along in the same call: files maps a project-relative path to text (helper modules, CSV, JSON), assets maps a path to base64 (Parquet, images).
This creates version 1 and activates it.
Write the source per the writing-streamlit-apps skill — in particular use posthog_apps.query() for PostHog data, never import posthog.streamlit-apps-start.
Returns immediately; the sandbox boots asynchronously.streamlit-apps-status until status is running (typically well under a minute).
If it lands on error, read last_error — see Troubleshooting below._posthogUrl returned by create/get/start (/streamlit-apps/{short_id}) is the app’s page in PostHog.
That link is what you give humans.
Viewers need to be logged into PostHog with access to the project (the app renders in an authenticated iframe; there is no public URL).The app’s queries run with the data access of the person who authored the active version — set the source, and the app reads what you can read. Anyone who can view the app sees those results, so treat publishing an app as sharing that data with everyone on the project. An app whose version author has since been deleted can’t start; upload a new version to fix it.
Call streamlit-apps-set-source again: it creates the next version and activates it.
Every call ships the complete app, so pass files and assets again too; a version holds only what that call carried.
A running sandbox is stopped so it can’t keep serving stale code — call streamlit-apps-start afterwards to serve the new version.
Versions are immutable, but not permanent: streamlit-apps-versions lists the newest 50, and non-active versions older than 30 days are deleted along with their code.
There is no rollback tool: to roll back, set the old source, files, and assets again, so a rollback needs a saved copy of the complete bundle.
Fetch that copy from your conversation or wherever it’s kept — versions store the zip, not an inline source view.
streamlit-apps-stop stops the sandbox; code and versions are untouched. Starting again later is cheap.streamlit-apps-delete stops any sandbox and soft-deletes the app. Confirm with the user before deleting anything you didn’t create in this conversation.status: error with last_error: "Start failed: ..." — the sandbox failed to provision or boot. Retry streamlit-apps-start once; if it persists, surface last_error to the user (provisioning failures are usually platform-side, not app-side).streamlit-apps feature flag is off for this organization. This is a rollout gate, not an error you can fix; tell the user.writing-streamlit-apps (bridge limits: 30s execution, 256 MB memory per query).streamlit-apps-update changes an app’s name, description, cpu_cores (0.25–8), or memory_gb (0.5–16); only the fields you pass change.
New sizing applies the next time the sandbox starts, so stop + start after resizing a running app.
Defaults (0.5 CPU / 1 GB) fit typical dashboard apps.
Raise memory_gb only when the app itself holds large DataFrames in memory — the 256 MB HogQL bridge query cap is server-side and does NOT change with sandbox sizing, so bigger sandboxes don’t fix failing queries.
Create, deploy, and operate Streamlit apps in PostHog via the streamlit-apps MCP tools — create an app, set its source, start and stop its sandbox, poll status, list versions, delete, and share the app with humans via its PostHog URL. Use when asked to "create a streamlit app", "deploy a data app", "ship a dashboard app", "restart/stop my app", "why is my app not running", or "give me a link to the app".
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: skills/omnibus/*/SKILL.md, skills/posthog/all/skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by PostHog, declaring 6 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./PostHog/skills.md, and each skill at its own .md URL.