Registry / cas-bigdatalab

cas-bigdatalab/piflow/stratified-sampler

结构化数据分层采样工具。读取 JSONL、JSON、CSV、TSV、XLSX、XLS 等结构化数据,按指定字段分层后无放回抽取样本,输出保留原字段结构的采样结果。 当用户提到分层采样、类别平衡采样、按标签抽样、训练集分层划分等需求时使用此skill。 即使用户没有明确说出"stratified_sampler",只要任务涉及按字段分层并进行代表性抽样,就应该使用此skill。 不负责随机采样、领域均衡采样、批量切分、时间窗口抽样或格式转换。

Agent skill · version 0.0.0-master.1794520986.gad8d010 · from cas-bigdatalab/piflow

Install

npx yarkr-cli add skill:cas-bigdatalab/piflow/stratified-sampler

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:cas-bigdatalab/piflow/stratified-sampler
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:cas-bigdatalab/piflow/stratified-sampler

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:cas-bigdatalab/piflow/stratified-sampler

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.