python-scripting
uvとPEP 723を活用し、依存関係を自動管理しながらスタンドアロンのPythonスクリプトを作成するSkill。
📜 元の英語説明(参考)
Python scripting with uv and PEP 723 inline dependencies. Use when creating standalone Python scripts with automatic dependency management.
🇯🇵 日本人クリエイター向け解説
uvとPEP 723を活用し、依存関係を自動管理しながらスタンドアロンのPythonスクリプトを作成するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o python-scripting.zip https://jpskill.com/download/6925.zip && unzip -o python-scripting.zip && rm python-scripting.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6925.zip -OutFile "$d\python-scripting.zip"; Expand-Archive "$d\python-scripting.zip" -DestinationPath $d -Force; ri "$d\python-scripting.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
python-scripting.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
python-scriptingフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Pythonスクリプティングスキル
uvとPEP 723インラインスクリプトメタデータを使用して、自己完結型のPythonスクリプトを作成します。
このスキルができること
- スタンドアロンのPythonスクリプトを作成します
- PEP 723インライン依存関係を使用します
- 引数解析を設定します
- 入出力処理を行います
- 再現可能なビルドを構成します
使用する場面
- スタンドアロンのユーティリティスクリプト
- 一度限りの自動化タスク
- 迅速なデータ処理
- CLIツール
- 依存関係が必要なスクリプト
参照ファイル
references/UV_SCRIPT.template.py- PEP 723メタデータを含むPythonスクリプトテンプレート
PEP 723形式
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "rich",
# ]
# ///
スクリプトの実行
uv run script.py [args]
依存関係は初回実行時に自動的にインストールされます。
ベストプラクティス
- 再現性のために
exclude-newerを使用してください - 使用例を含むdocstringを含めてください
- CLI引数にはargparseを使用してください
- 終了コードを返してください(0は成功、非ゼロはエラー)
- スクリプトは一つのタスクに集中させてください
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Python Scripting Skill
Creates self-contained Python scripts using uv and PEP 723 inline script metadata.
What This Skill Does
- Creates standalone Python scripts
- Uses PEP 723 inline dependencies
- Sets up argument parsing
- Handles input/output
- Configures reproducible builds
When to Use
- Standalone utility scripts
- One-off automation tasks
- Quick data processing
- CLI tools
- Scripts that need dependencies
Reference Files
references/UV_SCRIPT.template.py- Python script template with PEP 723 metadata
PEP 723 Format
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "rich",
# ]
# ///
Running Scripts
uv run script.py [args]
Dependencies install automatically on first run.
Best Practices
- Use
exclude-newerfor reproducibility - Include docstring with usage examples
- Use argparse for CLI arguments
- Return exit codes (0 success, non-zero error)
- Keep scripts focused on one task