Best for
- Use this skill when changing requires-python, .python-version, or CI Python versions.
- Use this skill when changing uv.lock.
- Use this skill when upgrading runtime dependencies, optional dependencies, or dependency groups.
gaelic-ghost/socket/plugins/python-skills/skills/python-upgrade-workflow/SKILL.md
Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.
Decision brief
Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/python-skills/skills/python-upgrade-workflow"Inspect the Agent Skill "python-upgrade-workflow" from https://github.com/gaelic-ghost/socket/blob/ccbde05d2d542ce20d1645b425c75dc531b53721/plugins/python-skills/skills/python-upgrade-workflow/SKILL.md at commit ccbde05d2d542ce20d1645b425c75dc531b53721. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Inventory current state:
Upgrade Python projects without losing track of compatibility, validation, or package-consumer impact.
Use this skill when changing requires-python, .python-version, or CI Python versions.
Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:
Keep dependency changes in the right place:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 6 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Upgrade Python projects without losing track of compatibility, validation, or package-consumer impact.
The practical job is to inventory Python requirements, dependency groups, lockfile state, framework versions, tooling strictness, and public package promises; apply one coherent upgrade slice; then run staged validation and document migration notes when users or contributors need them.
requires-python, .python-version, or CI Python versions.uv.lock.Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:
rg -n "requires-python|dependencies|optional-dependencies|dependency-groups|tool.uv|tool.pytest|tool.ruff|tool.mypy|fastapi|fastmcp|pydantic|pytest|ruff|mypy"
rg --files -g 'pyproject.toml' -g 'uv.lock' -g '.python-version' -g '.github/workflows/*.yml' -g '.github/workflows/*.yaml'
uv sync --dev
uv run pytest
uv run ruff check .
uv run mypy .
uv build
Keep dependency changes in the right place:
[project].dependencies[project.optional-dependencies][dependency-groups][tool.uv.sources]Do not move tools into runtime dependencies to make CI easier.
When changing Python version support:
requires-python.python-version when presentFor public packages, do not narrow supported Python versions without treating it as a compatibility decision.
For FastAPI, FastMCP, and Pydantic upgrades:
For Ruff, mypy, and pytest upgrades:
Return:
Upgrade boundary: Python, runtime dependencies, tooling, framework, package metadata, or lockfile.Changed versions: before and after.Compatibility impact: contributors, package consumers, service operators, or none.Validation: exact commands run and results.Docs: migration notes, CI changes, release notes, or none.Residual risk: checks still missing or behavior not covered.Frequently asked questions
Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.
The source record exposes this install command: npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/python-skills/skills/python-upgrade-workflow". Inspect the command and pinned source before running it.
The pinned source record declares support for: codex.
Alternatives
gaelic-ghost/socket
Design and maintain Python CI workflows around uv, pytest, Ruff, mypy, package build checks, dependency caching, Python version matrices, and local-command parity.
gaelic-ghost/socket
Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.
Jeffallan/claude-skills
Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.
TencentCloudBase/CloudBase-AI-Toolkit
Build production-ready AI agent backends using the CloudBase Agent Python SDK — create agents with LangGraph/CrewAI/LlamaIndex, serve them via FastAPI with AG-UI protocol streaming + OpenAI-compatible endpoints, add tools (bash, filesystem, MCP, code execution), memory (in-memory, TDAI, MySQL, MongoDB), observability (OpenTelemetry/Langfuse), and middleware (auth, logging). Use this skill when the user wants to create an AI agent server, build a chatbot backend, set up human-in-the-loop workflow