Loading...
Loading...
現在の環境で適切なPythonコマンドを判別し、スクリプトを実行します。「Pythonコマンドを確認」「どのpythonを使う」「Python実行方法」といった依頼や、他のスキルからPythonスクリプトを実行する前に使用してください。
npx skill4agent add drillan/mixseek-plus detect-python-commandrun-python.shskills/detect-python-command/scripts/run-python.sh script.py [args...]# 設定ファイルの検証
skills/detect-python-command/scripts/run-python.sh \
skills/mixseek-config-validate/scripts/validate-config.py config.toml
# 引数付きで実行
skills/detect-python-command/scripts/run-python.sh script.py --verbose --output result.json# 標準モード(コマンド名のみ)
skills/detect-python-command/scripts/detect-python.sh
# 詳細モード(判別過程を表示)
skills/detect-python-command/scripts/detect-python.sh --verbose| 優先度 | 条件 | 使用するコマンド |
|---|---|---|
| 1 | | |
| 2 | | |
| 3 | | |
| 4 | | |
| 5 | いずれも該当しない | エラー終了 |
# mixseek-config-validate からの使用例
skills/detect-python-command/scripts/run-python.sh \
skills/mixseek-config-validate/scripts/validate-config.py config.toml --type teamUser: このプロジェクトでどのPythonコマンドを使えばいい?
Agent: 判別スクリプトを実行します...
$ skills/detect-python-command/scripts/detect-python.sh --verbose
出力:
Detecting Python command...
pyproject.toml: found
uv: installed (0.9.24)
Result: uv run python
このプロジェクトでは `uv run python` が使用されます。
スクリプト実行時は run-python.sh を使用してください。| スクリプト | 用途 |
|---|---|
| Pythonスクリプトを適切なコマンドで実行(推奨) |
| 使用されるコマンドを確認(情報提供用) |
Error: No Python interpreter founduv syncError: Script not found: script.py.venv/bin/pythonpython3mixseek-config-validate