Token导航 LogoToken导航

Agent Skill · 研究检索

cran-extrachecks(起重机额外检查)

cran-extrachecks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cran-extrachecks 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 22,039。

总安装 4,676周安装 191GitHub Stars 322下载 1,497核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cran-extrachecks(起重机额外检查)
来源仓库:https://github.com/posit-dev/skills
仓库路径:skills/cran-extrachecks
安装命令:
npx skills add https://github.com/posit-dev/skills --skill cran-extrachecks
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/posit-dev/skills --skill cran-extrachecks

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

cran-extrachecks 帮助 R 包开发者系统性检查 CRAN 提交前的常见非标准要求,识别代码问题并提供修复建议。适用于首次或重复提交 CRAN 包的 R 语言项目,尤其需要完善合规性检查的场景。通过标准清单逐项审查文件,自动发现问题并给出具体修改方案,支持人工确认后实施变更。

安装前需确认环境依赖和权限范围,注意可能涉及文件读写与命令执行,建议在非生产目录测试使用。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/cran-extrachecks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/posit-dev/skills --skill cran-extrachecks;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cran-extrachecks 怎么安装?

在终端执行 npx skills add https://github.com/posit-dev/skills --skill cran-extrachecks。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cran-extrachecks 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cran-extrachecks 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

cran-extrachecks 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cran-extrachecks 用的人多吗?

公开数据是累计安装 4,676 次,近一周安装 191 次,下载 1,497 次,GitHub 322 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cran-extrachecks 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cran-extrachecks

起重机额外检查 · 本页

4,676322需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

CRAN Extra Checks

Help R package developers prepare packages for CRAN submission by systematically checking for common ad-hoc requirements that CRAN reviewers enforce but devtools::check() doesn't catch.

Workflow

  1. Initial Assessment: Ask user if this is first submission or resubmission
  2. Run Standard Checklist: Work through each item systematically (see below)
  3. Identify Issues: As you review files, note specific problems
  4. Propose Fixes: Suggest specific changes for each issue found
  5. Implement Changes: Make edits only when user approves
  6. Verify: Confirm all changes are complete

Standard CRAN Preparation Checklist

Work through these items systematically:

  1. Create NEWS.md: Run usethis::use_news_md() if not already present
  2. Create cran-comments.md: Run usethis::use_cran_comments() if not already present
  3. Review README:

- Ensure it includes install instructions that will be valid when the package is accepted to CRAN (usually install.packages("pkgname")). - Check that it does not contain relative links. This works on GitHub but will be flagged by CRAN. Use full URLs to package documentation or remove the links. - Does the README clearly explain the package purpose and functionality? - Important: If README.Rmd exists, edit ONLY README.Rmd (README.md will be overwritten), then run devtools::build_readme() to re-render README.md

  1. Proofread DESCRIPTION: Carefully review Title: and Description: fields (see detailed guidance below)
  2. Check function documentation: Verify all exported functions have @return and @examples (see detailed guidance below)
  3. Verify copyright holder: Check that Authors@R: includes a copyright holder with role [cph]
  4. Review bundled file licensing: Check licensing of any included third-party files
  5. Run URL checks: Use urlchecker::url_check() and fix any issues

Detailed CRAN Checks

Documentation Requirements

Return Value Documentation (Strictly Enforced)

CRAN now strictly requires @return documentation for all exported functions. Use the roxygen2 tag @return to document what the function returns.

  • Required even for functions marked @keywords internal
  • Required even if function returns nothing - document as @return None or similar
  • Must be present for every exported function

Example:

# Missing @return - WILL BE REJECTED
#' Calculate sum
#' @export
my_sum <- function(x, y) {
  x + y
}

# Correct - includes @return
#' Calculate sum
#' @param x First number
#' @param y Second number
#' @return A numeric value
#' @export
my_sum <- function(x, y) {
  x + y
}

# For functions with no return value
#' Print message
#' @param msg Message to print
#' @return None, called for side effects
#' @export
print_msg <- function(msg) {
  cat(msg, "\n")
}

Examples for Exported Functions

If your exported function has a meaningful return value, it will almost definitely require an @examples section. Use the roxygen2 tag @examples.

  • Required even for functions marked @keywords internal
  • Exceptions exist for functions used purely for side effects (e.g., creating directories)
  • Examples must be executable

Un-exported Functions with Examples

If you write roxygen examples for un-exported functions, you must either:

  1. Call them with ::: notation: pkg:::my_fun()
  2. Use @noRd tag to suppress .Rd file creation

Using \dontrun{} Sparingly

\dontrun{} should only be used if the example really cannot be executed (e.g., missing additional software, API keys, etc.).

  • If showing an error, wrap the call in try() instead
  • Consider custom predicates (e.g., googlesheets4::sheets_has_token()) with if () blocks
  • Sometimes interactive() can be used as the condition
  • Lengthy examples (> 5 sec) can use \donttest{}

Never Comment Out Code in Examples

# BAD - Will be rejected
#' @examples
#' # my_function(x)  # Don't do this!

CRAN's guidance: "Examples/code lines in examples should never be commented out. Ideally find toy examples that can be regularly executed and checked."

Guarding Examples with Suggested Packages

Use @examplesIf for entire example sections requiring suggested packages:

#' @examplesIf rlang::is_installed("dplyr")
#' library(dplyr)
#' my_data %>% my_function()

For individual code blocks within examples:

#' @examples
#' if (rlang::is_installed("dplyr")) {
#'   library(dplyr)
#'   my_data %>% my_function()
#' }

DESCRIPTION Title Field

CRAN enforces strict Title requirements:

Use Title Case

Capitalize all words except articles like 'a', 'the'. Use tools::toTitleCase() to help format.

Avoid Redundancy

Common phrases that get flagged:

  • "A Toolkit for" → Remove
  • "Tools for" → Remove
  • "for R" → Remove

Examples:

# BAD
Title: A Toolkit for the Construction of Modeling Packages for R

# GOOD
Title: Construct Modeling Packages

# BAD
Title: Command Argument Parsing for R

# GOOD
Title: Command Argument Parsing

Quote Software/Package Names

Put all software and R package names in single quotes:

# GOOD
Title: Interface to 'Tiingo' Stock Price API

Length Limit

Keep titles under 65 characters.

DESCRIPTION Description Field

Never Start With Forbidden Phrases

CRAN will reject descriptions starting with:

  • "This package"
  • Package name
  • "Functions for"
# BAD
Description: This package provides functions for rendering slides.
Description: Functions for rendering slides to different formats.

# GOOD
Description: Render slides to different formats including HTML and PDF.

Expand to 3-4 Sentences

Single-sentence descriptions are insufficient. Provide a broader description of:

  • What the package does
  • Why it may be useful
  • Types of problems it helps solve
# BAD (too short)
Description: Render slides to different formats.

# GOOD
Description: Render slides to different formats including HTML and PDF.
    Supports custom themes and progressive disclosure patterns. Integrates
    with 'reveal.js' for interactive presentations. Designed for technical
    presentations and teaching materials.

Quote Software Names, Not Functions

# BAD
Description: Uses 'case_when()' to process data.

# GOOD
Description: Uses case_when() to process data with 'dplyr'.

Software, package, and API names get single quotes (including 'R'). Function names do not.

Expand All Acronyms

All acronyms must be fully expanded on first mention:

# BAD
Description: Implements X-SAMPA processing.

# GOOD
Description: Implements Extended Speech Assessment Methods Phonetic
    Alphabet (X-SAMPA) processing.

Publication Titles Only in Double Quotes

Only use double quotes for publication titles, not for phrases or emphasis:

# BAD
Description: Handles dates like "the first Monday of December".

# GOOD
Description: Handles dates like the first Monday of December.

URL and Link Validation

All URLs Must Use HTTPS

CRAN requires https:// protocol for all URLs. HTTP links will be rejected.

# BAD
URL: http://paleobiodb.org/

# GOOD
URL: https://paleobiodb.org/

No Redirecting URLs

CRAN rejects URLs that redirect to other locations. Example rejection:

Found the following (possibly) invalid URLs:
URL: https://h3geo.org/docs/core-library/coordsystems#faceijk-coordinates
     (moved to https://h3geo.org/docs/core-library/coordsystems/)

Use urlchecker Package

# Find redirecting URLs
urlchecker::url_check()

# Automatically update to final destinations
urlchecker::url_update()

Ignore URLs That Will Exist After Publication

Some URLs that don't currently resolve will exist once the package is published on CRAN. These should NOT be changed:

  • CRAN badge URLs (e.g., https://cran.r-project.org/package=pkgname)
  • CRAN status badges (e.g., https://www.r-pkg.org/badges/version/pkgname)
  • CRAN check results (e.g., https://cranchecks.info/badges/pkgname)
  • Package documentation URLs on r-universe or pkgdown sites that deploy after release

When urlchecker::url_check() flags these URLs, leave them as-is. They are aspirational URLs that will work once the package is on CRAN.

Check for Invalid File URIs

Relative links in README must exist after package build. Common issue:

Found the following (possibly) invalid file URI:
     URI: CODE_OF_CONDUCT.md
       From: README.md

This occurs when files are in .Rbuildignore. Solutions:

  1. Remove file from .Rbuildignore
  2. Use usethis::use_code_of_conduct() which generates sections without relative links

Administrative Requirements

Copyright Holder Role

Always add [cph] role to Authors field, even if you're the only author:

# Required
Authors@R: person("John", "Doe", role = c("aut", "cre", "cph"))

Posit-Supported Packages

For packages in Posit-related GitHub organizations (posit-dev, rstudio, r-lib, tidyverse, tidymodels) or maintained by someone with a @posit.co email address, include Posit Software, PBC as copyright holder and funder:

Authors@R: c(
  person("Jane", "Doe", role = c("aut", "cre"),
         email = "jane.doe@posit.co"),
  person("Posit Software, PBC", role = c("cph", "fnd"),
         comment = c(ROR = "03wc8by49"))
)

LICENSE Year

Update LICENSE year to current submission year:

# If LICENSE shows 2024 but submitting in 2026
# Update: 2024 → 2026

Method References

CRAN may ask:

If there are references describing the methods in your package, please add these in the description field...

If there are no references, reply to the email explaining this. Consider adding a preemptive note in cran-comments.md:

## Method References

There are no published references describing the methods in this package.
The package implements original functionality for [brief description].

Key Files to Review

Work through these files systematically:

  • DESCRIPTION: Title, Description, Authors@R, URLs, License year
  • **R/*.R**: Function documentation (@return, @examples, @examplesIf, @noRd)
  • README.Rmd (if exists): Edit this file (NOT README.md), then run devtools::build_readme()
  • README.md: Review for install instructions, relative links, URLs. Only edit directly if no README.Rmd exists
  • cran-comments.md: Preemptive notes for reviewers
  • NEWS.md: Version notes for this release
  • .Rbuildignore: Files referenced in README

Common Fix Patterns

DESCRIPTION Title:

# Before
Title: A Toolkit for the Construction of Modeling Packages for R

# After
Title: Construct Modeling Packages

DESCRIPTION Description:

# Before
Description: This package provides functions for rendering slides.

# After
Description: Render slides to different formats including HTML and PDF.
    Supports custom themes and progressive disclosure. Integrates with
    'reveal.js' for interactive presentations.

Function Documentation:

# Before - Missing @return
#' Calculate total
#' @param x Values
#' @export
calc_total <- function(x) sum(x)

# After - Complete documentation
#' Calculate total
#' @param x Numeric values to sum
#' @return A numeric value representing the sum
#' @examples
#' calc_total(1:10)
#' @export
calc_total <- function(x) sum(x)

Useful Tools

  • tools::toTitleCase() - Format titles with proper capitalization
  • urlchecker::url_check() - Find problematic URLs
  • urlchecker::url_update() - Fix redirecting URLs
  • usethis::use_news_md() - Create NEWS.md
  • usethis::use_cran_comments() - Create cran-comments.md
  • devtools::build_readme() - Re-render README.md from README.Rmd
  • usethis::use_code_of_conduct() - Add CoC without relative links
  • usethis::use_build_ignore() - Ignore files in R package build
  • usethis::use_package() - Add a package dependency to DESCRIPTION
  • usethis::use_tidy_description() - Tidy up DESCRIPTION formatting

Final Verification Checklist

Use this checklist to ensure nothing is missed before submission:

Files and Structure

  • NEWS.md exists and documents changes for this version
  • cran-comments.md exists with submission notes
  • If README.Rmd exists, it was edited (not README.md) and devtools::build_readme() was run
  • README includes valid install instructions (install.packages("pkgname"))
  • README has no relative links (all links are full URLs or removed)

DESCRIPTION File

  • Title: uses title case
  • Title: has no redundant phrases ("A Toolkit for", "Tools for", "for R")
  • Title: quotes all software/package names in single quotes
  • Title: is under 65 characters
  • Description: does NOT start with "This package", package name, or "Functions for"
  • Description: is 3-4 sentences explaining purpose and utility
  • Description: quotes software/package/API names (including 'R') but NOT function names
  • Description: expands all acronyms on first mention
  • Description: uses double quotes only for publication titles
  • Authors@R: includes copyright holder with [cph] role
  • For Posit packages: Includes person("Posit Software, PBC", role = c("cph", "fnd"), comment = c(ROR = "03wc8by49"))
  • LICENSE year matches current submission year

Function Documentation

  • All exported functions have @return documentation
  • All exported functions with meaningful returns have @examples
  • No example sections use commented-out code
  • Examples avoid \dontrun{} unless truly necessary
  • Examples requiring suggested packages use @examplesIf or if guards
  • Un-exported functions with examples use ::: notation or @noRd

URLs and Links

  • urlchecker::url_check() was run
  • All URLs use https protocol (no http links)
  • No redirecting URLs (except aspirational CRAN badge URLs)
  • Aspirational URLs (CRAN badges, etc.) are left as-is
  • No relative links in README that reference .Rbuildignore files

Optional but Recommended

  • If concerns about method references, added preemptive note to cran-comments.md
  • Reviewed bundled file licensing if including third-party files

平台分布

Codex

34.81%
按下载量换算521

Claude

27.48%
按下载量换算411

Cursor

18.54%
按下载量换算278

Gemini CLI

9.21%
按下载量换算138

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills