Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By georgeharkerv0.3.1In 1 marketplace
`/ruff-fix` command: run `ruff check --fix` and `ruff format` on changed (or named) Python files and surface remaining diagnostics. Also ships an opt-in PostToolUse hook (RUFF_FIX_ON_EDIT / RUFF_DIAGNOSTICS_ON_EDIT, both off by default). No LSP — pairs with ruff-lsp or pylsp for diagnostics.
You run one by typing its /name in Claude Code.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
2 cautions to review before installing
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A /ruff-fix command that runs ruff check --fix + ruff format on your changed (or named) Python files and reports anything ruff couldn't auto-fix. No LSP — registers no .lsp.json, so it composes cleanly with any Python LSP choice. Also ships an opt-in PostToolUse hook for anyone who wants the old automatic-on-edit behavior.
This mirrors stock LSP editor semantics: diagnostics stream automatically from the LSP, and fixes are an explicit action. A PostToolUse hook that rewrites the just-edited file desyncs Claude's view of it (the next edit can fail to match) and doesn't match how real editors work — source.fixAll/format are deliberate actions, not silent mutations on every change. So fixing is a command you (or Claude) invoke.
/ruff-fixRuns on the repo's changed + untracked Python files by default, or on paths you pass (/ruff-fix path/to/a.py path/to/b.py):
ruff check --fix — autofix every fixable rule in placeruff format — formatruff check --no-fix — report any remaining (unfixable) diagnosticsA PostToolUse hook ships disabled. Two independent switches:
| Env var | Effect on each Python edit |
|---|---|
RUFF_FIX_ON_EDIT=1 | autofix + format the file, then report remaining diagnostics |
RUFF_DIAGNOSTICS_ON_EDIT=1 | report ruff diagnostics only (no mutation) |
With neither set, nothing fires — rely on the LSP for diagnostics and /ruff-fix for fixes. If you run a Python LSP, leave the diagnostics switch off (the LSP already streams those).
bin/ruff resolves the real ruff at runtime, preferring the most explicit signal:
$VIRTUAL_ENV/bin/ruff if set — an activated venv (survives a stripped PATH).venv/bin/ruff walking up from $PWD — a project venv on disk but not active~/.venv/bin/ruff — personal global fallback/ruff-fix for the fix action./ruff-fix for ruff lint/format/fix.You cannot enable both ruff-lsp and pylsp — they both claim python as their LSP and conflict.
ruff discoverable per the resolution rules above (uv tool install ruff works too)git (the command defaults to the repo's changed files)jq on PATH (only for the opt-in hook)Via the georgeharker marketplace:
claude plugin marketplace add ~/Development/claude
claude plugin install ruff-fix@georgeharker
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub georgeharker/claude-plugins --plugin ruff-fixPlugins from other owners that cover similar ground