Writing Streamlit Apps

Write Streamlit app source code that runs well in a PostHog sandbox — the posthogapps.query() bridge for reading PostHog data, the packages baked into the sandbox image, caching and session state across Streamlit reruns, layout and chart…

About this skill

Write Streamlit app source code that runs well in a PostHog sandbox — the posthogapps.query() bridge for reading PostHog data, the packages baked into the sandbox image, caching and session state across Streamlit reruns, layout and chart patterns, and the app.py entry point with any helper modules and data files bundled beside it.

Maintained by PostHog. The source includes the instructions and any supporting files needed to use this skill.

Inside the instructions

  • 01Reading PostHog data: posthog_apps.query()
  • 02Design for Streamlit's rerun model
  • 03Layout and charts
  • 04What's installed
  • 05Structure and runtime constraints
  • 06A minimal well-shaped app

Before you start

  1. Read the instructions and check tool or account requirements.
  2. Install the complete folder when the skill references scripts or other files.
  3. Provide your task context, then review the agent's output.

Source

posthog/ai-plugin / writing-streamlit-apps

Source reviewed October 2, 2026 · See publisher source