environment-setup
Skill0 starsChanged 39 days agoMITView on GitHub
Use when Python environment setup is needed for data visualization or conda installation is required
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- linxule/carreltheir own version, first seen Nov 8, 2026
- 200iqlabs/shared-skillstheir own version, first seen Oct 31, 2026
- Norman-bury/articlewriting-skillword for word, first seen Oct 8, 2026
- Norman-bury/research-writing-skillword for word, first seen Oct 8, 2026
Other versions4 projects use a version of this.
Word for word · 2
- Norman-bury/research-writing-skill★ 3.4k100% same
- Norman-bury/articlewriting-skill★ 3.4k100% same
Edited · 0
None found.
Wrote their own version · 2
- 200iqlabs/shared-skills★ 4same name
- linxule/carrel★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- research-writing-assistantSkill
- brainstorming-researchSkill
- evidence-driven-writingSkill
- experiment-results-planningSkill
- figures-diagramSkill
- figures-pythonSkill
- latex-outputSkill
- literature-reviewSkill
- paper-orchestrationSkill
- peer-reviewSkill
- prompts-collectionSkill
- statistical-analysisSkill
- using-research-writingSkill
- verificationSkill
- writing-chaptersSkill
- writing-coreSkill
- writing-humanitiesSkill
- writing-lawSkill
- writing-medicalSkill
The file
Files
环境配置
本技能用于在终端完成 Python 画图环境的全流程配置。
适用场景
- 用户要求安装 Miniconda
- 用户要求创建虚拟环境
- 用户要求"用 Python 画图"但环境未就绪
- 绘图脚本运行报环境相关错误
Checklist
- 系统识别(macOS/Linux/Windows)
- Miniconda 安装/修复
- conda 初始化
- 创建
research环境 - 安装绘图依赖
- 环境自检
- 更新
plan/progress.md
一、系统识别
macOS / Linux
uname -s
uname -m
echo "$SHELL"Windows PowerShell
$PSVersionTable.PSVersion
$env:OS二、Miniconda 安装
macOS 全自动流程
set -euo pipefail
# 1) 选择安装包
ARCH="$(uname -m)"
if [ "$ARCH" = "arm64" ]; then
URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh"
else
URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
fi
# 2) 下载并静默安装
INSTALLER="$HOME/Downloads/miniconda.sh"
curl -fsSL "$URL" -o "$INSTALLER"
bash "$INSTALLER" -b -p "$HOME/miniconda3"
# 3) 当前 shell 立即可用
export PATH="$HOME/miniconda3/bin:$PATH"
# 4) 初始化 shell
"$HOME/miniconda3/bin/conda" init "$(basename "$SHELL")"
# 5) 验证
conda --versionWindows 全自动流程(PowerShell)
$ErrorActionPreference = "Stop"
# 1) 下载
$installer = Join-Path $env:TEMP "Miniconda3-latest-Windows-x86_64.exe"
Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile $installer
# 2) 静默安装
$target = "$env:USERPROFILE\miniconda3"
Start-Process -FilePath $installer -ArgumentList "/InstallationType=JustMe","/RegisterPython=0","/S","/D=$target" -Wait
# 3) 初始化 powershell
& "$target\Scripts\conda.exe" init powershell
# 4) 验证
$env:Path = "$target;$target\Scripts;$target\condabin;" + $env:Path
conda --version三、创建科研虚拟环境
默认环境名:research
创建与激活
conda create -n research python=3.11 -y
conda activate research
python -m pip install --upgrade pip四、安装绘图依赖
pip install numpy pandas scipy matplotlib seaborn scikit-learn statsmodels jupyter ipykernel openpyxl
python -m ipykernel install --user --name research --display-name "Python (research)"可选:
pip install plotly pingouin五、环境自检
python - <<'PY'
import sys
import numpy, pandas, matplotlib, seaborn, sklearn, statsmodels
print('Python:', sys.version.split()[0])
print('numpy:', numpy.__version__)
print('pandas:', pandas.__version__)
print('matplotlib:', matplotlib.__version__)
print('seaborn:', seaborn.__version__)
print('sklearn:', sklearn.__version__)
print('statsmodels:', statsmodels.__version__)
print('ENV CHECK: OK')
PY六、画图任务前检查
执行画图任务前,至少确认:
- 已激活
research环境 matplotlib和seaborn导入正常- 输出目录存在(如
figures/)
七、常见问题与修复
conda: command not found
macOS / Linux:
export PATH="$HOME/miniconda3/bin:$PATH"
conda init "$(basename "$SHELL")"Windows PowerShell:
$env:Path = "$env:USERPROFILE\miniconda3;$env:USERPROFILE\miniconda3\Scripts;" + $env:Path下载慢或超时
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple包冲突
conda create -n research_clean python=3.11 -y
conda activate research_clean
pip install -r requirements.txt八、执行约束
<HARD-GATE>
1. 用户提到"安装环境/画图报错",优先执行本技能
2. 先识别系统,再给对应命令,禁止跨系统混发命令
3. 执行完成后,必须回写 `plan/progress.md`
</HARD-GATE>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

