基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ThinkR-open/golem --skill review-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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.
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