setup-git-hooks

Solid

Configure two-stage git hooks (pre-commit + pre-push) for quality automation, with either pre-commit or lefthook as the hook manager. Use after bootstrap-project and setup-adrs, when adding quality gates to an existing project, or when standardizing quality automation.

Code & Development 15 stars 0 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
40
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Setup Git Hooks Configure two-stage git hooks — fast checks on commit, thorough checks on push — using either `pre-commit` or `lefthook` as the hook manager. ## When to Use - After running `bootstrap-project` and `setup-adrs` skills - When adding quality gates to an existing project - When standardizing quality automation across projects ## Required Inputs 1. **Technology stack** (Elixir, Python, TypeScript, etc.) 2. **Quality tools preference** (can use defaults for each ecosystem) 3. **Multi-remote strategy** (if using private + public remotes) ## Two-Stage Strategy **Stage 1: Pre-commit (Fast, <30 seconds)** - File hygiene (whitespace, line endings, merge conflicts) - Secret detection (critical security gate) - Code formatting check **Stage 2: Pre-push (Thorough, <3 minutes)** - Linting with strict rules - Type checking - Security audit (dependencies) - Fast tests (exclude slow/integration) ## Workflow ### Step 0: Create Quality Configuration Reference Before configuring tools, create the single source of truth: `docs/reference/quality-configuration.md` ```markdown # Quality Configuration Single source of truth for all quality settings. ## Toolchain Versions Three roles, and conflating them ships defects. Record all three even when two coincide today. | Role | Version | Declared in | Meaning | |------|---------|-------------|---------| | **Floor** | [oldest supported] | [manifest] | the oldest a *consumer* needs — a compatibility claim | | **Build** | [cu...

Details

Author
jrjsmrtn
Repository
jrjsmrtn/project-orchestration-skills
Created
8 months ago
Last Updated
1 weeks ago
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category