← ClaudeAtlas

virtual-environmentlisted

Check and create virtual environments for projects that need them. Use when starting Python/Node projects, or when dependency isolation is needed. Activates for Python, Node.js, and similar ecosystems.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 85
Install: claude install-skill aiskillstore/marketplace
# Virtual Environment Management 가상환경이 필요한 프로젝트에서 환경을 체크하고 생성하는 스킬입니다. ## When This Skill Activates 다음 파일 발견 시 가상환경 필요 여부 체크: | 파일 | 프로젝트 유형 | 가상환경 | |------|-------------|----------| | `requirements.txt` | Python | venv/virtualenv | | `pyproject.toml` | Python (Poetry/PDM) | Poetry/PDM 내장 | | `Pipfile` | Python (Pipenv) | Pipenv 내장 | | `setup.py` | Python 패키지 | venv | | `package.json` | Node.js | node_modules (자동) | | `Gemfile` | Ruby | bundler | | `go.mod` | Go | 모듈 시스템 (자동) | ## Detection Workflow ### 1. 프로젝트 유형 감지 ```bash # 프로젝트 루트에서 실행 ls -la | grep -E "requirements|pyproject|Pipfile|package\.json|Gemfile|go\.mod" ``` ### 2. 가상환경 존재 확인 ```bash # Python venv 확인 ls -la | grep -E "^d.*(venv|\.venv|env|\.env)$" # Python - 활성화 여부 echo $VIRTUAL_ENV # Node - node_modules 확인 ls -d node_modules 2>/dev/null ``` ## Python Projects ### venv (표준 라이브러리) ```bash # 가상환경 생성 python -m venv .venv # 활성화 (macOS/Linux) source .venv/bin/activate # 활성화 (Windows) .venv\Scripts\activate # 의존성 설치 pip install -r requirements.txt # 비활성화 deactivate ``` ### Poetry (권장) ```bash # Poetry 설치 확인 poetry --version # 가상환경 자동 생성 + 의존성 설치 poetry install # 가상환경 내에서 실행 poetry run python script.py # 쉘 진입 poetry shell ``` ### Pipenv ```bash # 가상환경 생성 + 의존성 설치 pipenv install # 가상환경 쉘 진입 pipenv shell # 가상환경 내에서 실행 pipenv run python script.py ``` ### Conda ```bash # 환경 생성 conda create -n myenv python=3.11 # 활성화 conda activate myenv # 의존성 설치 conda install --file requirements.txt # 또는 pip