File contents Python Execution Skill
概要
Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。
Step 1: 環境検出
ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null
Step 2: 実行コマンド選択
検出ファイル
実行方法
優先度
pyproject.toml
uv run python
最高
.venv/
.venv/bin/python
中
venv/
venv/bin/python
中
何もなし
python3
最低
Step 3: 実行
uv環境(pyproject.tomlあり)
# 依存関係インストール(初回のみ)
uv sync
# 実行
uv run python script.py
uv run python -m module_name
uvがない場合のインストール :
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc # パスを反映
venv環境(.venv/あり)
# 依存関係インストール(初回のみ)
.venv/bin/pip install -r requirements.txt
# 実行
.venv/bin/python script.py
システムPython
python3 script.py
ベストプラクティス
DO
DON'T
実行前に環境を調査
環境を確認せずに実行
README.md/CLAUDE.mdの指示を優先
グローバル環境に依存関係をインストール
pyproject.tomlがあればuv使用
source activateに依存
仮想環境のPythonをパス指定で実行
python2を使用
詳細ガイド(必要時のみ参照)
ファイル
内容
参照タイミング
01-uv-setup.md
uv詳細セットアップ、Pythonバージョン管理
初回セットアップ時
02-troubleshooting.md
エラー解決策
問題発生時
関連Skill
corder-code-templates : Pythonコードテンプレート
corder-test-generation : Pythonテスト生成
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: takemi-ohama-ai-plugins-python-execution 3 description: Python Execution Skill 4 --- 5 6 # Python Execution Skill 7 8 ## 概要 9 10 Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。 11 12 ## Step 1: 環境検出 13 14 ```bash 15 ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null 16 ``` 17 18 ## Step 2: 実行コマンド選択 19 20 | 検出ファイル | 実行方法 | 優先度 | 21 |-------------|---------|-------| 22 | `pyproject.toml` | `uv run python` | 最高 | 23 | `.venv/` | `.venv/bin/python` | 中 | 24 | `venv/` | `venv/bin/python` | 中 | 25 | 何もなし | `python3` | 最低 | 26 27 ## Step 3: 実行 28 29 ### uv環境(pyproject.tomlあり) 30 31 ```bash 32 # 依存関係インストール(初回のみ) 33 uv sync 34 35 # 実行 36 uv run python script.py 37 uv run python -m module_name 38 ``` 39 40 **uvがない場合のインストール**: 41 ```bash 42 curl -LsSf https://astral.sh/uv/install.sh | sh 43 source ~/.bashrc # パスを反映 44 ``` 45 46 ### venv環境(.venv/あり) 47 48 ```bash 49 # 依存関係インストール(初回のみ) 50 .venv/bin/pip install -r requirements.txt 51 52 # 実行 53 .venv/bin/python script.py 54 ``` 55 56 ### システムPython 57 58 ```bash 59 python3 script.py 60 ``` 61 62 ## ベストプラクティス 63 64 | DO | DON'T | 65 |----|-------| 66 | 実行前に環境を調査 | 環境を確認せずに実行 | 67 | README.md/CLAUDE.mdの指示を優先 | グローバル環境に依存関係をインストール | 68 | pyproject.tomlがあればuv使用 | source activateに依存 | 69 | 仮想環境のPythonをパス指定で実行 | python2を使用 | 70 71 ## 詳細ガイド(必要時のみ参照) 72 73 | ファイル | 内容 | 参照タイミング | 74 |---------|------|--------------| 75 | `01-uv-setup.md` | uv詳細セットアップ、Pythonバージョン管理 | 初回セットアップ時 | 76 | `02-troubleshooting.md` | エラー解決策 | 問題発生時 | 77 78 ## 関連Skill 79 80 - **corder-code-templates**: Pythonコードテンプレート 81 - **corder-test-generation**: Pythonテスト生成 82 83 --- 84 > Converted and distributed by [TomeVault](https://tomevault.io/claim/takemi-ohama) — claim your Tome and manage your conversions. 85 <!-- tomevault:4.0:skill_md:2026-04-15 -->
tomevault-io/skills-registry/tree/main/takemi-ohama--ai-plugins--python-execution commit 320b869d33
Frequently asked questions How do I install the Takemi Ohama AI Plugins Python Execution skill? Run npx skillmds@latest add tomevault-io/takemi-ohama-ai-plugins-python-execution in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Takemi Ohama AI Plugins Python Execution skill do? Python Execution Skill It is listed under Coding & Dev Tools on SkillMD.
Is Takemi Ohama AI Plugins Python Execution safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Takemi Ohama AI Plugins Python Execution? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Takemi Ohama AI Plugins Python Execution free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Takemi Ohama AI Plugins Python Execution? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.