一键导入
python-development
Python-specific patterns: uv/poetry virtual environments, python -m imports, version pinning, pip restrictions on macOS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Python-specific patterns: uv/poetry virtual environments, python -m imports, version pinning, pip restrictions on macOS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Review recently changed files for code reuse, quality, and efficiency issues, then fix them. Use when implementation is already complete and you want a final cleanup pass that mirrors Claude Code's `/simplify` behavior as closely as Codex can, without overriding Claude's native `/simplify`.
Supabase migration safety, local testing workflow, grant requirements, fallback observability, and health endpoint patterns.
基于 SOC 职业分类
| name | Python Development |
| description | Python-specific patterns: uv/poetry virtual environments, python -m imports, version pinning, pip restrictions on macOS. |
Wrong -- bare python3 has no project dependencies:
python3 scripts/run_analysis.py
# ModuleNotFoundError: No module named 'pandas'
Right -- use the project's venv runner:
uv run python scripts/run_analysis.py
# Or: poetry run python scripts/run_analysis.py
# Or: pipenv run python scripts/run_analysis.py
Wrong -- direct execution breaks relative imports:
python scripts/etl/transform.py
# ModuleNotFoundError: No module named 'scripts.etl.utils'
Right -- use -m for scripts with package imports:
python -m scripts.etl.transform
Wrong -- uv auto-selects newest Python, packages lack wheels:
uv sync
# error: No wheel found for numpy on Python 3.14
Right -- specify a stable Python version:
# Check project requirements:
cat .python-version
# Pin the version:
uv sync --python 3.13
Wrong -- system pip blocked by PEP 668 on macOS:
pip3 install httpie
# error: externally-managed-environment
Right -- use brew for CLI tools, pipx for Python apps:
brew install httpie
# Or for Python-specific apps:
pipx install httpie