By georgeharker
Personal Claude Code plugins wrapping ruff, python-lsp-server (with pylsp-mypy), and shuck — LSP entries plus `/*-fix` commands, with opt-in PostToolUse hooks.
npx claudepluginhub georgeharker/claude-plugins`/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.
Register `ruff server` as the Python LSP. Surfaces ruff diagnostics and code actions via LSP. Mutually exclusive with the `pylsp` plugin — only one server can claim `python`.
Register python-lsp-server (pylsp) as the Python LSP, with pylsp-mypy for type diagnostics. Ships an opt-in mypy-on-edit fallback hook (PYLSP_MYPY_ON_EDIT=1) for harnesses that don't honor plugin LSP configs. Mutually exclusive with the `ruff-lsp` plugin.
Register `shuck server` as the shell LSP, plus a `/shuck-fix` command that runs `shuck check --fix` on changed (or named) shell files. Also ships an opt-in PostToolUse hook (SHUCK_FIX_ON_EDIT / SHUCK_DIAGNOSTICS_ON_EDIT, both off by default).
7-day visitors to each marketplace page
Personal Claude Code plugins that wrap tools the official LSP plugins don't cover. Split into small, composable pieces so you can mix-and-match LSP, fix commands, and (opt-in) post-edit behavior.
| Plugin | Type | What it does |
|---|---|---|
| ruff-fix | command (+ opt-in hook) | /ruff-fix — ruff check --fix + ruff format on changed/named Python files, then report the rest |
| ruff-lsp | LSP | Register ruff server as the Python LSP (diagnostics + code actions) |
| pylsp | LSP (+ opt-in hook) | Register python-lsp-server + pylsp-mypy as the Python LSP; opt-in mypy-on-edit fallback hook |
| shuck | LSP + command (+ opt-in hook) | Register shuck server as the shell LSP; /shuck-fix lint+autofix .sh/.bash/.zsh |
The design mirrors a stock LSP editor: diagnostics stream automatically, fixes are explicit.
ruff-lsp, pylsp, shuck) — a .lsp.json registers a language server. The harness is the LSP client: it owns didOpen/didChange/didClose and surfaces publishDiagnostics to Claude after edits. You don't (and a hook can't) send edit notifications yourself — that's the harness's job./ruff-fix, /shuck-fix) — an explicit action you (or Claude, via the skill/command) invoke to run --fix + format on the changed files (or paths you pass) and report what couldn't be auto-fixed. Unlike a didChange, this is the only thing that mutates files, and only when invoked — nothing rewrites a file behind Claude's back mid-edit.| Env var | Effect |
|---|---|
RUFF_FIX_ON_EDIT=1 | On Python edit: autofix + format the file, then report remaining diagnostics |
RUFF_DIAGNOSTICS_ON_EDIT=1 | On Python edit: report ruff diagnostics only (no mutation) |
SHUCK_FIX_ON_EDIT=1 | On shell edit: autofix the file, then report remaining diagnostics |
SHUCK_DIAGNOSTICS_ON_EDIT=1 | On shell edit: report shuck diagnostics only (no mutation) |
PYLSP_MYPY_ON_EDIT=1 | On Python edit: run a fallback mypy check (for harnesses that ignore .lsp.json) |
If you run an LSP, you generally want the diagnostics switches off — the LSP already streams those, and the hook would just duplicate them. The fix switches are additive (an LSP does not auto-mutate files).
The ruff, pylsp, mypy, and shuck wrappers in each plugin's bin/ resolve the underlying tool at runtime, preferring the most explicit signal of intent. Both the .lsp.json and the commands/hooks invoke the wrapper, so resolution is consistent and survives the harness running with a stripped PATH.
Python tools (ruff, pylsp, mypy):
$VIRTUAL_ENV/bin/<tool> if set — an activated venv, which survives a stripped PATH<tool> on PATH — respects activation, pyenv/conda shims, and global installs.venv/bin/<tool> walking up from cwd — a project venv on disk but not active~/.venv/bin/<tool> — personal global fallbackshuck (a Rust tool, no venv analog): shuck on PATH → target/{release,debug}/shuck walking up from cwd → ~/.cargo/bin/shuck.
The Python plugins compose, but ruff-lsp and pylsp are mutually exclusive — both claim python as their LSP and the harness only routes a language to one server.
| Want | Enable | Skip |
|---|---|---|
| Ruff + mypy types via pylsp (recommended) | pylsp + ruff-fix | ruff-lsp |
| Ruff diagnostics in-editor (lint+format), no mypy | ruff-lsp + ruff-fix | pylsp |
| Just a fix command, no LSP | ruff-fix | ruff-lsp, pylsp |
In the recommended combo, pylsp streams mypy + jedi diagnostics live via the LSP, and /ruff-fix handles ruff lint/format/fix on demand. (pylsp ships pylsp_ruff disabled in its .lsp.json, so ruff diagnostics come from ruff-lsp or from running /ruff-fix, not from pylsp.)
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.