smithery/barleytea

pre-commit-guide

Pre-commit hooks setup and usage including code quality checks, gitleaks secret scanning, and configuration

Installation

$ npx skills add smithery/barleytea --skill pre-commit-guide

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/barleytea.

npx skills add smithery/barleytea

Browse all from smithery/barleytea

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,223 B
  • docs SUMMARY.md 131 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

pre-commit

Overview

pre-commit is a framework that uses Git hooks to easily run code quality checks. In this repository, the following checks are executed before committing:

  • Basic code quality checks (removing whitespace, ensuring end-of-file newlines, etc.)
  • Secret information leak checks (using gitleaks)

Setup

After cloning the repository, run the following command to install pre-commit hooks:

make pre-commit-init

Running Checks Manually

To run checks on all files manually:

make pre-commit-run

Secret Scanning

This repository uses gitleaks to scan for secret information. This helps prevent accidentally committing sensitive information such as API keys and passwords.

Configuration

The gitleaks configuration is managed in the .gitleaks.toml file. By default, basic secret detection rules are enabled.

Handling False Positives

To ignore false positives, add path patterns to the allowlist section in the .gitleaks.toml file.