pre-commit-manager

Pre-Commit Manager Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pre-commit-manager" with this command: npx skills add rysweet/amplihack/rysweet-amplihack-pre-commit-manager

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:

  • Checks if .pre-commit-config.yaml exists

  • Verifies pre-commit binary is available

  • Runs pre-commit install

  • Reports success/failure

  1. 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:

  • python

  • Python projects (black, ruff, mypy)

  • javascript

  • JS/TS projects (prettier, eslint)

  • typescript

  • TypeScript projects

  • generic

  • Language-agnostic (trailing whitespace, file size, detect-secrets)

  1. Enable

Set preference to "always" auto-install.

Usage:

Enable pre-commit auto-install

  1. Disable

Set preference to "never" auto-install.

Usage:

Disable pre-commit auto-install

  1. Status

Show current pre-commit status.

Usage:

Show pre-commit status Check pre-commit status

Shows:

  • Git repository status

  • Config file existence

  • Hooks installation status

  • Current preference setting

  • Pre-commit binary availability

  1. Baseline

Generate .secrets.baseline for detect-secrets.

Usage:

Generate secrets baseline Create detect-secrets baseline

Implementation

This skill interfaces with:

  • .claude/tools/amplihack/hooks/precommit_prefs.py

  • Preference management

  • .claude/tools/amplihack/hooks/precommit_installer.py

  • Hook installation

  • Templates in templates/ directory

Security

  • Path traversal prevention

  • Template whitelist validation

  • No shell=True in subprocess calls

  • Subprocess timeouts enforced

Reference

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pptx

No summary provided by upstream source.

Repository SourceNeeds Review
General

lawyer-analyst

No summary provided by upstream source.

Repository SourceNeeds Review
General

economist-analyst

No summary provided by upstream source.

Repository SourceNeeds Review
General

mermaid-diagram-generator

No summary provided by upstream source.

Repository SourceNeeds Review