/dev:python-developmentfrom dev
General Python development skill for designing, implementing, refactoring, debugging, testing, validating, and reviewing Python code. Use for Python 3.11+ projects, especially modern pyproject-based repos using uv, Ruff, pytest, mypy, Pydantic v2, pydantic-settings, Typer, and Loguru. Applies the house Python stack uniformly while discovering local contracts.
Ships in dev. 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.
Use this as the default Python development playbook. It is intentionally broader than a review rubric: it guides how to understand a repository, design the smallest useful API, write the code, test the behavior, validate the change, and review the result.
The skill is intentionally opinionated. First discover the target project's Python version, layout, behavior, and constraints. Then apply the house defaults below uniformly. If local configuration conflicts, surface the mismatch and ask before turning a bounded task into a tooling migration.
Use this for Python work involving:
If a domain-specific skill is also relevant, such as web deployment, browser automation, ML inference, data science, or HPC, use it as an overlay. This skill remains the baseline for Python quality.
Do not start by coding. Start by discovering the local contract.
When the user asks for planning, advice, review, assessment, explanation, or any other no-edit task, do not edit files unless they explicitly ask for changes.
Follow these in order:
pyproject.toml, setup.cfg, pytest.ini,
Ruff config, MyPy config, CI workflows, and lock files.If project configuration conflicts with this skill, do not silently adapt. Treat it as a mismatch, state the impact, and ask whether to migrate or make a minimal compatibility change.
Use these as the house defaults. Apply them uniformly, and treat conflicting project configuration as a mismatch to surface rather than a reason to invent an exception:
pyproject.toml as the central configuration
file.uv. Run Python tools through uv run.uv run ruff format; lint with
uv run ruff check.uv run mypy.uv run pytest.pydantic-settings for environment-backed settings and
configuration objects.logger.opt(exception=True).error(...), never
logger.error(..., exc_info=True).Do not invent alternate toolchains. If a repo defines wrappers around these commands, inspect them, but report validation in terms of the house tools and note any mismatch.
Before implementation, state or infer:
Prefer the smallest API current callers need. Do not add hooks, modes, flags, or configuration for hypothetical futures.
When behavior changes, add or update tests before implementation when practical. At minimum, know what focused validation will fail before the fix or protect the new behavior after the change.
Good tests assert observable behavior. Weak tests assert only that an internal method was called.
None, -1, empty strings, or silent fallbacks as
failure signals.Use the narrowest useful command first, for example one changed test module or one type-check target. Then run the broader project check before declaring substantial work complete, or state why it was not run.
Validation evidence should include the command, result, and any known limitation.
Before completion, review the diff for:
Use this JSON-friendly shape for review mode. The canonical schema lives in
references/review-schema.md; keep this summary and the examples in sync with
that file.
{
"file": "src/package/module.py",
"line": 42,
"symbol": "optional function or class name",
"category": "correctness|api|design|typing|errors|testing|io|performance|concurrency|security|packaging|maintainability|style|tooling",
"severity": "high|medium|low",
"title": "Short problem statement",
"why": "Concrete risk, broken contract, or violated rule",
"fix": "Smallest useful change",
"validation": "Test, check, or manual verification that should cover the fix"
}
Severity:
Rules:
None is not overloaded when it is a valid input or output.| unions when supported.Protocol for structural dependency boundaries.assert.logger.opt(exception=True).error(...), not
logger.error(..., exc_info=True).TYPE_CHECKING.uv build or import smoke checks.pathlib unless the project has a reason not to.Open only the files relevant to the task. When editing this skill itself, first
read references/maintenance.md and quality/README.md, then run the quality
harness before declaring the edit complete.
references/project-discovery.md: how to detect Python version, tools,
commands, package layout, and local conventions.references/tooling.md: Ruff, MyPy, validation commands, wrappers, and CI.references/development-loop.md: detailed workflow for writing code.references/validation.md: choosing checks by work mode and risk.references/api-design.md: functions, parameters, return values, and public
contracts.references/typing.md: modern typing and version-aware annotation choices.references/data-modeling.md: dataclasses, Pydantic, TypedDict, enums, and
plain collections.references/configuration.md: settings precedence, environment, files, and
secrets.references/cli-apps.md: command shape, exit codes, stdout, stderr, and CLI
tests.references/boundaries.md: web, database, external service, and adapter
boundaries.references/errors-logging.md: exceptions, validation, chaining, and logs.references/observability.md: logs, metrics, tracing, health, and diagnostics.references/testing.md: pytest-oriented testing guidance and mocking seams.references/debugging.md: reproducing, isolating, and fixing bugs.references/refactoring.md: safe behavior-preserving change.references/review-schema.md: structured findings and severity policy.references/anti-patterns.md: common process, design, testing, and safety
smells.references/io-filesystem.md: pathlib, encodings, temp files, JSON, CSV, and
resources.references/imports-packaging.md: imports, pyproject, source roots, and build
behavior.references/dependency-management.md: lockfiles, dependency groups, extras,
and upgrades.references/ci-release.md: CI commands, builds, entry points, and package
smoke tests.references/generated-code-and-migrations.md: generated outputs, schema
changes, and data migrations.references/performance.md: profiling, batching, caching, and hot paths.references/concurrency.md: async, threads, subprocesses, cancellation, and
cleanup.references/security.md: inputs, secrets, subprocesses, and unsafe
deserialization.references/documentation.md: docstrings, comments, TODOs, and reader
contracts.references/style-naming.md: names, builtin shadowing, and style review
boundaries.references/notebooks.md: notebook reproducibility, review, and test
extraction.references/maintenance.md: consistency checks when editing this skill.references/scientific-python.md: optional NumPy, pandas, and torch guidance.references/libraries.md: uv, Ruff, MyPy, pytest, Pydantic,
pydantic-settings, Typer, Loguru, FastAPI, and ecosystem notes.Examples live in examples/ and show review findings and validation summaries.
examples/review-findings.json (opens in a new tab)examples/validation-reports.md (opens in a new tab)quality/README.md (opens in a new tab)quality/decision-log.md (opens in a new tab)quality/fixtures/README.md (opens in a new tab)quality/fixtures/cli-config-app/README.md (opens in a new tab)quality/fixtures/cli-config-app/pyproject.toml (opens in a new tab)quality/fixtures/cli-config-app/src/demo_cli_app/__init__.py (opens in a new tab)quality/fixtures/cli-config-app/src/demo_cli_app/cli.py (opens in a new tab)quality/fixtures/cli-config-app/tests/test_cli.py (opens in a new tab)quality/fixtures/file-processing-app/README.md (opens in a new tab)quality/fixtures/file-processing-app/pyproject.toml (opens in a new tab)quality/fixtures/file-processing-app/src/file_processing_app/__init__.py (opens in a new tab)quality/fixtures/file-processing-app/src/file_processing_app/extract.py (opens in a new tab)quality/fixtures/file-processing-app/tests/test_extract.py (opens in a new tab)quality/manual-review.md (opens in a new tab)quality/sample-tasks.md (opens in a new tab)quality/sample_tasks.json (opens in a new tab)quality/scorecard.example.json (opens in a new tab)quality/scorecard.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joaquincampo/my-plugins --plugin dev4 skills in this plugin
/codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./grillingInterview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases./improve-codebase-architectureScan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.