Pre commit manager

From rysweet/amplihack · View interactive version

Pre commit manager is an AI agent skill from the GitHub repository rysweet/amplihack. Manage pre-commit hooks with preference memory and template-based configuration. Use when installing, configuring, enabling/disabling, or checking status of pre-commit hooks. Supports templates for python, javascript, typescript, go, rust, and generic projects.

How to use this skill

Skill file

Pre-Commit Manager Skill

Manage pre-commit hooks with preference memory and template-based configuration.

Operations

1. Install

Install pre-commit hooks in current repository.

Usage:

Install pre-commit hooks now

What it does:

2. Configure

Generate .pre-commit-config.yaml from templates.

Usage:

Configure pre-commit with python template
Configure pre-commit with javascript template
Configure pre-commit with generic template

Templates:

3. Enable

Set preference to "always" auto-install.

Usage:

Enable pre-commit auto-install

4. Disable

Set preference to "never" auto-install.

Usage:

Disable pre-commit auto-install

5. Status

Show current pre-commit status.

Usage:

Show pre-commit status
Check pre-commit status

Shows:

6. Baseline

Generate .secrets.baseline for detect-secrets.

Usage:

Generate secrets baseline
Create detect-secrets baseline

Implementation

This skill interfaces with:

Security

Reference

Based on: https://gist.github.com/MangaD/6a85ee73dd19c833270524269159ed6e#4-installing-and-setting-up-pre-commit

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.