Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

rhino-sdk-writerhino SDK write 命令行

Agent Skill

rhino-sdk-write 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

190

周安装

8

GitHub Stars

公开资料未说明

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/naverazy-rhino/rhino-sdk-skills --skill rhino-sdk-write

简介

rhino-sdk-write 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在开发协作中管理代码变更、审查 Pull Request 或跟踪 Issue 进展。
  • 通过 npx skills add 命令从 GitHub 仓库安装,具体参数和功能见原始说明。
  • 使用前请核实权限、项目维护状态及可能触发的网络或文件系统调用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Rhino Health SDK — Code Generator

Generate production-ready rhino-health Python SDK code from natural language descriptions.

Context Loading

Before generating code, read all of these reference files:

  1. API Reference../../context/sdk_reference.md Endpoint classes, methods, enums, CreateInput summaries, dataclass fields, import paths.
  2. Patterns & Gotchas../../context/patterns_and_gotchas.md Auth patterns, resource lookup, metrics execution, filtering, code objects, async, and pitfalls.
  3. Metrics Reference../../context/metrics_reference.md All 40+ federated metrics with parameters, import paths, and decision guide.
  4. Example Index../../context/examples/INDEX.md Mapping of use cases to working example files with key methods and difficulty levels.

Example Matching

After loading context, check the example index for a matching use case. If one exists, read the full example file from ../../context/examples/<filename> and follow its patterns. The examples are verified working code from the official Rhino GitHub repository.

Code Template

Every generated script must follow this structure:

# --- Imports ---
import rhino_health as rh
from getpass import getpass
# ... additional imports (metrics, dataclasses, enums) ...

# --- Authentication ---
session = rh.login(username="my_email@example.com", password=getpass())

# --- Configuration ---
PROJECT_NAME = "My Project"
DATASET_UIDS = ["uid-1", "uid-2"]  # Replace with actual UIDs

# --- Resource Lookup ---
project = session.project.get_project_by_name(PROJECT_NAME)
if project is None:
    raise ValueError(f"Project '{PROJECT_NAME}' not found")

# --- Core Logic ---
# ... SDK calls ...

# --- Result Handling ---
print(result)

Template Rules

  • Authentication: Always use getpass(). Never hardcode passwords. Support MFA with otp_code parameter.
  • Imports: Place all imports at the top. Use exact paths from the Import Path Reference table in sdk_reference.md.
  • Resource lookup: Use get_*_by_name() for human-friendly lookups. Always check for None returns.
  • Constants: Define project names, UIDs, and configuration values as named constants near the top.
  • Type hints: Add type hints to function signatures when generating functions or classes.

Validation Checklist

Run through every item before returning generated code. Flag violations and fix them.

Endpoint Accessors

Verify the correct accessor is used for each operation:

OperationCorrect accessor
Project-level operations, aggregate/joined metricssession.project
Dataset-level operations, per-site metricssession.dataset
Code objects, builds, runs, harmonizationsession.code_object
Run status, inference resultssession.code_run
SQL queriessession.sql_query
Semantic mappings, vocabulariessession.semantic_mapping
Syntactic mappings, harmonization configsession.syntactic_mapping
Data schemassession.data_schema

Import Paths

Verify every import against the Import Path Reference in sdk_reference.md. Common mistakes:

WrongCorrect
from rhino_health.metrics import Xfrom rhino_health.lib.metrics import X
from rhino_health.endpoints.X import Yfrom rhino_health.lib.endpoints.X.X_dataclass import Y

Metric Calls

  • aggregate_dataset_metric takes List[str] of UIDs: [str(d.uid) for d in datasets]
  • get_dataset_metric takes a single dataset_uid: str
  • joined_dataset_metric takes query_datasets and optional filter_datasets as List[str]
  • Metric configuration objects require data_column (not column or field)
  • FilterVariable dicts use keys: data_column, filter_column, filter_value, filter_type

CreateInput Alias Fields

Several CreateInput classes use Pydantic aliases. Pass the alias name, not the field name:

Field nameAlias (use this)
project_uidproject
workgroup_uidworkgroup

Nested Structures

  • CodeObjectRunInput.input_dataset_uids is List[List[str]]: [[uid1, uid2]]
  • output_dataset_uids is triply nested: access via .root[0].root[0].root[0]
  • group_by parameter format: {"groupings": [{"data_column": "col"}]}
  • data_filters list: [FilterVariable(data_column="col", filter_column="col", filter_value="val", filter_type=FilterType.EQUALS)]

Async Operations

  • Call wait_for_build() after creating Generalized Compute code objects
  • Call wait_for_completion() after run_code_object(), run_data_harmonization(), and run_sql_query()
  • Both methods block until the operation finishes or times out

None Checks

Every get_*_by_name() call must be followed by a None check:

dataset = project.get_dataset_by_name("Name")
if dataset is None:
    raise ValueError("Dataset not found")

Output Format

Return a single, complete, runnable .py script. Include:

  • All necessary imports at the top
  • Authentication block
  • Constants for configurable values (project names, UIDs, column names)
  • Inline comments explaining non-obvious SDK behavior (e.g., why UIDs are stringified, why None-checks are needed)
  • A brief header comment describing what the script does

Do not split the code across multiple blocks. The user should be able to copy the entire output into a .py file and run it (after replacing placeholder values).

Additional Guidance

Choosing Between Per-Site, Aggregated, and Joined Metrics

Refer to patterns_and_gotchas.md section 4 for the decision:

  • Per-site (get_dataset_metric): results from one dataset/site
  • Aggregated (aggregate_dataset_metric): combined results across multiple datasets
  • Federated join (joined_dataset_metric): SQL-like join across distributed datasets

Choosing the Right Metric

Consult the Quick Decision Guide in metrics_reference.md:

  • "How many..." -> Count
  • "Average/mean..." -> Mean
  • "Survival time..." -> KaplanMeier or Cox
  • "Correlation..." -> Pearson, Spearman, ICC
  • "Compare groups..." -> TTest, OneWayANOVA, ChiSquare
  • "Risk/odds..." -> TwoByTwoTable, OddsRatio, RiskRatio
  • "ROC curve..." -> RocAuc, RocAucWithCI

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.69%
按下载量换算25

Claude

29.36%
按下载量换算20

Cursor

17.61%
按下载量换算12

Gemini CLI

9.67%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills