统计软件命令接入助手

SKILLAI 工具

原名 统计软件接入助手 (statsoft-cli) · 标识 statsoft-cli

AI 工具 未标注权限 许可证不明确
安装这个技能

为AI工作流接入R、Stata、SAS、SPSS、Python等34款以上统计软件的CLI调用,帮助复用已有代码资产,实现统计分析自动化。

一句话选型结论

按资料字段整理

统计软件命令接入助手是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

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

安装

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

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

  2. 2
    拿到技能文件

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

  3. 3
    刷新技能列表

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

  4. 4
    验证是否生效

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

技能档案

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

能做什么

0 项能力
上游给出的能力概览与适用场景
跨统计软件脚本调用历史分析代码复用批量统计任务自动化

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

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

值得选的地方

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

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
统计软件命令接入助手当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

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

Language

Pick the README that matches your language for human-readable, language-specific guides:

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

This skill responds in the user's current input language (Chinese or English) and auto-detects / switches accordingly. The runtime scripts embed a locale check ($script:isZH in PowerShell, SCRIPT_LANG in Bash) so all user-facing prompts switch to Chinese on a zh-* UI culture and to English otherwise. Code comments and documentation are English-only.

The SKILL.md body, references/*.md, and ADDITIONAL_SOFTWARE.md are English-only and agent-facing; runtime command prompts switch to Chinese / English by locale. For end-to-end walkthroughs, examples, and troubleshooting in your language, open the README above.

Overview

Activates historical code assets locked in statistical software (syntax, scripts, projects) and wires them into AI workflows via automated detection, configuration, and execution.

Core Functions

Covers 34+ statistical / data-science packages, auto-routed by platform; non-Windows auto-hides incompatible software:

  • Cross-platform (Win / Mac / Linux, CLI): R, Stata, SAS, CmdStan, GenStat, Gretl, H2O.ai, JAGS, Julia, KNIME, Mathematica, Matlab, OpenBUGS, Orange, OxMetrics, PSPP, Rattle, SHAZAM, Stat/Transfer, Tanagra, TSP, Weka
  • Windows + limited cross-platform: Mplus
  • Windows-only CLI: SPSS Statistics, EViews, JMP, LIMDEP, Microfit, NCSS, NLOGIT, Origin, Q(MRKS), SPSS Modeler, Statistica
  • GUI-only detection + manual launch guide: AMOS, GraphPad Prism, JASP, jamovi, Minitab (never drive batch via CLI; mtb.exe /run opens the Minitab GUI, not headless)

Full platform matrix in references/platform-support.md; extended config in ADDITIONAL_SOFTWARE.md.

Router Paths

When gate 0 classifies a request as Simple (clear tool + action), route straight to the canonical per-tool entry script. These are the 6 primary entry points; the rest are auto-discovered from the platform matrix:

  • scripts/windows-only/SPSS/setup_spss.ps1 — SPSS Statistics (Windows)
  • scripts/windows-only/statsoft-r.ps1 — R CLI wrapper / data conversion (Windows)
  • scripts/cross-platform/R/setup_r.sh — R (cross-platform)
  • scripts/cross-platform/Stata/setup_stata.sh — Stata (cross-platform)
  • scripts/windows-only/statsoft-sas.ps1 — SAS (Windows)
  • scripts/cross-platform/SAS/setup_sas.sh — SAS (cross-platform)

Clarification Gate (gate 0) — friendly menu policy

Per ct-base §13 (the same pattern ct-advisor implements as its gate 0), this skill triages the user's first message before opening any menu and defaults to the friendliest path. The interactive menus (scan-confirmation, config-mode selection) are only shown when step-by-step confirmation genuinely helps — never forced onto a simple request.

Classify the first message into one of three paths:

  • Simple — specific, single-intent, answerable directly (e.g. "Connect SPSS 26", "Convert data.sav to data.dta", "Run my Stata do-file batch"). → Detect / act in one pass. Do NOT pop the scan or config menu. If the tool and target are clear, route straight to detection / configuration (detect-only by default) and report; optionally offer a deeper step ("want me to also scan for the rest?") rather than demanding a choice.
  • Complex — multi-decision or "set up everything / I'm not sure what's installed" (Example 4 in the README). → Present the routing menu (auto-scan vs specify-paths) and confirm step by step. Only open the full menu when step-by-step confirmation genuinely helps.
  • Vague — need unclear / user undecided (Example 5, "I want to use statistical software but don't know where to start"). → Enter grill-me clarify mode: ask 1–3 conclusion-changing questions per round (which tools are installed? what do you want to do — run old scripts / convert data / build new analysis? headless or GUI?), branch-by-branch, until the right tool is locked — never dump the 34-tool list or pick for the user.

Default to the friendliest path: when in doubt between simple and complex, give a short direct detection + an optional deeper-menu offer instead of forcing a menu. When the user's first message already names a clear target (a specific tool + action), skip the menu entirely and go straight to detection / configuration.

> The clarification strings themselves follow the locale switch ($script:isZH / SCRIPT_LANG), so menus and probes render in Chinese on a zh-* system and English otherwise — consistent with ct-base §13.3 (this skill's script-embedded locale mechanism is the equivalent of i18n.py).

Execution Workflow

  1. Detect Platform — cross-platform source scripts/cross-platform/_platform-detect.sh (sets WB_OS / WB_ARCH; Windows handled inside .ps1 scripts, no source)
  2. Pre-scan Confirmation (only when gate 0 classifies the request as Complex) — before a full scan, prompt and wait:
    - Prompt (English by default; auto-switched to Chinese on a zh-* locale): "⚠️ Auto-scan may take a while (~30s on Windows). If you have ≤3 packages, specify paths to skip. Your choice?" Options: A) Auto-scan B) Specify paths
    - A → step 3; B → skip scan, go to step 4
  3. System Scan (only if A) — batch-detect installed software:
    - Windows: scripts/windows-only/scan/scan_all.ps1; Mac/Linux: scripts/cross-platform/scan/scan_all.sh
    - Output JSON: {"R":{"installed":true,"path":"...","version":"..."},...}
    - Batch scan (scan_all.*): without explicit consent it is skipped entirely (prints a notice, exits 0, no JSON). With consent (set STATSOFT_AUTO_WRITE to 1 or STATSOFT_CONFIRM to 1 plus an interactive y) it returns the full {path, version} JSON. STATSOFT_REVEAL does not affect the batch scan.
    - Per-software setup (setup_*.sh / setup_*.ps1): reports installed=true with path / version hidden by default; STATSOFT_REVEAL set to 1 reveals them in the setup output — this is the only thing REVEAL controls.
  4. Select Config Mode — batch / specified / single-software (calls individual setup_*.ps1 or setup_*.sh)
  5. Detect & Setup — route to the platform script; non-Windows auto-hides incompatible software
  6. Save Config — detect-only by default; writes config.json only with explicit authorization (set STATSOFT_AUTO_WRITE to 1 or STATSOFT_CONFIRM to 1 plus an interactive y)
  7. Output Summary — per references/completion-prompts.md template

Default-Deny Gates

All persistence and sensitive operations are off by default and require explicit authorization (fail-closed), consistent with the scripts:

Gate Effect Default
STATSOFT_AUTO_WRITE set to 1 Persist config.json (non-interactive / agent context) off
STATSOFT_CONFIRM set to 1 + TTY y Persist after interactive confirmation off
STATSOFT_REVEAL set to 1 Reveal path / version in per-software setup output only (batch scan_all needs consent, not REVEAL) off
STATSOFT_VERIFY set to 1 Allow launching third-party binaries for version / verification off
STATSOFT_CMDSTAN_RUN set to 1 Allow compiling & running user Stan models (untrusted native code) off

All writes go through scripts/common/write_config.py: accepts only the canonical config.json under the skill root, and before writing takes a timestamped backup (config.json.bak.yyyymmdd_hhmmss) then atomic-replaces.

Core Permissions

  • Local file read-write — config.json, temp scripts
  • Process execution — statistical software binaries
  • Network access — CRAN / Anaconda repos

Trust & Safety

This skill performs high-risk operations; understand the risk levels before use:

Risk Level
Execute local executables 🔴 High
Download & install software 🔴 High
Execute user scripts (e.g. .sps via SPSS Python) 🔴 High
Modify config.json 🟡 Medium
Network access 🟡 Medium

Pre-flight: ✅ review all scripts; ✅ confirm config.json changes (auto-backup); ✅ confirm any downloads; ✅ inspect generated commands for sensitive projects.

Known Issues & Pitfalls (SPSS, Windows)

Two real failures reproduced when running SPSS on a host where the agent shell
injects its own PYTHONPATH (e.g. WorkBuddy Bash injects
PYTHONPATH=<app>/cli/vendor/shim with a sitecustomize.py using Python 3.6+
os.fspath). Recorded here so the agent never repeats them.

Detailed root-cause + exact fix commands for the 3 reproduced SPSS failures (PYTHONPATH/os.fspath crash; OUTPUT EXPORT unavailable in headless mode; SAVE OUTFILE must point at an existing directory) → references/known_issues.md.

# Error / failure Cause Fix
1 AttributeError: 'module' object has no attribute 'fspath' on spss.StartSPSS() Injected PYTHONPATH shim uses 3.6+ os.fspath; SPSS bundled Python is 3.4 Use spss_helper.py (drops PYTHONPATH); manual calls prefix PYTHONPATH=
2 OUTPUT EXPORT / OUTPUT SAVE to .spv/.pdf fails in headless mode No output-viewer document in the no-GUI backend Use stats.exe --production "job.spj"
3 SAVE OUTFILE fails / skill self-test fails Absolute path to a non-existent directory Use a relative path (working dir = tests/)

Reference Files

  • ADDITIONAL_SOFTWARE.md — extended software config (31 packages)
  • references/command-examples.md — per-software CLI command examples
  • references/config-templates.md — config.json templates & field reference
  • references/version-specifics.md — version differences
  • references/completion-prompts.md — completion prompt templates
  • references/trust-and-safety.md — risk levels & pre-flight details
  • references/workflow.md — workflow gating details
  • references/platform-support.md — full platform support matrix
  • tests/ — automated test scripts

常见问题

5 问
答案由本站依据条目字段整理
统计软件命令接入助手怎么安装?

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

统计软件命令接入助手支持哪些客户端?

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

统计软件命令接入助手权限高吗,安全吗?

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

统计软件命令接入助手收费吗?

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

统计软件命令接入助手用什么许可证?

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

热门专题

按场景挑技能
全部专题 →

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