← スキル一覧に戻る

setup-env
by benchflow-ai
setup-envは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 251🍴 170📅 2026年1月23日
SKILL.md
name: setup-env description: "When given a Python project codebase, this skill helps the agent to set up virtual environments, install dependencies, and run scripts."
Skill: Use uv to manage Python environments
Scope
- Create a virtual environment
- Install dependencies
- Run Python scripts/commands
Assume uv is already available on PATH.
Workflow selection
- If
pyproject.tomlexists: use project workflow (uv sync,uv run) - Else if
requirements.txtexists: use pip workflow (uv venv,uv pip install -r ...,.venv/bin/python ...) - Else: stop with an error ("No pyproject.toml or requirements.txt found.")
Project workflow (pyproject.toml)
Create venv + install dependencies
From the repo root (where pyproject.toml is):
uv sync
Notes:
- uv maintains a persistent project environment at
.venvand installs deps there.
Run scripts / commands (preferred)
Always run within the project environment:
uv run -- python <script.py> [args...]uv run -- python -m <module> [args...]
Notes:
uv runexecutes inside the project environment and ensures it is up-to-date.
Pip workflow (requirements.txt)
Create venv
From the repo root:
uv venv# creates.venvby default
Install dependencies
uv pip install -r requirements.txt
Run scripts / commands
Run using the venv interpreter directly (no activation required):
.venv/bin/python <script.py> [args...].venv/bin/python -m <module> [args...]
(uv will also automatically find and use the default .venv in subsequent invocations when you use uv pip ... commands.)
Minimal sanity checks (optional)
test -x .venv/bin/pythonuv pip list(verify packages installed)
スコア
総合スコア
65/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
○Issue管理
オープンIssueが50未満
0/5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です