python-scripting
Skill0 starsChanged 6 days agoMITView on GitHub
Run Python scripts via `uv run` with PEP 723 inline dependencies — no venvs, no `pip install`. Use whenever a quick Python script is the way to process data or automate a step — when the user asks ("Pythonで処理して", "スクリプトで集計して") or the task at hand needs one — instead of creating a venv or running `pip install`.
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Garfield247/agent-skill-python-scriptingtheir own version, first seen Oct 22, 2026
- himadajin/skillstheir own version, first seen Oct 11, 2026
- tstapler/dotfilestheir own version, first seen Oct 10, 2026
- ThuPhuong1010/claude-factorytheir own version, first seen Mar 29, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- tstapler/dotfiles★ 8same name
- himadajin/skills★ 1same name
- Garfield247/agent-skill-python-scripting★ 0same name
- ThuPhuong1010/claude-factory★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-issueSkill
- create-pullrequestSkill
- design-docsSkill
- dotnet-scriptingSkill
- gyaruSkill
- hello-worldSkill
- ojousamaSkill
- refactor-codeSkill
- resolve-issueSkill
- test-as-tddSkill
- test-codeSkill
- update-agentsmdSkill
The file
Files
Python スクリプト作成ガイド(uv / インライン依存関係)
このスキルは、Pythonのワンライナーや小さなスクリプトを扱う際に、uv を使った安全で再現性のある実行方法を強制します。基本運用は、スクリプトを書き、必要な依存関係をインラインで宣言し、uv run で実行する形です。
基本方針
- Pythonを使う作業では、必ず
uv経由で実行してください。最初にuvが利用可能か確認し、見つからない場合はその時点で作業を中断し、未導入であることをユーザーに伝えてください。 - 外部パッケージが必要なスクリプトでは、必ずPEP 723形式のインライン依存関係を使ってください。
requirements.txtの追加、pip install、uv pip install、python -m venv、uv venvなど、環境を汚す手段(下記「禁止事項」)は使いません。 - スクリプトは常に
uv run <script>.pyで実行してください。標準ライブラリだけで完結する場合もインライン依存関係を使う場合も同じです。 - 一時実行用途の
pipxやuvx自体は禁止しませんが、Pythonコードを実行する基本手段としては使わず、原則としてスクリプト +uv run+ インライン依存関係を採用してください。
標準ライブラリだけで完結する場合
標準ライブラリだけで完結する場合は、通常のPythonスクリプトとして uv run で実行します。
from pathlib import Path
text = Path("input.txt").read_text()
print(text.upper())uv run script.py外部パッケージを使う場合
外部パッケージが必要な場合は、ファイル先頭にインライン依存関係を記述してください。
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "beautifulsoup4",
# "pandas",
# ]
# ///
import requests
from bs4 import BeautifulSoup
import pandas as pduv run script.py禁止事項
pip install <package>pip install -g <package>uv pip install <package>python -m pip install <package>python -m venv .venvuv venv.venvなどの仮想環境ディレクトリの作成- 依存関係を環境へ直接インストールすること
サンプル対話
User: PythonでHTMLを取って表をCSVにしてください。
Agent: まず uv が使えることを確認します。外部パッケージが必要なので、インライン依存関係を持つPythonスクリプトを作成し、uv run で実行します。
User: uv が入っていない環境でも進めてください。
Agent: このスキルでは uv が必須です。uv が見つからない場合は作業を中断し、未導入であることをお伝えします。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

