Install
openclaw skills install @medstatstar/statsoft-cli跨平台统计软件 CLI 集成,面向 AI Agent;覆盖 34+ 款软件(R/Stata/SAS/SPSS/Python/贝叶斯/ML等),双语。核心价值:激活历史代码资产,用于 AI 工作流自动化。 / Cross-platform statistical software CLI integration for AI Agent; 34+ packages (R/Stata/SAS/SPSS/Python/Bayesian/ML, etc.), bilingual. Core value: activating historical code assets for AI workflow automation.
openclaw skills install @medstatstar/statsoft-cliPick the README that matches your language for human-readable, language-specific guides:
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.
Activates historical code assets locked in statistical software (syntax, scripts, projects) and wires them into AI workflows via automated detection, configuration, and execution.
Covers 34+ statistical / data-science packages, auto-routed by platform; non-Windows auto-hides incompatible software:
mtb.exe /run opens the Minitab GUI, not headless)Full platform matrix in references/platform-support.md; extended config in ADDITIONAL_SOFTWARE.md.
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)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:
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 azh-*system and English otherwise — consistent with ct-base §13.3 (this skill's script-embedded locale mechanism is the equivalent ofi18n.py).
source scripts/cross-platform/_platform-detect.sh (sets WB_OS / WB_ARCH; Windows handled inside .ps1 scripts, no source)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 pathsscripts/windows-only/scan/scan_all.ps1; Mac/Linux: scripts/cross-platform/scan/scan_all.sh{"R":{"installed":true,"path":"...","version":"..."},...}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.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.setup_*.ps1 or setup_*.sh)config.json only with explicit authorization (set STATSOFT_AUTO_WRITE to 1 or STATSOFT_CONFIRM to 1 plus an interactive y)references/completion-prompts.md templateAll 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.
config.json, temp scriptsThis 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.
ADDITIONAL_SOFTWARE.md — extended software config (31 packages)references/command-examples.md — per-software CLI command examplesreferences/config-templates.md — config.json templates & field referencereferences/version-specifics.md — version differencesreferences/completion-prompts.md — completion prompt templatesreferences/trust-and-safety.md — risk levels & pre-flight detailsreferences/workflow.md — workflow gating detailsreferences/platform-support.md — full platform support matrixtests/ — automated test scripts