跳到主要内容
知仓学习社ZHICANG

stata-environment-diagnose

Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues. Use when setup is failing, Stata is not discovered, packages are …

读环境变量(配置)严重 0 · 高危 3brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少5 个文本文件,3 KB
它会碰到什么读环境变量(配置)
命中总数3 处
命中统计严重 0 · 高 3 · 中 0 · 低 0

关于「读环境变量(配置)」:这个技能会读 process.env 之类的环境变量,但读到的都是端口、目录、超时这类配置项,没有读取密钥类变量。扫描规则原本把「读环境变量」一律算作「读凭据」,本站按变量名做了细化区分,命中明细仍如实列在下面。

逐条看命中(3 条严重或高危)
  • scripts/report_environment.py:19cred-envread
    "STATA_PATH": os.environ.get("STATA_PATH", ""),
  • scripts/report_environment.py:20cred-envread
    "MCP_STATA_STARTUP_DO_FILE": os.environ.get("MCP_STATA_STARTUP_DO_FILE", ""),
  • scripts/report_environment.py:21cred-envread
    "MCP_STATA_TEMP_DIR": os.environ.get("MCP_STATA_TEMP_DIR", ""),

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Environment Diagnose

Use this skill for setup and platform troubleshooting.

  1. Verify detection with stata_manage_session(action="detect").
  2. Reproduce the smallest failing command.
  3. Use logs, package checks, and environment reporting before suggesting a fix.
  4. Separate root cause, evidence, remediation, and verification.

Read references/troubleshooting.md for the diagnosis flow and use scripts/report_environment.py for a deterministic environment summary.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。