hooks-patterns

Configure pre-commit and post-tool-use hooks for automated code quality checks.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/JNZader-Vault/project-starter-framework --skill hooks-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hooks-patterns
Source: https://github.com/JNZader-Vault/project-starter-framework/tree/main/.ai-config/skills/references/hooks-patterns
Command: npx skills add https://github.com/JNZader-Vault/project-starter-framework --skill hooks-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers automate code quality checks, formatting, and security measures by recommending and configuring pre-commit and post-tool-use hooks, preventing common errors and improving code consistency.

Core Features & Use Cases

  • Automated Formatting: Integrates with tools like Prettier, ESLint, Black, and gofmt to ensure consistent code style.
  • Type Checking: Recommends hooks for TypeScript and Python type checkers (mypy, pyright) to catch errors early.
  • Security Enforcement: Suggests hooks to block edits to sensitive files (e.g., .env, credentials.json) and lock files.
  • Test Automation: Recommends hooks to automatically run tests (Jest, pytest) after code changes.
  • Notification Hooks: Configures alerts for permission requests or idle states in AI coding assistants.

Quick Start

Configure auto-formatting hooks for Prettier and ESLint by adding the recommended settings to your .claude/settings.json file.

Frequently Asked Questions about hooks-patterns

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

FAQPage Schema
How do I automate code formatting and type checking with pre-commit hooks?

Automate code formatting and type checking by configuring pre-commit hooks for tools like Prettier, ESLint, Black, and mypy. This Skill provides configuration examples to add to your settings file, ensuring consistent code style and early error detection before changes are committed.

Can I use hooks to block edits to sensitive files like .env?

Yes, you can enforce security by configuring hooks to block edits to sensitive files like .env and credentials.json. This Skill recommends specific hook configurations to prevent accidental modifications to sensitive files and lock files in your repository.

What is the best way to run tests automatically after code changes in an AI coding environment?

The best way to run tests automatically is by setting up post-tool-use hooks for frameworks like Jest and pytest. This Skill recommends specific hook placements and notification triggers to execute test suites immediately after AI coding assistants modify your codebase.

Does this hooks configuration support Python, Go, and Rust environments?

Yes, the hooks configuration supports Python, Go, and Rust environments. It provides specific guidance on hook placement and notification triggers for popular tools across multiple languages, including gofmt for Go and relevant formatters for Rust.

How do notification hooks work for permission requests in AI coding assistants?

Notification hooks work by configuring alerts for permission requests or idle states within AI coding environments. This Skill provides configuration examples to set up triggers that notify you when an AI assistant requires permission or enters an idle state during development.