원클릭으로
review-pr
Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Upgrades the golem Shiny app with the newest golem package features. Triggers on: - "upgrade my Shiny app" - "upgrade app" - "upgrade Shiny app" - "upgrade with newest golem features" - "upgrade to newest golem features" - "update my Shiny app" - "update app" - "update Shiny app" - "update with newest golem features" - "update to newest golem features" Do not trigger on: - if outside an R Shiny app - if outside an R Shiny app which is not golem based
End-to-end builder for golem Shiny applications. Routes to the relevant reference based on the user's intent (create the app, add modules, add functions, run tests, check the package, validate namespacing). Triggers on: - "build a golem app" - "work on my golem app" - "scaffold a golem app" - "evolve a golem app" Do not trigger on: - when the user is not working inside a golem app and is not creating one - when the user is building a Shiny app without golem
Validate that all module input/output IDs are properly namespaced. Triggers on: - "check my modules for missing ns" - "find missing ns in modules" - "validate module namespaces" Do not trigger on: - when the user is not working inside a golem app
Add functions to a golem Shiny application. Triggers on: - "add a function" - "create a helper function" - "add a utility function" Do not trigger on: - when the user is not working inside a golem app
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
Check a golem Shiny application for package issues. Triggers on: - "check my golem app" - "run R CMD check" - "validate the package" Do not trigger on: - when the user is not working inside a golem app
| name | review-pr |
| description | Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions. |
Review a golem pull request. The PR number is provided as the argument (e.g. /review-pr 1234).
gh pr view <NUMBER> --json number,title,body,headRefName,baseRefName,author,files,additions,deletions
gh pr diff <NUMBER>
Also fetch any linked issue if one is referenced in the PR body:
gh issue view <ISSUE_NUMBER>
Verify the following:
master (not main or a feature branch).#123 or Fixes #123). For simple typo fixes this is optional.## New Functions## New features## Breaking changes## Bug fix## Internal changesmaintainerCanModify: true).Read the diff carefully and check:
Correctness
golem conventions
inst/shinyexample/ or use the appropriate add_* / use_* helpers in R/.bootstrap_*.R (no direct library() or hard-require of suggested packages).make_dev() or use existing wrappers (cat_dev(), print_dev(), etc.).get_golem_config() / the YAML helpers, not by reading inst/golem-config.yml directly.snake_case naming convention and be exported via @export roxygen tag.add_module() and respect the mod_<name>.R naming convention.Code style
air. If unformatted lines are present, flag them.library() calls inside package functions.system.file() or fs helpers.Documentation
@title, @param, @return, @examples (or @noRd for internals).devtools::document() must have been run (check that .Rd files and NAMESPACE are updated in the diff).Tests
tests/testthat/.perform_inside_a_new_golem() or run_quietly_in_a_dummy_golem() for isolation when they create files or golem projects.expect_snapshot()) are acceptable for output-heavy functions.If the branch can be checked out, run:
Rscript -e "devtools::test()"
Rscript -e "devtools::check()"
Report any failures.
Produce a structured review with these sections:
Metadata
Code review
Verdict One of:
If requesting changes, be specific: reference file names, line numbers from the diff, and what needs to change.