Skip to content
affaan-m avatar

Plankton Code Quality

Write-time formatting, linting, and Claude-powered fixes for every file edit, enforced through hooks.

CCM score
65 of 100
skills.sh installs
11.9K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers formatting, linting, and subprocess-driven fixes across Python, TypeScript, Shell, YAML, JSON, TOML, Markdown, and Dockerfile files
  • Runs a three-phase PostToolUse flow: silent auto-format, JSON violation collection, then tiered claude -p fixes with re-verification
  • Enforces config protection through a PreToolUse guard and a Stop hook that detects linter config changes via git diff
  • Designed for teams that want quality checks during editing rather than only at commit time

Install

$ npx -y skills add affaan-m/ecc --skill plankton-code-quality -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Plankton Code Quality Skill

Integration reference for Plankton (credit: @alxfazio), a write-time code quality enforcement system for Claude Code. Plankton runs formatters and linters on every file edit via PostToolUse hooks, then spawns Claude subprocesses to fix violations the agent didn't catch.

When to Use

  • You want automatic formatting and linting on every file edit (not just at commit time)
  • You need defense against agents modifying linter configs to pass instead of fixing code
  • You want tiered model routing for fixes (Haiku for simple style, Sonnet for logic, Opus for types)
  • You work with multiple languages (Python, TypeScript, Shell, YAML, JSON, TOML, Markdown, Dockerfile)

How It Works

Three-Phase Architecture

Every time Claude Code edits or writes a file, Plankton's multi_linter.sh PostToolUse hook runs:

Phase 1: Auto-Format (Silent)
├─ Runs formatters (ruff format, biome, shfmt, taplo, markdownlint)
├─ Fixes 40-50% of issues silently
└─ No output to main agent

Phase 2: Collect Violations (JSON)
├─ Runs linters and collects unfixable violations
├─ Returns structured JSON: {line, column, code, message, linter}
└─ Still no output to main agent

Details

Repository
github.com/affaan-m/ecc
Category
Code Review & Quality
First seen
Jul 14, 2026

Questions

What does the plankton-code-quality skill do?

It enforces code quality at write time by running formatters and linters on every file edit through PostToolUse hooks. Violations the agent did not fix are handed to Claude subprocesses, and any that remain are reported back to the main agent.

How do I install the plankton-code-quality skill?

Run npx -y skills add affaan-m/ecc --skill plankton-code-quality -y in your project. After that, the agent gets write-time formatting, linting and auto-fix hooks on file edits.

Which tools does Plankton need before it works?

Core dependencies are jaq, ruff and uv, installed with brew install jaq ruff uv, plus uv sync --all-extras for Python linters. Each other language needs its own linter, such as biome for TypeScript, shellcheck and shfmt for Shell, or hadolint for Dockerfiles.

Where does plankton-code-quality rank in the Code Review & Quality category?

It ranks in the top 100 on the Code Review & Quality category page. Its distinct focus is write-time enforcement that also stops agents from editing linter configs to pass.

More from affaan-m/ecc

All 257

Similar to Plankton Code Quality

More Code Review & Quality