/python-plugin:python-rufffrom python-plugin
Deep guidance for ruff lint + format in Python projects. Use when configuring `[tool.ruff]` in pyproject.toml, picking rule sets, adding per-file ignores, debugging ruff diagnostics, wiring format-on-save, resolving conflicts between ruff format and ruff check, or migrating from black/isort/flake8. Pairs with the unified `python` skill — load this one when the question is specifically about ruff.
Ships in python-plugin. 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.
None: SKILL.md is the whole skill.
Ruff is the only linter and formatter for Python in this workspace. No black, no isort, no autopep8, no flake8.
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
extend-select = ["I", "UP", "ANN"]
ignore = ["ANN101", "ANN102", "ANN401"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN"]
"scripts/bootstrap.py" = ["E402"]
E, F — pycodestyle errors + pyflakes (ruff defaults).I — import sorting. Replaces isort.UP — pyupgrade. Surfaces stale typing.List / datetime.timezone.utc
patterns automatically.ANN — flake8-annotations. Required for the universal-types policy.B (bugbear), SIM (simplify),
TCH (type-checking-only imports), RUF (ruff-specific).ANN101 / ANN102 — self and cls annotations are noise.ANN401 — Any is allowed; mypy enforces the substantive coverage.E501 is not in this list: we honor line-length. Use ruff format
to wrap, or break the expression.tests/** — disable ANN group (pytest fixtures rarely benefit from
explicit annotation noise).sys.path before importing: E402.ruff check --fix && ruff format.ruff check then ruff format --check (separate steps so format
drift is its own failure signal).posttooluse-ruff hook runs both on every
agent edit.ruff format is the formatter (black-compatible). ruff check runs lint
rules including some that auto-fix style. Run format after check --fix so structural fixes land before whitespace normalization.
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
}
}
ruff.importStrategy = "fromEnvironment" makes the extension use the
project venv's ruff so VS Code matches CI exactly.
black -> remove from deps; ruff format is wire-compatible.isort -> add I to ruff lint extend-select; delete isort config.flake8 -> add E,F,W (W via extend-select); migrate plugins to
ruff's built-in rule families.What SKILL.md sets; muted values are Claude Code's defaults
python-plugin@cjhowe-us-marketplace is listed by cjhowe-us/marketplace — review the source before installing
npx claudepluginhub cjhowe-us/marketplace --plugin python-plugin6 skills in this plugin
/pythonUnified Python coding standard for projects in this workspace. Use this skill whenever reading, writing, editing, reviewing, or creating any `.py` file. Covers types (mypy --strict), lint/format (ruff), env + packaging (uv), tests (pytest), and publishing (PyPI). Per-tool deep dives live in sibling skills (`python-ruff`, `python-mypy`, `python-uv`, `python-pypi`, `python-pytest`) — load those for fine-grained guidance.
/python-mypyDeep guidance for mypy strict static typing. Use when configuring `[tool.mypy]`, debugging type errors, picking between `cast` / `assert isinstance` / TypeGuard, writing protocols vs ABCs, handling third-party libraries without stubs, dealing with pydantic plugin, silencing follow-imports for path-injected modules, or migrating an untyped codebase. Pairs with the unified `python` skill — load this one when the question is specifically about mypy.
/Other plugins' skills for the same job