统计数据格式转换器 / Statistical Data Format Converter

SKILL研究检索
研究检索 未标注权限 许可证不明确
安装这个技能

读入/转存 50+ 统计软件格式,对统计二进制格式完整保留变量标签/值标签/特殊缺失值等元数据。副作用声明(完整):运行环境检查(scripts/check_env.py);可应要求 pip 安装缺失包;写入主输出文件的同时可能生成 sidecar 元数据(CSV/TSV 旁 <名>_metadata.json、Parquet/Arrow 内嵌)及覆盖 .hyper 时的 .bak/.bak.1 备份;处理 .rda/.rds/.RData/.mtw/.mpj/.rec 时可调用本地 R 解释器,但该回退默认禁用,需 allow_r_exec=True 显式开启。 / Read/convert 50+ statistical software formats, preserving variable/value labels and missing-value metadata for binary stats formats. FULL side effects: runs environment checks (scripts/check_env.py); may optionally pip-install missing packages on request; writes the main output file AND may emit sidecar metadata (e.g. <name>_metadata.json beside CSV/TSV, embedded in Parquet/Arrow schema) and .bak/.bak.1 backups when overwriting .hyper; can invoke the local R interpreter for .rda/.rds/.RData/.mtw/.mpj/.rec files via a fallback DISABLED by default and opted in only with allow_r_exec=True.

一句话选型结论

按资料字段整理

统计数据格式转换器 / Statistical Data Format Converter是研究检索类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类研究检索 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_ff7413f5/statdata-transfer
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_ff7413f5仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791651875
正文体量10.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查资料并整理出处

让模型按主题查资料,并把引用来源整理成清单。

网页与文献要点提炼

把长文、论文、网页压成能直接看的要点。

竞品与行业汇总

按关键词汇总竞品动态与行业信息。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在研究检索场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
统计数据格式转换器 / Statistical Data Format Converter当前 未标注权限 未标注 未标注 未标注 有
寻找技能 浏览器控制 GitHub 仓库 3120.0 万 Codex、Claude、Cursor 有
自我改进 Agent 接触敏感数据 ClawHub 市场 1646.4 万 OpenClaw 有
灵魂追踪 联网访问 GitHub 仓库 758.9 万 Codex、Claude、Cursor 有
自我完善 联网访问 ClawHub 市场 682.9 万 OpenClaw 有
微软代工厂 调用外部服务 GitHub 仓库 661.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

10.0 KB
模型实际读到的说明书原文,来自技能仓库

Statistical Data Format Converter

> Safe by default — preview, not execute: the skill shows what it will read/convert and only writes a file when you explicitly ask. Every R-invoking path is opt-in and disabled by default.

Language

  • English guide → README.md
  • 中文指南 → README_zh-CN.md

This skill responds in the user's input language and auto-switches; runtime prompts switch by locale. SKILL.md body is English-only (agent-facing); bilingual walkthroughs live in the two READMEs.

Purpose

Read 50+ statistical-software and clinical-trial data formats into a pandas DataFrame, and inter-convert between most formats (SPSS ↔ Stata ↔ R ↔ SAS XPT ↔ Excel ↔ Parquet ↔ HDF5 ↔ JSON …). For statistical binary formats it preserves full variable/value labels and special-missing-value metadata; text/JSON formats preserve only a retainable subset.

Features

Capability Description Typical Scenario
Read Extract data + all metadata from 50+ formats into a pandas DataFrame; clearly report what is preserved vs lost read data.sav and show metadata
Convert Inter-convert most stats formats; export to universal formats (Parquet/Feather/HDF5/JSON/CSV/Excel) with labels embedded convert data.sav to .dta keeping variable labels
Embed metadata Labels embedded in Arrow schema.metadata / sidecar JSON for lossless round-trips save to parquet but keep value labels
Warn Auto-detect and report metadata loss per conversion path audit before exporting to CSV

Supported Formats

50+ formats, sorted alphabetically.

Format Extension Meta Preserve
CDISC ODM .odm ⚠️ Clinical data only
dBASE / FoxPro .dbf ⚠️ Read+Write, uppercase names
EpiData .rec ⚠️ Via R (opt-in)
EpiInfo .prj .xml ✅ XML structure
Excel .xlsx .xls .xlsm ⚠️ Extra sheet for labels; merged-cell fill
EViews .wf1 .wf2 ⚠️ JSON structure
Feather .feather .arrow ✅ Via schema
FST .fst ✗ Detect-only (proprietary)
GraphPad Prism .pzfx .pz ⚠️ Multi-table
Gretl .gdt .gdtb ✅ String-tables
HDF5 .h5 .hdf5 ⚠️ Hierarchy + attribute labels
HTML .html ⚠️ Tables only
jamovi .omv ✅ JSON analysis
JMP .jmp ⚠️ Multi-table
JSON .json ✅ stat-full-meta
MATLAB .mat ⚠️ v7.3+ via h5py fallback
Mathematica .wdx ⚠️ Best-effort XML
Minitab .mtw .mpj ⚠️ Via R (opt-in)
MS Access .mdb .accdb ⚠️ Multi-table; needs system driver
ODS .ods ⚠️ Data only
ORC .orc ✅ Via schema
Origin .opju .oggu ⚠️ Best-effort
Parquet .parquet ✅ Via schema; partitioned datasets
R .rda .rds .rdata ✅ pyreadr; R fallback opt-in (allow_r_exec)
SAS .sas7bdat .xpt .sas7bcat ✅
SPSS .sav .zsav .por ✅
Stata .dta ✅
Weka ARFF .arff ✅ Nominal mapping
XML .xml ⚠️ Structure preserved

> ✅=Full · ⚠️=Partial/conditional · ✗=Not preserved
>
> 12 detect-only formats (SAS CPORT .cpt, Statistica .sta, OxMetrics .in7, SYSTAT .sys/.syd, Paradox .db/.px, LIMDEP .lpw, NCSS .ncss, FST) give clear export guidance — see README.

Return Structure

{
    &quot;dataframe&quot;: pd.DataFrame,
    &quot;metadata&quot;: {
        &quot;file_format&quot;: &quot;spss_sav&quot;,
        &quot;row_count&quot;: 100, &quot;column_count&quot;: 10,
        &quot;variable_labels&quot;: {&quot;q1&quot;: &quot;Question 1&quot;},
        &quot;value_labels&quot;: {&quot;q1&quot;: {1: &quot;Yes&quot;, 2: &quot;No&quot;}},
        &quot;special_missing&quot;: {...},
    },
    &quot;warnings&quot;: [],
    &quot;column_report&quot;: {&quot;q1&quot;: {&quot;source_type&quot;: &quot;int&quot;, &quot;pandas_dtype&quot;: &quot;int64&quot;}},
}

Quick Start

# Check environment (optional install on request)
python scripts/check_env.py --install

In WorkBuddy (bilingual, auto-detects your language):

&gt; convert data.sav to .dta
&gt; read data.sav and show metadata
&gt; 把 data.sav 转成 .dta 并保留变量标签

> For complete code examples, see references/usage_examples.py.

Dependencies

requires:
  bins: [python3]
  packages:
    core: [pyreadstat&gt;=1.3.5,&lt;2, pyreadr&gt;=0.4,&lt;0.5, pandas&gt;=2.0,&lt;3]
    extended: [openpyxl, xlrd, scipy, h5py, pyarrow, lxml, odfpy, tableauhyperapi, dbfread, dbf, pyodbc]

> Full list: requirements.txt

⚠️ Safety

  • All R-invoking paths are opt-in and disabled by default; they only run when you pass allow_r_exec=True on a trusted file.
  • Pure-Python parsers (pyreadr, mtbpy) are tried first and never execute code.
  • No silent R fallback — if the pure-Python parser fails and allow_r_exec is not set, the skill raises a clear error.
  • Writing an existing .hyper backs up to .bak before overwrite; on failure the original is untouched.
  • Output for reference only; validate before regulatory submissions.

Security model (transparent disclosure)

Behavior Description
R invocation (opt-in) Reading .rda/.rds/.RData (readRDS()/load()), Minitab .mtw/.mpj, EpiData .rec, and writing R formats run only with allow_r_exec=True on a trusted file. Pure-Python parsers tried first.
No silent fallback On pure-Python parser failure without allow_r_exec, raises a clear error instead of launching R — avoids executing embedded code from untrusted files.
Static R templates When the opt-in R path runs, all R scripts are static templates; user input passes only as CLI args (commandArgs(trailingOnly=TRUE) via jsonlite) — never concatenated into executable R code.
Temp CSV bridge Opt-in R writes data to a temp CSV then reads back; deleted after use, but on crash could briefly persist — avoid highly sensitive data through R-backed formats.
No destructive writes .hyper write → temp file → rotate existing to .bak (prior .bak → .bak.1, never silently deleted) → atomic swap. Original untouched on failure.
Sidecar metadata files Writing CSV/TSV also emits &lt;name&gt;_metadata.json (full 17-field metadata) next to the data file; Parquet/Arrow embed metadata inside the file schema. No writes occur outside the output path you specify.
Pinned dependencies Core deps carry upper-bound pins (pandas, pyreadstat, pyreadr) — see requirements.txt.
Optional install python scripts/check_env.py --install only on explicit request.
Permissions Read the input file; write the output file to a path you specify. No network unless you explicitly request package install.

License

MIT. See LICENSE.

常见问题

5 问
答案由本站依据条目字段整理
统计数据格式转换器 / Statistical Data Format Converter怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_ff7413f5/statdata-transfer。安装方式为未标注。装完刷新技能列表或重开客户端。

统计数据格式转换器 / Statistical Data Format Converter支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

统计数据格式转换器 / Statistical Data Format Converter权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

统计数据格式转换器 / Statistical Data Format Converter收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

统计数据格式转换器 / Statistical Data Format Converter用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。