Sets up, runs, and improves Python tests in uv projects. Covers pytest configuration, focused runs, fixtures, parametrization, async/integration tests, coverage, CI parity, and failure triage.
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.
Make Python tests describe behavior, run through uv, and give a focused
failure signal. Preserve the repository's existing test framework and markers;
use the repository's own checked-in commands for setup and execution.
pyproject.toml, existing tests, CI, markers, fixtures, package
layout, and workspace members before changing test configuration.uv run pytest tests/unit
uv run pytest -k "auth and not slow"
uv run --package <member-name> pytest
@pytest.mark.parametrize for input/output matrices.monkeypatch, dependency overrides, fakes, or disposable services at
the boundary rather than mutating committed configuration or calling a live
dependency during every test.For FastAPI, override external dependencies with
app.dependency_overrides, reset them after the test, and use an async client
when the test itself needs async behavior. Ensure lifespan events run when the
application depends on them.
For FastMCP, prefer an in-memory Client(mcp) test for deterministic server
behavior, then add transport or authorization integration tests only for the
configured deployment shape. Test listed and callable tools, readable
resources, and rendered prompts separately when each surface is public.
Classify the first failure before changing code:
Hand general environment, lockfile, lint, type-check, packaging, or CI failures
to diagnose-python-project, python-package-workflow, or
python-ci-workflow rather than turning this into a generic maintenance skill.
Return:
Test boundary: unit, integration, client, artifact, or full suite.Command: exact uv command and package or path scope.Configuration: markers, fixtures, async support, or no change.Evidence: tests added or run and concise results.Residual risk: live dependency, unrun integration lane, coverage, or CI
limitation.sys.path edits to hide a package-layout problem.uv-pytest-unit-testing skill name, profile path, or
routing surface behind after this rename.references/pytest-workflow.mdreferences/uv-workspace-testing.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
python-testing, pytest, uv, test-workflow, fastapi-testing, fastmcp-testing
/python-skills:python-testing-workflowfrom python-skills
npx claudepluginhub gaelic-ghost/socket --plugin python-skills6 skills in this plugin
/diagnose-python-projectDiagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks./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-tooling-style-workflowAlign Python formatting, linting, type checking, pytest configuration, dependency groups, local tooling, and CI validation around uv without overriding repo-local conventions./python-upgrade-workflowPlan and validate Python version, dependency, uv lockfile, FastAPI, FastMCP, Pydantic, Ruff, mypy, pytest, and package metadata upgrades with staged checks.Other plugins' skills for the same job