posit-dev/py-shiny/shiny-for-python

Claude Code and agent skill by posit-dev/py-shiny

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Building, styling, testing, debugging, or observing a Shiny for Python (py-shiny) reactive web app - `from shiny import ...`, `shiny run app.py`. Index skill: read this, then open the linked reference for the task. Covers dashboard design and visual QA; card toolbars and accessible icons; interactive Plotly charts and maps; reactivity (calc/effect/value/event/req/isolate); Express vs Core; modules; layout, navigation, dynamic UI, and theming; plots, data frames, files, and custom renderers; LLM…

Install

npx vskill@latest install posit-dev/py-shiny/shiny-for-python

SKILL.md

The same SKILL.md was published earlier as posit-dev/py-shiny/shiny-for-python.

Shiny for Python

Shiny for Python (py-shiny) builds reactive web apps in pure Python. Two modes: Core (an explicit app_ui object plus a server(input, output, session) function) and Express (top-level code in the app file is the UI, with outputs defined inline). The reactive graph is the engine: reading a reactive source (input.x(), a reactive.value, a @reactive.calc) inside a reactive context registers a dependency, so changing that source re-runs everything that read it — you never call outputs or schedule updates yourself.

This skill is an index. Find your task below and read the linked reference file before writing code for that area.

Foundations

TopicUse whenReference
ReactivityA value should recompute or an output update as inputs change; choosing between calc / effect / value; req, isolate, timers, polling, setting values from background tasksreferences/reactivity.md
Express modeWriting or converting an Express app (from shiny.express import ...); context-manager layout; page_opts, @expressifyreferences/express.md
Modules (Core)A reusable, repeatable UI+server component in a Core app; avoiding input/output id collisions across copiesreferences/modules-core.md
Modules (Express)The same reusable-component need in an Express app, via the single @module decoratorreferences/modules-express.md
Session lifecyclePer-session cleanup (on_ended), reading request headers/cookies/URL, flush hooks, per-session routesreferences/session-lifecycle.md

Dashboard building

TopicUse whenReference
Dashboard designTurning a dataset or brief into a polished analytical dashboard; planning information hierarchy, shared filters, responsive layout, empty states, and the final visual/functional quality passreferences/dashboard-design.md
Dashboard componentsComposing cards, KPI value boxes, local card toolbars, accessible icons, tooltips, and popoversreferences/dashboard-components.md
Interactive chartsRendering Plotly charts with shinywidgets; choosing chart forms, applying a coherent visual system, formatting hover/data labels, and handling empty datareferences/interactive-charts.md
MapsChoosing and rendering a geographic widget; cleaning coordinates, avoiding overplotting, and selecting Plotly, ipyleaflet, or lonboard by interaction and scalereferences/maps.md

Layout & navigation

TopicUse whenReference
LayoutsArranging a page into cards, columns, sidebars, value boxes, or accordions (bslib containers)references/layouts.md
NavigationTabs, pills, or a navbar with multiple pages; reading/switching the active tab; runtime nav panelsreferences/navigation.md
Dynamic UIUI that changes after render — @render.ui, ui.update_*, insert_ui/remove_ui, panel_conditionalreferences/dynamic-ui.md
ThemingColors, fonts, Bootswatch presets, Sass variables, brand.yml, light/dark mode via ui.Themereferences/theming.md

Outputs & rendering

TopicUse whenReference
Static plots & imagesRendering matplotlib/seaborn/plotnine figures or images; static plot click/hover/brush interactions. For Plotly, read Interactive charts abovereferences/plots.md
Data framesInteractive tables via @render.data_frame (DataGrid/DataTable) — sort, filter, select, editreferences/data-frames.md
FilesFile uploads (ui.input_file) and generated-file downloads (@render.download_button/@render.download_link)references/files.md

Feedback & interactivity

TopicUse whenReference
FeedbackToasts/notifications, modal dialogs, progress bars, busy indicatorsreferences/feedback.md
Extended tasksRunning slow work outside the session's reactive cycle so the session stays responsive; task buttonsreferences/extended-tasks.md
BookmarkingSaving/restoring app state — shareable URLs, refresh persistence, server-side statereferences/bookmarking.md

AI & streaming

TopicUse whenReference
ChatBuilding an LLM chatbot with ui.Chat — streaming responses, wiring a provider, chat historyreferences/chat.md
Markdown streamingStreaming Markdown/LLM text into a non-chat region with ui.MarkdownStreamreferences/markdown-streaming.md

Extending Shiny

TopicUse whenReference
Custom renderersAuthoring a reusable @render.xxx decorator by subclassing shiny.render.renderer.Rendererreferences/custom-renderers.md
Custom componentsIntegrating custom browser JS — custom input/output bindings, send_custom_message, HTMLDependency assetsreferences/custom-components.md

Testing & observability

TopicUse whenReference
Test serverTesting server logic in memory with the local_server fixture / test_server() — set inputs, assert on outputs/exports, module scopes; no browserreferences/test-server.md
TestingEnd-to-end Playwright tests — launching an app under pytest, locating and asserting on UIreferences/testing.md
DebuggingInspecting server-side reactive/input/output state; exposing values to a test harnessreferences/debugging.md
OpenTelemetryOTel tracing/profiling of reactive execution; exporting spans to a backendreferences/otel.md

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,771
Repository forks
141
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/posit-dev/py-shiny/shiny-for-python/badge)](https://verified-skill.com/skills/posit-dev/py-shiny/shiny-for-python)

Something wrong with this skill or its page? Tell us.