installing-git-hooks

Install git hooks to run format, lint, typecheck, and tests via justfile commands.

1|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/bryonjacob/aug --skill installing-git-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: installing-git-hooks
Source: https://github.com/bryonjacob/aug/tree/main/aug-dev/skills/installing-git-hooks
Command: npx skills add https://github.com/bryonjacob/aug --skill installing-git-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the installation and enforcement of git hooks to run code quality checks (format, lint, typecheck) on pre-commit and to run tests on pre-push, ensuring teams maintain consistent quality gates.

Core Features & Use Cases

  • Pre-commit checks: format, lint, typecheck.
  • Pre-push checks: run tests.
  • DRY integration: hooks call justfile commands to centralize workflows across projects.

Quick Start

Follow these steps to install and activate the Git hooks:

  1. Copy the pre-commit and pre-push scripts into the .git/hooks/ directory as shown in the provided snippets.
  2. Make the scripts executable: chmod +x .git/hooks/pre-commit .git/hooks/pre-push
  3. If using the pre-commit framework, add the provided .pre-commit-config.yaml to your project and run pre-commit install.
  4. Verify that the hooks trigger on commit and push by making a small code change and committing; you should see format, lint, typecheck, and test runs.

Frequently Asked Questions about installing-git-hooks

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

FAQPage Schema
How do I automate code quality checks with git hooks?

Automate code quality with git hooks by installing scripts in the .git/hooks/ directory to execute formatting, linting, and typechecking on pre-commit, and run tests on pre-push.

What are pre-commit and pre-push hooks used for in a development workflow?

Pre-commit and pre-push hooks enforce quality gates in a development workflow by automatically running formatting, linting, and typechecking before code is committed, and executing tests before code is pushed to a remote repository.

Do I need justfile commands to set up automated git hooks?

Yes, you need justfile commands to set up these automated git hooks, as the pre-commit and pre-push scripts call justfile commands to centralize workflows and execute formatting, linting, typechecking, and tests across projects.

Can I use the pre-commit framework with this git hook setup?

Yes, you can use the pre-commit framework by adding a provided .pre-commit-config.yaml file to your project and running pre-commit install to enable automated checks alongside your standard git hooks.

What is the best way to centralize development workflows across multiple projects using git hooks?

The best way to centralize workflows is using DRY integration where git hooks call justfile commands, ensuring consistent quality gates for formatting, linting, typechecking, and testing across all your projects.

Why are my git hooks not running tests on pre-push?

Your git hooks may not run tests on pre-push if the pre-push script is not executable; ensure you run chmod +x .git/hooks/pre-push and verify the script correctly calls your justfile test commands.