thinkr-open/golem-agent-skills/golem-add-module
Claude Code and agent skill by thinkr-open/golem-agent-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Add a module to an existing golem Shiny application. Triggers on: - "add a module" - "create a module" - "add a golem module" Do not trigger on: - when the user is not working inside a golem app
Install
npx vskill@latest install thinkr-open/golem-agent-skills/golem-add-moduleSKILL.md
Add Module
You are helping a user add a new module to an existing golem Shiny application.
Creating a Module
Use golem::add_module("name", with_test = TRUE) to create a new module with proper structure.
Module Structure
A golem module consists of:
mod_<name>_ui()- User interface functionmod_<name>_server()- Server logic function
Important Rules
UI Functions
- Always use
ns <- NS(id)to namespace UI elements - Check for missing
nsprefixes when building the UI - Never forget to namespace input/output IDs
Server Functions
- Use
moduleServer()- NEVER use the deprecatedcallModule() - Use
reactiveValues()for internal state, NOTreactive()orreactiveVal() - Use
observeEvent()- NEVER useobserve() - Always put reactive values inside a reactive consumer
Example pattern:
Reactive Programming Rules
- NEVER pass
reactive()objects between modules unless explicitly prompted - Avoid
renderUI()+uiOutput()- preferupdate*()functions - Watch for reactive cycles (A updates B updates A) - break them with explicit conditions
- Use a
reactiveValues()object for sharing data between modules, but only include what's necessary
Testing
- Create tests with
usethis::use_test("mod_<name>") - Each test should set up its own data inline
- Use
withr::local_*()for temporary state changes
Next Steps
After adding the module:
- Edit the module files to add your UI and server logic
- Run
devtools::document()if you added roxygen comments - Add the module to your app UI in
app_ui.R - Call it in
app_server()withmod_<name>_server("module_id") - Run tests with
devtools::test()
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/golem-add-module/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thinkr-open/golem-agent-skills/golem-add-module)