extendr-bindings

extendr-bindings: A specification set for exposing Rust cores to R, covering extendr macros and module registration, Robj type mapping, NA handling, rextendr build process, R package scaffolding, and CRAN compliance. Load when generating or reviewing extendr R bindings for Rust libraries.

Last repository push
GitHub Stars
182
Forks
19
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "extendr-bindings" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a2e222e53b04fea2f1ffe7be8b91495d032ad5ef6c534ccef6fb79e0ce0cefa4. Verify the upstream source and version against https://github.com/Goldziher/ai-rulez before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

extendr-bindings: A specification set for exposing Rust cores to R, covering extendr macros and module registration, Robj type mapping, NA handling, rextendr build process, R package scaffolding, and CRAN compliance. Load when generating or reviewing extendr R bindings for Rust libraries.

0 Downloads

Introduction source: third_party · Goldziher · 0.0.1 Reference

SkillPi interpretation

Tasks
extendr conventions for exposing a Rust core to R: extendr macros and module registration, Robj type mapping, NA handling, rextendr builds, R package scaffolding, and CRAN compliance. Load when generating or reviewing extendr R bindings for a Rust library.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: extendr-bindings
description: "extendr conventions for exposing a Rust core to R: extendr macros and module registration, Robj type mapping, NA handling, rextendr builds, R package scaffolding, and CRAN compliance. Load when generating or reviewing extendr R bindings for a Rust library."
  • Use extendr crate for Rust-R interop. #[extendr] macro on functions, extendr_module! for registration.
  • Type mapping: Robj for generic R objects, Doubles, Integers, Strings, List for typed access.
  • Return Result<T, extendr_api::Error> for R error propagation. Use .into() for Rust-to-R conversion.
  • NA handling: use Rfloat::na(), Rint::na() for missing values. Check with .is_na() before operations.
  • Build with rextendr::document() in R for development, cargo build --release for production.
  • Package integration: use usethis::use_extendr() for scaffolding. Maintain src/rust/ in R package.
  • Test R-side with testthat, Rust-side with standard #[test]. Use rextendr::test() for integration.
  • CRAN compliance: R CMD check --as-cran must pass. No compiler warnings. Vendor Rust dependencies.
  • Keep R wrapper functions thin — heavy computation in Rust, R provides user-facing API with roxygen2 docs.
  • Anti-patterns: ignoring NA values, allocating R objects in Rust threads, panics in #[extendr] functions.

Version history

  1. v5.15.0 GitHub ↗
    Original release notes

    ## What's Changed * chore(deps): bump github.com/parquet-go/parquet-go from 0.32.0 to 0.32.1 in /tools/skillbench by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/597 * chore(deps): bump @astrojs/starlight from 0.42.11 to 0.43.1 in /website by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/595 * feat(plugin): configurable Cursor hook root fallback by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/600 * chore: refresh dependencies, harness names and fix AR005 flag-value false positive by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/601 * chore(release): prepare ai-rulez 5.15.0 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/602 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.14.1...v5.15.0

  2. v5.14.1 GitHub ↗
    Original release notes

    ## What's Changed * fix(config): honor XDG_CACHE_HOME for the user cache by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/592 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.14.0...v5.14.1

  3. v5.14.0 GitHub ↗
    Original release notes

    ## What's Changed * chore(deps): bump @astrojs/starlight from 0.42.10 to 0.42.11 in /website by @dependabot[bot] in https://github.com/Goldziher/ai-rulez/pull/576 * fix(harnessnames): refresh copilot and cortex built-ins from their sources by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/583 * fix(config): make the session-start briefing source-aware by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/584 * feat(mcp): expose worktree_setup for agent-created worktrees by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/587 * docs(publish): add a verify-before-install recipe for consumers by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/585 * chore(release): prepare ai-rulez 5.14.0 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/588 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.4...v5.14.0

  4. v5.13.4 GitHub ↗
    Original release notes

    ## What's Changed * test(bench): measure native and MCP skill discovery by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/575 * fix(npm): stop the Windows CLI tree when the wrapper exits by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/574 * fix(mcp): improve Claude skill discovery for v5.13.4 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/577 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.3...v5.13.4

  5. v5.13.3 GitHub ↗
    Original release notes

    ## What's Changed * ci: keep generated release artifacts out of Git by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/567 * docs: clarify native and MCP skill discovery by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/568 * fix(npm): preserve stdout and forward termination by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/566 * fix(pathglob): preserve Unicode literals by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/569 * fix(semver): validate release age before duration conversion by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/570 * fix(agents): preserve adjacent AGENTS.md sections by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/571 * bench: add paired skill discovery fixture and protocol by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/572 * chore(release): prepare ai-rulez 5.13.3 by @Goldziher in https://github.com/Goldziher/ai-rulez/pull/573 **Full Changelog**: https://github.com/Goldziher/ai-rulez/compare/v5.13.2...v5.13.3

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 extendr 绑定开发的完整规范,涵盖宏使用、类型映射、错误处理、NA 处理、构建流程、测试策略、CRAN 合规性等
  • 面向 Rust-R 互操作这一明确技术场景,具有较高实用价值
Trigger Precision95/100

Highlights

  • description 明确指出适用场景为“生成或审查 extendr R 绑定时”,触发词精准,边界清晰
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    Skill 内容以 bullet points 形式组织,缺少明确的 Phase/步骤划分和端到端示例

    Recommendation: 建议补充 When to Use 章节和端到端示例,以增强可读性和指导性

Highlights

  • frontmatter 完整,单文件内容适中
Execution Reliability90/100

Highlights

  • 提供了具体的 crate 名称、宏、类型、构建命令、测试方法、CRAN 检查命令等,工具来源明确,参数正确
  • 覆盖了主要异常处理和 NA 处理,并指出了反模式,可靠性高
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.