code-quality-hook

Analyze code after edits to flag long functions, excessive nesting, large files, and dead code blocks.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill code-quality-hook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-hook
Source: https://github.com/AskTinNguyen/vesper-team-skills/tree/main/code-quality-hook
Command: npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill code-quality-hook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

PostToolUse hooks that automatically analyze code after edits to surface quality violations without blocking workflow.

Core Features & Use Cases

  • Automatic checks after Edit/Write to flag long functions, excessive nesting, large files, and dead code blocks.
  • Non-blocking feedback that guides quick improvements without blocking Claude Code sessions.
  • Can be integrated into project settings to enforce consistent quality across teams and repositories.

Quick Start

Add the code-quality-hook to Claude Code settings and trigger an edit to see non-blocking quality feedback.

Frequently Asked Questions about code-quality-hook

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

FAQPage Schema
How do I run non-blocking code quality checks after file edits?

Non-blocking code quality checks run automatically after edits by using PostToolUse hooks to analyze code and surface violations for function size, nesting depth, file length, and dead code without interrupting your workflow.

What code quality violations can I automatically detect after writing code?

You can automatically detect code quality violations including long functions, excessive nesting depth, large files, and commented-out dead code blocks by triggering automated checks after Edit or Write events.

Can I configure static analysis thresholds for function size and file length?

Static analysis thresholds for function size, nesting depth, and file length are fully configurable, allowing you to tailor automated code quality checks to your project's specific standards.

Do PostToolUse hooks block my coding session when linting fails?

PostToolUse hooks provide non-blocking feedback that surfaces code quality violations to guide immediate improvements without blocking or interrupting your active coding session.

Does this automated code quality hook work across different programming languages?

The automated code quality hook works across codebases of various programming languages by applying universal checks for function size, nesting depth, and file length after edit events.

How do I enforce consistent coding standards across a team repository?

You can enforce consistent coding standards across teams by integrating PostToolUse hooks into project settings to automatically flag quality violations after every edit.