Shiny for Python is a Python framework for building interactive web applications and data visualizations with reactive behavior. Data scientists and Python developers use it for prototypes as well as larger applications. Its bundled agent skills provide coding agents with Shiny documentation so they can create better Shiny applications.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/posit-dev/py-shiny/port-from-bslibnpx skills add posit-dev/py-shiny --skill port-from-bslibgit clone --depth 1 https://github.com/posit-dev/py-shinyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/posit-dev/py-shiny/port-from-bslib)<a href="https://agentmods.dev/skills/posit-dev/py-shiny/port-from-bslib"><img src="https://agentmods.dev/badge/skills/posit-dev/py-shiny/port-from-bslib.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.05092 |
| Opus 5 | $0.00000 | $0.02546 |
| Sonnet 5 | $0.00000 | $0.01018 |
| Haiku 4.5 | $0.00000 | $0.00509 |
Grade A, and why
port-from-bslib scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 564 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Porting Components from bslib to py-shiny
This guide explains how to port new UI components from the R bslib package to py-shiny. It assumes you're an experienced developer familiar with Python, R, and JavaScript/TypeScript, but may be new to the specifics of these repositories.
Background
The bslib R package serves as the primary development location for new Bootstrap 5 components in the Shiny ecosystem. Components developed in bslib are then ported to py-shiny to maintain feature parity between Shiny for R and Shiny for Python.
Key relationship: bslib provides both the R implementation and the compiled JavaScript/CSS assets that py-shiny vendors and uses directly.
Overview of the Porting Process
The porting process involves three main phases:
- Understanding the source - Study the bslib implementation (R, TypeScript, SCSS)
- Implementing the port - Create Python equivalents and add client-side bindings
- Testing and documentation - Ensure correctness with unit and end-to-end tests
Phase 1: Understanding the Source Implementation
Step 1.1: Locate the bslib PR
Find the bslib PR that introduced the feature. The py-shiny PR description should reference it (e.g., Related https://github.com/rstudio/bslib/pull/...).
Checklist:
- Located the bslib PR
- Reviewed the PR description and any design discussions
Step 1.2: Identify the core source files
In the bslib PR, locate these key files:
- R implementation:
R/[feature-name].R- The main component function(s) - TypeScript bindings:
srcts/src/components/[featureName].ts- Client-side behavior - SCSS styles:
inst/components/scss/[feature_name].scss- Component styles - Unit tests:
tests/testthat/test-[feature-name].R- R unit tests
Note: Generated files (compiled JS/CSS, documentation) can be ignored - focus on source files.
Checklist:
- Found the R implementation file(s)
- Found the TypeScript source file(s)
- Found the SCSS source file
- Found the unit test file(s)
- Reviewed how TypeScript is registered in
srcts/src/components/index.ts
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 564 lines · 0 tokens per session scan A a5104aa16fdc
port-from-bslib is a skill published in the GitHub repository posit-dev/py-shiny (1,750 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,092 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
Shade ShadCN install
Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.
chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…
frontend-visual-qa
Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…
prototype-web
可点击的功能性 Web 原型, 含导航、英雄区、特性区、CTA.
waitlist-page
【模板: 等候名单页 / Waitlist】 【意图】为新产品 / 早鸟内测做一张极简等候页。 【布局】.
design-frontend-dev
Clean Impeccable frontend design skill. Use when the user wants to design, redesign, critique, audit, polish, harden, optimize, adapt, clarify, colorize, animate, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, onboarding, empty states…