Agent skill

Environment Setup

by Norman-bury in Norman-bury/research-writing-skill

A skill your agent uses when Python environment setup is needed for data visualization or conda installation is required

MITAuto-check passedData & Analytics

Install Environment Setup

skills CLI
$ npx skills add Norman-bury/research-writing-skill --skill environment-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Norman-bury/research-writing-skill environment-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Norman-bury/research-writing-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/environment-setup .claude/skills/environment-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
environment-setup
GitHub stars
3.4k
Token cost
~840 tokens
SKILL.md length
77 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when Python environment setup is needed for data visualization or conda installation is required

  • Works in 3 steps: 已激活 research 环境 → matplotlib 和 seaborn 导入正常 → 输出目录存在(如 figures/)
  • Python environment setup is needed for data visualization
  • SKILL.md covers 适用场景, Checklist, 一、系统识别 and 二、Miniconda 安装, plus 6 more sections
  • Calls conda, pip and python; reaches repo.anaconda.com and pypi.tuna.tsinghua.edu.cn

What it does

Environment Setup is an agent skill from Norman-bury/research-writing-skill. Use when Python environment setup is needed for data visualization or conda installation is required

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Data visualization. It works with Python, macOS, PowerShell and Linux. The repository describes itself as: 科研写作助手 (Research Writing Assistant). The licence is MIT.

When your agent uses it

  • Python environment setup is needed for data visualization
  • Conda installation is required

Example prompts

  • “/environment-setup”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 已激活 research 环境
  2. matplotlib 和 seaborn 导入正常
  3. 输出目录存在(如 figures/)

What it can do on your machine

Read from SKILL.md and the folder at commit 6f79595. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • conda
    • pip
    • python
    • curl
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • repo.anaconda.com
    • pypi.tuna.tsinghua.edu.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Environment Setup loads about 840 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 77 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~840

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Norman-bury/research-writing-skill at commit 6f79595, republished under its MIT licence (© Norman-bury). 77 words, ~840 tokens.

Download SKILL.mdSave it as .claude/skills/environment-setup/SKILL.md (or your agent's skills folder).
name
environment-setup
description
Use when Python environment setup is needed for data visualization or conda installation is required

环境配置

本技能用于在终端完成 Python 画图环境的全流程配置。

适用场景

  • 用户要求安装 Miniconda
  • 用户要求创建虚拟环境
  • 用户要求"用 Python 画图"但环境未就绪
  • 绘图脚本运行报环境相关错误

Checklist

  • 系统识别(macOS/Linux/Windows)
  • Miniconda 安装/修复
  • conda 初始化
  • 创建 research 环境
  • 安装绘图依赖
  • 环境自检
  • 更新 plan/progress.md

一、系统识别

macOS / Linux
bash
uname -s
uname -m
echo "$SHELL"
Windows PowerShell
powershell
$PSVersionTable.PSVersion
$env:OS

二、Miniconda 安装

macOS 全自动流程
bash
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 --version
Windows 全自动流程(PowerShell)
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

创建与激活
bash
conda create -n research python=3.11 -y
conda activate research
python -m pip install --upgrade pip

四、安装绘图依赖

bash
pip install numpy pandas scipy matplotlib seaborn scikit-learn statsmodels jupyter ipykernel openpyxl
python -m ipykernel install --user --name research --display-name "Python (research)"

可选:

bash
pip install plotly pingouin

五、环境自检

bash
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

六、画图任务前检查

执行画图任务前,至少确认:

  1. 已激活 research 环境
  2. matplotlib 和 seaborn 导入正常
  3. 输出目录存在(如 figures/)

七、常见问题与修复

conda: command not found

macOS / Linux:

bash
export PATH="$HOME/miniconda3/bin:$PATH"
conda init "$(basename "$SHELL")"

Windows PowerShell:

powershell
$env:Path = "$env:USERPROFILE\miniconda3;$env:USERPROFILE\miniconda3\Scripts;" + $env:Path
下载慢或超时
bash
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
包冲突
bash
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>

© Norman-bury, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/environment-setup of Norman-bury/research-writing-skill.

Open the folder on GitHubat commit 6f79595

Compare with similar skills

Environment Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Environment Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Environment Setup this skillNorman-bury/research-writing-skill3.4k—~840Automated safety check: PassMIT
Remote Hostslibnativeapi/nativeapi161—~1.3kAutomated safety check: PassMIT
Local Asrysyecust/lecture-to-notes270—~1.6kAutomated safety check: PassCustom licence
UvBiFangKNT/mtga1.2k—~541Automated safety check: PassAGPL-3.0
Setupmarketcalls/vectorbt-backtesting-skills208—~2kAutomated safety check: NotesNone
Image Manipulation Image Magickgithub/awesome-copilot40k1 repos~1.7kAutomated safety check: NotesMIT

Similar skills

  • Remote Hosts

    libnativeapi/nativeapi

    Build, run, and GUI-test on another machine over SSH — the user's Windows laptop today, Linux or other macOS machines tomorrow — with one symmetric CLI for every OS: push scripts, run them either in…

    161 GitHub stars~1.3k tokensUpdated yesterday
    MobileAuto-check passed
  • Local Asr

    ysyecust/lecture-to-notes

    把本地长视频/音频转写成文字稿 + 可选字幕,纯本地(不上传云端),用 sherpa-onnx X-ASR Zipformer transducer 模型(int8 量化、中英双语、自动标点)。已在 macOS Apple Silicon(int8 + AMX,~100× 实时)、Linux ARM64(CPU,~32× 实时)与 Windows(PowerShell…

    270 GitHub stars~1.6k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Uv

    BiFangKNT/mtga

    在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…

    1.2k GitHub stars~541 tokensUpdated 3 mo ago
    Auto-check passed
  • Setup

    marketcalls/vectorbt-backtesting-skills

    Set up the Python backtesting environment. An agent skill from marketcalls/vectorbt-backtesting-skills.

    208 GitHub stars~2k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check: notes
  • Image Manipulation Image Magick

    github/awesome-copilot

    Official

    Process and manipulate images using ImageMagick. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~1.7k tokens
    Data & AnalyticsAuto-check: notes
  • Sino Drug Instructions Search

    infometa/workbuddyskills

    在用户询问药品说明书、用药信息、适应症、禁忌、用法用量、不良反应、成分、规格、厂家,或根据症状/疾病查找药品时使用此技能。⚠️ 调用前须已通过 useskill 加载本技能(sino-drug-instructions-search)。安装 sinohealthskillssdk;严格按照当前 SKILL.md 执行。

    344 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check: notes

More from Norman-bury/research-writing-skill

All 20 skills in this repo
  • Evidence Driven Writing

    Norman-bury/research-writing-skill

    A skill your agent uses when writing or revising Introduction, Related Work, background, literature synthesis, or any section where references must drive claims

    3.4k GitHub stars~952 tokensUpdated 4 mo ago
    Auto-check passed
  • Experiment Results Planning

    Norman-bury/research-writing-skill

    A skill your agent uses when designing experiments, result tables, mock planning data, evaluation protocols, or results sections before real data are final

    3.4k GitHub stars~990 tokensUpdated 4 mo ago
    Auto-check passed
  • Figures Diagram

    Norman-bury/research-writing-skill

    A skill your agent uses when creating flowcharts, architecture diagrams, or conceptual diagrams - generates prompts for image AI

    3.4k GitHub stars~548 tokensUpdated 4 mo ago
    Auto-check passed
  • Figures Python

    Norman-bury/research-writing-skill

    A skill your agent uses when creating data visualizations for papers - generates publication-quality plots with top-journal color schemes

    3.4k GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Latex Output

    Norman-bury/research-writing-skill

    A skill your agent uses when user requests LaTeX format output or has provided school/journal LaTeX templates

    3.4k GitHub stars~977 tokensUpdated 4 mo ago
    Auto-check passed
  • Literature Review

    Norman-bury/research-writing-skill

    A skill your agent uses when writing literature review sections - guides searching, organizing, and synthesizing academic sources

    3.4k GitHub stars~2.2k tokensUpdated 4 mo ago
    Auto-check: notes

Questions about Environment Setup

What does Environment Setup do?

A skill your agent uses when Python environment setup is needed for data visualization or conda installation is required. Environment Setup is an agent skill from Norman-bury/research-writing-skill.

When should I use Environment Setup?

Environment Setup fits situations like: Python environment setup is needed for data visualization; conda installation is required.

How do I install Environment Setup in Claude Code?

Run `npx skills add Norman-bury/research-writing-skill --skill environment-setup -a claude-code`. Or copy the skill folder (skills/environment-setup in Norman-bury/research-writing-skill) into .claude/skills/environment-setup in your project. Claude Code loads it when a task matches its description.

How do I install Environment Setup in Codex?

Run `npx skills add Norman-bury/research-writing-skill --skill environment-setup -a codex`. Or copy the skill folder (skills/environment-setup in Norman-bury/research-writing-skill) into .agents/skills/environment-setup in your project. Codex loads it when a task matches its description.

Can I use Environment Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Norman-bury/research-writing-skill --skill environment-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/environment-setup, .gemini/skills/environment-setup, .github/skills/environment-setup and .opencode/skills/environment-setup in your project.

What does Environment Setup need to run?

Going by SKILL.md and its folder, Environment Setup needs the command-line tools its instructions call (conda, pip, python, curl and bash). Our summary lists: Python 3.

Does Environment Setup access the network?

SKILL.md names 2 domains. In commands or code: repo.anaconda.com and pypi.tuna.tsinghua.edu.cn; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Environment Setup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Environment Setup use?

Environment Setup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Environment Setup use?

About 840 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Environment Setup?

Skills that share tags, products or a category with Environment Setup: Remote Hosts (libnativeapi/nativeapi, 161 stars), Local Asr (ysyecust/lecture-to-notes, 270 stars), Uv (BiFangKNT/mtga, 1.2k stars) and Setup (marketcalls/vectorbt-backtesting-skills, 208 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Environment Setup?

Norman-bury (a GitHub user) maintains it in Norman-bury/research-writing-skill, which has 3,357 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on June 10, 2026.

Source: Norman-bury/research-writing-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.