setup-lefthook

Configure lefthook Git hooks with Biome linting and TypeScript type checking.

3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/mattwoodco/skills --skill setup-lefthook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-lefthook
Source: https://github.com/mattwoodco/skills/tree/main/skills/setup-lefthook
Command: npx skills add https://github.com/mattwoodco/skills --skill setup-lefthook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the setup of Git hooks using lefthook, ensuring code quality and consistency by integrating linting and type-checking directly into your development workflow.

Core Features & Use Cases

  • Automated Git Hooks: Configures pre-commit and pre-push hooks.
  • Integrated Linting & Type Checking: Leverages Biome and TypeScript for code validation.
  • Use Case: When starting a new project or onboarding a new developer, use this skill to quickly establish robust Git hooks that prevent common code quality issues from being committed or pushed.

Quick Start

Use the setup-lefthook skill to configure basic git hooks with biome linting and type checking.

Frequently Asked Questions about setup-lefthook

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

FAQPage Schema
How do I set up Git hooks with Biome and TypeScript for automated linting?

To set up Git hooks with Biome and TypeScript, configure lefthook to automate pre-commit and pre-push checks. This validates types and lints code directly within your repository workflow, preventing quality issues before commits.

What is the best way to automate pre-commit and pre-push checks in a Git repository?

Automating pre-commit and pre-push checks is best done by configuring lefthook to execute validation scripts during those Git events. This intercepts bad commits locally, ensuring code quality issues are caught before reaching the remote repository.

Does lefthook support deployment configurations for Vercel and Sanity?

Yes, lefthook supports deployment configurations for Vercel and Sanity. The setup provides a full configuration option that integrates these deployment workflows alongside standard Biome linting and TypeScript type checking.

Can I use Biome for linting in my pre-commit hooks instead of other linters?

Yes, you can use Biome for linting in your pre-commit hooks. The setup specifically integrates Biome to handle code validation, ensuring consistency and securing your code quality directly within the Git hook lifecycle.

When do I need to configure Git hooks for my TypeScript project?

You need to configure Git hooks when starting a new TypeScript project or onboarding developers. Establishing pre-commit and pre-push checks early prevents common code quality issues and ensures consistent type validation across the team.