plankton-code-quality

Run multi-stage lint and format workflows through Plankton hooks during Claude Code sessions.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xxih/ai-harness-zh --skill plankton-code-quality-xxih
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plankton-code-quality
Source: https://github.com/xxih/ai-harness-zh/tree/main/references/translations/everything-claude-code/docs/zh-CN/skills/plankton-code-quality
Command: npx skills add https://github.com/xxih/ai-harness-zh --skill plankton-code-quality-xxih

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Plankton 代码质量技能为 Claude Code 提供编写阶段的质量强制执行。通过 PostToolUse 钩子,在每次文件编辑时自动运行格式化工具和 lint 检查,并由一个 Claude 子进程修复代理尚未捕获的违规行为。

Core Features & Use Cases

  • 自动格式化与静默修复:在编辑后无缝应用格式化和修复。
  • 多语言支持:适用于 Python、TypeScript、Shell、YAML、JSON、TOML、Markdown、Dockerfile 等语言。
  • 违规路由与分阶段处理:根据违规项路由到 Haiku/Sonnet/Opus 三级模型进行修复与验证。
  • 实时修复验证:通过重新执行格式化与检查阶段确保违规项被修复。

Quick Start

在你的项目中引入 Plankton 钩子并启用 Claude Code,以实现编写时的代码质量强制执行。

Frequently Asked Questions about plankton-code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code formatting and lint checks during Claude Code edits?

You can automate code formatting and lint checks during Claude Code edits by using Plankton PostToolUse hooks, which trigger automatically on file edits to apply formatting and run lint checks in real time.

What programming languages does the Plankton hook support for real-time linting?

The Plankton hook supports real-time linting for multi-language projects including Python, TypeScript, Shell, YAML, JSON, TOML, Markdown, and Dockerfile, routing violations to appropriate language-specific linters like Ruff and Biome.

How does the multi-stage repair workflow route code violations in Claude Code?

The multi-stage repair workflow routes code violations to Haiku, Sonnet, and Opus model tiers sequentially, using a Claude subprocess to fix violations the agent missed and verifying repairs by re-executing formatting and lint checks.

Do I need specific linters configured to enforce code quality with Claude Code?

You need language-specific linters like Ruff, Biome, and markdownlint configured in your project to detect and propose repairs, relying on Plankton configuration to route and verify fixes during Claude Code editing sessions.

Can I silently fix lint violations automatically after file edits in VS Code or similar editors?

You can silently fix lint violations automatically after file edits by integrating Plankton hooks with Claude Code, which seamlessly applies formatting and repairs through a Claude subprocess without manual intervention, independent of your specific editor.

What are the limitations of using hooks to enforce code quality during AI-assisted coding?

Limitations include dependency on Plankton configuration and external linters, and potential overhead from routing complex violations through Haiku, Sonnet, and Opus model tiers for real-time repair and verification during every file edit.