affaan-m avatar

Plankton Code Quality

Plankton Code Quality enforces code formatting and linting standards automatically every time Claude Code edits a file, using a three-phase system that auto-formats, collects violations, and delegates fixes to appropriately-tiered Claude subprocesses. It serves developers and teams who want real-time code quality without agent-side rule-gaming, and solves the problem of quality issues slipping through or agents disabling linters to avoid fixing code. The skill supports multiple languages including Python, TypeScript, Shell, YAML, and JSON, and includes protection mechanisms to prevent configuration tampering.

skills.sh installs
4.9K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill plankton-code-quality --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
Code Review & Quality

More from affaan-m/everything-claude-code

All 256
1owl-listener avatarnaming-conventionowl-listener/designer-skillsEstablish a naming convention system for design elements, components, and tokens with clear rules and examples.2.3Kskills.sh installs
2mapbox avatarmapbox-style-qualitymapbox/mapbox-agent-skillsExpert guidance on validating, optimizing, and ensuring quality of Mapbox styles through validation, accessibility checks, and optimization. Use when preparing 2Kskills.sh installs
3getsentry avatararchitecture-reviewgetsentry/wardenStaff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.692skills.sh installs
4davila7 avatarmove-code-qualitydavila7/claude-code-templatesAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compl333skills.sh installs
5rknall avatarPython Backend Architecture Reviewrknall/claude-skillsComprehensive design architecture review for Python backend applications. Use this skill when users ask you to review, analyze, or provide feedback on backend a0skills.sh installs
6tirth8205 avatarRefactor Safelytirth8205/code-review-graphPlan and execute safe refactoring using dependency analysis323skills.sh installs