Diagnoses Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.
Ships in python-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find the first meaningful cause of a Python failure and explain it in human terms.
The useful answer is not "tests failed." It is what command failed, which project or package failed, which phase failed, why it most likely failed, and the smallest next check or fix.
uv sync, uv run pytest, uv run ruff, uv run mypy, package build checks, FastAPI startup, or FastMCP startup fails.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 --files -g 'pyproject.toml' -g 'uv.lock' -g '.python-version' -g 'requirements*.txt' -g 'setup.py' -g 'setup.cfg' -g 'tox.ini' -g 'noxfile.py' -g '*.py'
Look for requires-python, .python-version, CI setup, and uv interpreter selection.
Report when the repo asks for a Python version that local or CI does not provide.
Look for dependency groups, optional dependencies, extras, index configuration, lockfile drift, and private package sources.
Do not turn authenticated index failures into generic network diagnoses. Name the package source or credential surface when visible.
Separate installed-package import failures from test-context import failures.
For src/ layouts, check whether commands run through uv with the package installed. For workspaces, check whether the command targets the intended package member.
Discovery failures usually point at package imports, pytest configuration, plugin availability, markers, or test file naming.
Execution failures usually point at behavior, fixtures, environment, timing, async boundaries, or external dependencies.
Separate lint failures from format failures.
Use uv run ruff check . for lint and uv run ruff format --check . only when the repo enforces formatting.
Check configuration scope, missing stubs, optional dependencies, package exports, and Python-version settings before suppressing errors.
Check import paths, app object names, lifespan handling, settings loading, dependency initialization, and environment variables.
For combined FastAPI/FastMCP apps, verify that mounted app lifespan behavior was preserved.
Return:
Command: exact failing command.Phase: failure phase.Project: package, workspace member, app, or workflow involved.First meaningful error: short quoted or paraphrased error.Likely cause: concrete explanation.Next check: one or two smallest useful commands or edits.sys.path hacks to hide package-layout problems.What SKILL.md sets; muted values are Claude Code's defaults
/python-skills:diagnose-python-projectfrom python-skills
npx claudepluginhub gaelic-ghost/socket --plugin python-skills6 skills in this plugin
/python-ci-workflowDesign and maintain Python CI workflows around uv, pytest, Ruff, mypy, package build checks, dependency caching, Python version matrices, and local-command parity./python-package-workflowValidate Python package surfaces with pyproject metadata, uv-managed builds, dependency boundaries, local smoke checks, semantic versioning, and release-boundary guidance./python-testing-workflowSet up, run, and improve Python tests in uv projects and workspaces. Use for pytest configuration, focused and package-targeted runs, fixtures, parametrization, async and integration tests, coverage, CI parity, or failure triage.Other plugins' skills for the same job