Skip to main content

Agent Skills

shinyreact ships two Agent Skills so a coding agent can build a shinyreact app without you pasting documentation into it:

Both packages ship the same two skills.

Install them into a project with library-skills, which symlinks them so they stay current when you upgrade the package:

uvx library-skills --claude   # Claude Code (.claude/skills)
uvx library-skills            # standard location (.agents/skills)

Agents using btw discover the skills automatically once shinyreact is attached. To copy them into a project for Claude Code and other skill-aware tools:

btw::btw_skill_install_package("shinyreact")

Starter prompt

The skill doubles as the starter template: it knows the Vite setup, the file layout, and the hooks, so you do not need to read about build tools before your first app. With the shinyreact skills installed, paste this into your agent (swap in R if that is your server):

Using the `/shinyreact-build-app` skill, scaffold a new shinyreact app in this
directory with a Python server. Set up the Vite build (src/ui.tsx compiled to
www/ui.js) and a hello-world UI: a text input whose value the server greets by
name. Run the build and start the app.

To port an existing app instead, point the agent at it: “Using the /shinyreact-convert-app skill, convert the Shiny app in ./app.py to the shinyreact ui.tsx pattern.”