opalus12138/spss-mac-mcp/spss-analyst
Claude Code and agent skill by opalus12138/spss-mac-mcp
- community
Checking that the SKILL.md file is still in the repository.
Write and execute IBM SPSS Statistics syntax following SPSS conventions and run SPSS MCP analyses defensively. Use when the user asks to run statistical analysis (frequencies, descriptives, regression, t-test, ANOVA, correlations, factor analysis, crosstabs, MDS/PROXSCAL, clustering, survival, mixed models, etc.), write or review SPSS syntax/code, explore or summarize .sav data files, compute/recode/transform variables, clean or restructure data in SPSS, diagnose SPSS MCP timeouts or syntax incompatibilities, or use SPSS MCP tools safely with smoke tests first. Triggered by keywords like SPSS, .sav, 分析, 频率, 回归, 方差分析, 相关, 描述统计, t检验, 因子分析, 交叉表, 编码, 临近映射, MDS, PROXSCAL, or any request involving statistical analysis with SPSS data files.
Install
npx vskill@latest install opalus12138/spss-mac-mcp/spss-analystSKILL.md
SPSS Analyst
Workflow
- Check capabilities — Call
spss_check_statusfirst to confirm SPSS batch is available. - Explore the data — For any
.savfile, callspss_file_summaryorspss_read_metadatato know variable names, types, and labels before writing syntax. - Run a smoke test before heavy or uncommon analysis — If the target procedure is cold-path, high-cost, or unfamiliar, first run a minimal baseline such as
DESCRIPTIVES,FREQUENCIES, orDISPLAY DICTIONARY. - Write syntax — Follow conventions below. See references/spss-syntax.md for full command reference.
- Execute defensively — Use the appropriate MCP tool when one exists; otherwise use
spss_run_syntaxand add optional subcommands only after the minimal command works. - Read warnings, not just success flags — A run may return output and still contain critical warning text. Treat SPSS warning blocks as syntax guidance.
- Interpret — Explain key results in plain language after output arrives.
- Archive output — After every analysis tool call that produces a
Viewer file:, immediately archive results tospss_result/. See Output Archiving below.
Reliability Rules
- Never guess variable names or data shape.
- Never jump directly to a complex procedure on the first try.
- For uncommon methods, start with the smallest valid syntax and then add print/save options.
- If SPSS says a keyword is unrecognized, rewrite the syntax to match the reported valid keywords.
- If timeout behavior looks stale, verify that repo-local
.envis actually being loaded and restart the MCP session if needed.
Core Syntax Rules
| Rule | Correct | Wrong | |
|---|---|---|---|
| Keywords uppercase | FREQUENCIES | frequencies | |
| Period ends every command | DESCRIPTIVES VARIABLES=age. | DESCRIPTIVES VARIABLES=age | |
Subcommands start with / | /STATISTICS=MEAN | STATISTICS=MEAN | |
| Strings in single quotes | 'myfile.sav' | "myfile.sav" | |
Comments with * | * My comment. | # My comment | |
| Missing value code | MISSING VALUES age (99). | — |
Standard File Header
Always begin a syntax block with:
Common Procedure Patterns
Advanced Procedure Guardrails
- For PROXSCAL / MDS, do not assume keywords like
SYMMETRIC,EUCLID, orCONFIGURATIONare valid in the installed syntax variant without testing. - Start with a smoke test, then a minimal valid target procedure, then add richer output requests.
- For timeout vs syntax ambiguity, prove the environment with a baseline command first.
Output Archiving
After every mcp__spss__* tool call that produces output (i.e., result contains Viewer file:), immediately:
1. Ensure directory exists
2. Determine next sequence number — Glob spss_result/[0-9][0-9]_*, take max prefix + 1 (start at 01).
3. Map tool → type label
| Tool / main command | Label | |
|---|---|---|
spss_descriptives / DESCRIPTIVES | descriptives | |
spss_frequencies / FREQUENCIES | frequencies | |
spss_twostep_cluster / QUICK CLUSTER | kmeans_cluster | |
spss_cluster_hierarchical / CLUSTER | hierarchical_cluster | |
spss_anova / ONEWAY | oneway_anova | |
spss_t_test / T-TEST | ttest | |
spss_regression / REGRESSION | regression | |
spss_correlations / CORRELATIONS or NONPAR CORR | correlation | |
spss_factor / FACTOR | factor_analysis | |
spss_reliability_alpha / RELIABILITY | reliability | |
spss_logistic_regression / LOGISTIC REGRESSION | logistic_regression | |
spss_glm_univariate / GLM | glm_univariate | |
spss_manova / MANOVA | manova | |
spss_mixed / MIXED | mixed_model | |
spss_crosstabs / CROSSTABS | crosstabs | |
spss_nonparametric_tests / NPAR TESTS | nonparametric | |
spss_normality_outliers / EXAMINE | normality | |
spss_run_syntax (mixed) | infer from dominant command |
4. Copy .spv — Extract path after Viewer file: from tool result, copy to spss_result/NN_<label>.spv. Skip if path missing.
5. Write .sps — Create spss_result/NN_<label>.sps with header block + full syntax:
Constraints: sequence number is global (not per-type); parallel tool calls each get their own number; read-only tools (spss_list_files, spss_file_summary, spss_import_csv, spss_check_status, etc.) do not trigger archiving.
Reference Files
- [references/spss-syntax.md](references/spss-syntax.md) — Full command reference: all procedures, data management, variable operations, SELECT IF, SORT, MERGE, OMS. Load when writing unfamiliar or complex commands.
- [references/spss-mcp-tools.md](references/spss-mcp-tools.md) — All MCP tools with parameters and when to use each. Load when choosing which tool to call.
- [references/failure-patterns.md](references/failure-patterns.md) — Read when diagnosing timeouts, invalid keywords, stale
.envbehavior,success=Truewith warnings, or advanced procedure incompatibilities.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/spss-analyst/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opalus12138/spss-mac-mcp/spss-analyst)