claude-code-hooks

Configure PostToolUse hooks to auto-lint and auto-fix code files.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/efiadm/informatik-ai-studio --skill claude-code-hooks-efiadm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code-hooks
Source: https://github.com/efiadm/informatik-ai-studio/tree/main/.claude/skills/claude-code-hooks
Command: npx skills add https://github.com/efiadm/informatik-ai-studio --skill claude-code-hooks-efiadm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the process of linting and formatting code files as they are edited, ensuring code quality and consistency without manual intervention.

Core Features & Use Cases

  • Real-time Auto-Linting: Automatically runs linters (like ESLint, Black, Ruff) after file edits or writes.
  • Multi-language Support: Configurable for various programming languages including JavaScript, TypeScript, Python, Ruby, Go, and Rust.
  • Use Case: As Claude Code writes or modifies a Python file, this Skill automatically runs black to format it and ruff to check for errors, providing immediate feedback and ensuring adherence to project standards.

Quick Start

Set up Claude Code hooks to automatically lint code files after edits.

Frequently Asked Questions about claude-code-hooks

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

FAQPage Schema
How do I automatically lint and format code files after edits in Claude Code?

You can automatically lint and format code files by configuring PostToolUse hooks to trigger real-time linters like ESLint, Black, or Ruff immediately after Claude Code modifies a file, ensuring immediate feedback and adherence to project standards.

What does real-time auto-linting do for multi-language projects?

Real-time auto-linting for multi-language projects automatically runs configured linters across JavaScript, TypeScript, Python, Ruby, Go, and Rust files upon modification, enforcing code quality and consistency without manual intervention.

How do I set up PostToolUse hooks to run Python formatters like Black and Ruff?

Set up PostToolUse hooks by parsing CLAUDE.md and generating a .claude/settings.json configuration that specifies Black for formatting and Ruff for error checking whenever a Python file is written or modified.

Does Claude Code auto-linting work with JavaScript and TypeScript workflows?

Yes, Claude Code auto-linting works with JavaScript and TypeScript workflows by using configurable PostToolUse hooks to automatically execute linters like ESLint immediately after file edits or writes.

Do I need to manually configure settings.json to enable code formatting hooks?

No, you do not need to manually configure settings.json to enable code formatting hooks; the Skill parses your CLAUDE.md file and automatically generates the required .claude/settings.json configurations for seamless workflow integration.

What are the limitations of using PostToolUse hooks for automated code quality checks?

The limitation of using PostToolUse hooks for automated code quality checks is that they only trigger after file modifications, meaning they provide post-edit feedback rather than preventing code quality issues during the active generation process.