Source profileQuality 91/100

gaelic-ghost/socket/plugins/python-skills/skills/python-upgrade-workflow/SKILL.md

python-upgrade-workflow

Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.

Source repository stars
6
Declared platforms
1
Static risk flags
0
Last source update
2026-08-26
Source checked
2026-08-28

Decision brief

What it does: where it fits

Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.

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.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexDeclaredSource recordInstall path and trigger
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/python-skills/skills/python-upgrade-workflow"
Safe inspection promptEditorial

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

What the source asks the agent to do

  1. 01

    Upgrade Workflow

    1. Inventory current state:

    Inventory current state:Decide upgrade boundary:Python version only
  2. 02

    Purpose

    Upgrade Python projects without losing track of compatibility, validation, or package-consumer impact.

    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…
  3. 03

    When To Use

    Use this skill when changing requires-python, .python-version, or CI Python versions.

    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.
  4. 04

    Source Check

    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:

    uv documentationPython packaging user guidePython package version specifiers
  5. 05

    Dependency Boundary Notes

    Keep dependency changes in the right place:

    runtime imports belong in [project].dependenciesoptional user-facing features belong in [project.optional-dependencies]maintainer tools belong in [dependency-groups]

Permission review

Static risk signals and limitations

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

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars6SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
gaelic-ghost/socket
Skill path
plugins/python-skills/skills/python-upgrade-workflow/SKILL.md
Commit
ccbde05d2d542ce20d1645b425c75dc531b53721
License
Apache-2.0
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Python Upgrade Workflow

Purpose

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.

When To Use

  • 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.
  • Use this skill when upgrading FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, or other workflow-shaping tools.
  • Use this skill when package consumers, service operators, or contributors may need migration notes.

Source Check

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:

Upgrade Workflow

  1. Inventory current state:
    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'
    
  2. Decide upgrade boundary:
    • Python version only
    • runtime dependencies only
    • maintainer tools only
    • framework major or minor upgrade
    • package metadata and compatibility range
    • lockfile refresh without requirement changes
  3. Read release notes or migration docs for version jumps that may change behavior.
  4. Apply one coherent upgrade slice.
  5. Run staged validation:
    uv sync --dev
    uv run pytest
    uv run ruff check .
    uv run mypy .
    
  6. Add package build validation when package surfaces exist:
    uv build
    
  7. Update docs, CI, release notes, or migration guidance when contributor setup, package requirements, or runtime behavior changes.

Dependency Boundary Notes

Keep dependency changes in the right place:

  • runtime imports belong in [project].dependencies
  • optional user-facing features belong in [project.optional-dependencies]
  • maintainer tools belong in [dependency-groups]
  • local workspace relationships belong in [tool.uv.sources]

Do not move tools into runtime dependencies to make CI easier.

Python Version Notes

When changing Python version support:

  • update requires-python
  • update .python-version when present
  • update CI matrices or setup versions
  • check lockfile compatibility
  • check package classifiers when the repo ships them
  • mention migration impact for contributors or package consumers

For public packages, do not narrow supported Python versions without treating it as a compatibility decision.

Framework Notes

For FastAPI, FastMCP, and Pydantic upgrades:

  • check startup and lifespan behavior
  • check settings and validation behavior
  • check generated or mounted MCP surfaces
  • run tests that cover app construction and representative endpoints or tools
  • update integration guidance when the public app shape changes

For Ruff, mypy, and pytest upgrades:

  • separate new tool findings from behavior changes
  • avoid broad suppressions
  • update config only when the new version requires or justifies it

Output Shape

Return:

  1. Upgrade boundary: Python, runtime dependencies, tooling, framework, package metadata, or lockfile.
  2. Changed versions: before and after.
  3. Compatibility impact: contributors, package consumers, service operators, or none.
  4. Validation: exact commands run and results.
  5. Docs: migration notes, CI changes, release notes, or none.
  6. Residual risk: checks still missing or behavior not covered.

Guardrails

  • Do not combine unrelated upgrade families unless the repo already requires one coherent migration.
  • Do not refresh lockfiles casually inside unrelated behavior changes.
  • Do not narrow Python version support silently.
  • Do not suppress new lint or type errors broadly after tool upgrades.
  • Do not publish packages or create releases unless the user explicitly asks for that release step.

Frequently asked questions

What to verify before installation and use

What does the python-upgrade-workflow source document cover?

Plan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.

How do I install python-upgrade-workflow?

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.

Which Agent platforms does the source record declare?

The pinned source record declares support for: codex.

Alternatives

Compare before choosing

Computed 986

gaelic-ghost/socket

python-ci-workflow

Design and maintain Python CI workflows around uv, pytest, Ruff, mypy, package build checks, dependency caching, Python version matrices, and local-command parity.

Computed 926

gaelic-ghost/socket

diagnose-python-project

Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.

Computed 9811,220

Jeffallan/claude-skills

fastapi-expert

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.

Computed 961,082

TencentCloudBase/CloudBase-AI-Toolkit

cloudbase-agent-python

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