build-shiny-module

build-shiny-module is a skill for Claude Code from pjt222/agent-almanac. It costs 79 tokens per session (2,234 once invoked), scanned A, original, MIT.

A pattern for packaging a Shiny application’s user interface and server logic into reusable components. Shiny is an R framework for interactive web applications, and namespaces keep repeated components from conflicting with one another.

In plain words
What is it for?
Use it to extract a component from a Shiny app, reuse a widget in several places, connect modules, or build nested application components.
Why use it?
It keeps growing applications easier to test, reuse, and compose by hiding complex reactive behavior behind a clear input-and-output contract.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-almanac plugin — 122 skills, 77 agents shipped together

Good fit Use it to extract a component from a Shiny app, reuse a widget in several places, connect modules, or build nested application components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pjt222/agent-almanac/build-shiny-module
Install

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.

Any agent
npx skills add pjt222/agent-almanac --skill build-shiny-module
Clone the repo
git clone --depth 1 https://github.com/pjt222/agent-almanac

Made for: Claude Code.

Or install agent-almanac, the plugin that ships this one along with the rest of its 122 skills, 77 agents.

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

agentmods badge for build-shiny-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/pjt222/agent-almanac/build-shiny-module/github.svg)](https://agentmods.dev/skills/pjt222/agent-almanac/build-shiny-module)
Your own site
<a href="https://agentmods.dev/skills/pjt222/agent-almanac/build-shiny-module"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/build-shiny-module/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-shiny-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/pjt222/agent-almanac/build-shiny-module"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/build-shiny-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.02234
Opus 5.5 $0.00032 $0.00894
Sonnet 5.5 $0.00016 $0.00447
Haiku 4.5 $0.00008 $0.00223

Measured 3mo ago against content hash 842705540e1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-shiny-module 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 3mo 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.

i18n/caveman-lite/skills/build-shiny-module/SKILL.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Shiny Module

Create reusable Shiny UI/server module pairs with proper namespace isolation, reactive communication, and composability.

When to Use

  • Extracting a reusable component from a growing Shiny app
  • Building a UI widget that will be used in multiple places
  • Encapsulating complex reactive logic behind a clean interface
  • Composing larger applications from smaller, testable units

Inputs

  • Required: Module purpose and functionality description
  • Required: Input/output contract (what the module receives and returns)
  • Optional: Whether the module nests other modules (default: no)
  • Optional: Framework context (golem, rhino, or vanilla)

Procedure

Step 1: Define the Module Interface

Before writing code, define what the module accepts and returns:

Module: data_filter
Inputs: reactive dataset, column names to filter on
Outputs: reactive filtered dataset
UI: filter controls (selectInput, sliderInput, dateRangeInput)

Got: Clear contract specifying reactive inputs, reactive outputs, and UI elements.

If fail: If the interface is unclear, the module is probably too broad. Split it into smaller modules with single responsibilities.

Step 2: Create the Module UI Function

#' Data Filter Module UI
#'
#' @param id Module namespace ID
#' @return A tagList of filter controls
#' @export
dataFilterUI <- function(id) {
  ns <- NS(id)
  tagList(
    selectInput(
      ns("column"),
      "Filter column",
      choices = NULL
    ),
    uiOutput(ns("filter_control")),
    actionButton(ns("apply"), "Apply Filter", class = "btn-primary")
  )
}

Key rules:

  • Function name follows <name>UI convention
  • First argument is always id
  • Create ns <- NS(id) at the top
  • Wrap every inputId and outputId with ns()
  • Return a tagList() to allow flexible placement

Got: UI function that creates namespaced input/output elements.

If fail: If IDs collide when using the module twice, check that every ID is wrapped with ns(). Common miss: IDs inside renderUI() or uiOutput() — these need ns() too.

Read the full file on GitHub · 290 lines

Changes

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.

  1. 3mo ago First seen · 290 lines · 79 tokens per session scan A 842705540e1a

Subscribe to this mod's changes

build-shiny-module is a skill published in the GitHub repository pjt222/agent-almanac (46 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 2,234 once invoked, about $0.0003 per session on Opus 5.5. 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-09-03.

Related

build-shiny-module compared with skills from other repositories

build-shiny-module next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-shiny-modulepjt222/agent-almanacSkill46yesterdayMITA79Claude Code
fold-findingsgtrabanco/agentic-workflowSkill25todayMITA65Claude Code
init-workspacegtrabanco/agentic-workflowSkill25todayMITA54Claude Code
execute-phasegtrabanco/agentic-workflowSkill25todayMITA106Claude Code
unit-lanegtrabanco/agentic-workflowSkill25todayMITA53Claude Code
audit-docsgtrabanco/agentic-workflowSkill25todayMITA147Claude Code
product-auditgtrabanco/agentic-workflowSkill25todayMITA107Claude Code