port-from-bslib
A specialized tool for porting UI components and assets from R's bslib to py-shiny.
Install
mkdir -p .claude/skills/port-from-bslib && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3353" && unzip -o skill.zip -d .claude/skills/port-from-bslib && rm skill.zipInstalls to .claude/skills/port-from-bslib
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Comprehensive guide for porting UI components from R's bslib package to py-shiny. Use this skill when: (1) User asks to "port this feature" or "port a component" and mentions bslib or links to a bslib PR (e.g., github.com/rstudio/bslib/pull/...), (2) Porting a new component from bslib to py-shiny, (3) Adding a new input, output, or UI component that exists in bslib, (4) Implementing feature parity with bslib, (5) Working on bslib-related features or components. Covers the complete workflow including understanding source implementation, creating Python equivalents, vendoring assets (SCSS, CSS, JavaScript), creating tests, documentation, and all necessary project files.Key capabilities
- →Identifies corresponding R implementation files
- →Maps R bslib components to py-shiny equivalents
- →Vendors necessary CSS, SCSS, and JavaScript assets
- →Generates unit tests for ported UI components
- →Creates documentation stubs for port parity
How it works
It systematically compares the source R/TypeScript files from a specific bslib PR against the existing py-shiny codebase to guide the translation.
Inputs & outputs
When to use port-from-bslib
- →Porting UI components to Python
- →Maintaining feature parity
- →Adding new inputs to Shiny
About port-from-bslib
Provides a comprehensive workflow for porting UI components from R to Python. Handles source analysis, asset vendoring, and creation of equivalent test/documentation files.
Comprehensive guide for porting UI components from R's bslib package to py-shiny. Use this skill when: (1) User asks to "port this feature" or "port a component" and mentions bslib or links to a bslib PR (e.g., github.com/rstudio/bslib/pull/...), (2) Porting a new component from bslib to py-shiny, (3) Adding a new input, output, or UI component that exists in bslib, (4) Implementing feature parity with bslib, (5) Working on bslib-related features or components. Covers the complete workflow including understanding source implementation, creating Python equivalents, vendoring assets (SCSS, CSS, JavaScript), creating tests, documentation, and all necessary project files.
When not to use it
- →Porting non-UI logic or standard backend scripts
- →Projects using frameworks other than Shiny
Limitations
- →Requires knowledge of both R and Python Shiny
- →Manual adjustment often needed for complex client-side bindings
How it compares
It formalizes the mapping between two distinct ecosystem frameworks rather than acting as a general-purpose language converter.
Compared to similar skills
port-from-bslib side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| port-from-bslib (this skill) | 1 | 10mo | No flags | Advanced |
| textual | 143 | 1y | Review | Intermediate |
| streamlit | 86 | 1y | No flags | Intermediate |
| deepwiki-rs | 25 | 1y | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by posit-dev
View all by posit-dev →You might also like
textual
KyleKing
Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.
streamlit
sverzijl
When working with Streamlit web apps, data dashboards, ML/AI app UIs, interactive Python visualizations, or building data science applications with Python
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
python-code-style
wshobson
Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.