← 返回 Skills 市场
lz0311-zhen

mplus深度洞察报告生成器

作者 lz0311-zhen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
37
总下载
4
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mplus-report-insight
功能描述
自动解析 Mplus 输出文件,提取拟合指数和标准化参数,生成符合 APA 标准的图表与可引用的 PDF 分析报告。
使用说明 (SKILL.md)

name: mplus-deep-insight version: 1.0.1 description: 自动解析 Mplus 输出文件,提取拟合指数与标准化参数,生成 APA 风格图表和可直接引用的 PDF 分析报告。专为心理学、管理学、教育学等社科研究者设计。 trigger-keywords: Mplus, SEM, CFA, 结构方程, 验证性因子分析, 模型拟合, 路径系数, 报告生成 author: Your Name license: MIT tags: [Mplus, SEM, CFA, data-analysis, report-generation, psychology, research]

🔬 Mplus 深度洞察报告生成器

你是否每次打开 Mplus 的 .out 文件都要用肉眼找 χ²、CFI、RMSEA? 是否手动将一堆数字复制到 Excel 里制图,只为给导师看模型拟合好不好? 这个助手能自动完成这些机械工作,并为你生成符合 APA 7 标准的完整分析报告

🎯 适用场景

  • 验证性因子分析(CFA)/ 结构方程模型(SEM)结果解读

  • 多模型拟合比较

  • 学位论文、期刊论文的结果图表制作

  • 组会汇报前的快速数据整理

🧠 它能做什么

上传 Mplus 的 .out 文本文件,自动执行:

  1. 文件校验:确认是否为有效 Mplus 输出,检测必要模块是否存在

  2. 统计量提取:无条件适配不同版本格式,提取 χ²/df、CFI、TLI、RMSEA(含 90% CI)、SRMR、AIC、BIC 及 STDYX 标准化参数

  3. 可视化图表:生成 不少于 3 张 学术图表(仅使用蓝/橙/青绿三色,色盲友好)

    • 拟合指数阈值对比图

    • 标准化估计森林图(显著性着色)

    • 参数载荷排序图

  4. PDF 报告:整合元数据、图表与分级解读,可直接插入论文或发送导师

  5. 智能解读:基于 Hu & Bentler (1999) 阈值给出严谨的分级结论,不做“一刀切”判断

⚙️ 工作流程

  1. 用户上传或指定 .out 文件路径

  2. 运行 python scripts/validate.py 进行格式校验

  3. 运行 python scripts/main.py -i 你的文件.out -o 报告.pdf

  4. 工具自动解析 → 制图 → 生成 PDF → 控制台预览关键结果

📂 项目结构

mplus-deep-insight/ ├── SKILL.md ├── demo-input.txt ├── scripts/ │ ├── main.py # 核心:解析、制图、报告 │ ├── validate.py # 文件合法性校验 │ └── utils.sh # 一键环境安装 ├── references/ │ ├── background.md # Mplus 输出背景知识 │ ├── operating-rules.md # 统计阈值与图表规范 │ └── examples.md # 典型使用案例 └── assets/ ├── output-template.md └── schema.json

## 🚀 快速开始

```bash

# 环境准备(仅首次)

bash scripts/utils.sh

source mplus-env/bin/activate

 

# 校验文件(确保是 Mplus 输出)

python scripts/validate.py my_model.out

 

# 生成报告(输出为 analysis_report.pdf)

python scripts/main.py -i my_model.out -o analysis_report.pdf

📊 示例效果

输入一份典型的 CFA 输出,生成的报告包含:

  • 📋 报告元数据表(文件来源、Mplus 版本、生成时间)

  • 📈 拟合指数对比图(χ²/df、CFI、TLI、RMSEA、SRMR + 阈值线)

  • 🌲 标准化路径系数森林图(p\x3C0.05 为蓝色,否则橙色)

  • 📊 前 15 大载荷/路径系数排序图

  • 📝 每张图一段基于数值的分级解释(优秀/可接受/欠佳)

  • ✅ 综合结论与后续建模建议

## 脚本

  • scripts/main.py — 主分析脚本:解析、制图、生成 PDF

  • scripts/validate.py — 快速校验文件是否为合法 Mplus 输出

  • scripts/utils.sh — 一键安装 Python 依赖(matplotlib, pandas, reportlab, numpy)

 

## 参考资料

  • references/background.md — Mplus 输出格式与关键模块说明

  • references/operating-rules.md — 模型拟合阈值与图表设计原则

  • references/examples.md — 典型使用案例与命令示例

  • assets/schema.json — 解析后的数据结构描述

⚠️ 注意事项与学术规范

  • 前提条件:输入文件必须包含 MODEL FIT INFORMATION 和 STDYX Standardization 模块,否则报告不完整。

  • 阈值说明:工具使用 Hu & Bentler (1999) 的推荐标准,但用户需结合自身领域和样本量灵活判断。

  • 显著性声明:自动判定 p\x3C0.05 为显著,未进行多重比较校正;若模型参数较多,请自行使用 Bonferroni 或 FDR 方法。

  • 后果声明:报告为 AI 辅助生成,仅供初步参考,最终统计审核应由研究者负责。

安全使用建议
Review this skill carefully before installing. Its goal is benign, but the published package does not include the scripts it tells the agent to run. Only use it if you provide trusted scripts yourself or adjust the instructions to use explicit, verified paths; do not let it run a generic scripts/utils.sh or scripts/main.py from an unrelated project directory.
能力评估
Purpose & Capability
The described purpose, parsing Mplus .out files and generating academic charts/PDF reports, is coherent and not inherently sensitive.
Instruction Scope
The workflow instructs running bash scripts/utils.sh and python scripts/*.py using relative paths, but the artifact contains only SKILL.md; this creates ambiguous execution scope and could target unrelated scripts in the user workspace.
Install Mechanism
The skill advertises an environment setup script and dependency installation, but no setup script or dependency files are shipped for review, so the install behavior is under-specified.
Credentials
Processing user-supplied Mplus output files and generating local reports is proportionate, but command execution is not well-contained because the referenced scripts are absent.
Persistence & Privilege
No persistence, credential access, background workers, or privilege escalation are present in the reviewed artifact; the concern is missing/ambiguous script execution rather than hidden persistence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mplus-report-insight
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mplus-report-insight 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- First release: automated tool for parsing Mplus output and generating APA-style PDF reports. - Extracts fit indices and standardized parameters, including χ²/df, CFI, TLI, RMSEA, SRMR, AIC, BIC, and STDYX. - Creates at least 3 colorblind-friendly academic charts (fit index comparison, forest plot, and parameter ranking). - Offers automated significance highlighting and result interpretation based on Hu & Bentler (1999) standards. - Designed for psychology, management, and social sciences research scenarios. - Includes easy setup scripts, file validation, example cases, and reference materials.
元数据
Slug mplus-report-insight
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

mplus深度洞察报告生成器 是什么?

自动解析 Mplus 输出文件,提取拟合指数和标准化参数,生成符合 APA 标准的图表与可引用的 PDF 分析报告。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 mplus深度洞察报告生成器?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mplus-report-insight」即可一键安装,无需额外配置。

mplus深度洞察报告生成器 是免费的吗?

是的,mplus深度洞察报告生成器 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

mplus深度洞察报告生成器 支持哪些平台?

mplus深度洞察报告生成器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 mplus深度洞察报告生成器?

由 lz0311-zhen(@lz0311-zhen)开发并维护,当前版本 v1.0.0。

💬 留言讨论