Home / huangwb8 / skills · skills/beta/bensz-r-developer/SKILL.md · GitHub

bensz-r-developer skillA

bensz-r-developer is agent-read markdown (skill) from huangwb8/skills: 当主要交付物是可复用的 R 函数、稳定 API、S3/S4/R6 类或 R Package,需要设计、开发、重构或审查其接口、测试、文档、并行与性能边界时使用。分析项目中只有需要跨分析复用或形成公共 API 的组件才进入本 Skill。⚠️ 不适用:主要交付物是数据分析流程、科学结果、R Markdown 报告或仅服务当前分析的辅助函数;这些任务使用 bensz-rmd-rules。.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# bensz-r-developer

## 目标

开发优雅、可维护且可复用的 R 软件组件:以明确的输入、返回、错误和副作用契约设计函数与公共 API,用领域对象承载真实不变量和生命周期,并以成熟工具管理文档、测试、并行和性能。

本 Skill 关注的是“R 代码怎样稳定地被调用”,而不是“某次分析怎样可靠地跑完”。触发依据是主要交付物和复用边界,不是任务里是否出现 `.R` 文件或函数:

| 场景 | 主导 Skill |
| --- | --- |
| 主要交付物是可独立测试、文档化、版本化或跨项目复用的函数、类、API、Package | `bensz-r-developer` |
| 主要交付物是数据流、统计结果、Rmd/HTML 报告、论文图表,函数只服务当前分析 | `bensz-rmd-rules` |
| 同时交付分析流水线与可复用组件 | 由主要交付物决定主 Skill;分析主导时先由 `bensz-rmd-rules` 定义组件契约,再由本 Skill 实现组件,最后回到分析流程集成验证 |

不负责单纯运行既有代码,也不把分析项目中的每个 `_functions.R` 或 helper 都泛化成 Package。若主要验收标准是科学结果正确、缓存可恢复或报告可交付,应交给 `bensz-rmd-rules`;仅在其中出现具有独立复用价值的组件时参与协作。

## 流程

### 输入

确认主要交付物、复用范围(当前分析/当前项目/跨项目/公开 Package)、任务类型(函数/脚本/Package、新建/兼容修改)、数据与公开 API、对象生命周期、返回/错误、`output.dir`/`cache.dir` 职责、R/平台/依赖/硬件/复现约束,并读取现有 `DESCRIPTION`、`NAMESPACE`、`R/`、`tests/`、`src/`、`renv.lock` 与项目指令。不得读取凭据、环境文件或无关数据。保守默认不得改变公共 API;会改变类系统、覆盖、依赖或性能语义时先声明假设。

### 执行步骤

#### 1. 盘点现状与定义契约

先判定主要验收对象:是“函数/API/Package 自身的可复用契约”,还是“分析结果、数据流与报告”。再确认目标代码是否需要独立版本、稳定公共接口、跨项目复用或独立测试;仅服务当前分析单元的 helper 即使写在 `.R` 文件中,也仍由 `bensz-rmd-rules` 管理。

确认本 Skill 应主导后,读取调用链和测试,列出不变量、I/O、错误、副作用、并行及兼容边界。已有项目保持命名、类系统和公开 API,除非用户授权迁移。混合任务记录主 Skill、组件边界与交接点,避免两个 Skill 同时改写同一层职责。
…

Read the whole file at its exact version.

How to install

Latest version
mdr add huangwb8/skills/bensz-r-developer@git:20260920.5470b93
Exact content
mdr add huangwb8/skills/bensz-r-developer@sha256:3ea6f7c993a2102a

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_k53l4idee6e6apgz.svg)](https://markdownregistry.com/a/art_k53l4idee6e6apgz)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260920.5470b93 latest2026-09-20 5470b93 11,176 BA view · diff
git:20260919.cb7ec352026-09-19 cb7ec35 9,513 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11176 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

huangwb8/skills · 48 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_k53l4idee6e6apgz
GET https://markdownregistry.com/api/v1/resolve?ref=huangwb8/skills/bensz-r-developer
GET https://markdownregistry.com/api/v1/blob/3ea6f7c993a2102ac895d39ebd3bc535171e552086e9de55287592a3b76fe066

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from huangwb8/skills

AGENTS.md agents
huangwb8/skills · AGENTS.md
git:20260912.90bbdcd · audit A · 48 stars
CLAUDE.md claude
huangwb8/skills · CLAUDE.md
git:20260219.a2200bc · audit A · 48 stars
auto-draw-plot skill
huangwb8/skills · skills/alpha/auto-draw-plot/SKILL.md · 根据用户描述生成高质量绘图 prompt,并按通用、roadmap、schematic 模式通过 BenszAPI 直接完成 gpt-image-2.5-flare、gpt-image-2.5-sunburst、gpt-image-2 或…
git:20260910.448010a · audit A · 48 stars
auto-test-code skill
huangwb8/skills · skills/alpha/auto-test-code/SKILL.md · 当用户明确要求测试代码、代码审查或代码自检时使用。系统化发现并验证代码问题。⚠️ 不适用:用户只是想实现或优化功能、询问代码问题,或没有明确测试意图。
git:20260906.d2681a7 · audit A · 48 stars
auto-test-project skill
huangwb8/skills · skills/alpha/auto-test-project/SKILL.md · 当用户明确要求“测试项目”、 “运行 auto-test-project”或“进行项目级测试”时使用。对完整项目执行多轮 A 轮批判性测试与 B 轮质量检查,发现、记录、修复并验证问题。⚠️…
git:20260906.d5147b3 · audit A · 48 stars
auto-test-skill skill
huangwb8/skills · skills/alpha/auto-test-skill/SKILL.md · 当用户明确要求测试 Skill、运行 auto-test 或对 Skill 进行批判性测试时使用。系统化发现、记录并验证 Skill 问题。⚠️ 不适用:用户只是想开发或优化 Skill,或没有明确测试意图。
git:20260915.3df7249 · audit A · 48 stars
awesome-code skill
huangwb8/skills · skills/alpha/awesome-code/SKILL.md · 当用户明确要求使用 awesome-code、进行多代理协作或并行协调开发时使用。根据任务选择合适的协作方式并协调专业 Agent。⚠️ 不适用:用户只需单一角色完成简单修改或咨询,或未表达多代理协作意图。
git:20260906.d2681a7 · audit A · 48 stars
backend-specialist skill
huangwb8/skills · skills/alpha/awesome-code/agents/backend-specialist/SKILL.md · 后端开发专家。精通 Node.js/Python/Go/Rust 等后端技术栈,专注于 API 设计、数据库优化、认证授权、微服务架构和性能调优。用于后端服务开发、API 设计和系统架构。
git:20260905.a346b91 · audit A · 48 stars
brainstorming skill
huangwb8/skills · skills/alpha/awesome-code/agents/brainstorming/SKILL.md · 当用户明确要求"使用 brainstorming"或"使用 awesome-code"时使用。⚠️ 不适用:用户只是想优化/改进某个功能(应直接修改)、只是询问技能问题(应直接回答)、没有明确使用…
git:20260905.a346b91 · audit A · 48 stars
code-reviewer skill
huangwb8/skills · skills/alpha/awesome-code/agents/code-reviewer/SKILL.md · 用于审查已完成的工作、重大功能或合并前的变更,核对需求并按严重程度识别风险。未经审查不得合并。
git:20260906.d2681a7 · audit A · 48 stars
context-optimizer skill
huangwb8/skills · skills/alpha/awesome-code/agents/context-optimizer/SKILL.md · 上下文优化专家。专注于长对话中的上下文管理、token 效率和性能优化。解决 lost-in-middle、context poisoning 等问题,提升 AI 代理在复杂任务中的表现。
git:20260906.d2681a7 · audit A · 48 stars
devops-specialist skill
huangwb8/skills · skills/alpha/awesome-code/agents/devops-specialist/SKILL.md · DevOps 与运维专家。精通 CI/CD、容器化、编排、基础设施即代码、监控告警和自动化部署。用于构建高效、可靠的软件交付流水线和运维系统。
git:20260905.a346b91 · audit A · 48 stars

Every file in huangwb8/skills

Browse by kind, by grade A, or by owner.