PO

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.zip

Installs 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.
676 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

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

You give it
Link to bslib GitHub pull request
You get back
Python UI component code and associated assets

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.

SkillInstallsUpdatedSafetyDifficulty
port-from-bslib (this skill)110moNo flagsAdvanced
textual1431yReviewIntermediate
streamlit861yNo flagsIntermediate
deepwiki-rs251yReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry