一键导入
plankton-code-quality
Write-time code quality enforcement using Plankton - auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write-time code quality enforcement using Plankton - auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | plankton-code-quality |
| description | Write-time code quality enforcement using Plankton - auto-formatting, linting, and Claude-powered fixes on every file edit via hooks. |
| origin | community |
Integration reference for Plankton (credit: @alxfazio), a write-time code quality enforcement system for Claude Code.
Every time Claude Code edits or writes a file, the PostToolUse hook runs:
Phase 1: Auto-Format (Silent)
Runs formatters (ruff format, biome, shfmt, taplo, markdownlint)
Phase 2: Collect Violations (JSON)
Runs linters and collects unfixable violations as structured JSON
Phase 3: Delegate + Verify
Spawns claude -p subprocess with violations JSON
Routes to model tier based on violation complexity:
Haiku: formatting, imports, style
Sonnet: complexity, refactoring
Opus: type system, deep reasoning
The installed quality-gate.js hook provides a lightweight version:
Enable auto-fix: export ECC_QUALITY_GATE_FIX=true
Enable strict mode: export ECC_QUALITY_GATE_STRICT=true
For the full Plankton experience with subprocess delegation:
git clone https://github.com/alexfazio/plankton.git
cd plankton
brew install jaq ruff uv
uv sync --all-extras
Then copy .claude/hooks/ from plankton to your project.
Plankton blocks LLMs from modifying linter configs to suppress violations:
.ruff.toml, biome.json, .shellcheckrc, etc.git diff