
git-hooks-manager
Set up git hooks for pre-commit and pre-push automation without writing hook scripts by hand.
- version
- 1.0.0
- GitHub stars
- 38
What it does
- Covers pre-commit and pre-push git hook setup for automating checks before code is committed or pushed
- Designed for projects that want local git automation configured through a plugin instead of manual scripts
Add marketplace
/plugin marketplace add glincker/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install git-hooks-manager@glincker-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceGit Hooks Manager
Setup automated git hooks for pre-commit and pre-push workflows. Enforce code quality, run tests, format code, and prevent bad commits from reaching your repository.
What This Skill Does
- Creates pre-commit hooks (lint, format, test)
- Sets up pre-push hooks (full test suite)
- Installs commit-msg hooks (enforce conventions)
- Configures husky or manual hooks
- Prevents commits with failing checks
- Auto-formats code before commit
Instructions
Phase 1: Detect Project Type
Use Read to check:
- package.json → Node.js (use husky)
- pyproject.toml → Python (use pre-commit)
- .git/hooks → Manual hooks
Phase 2: Node.js Setup (Husky)
Install husky:
npm install --save-dev husky lint-staged
npx husky init
Configure package.json:
{
"scripts": {
"prepare": "husky"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml}": [
"prettier --write"
]
}
}
Pre-commit hook (.husky/pre-commit):
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
echo "🔍 Running pre-commit checks..."
# Run linter
npm run lint || exit 1
# Format code
npx lint-staged || exit 1
# Run tests on staged files
npm test -- --findRelatedTests $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|jsx|ts|tsx)$' | tr '\n' ' ') || exit 1
echo "✅ Pre-commit checks passed!"
Pre-push hook (.husky/pre-push):
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
echo "🔍 Running pre-push checks..."
# Run full test suite
npm test || exit 1
# Check types (if TypeScript)
npm run type-check || exit 1
# Build check
npm run build || exit 1
echo "✅ Pre-push checks passed!"
Commit-msg hook (.husky/commit-msg):
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# Enforce conventional commits
npx --no -- commitlint --edit $1 || exit 1
Phase 3: Python Setup (pre-commit)
.pre-commit-config.yaml:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--max-line-length=88', '--extend-ignore=E203']
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--profile', 'black']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
language: system
pass_filenames: false
always_run: true
Install:
pip install pre-commit
pre-commit install
pre-commit install --hook-type commit-msg
Phase 4: Manual Hooks
For projects without package managers:
.git/hooks/pre-commit:
#!/bin/sh
echo "🔍 Running pre-commit checks..."
# Check for TODOs
if git diff --cached | grep -i "TODO"; then
echo "❌ Found TODO comments. Please remove or track them properly."
exit 1
fi
# Check for console.log
if git diff --cached --name-only | grep -E '\.(js|jsx|ts|tsx)$' | xargs grep -n "console\.log"; then
echo "❌ Found console.log statements. Please remove them."
exit 1
fi
# Check for hardcoded secrets
if git diff --cached | grep -E '(password|secret|api_key|apikey)\s*=\s*["\'][^"\']+["\']'; then
echo "❌ Possible hardcoded secret detected!"
exit 1
fi
# Check file size
for file in $(git diff --cached --name-only); do
if [ -f "$file" ]; then
size=$(wc -c < "$file")
if [ $size -gt 1048576 ]; then # 1MB
echo "❌ File $file is too large (>1MB)"
exit 1
fi
fi
done
echo "✅ Pre-commit checks passed!"
Hook Types
pre-commit
- Linting (ESLint, Flake8, Pylint)
- Formatting (Prettier, Black, rustfmt)
- Type checking (TypeScript, mypy)
- Unit tests on changed files
- Secret detection
pre-push
- Full test suite
- Build verification
- Coverage check
- Integration tests
commit-msg
- Conventional Commits enforcement
- Ticket number requirement
- Message length validation
post-commit
- Notifications
- Log generation
- Cleanup tasks
Advanced Features
Skip Hooks (When Needed)
# Skip pre-commit
git commit -n -m "Emergency fix"
# Skip pre-push
git push --no-verify
Selective Hooks
# Only run on specific branches
if [ "$(git branch --show-current)" = "main" ]; then
echo "Running extra checks on main branch..."
fi
Performance Optimization
# Cache linter results
if [ ! -f .lint-cache ] || [ "$(git diff --cached | md5sum)" != "$(cat .lint-cache)" ]; then
npm run lint
git diff --cached | md5sum > .lint-cache
fi
Tool Requirements
- Write: Create hook files
- Read: Detect project configuration
- Bash: Make hooks executable
Examples
Example 1: Full Setup
User: "Setup git hooks for my Node.js project"
Output:
- Installs husky + lint-staged
- Creates pre-commit hook (lint, format, test)
- Creates pre-push hook (full tests)
- Creates commit-msg hook (conventional commits)
Example 2: Python Project
User: "Setup pre-commit hooks for Python"
Output:
- Installs pre-commit framework
- Configures black, flake8, isort, mypy
- Adds pytest hook
- Installs hooks to .git/hooks/
Best Practices
- Fast pre-commit: Only run on changed files
- Comprehensive pre-push: Full test suite before push
- Allow skip: Provide --no-verify escape hatch
- Team consistency: Commit hooks config to repo
- Clear feedback: Show what's running and why it failed
Changelog
Version 1.0.0
- Husky setup for Node.js
- pre-commit framework for Python
- Manual hooks for any project
- Conventional Commits enforcement
- Secret detection
Author
GLINCKER Team
- Repository: claude-code-marketplace
From the glincker/claude-code-marketplace README
GLINCKER Claude Code Marketplace
Community-Driven Agent Marketplace - A comprehensive collection of specialized agents, automation workflows, and developer productivity tools
What GLINCKER Offers
A comprehensive marketplace of production-ready agents and tools designed to solve real developer pain points. Built by the community, for the community.
| Category | What We Provide | How It Helps |
|---|---|---|
| Multi-Agent Coordination | 5 parallel agents for code review | Comprehensive analysis from security, performance, testing, architecture, and style perspectives |
| Workflow Orchestration | YAML-based agent chaining | Automate complex pipelines with conditional logic and parallel execution |
| Quick Access | 7 slash commands | Instant access to common development tasks |
| Integrations | Database queries + 100+ APIs | Natural language interface to your entire stack |
| Infrastructure | Docker, Kubernetes, CI/CD | Production-ready configurations and best practices |
| Full SDLC Coverage | 23+ specialized agents | End-to-end support from development to deployment |
Why Choose GLINCKER
Comprehensive: 23+ specialized agents covering every stage of development Collaborative: Multi-agent coordination for complex tasks Automated: Workflow orchestration to chain agents together Production-Ready: Battle-tested configurations and best practices Open Source: Community-driven with transparent development Extensible: Easy to add your own agents and workflows
We're always improving - contributions welcome! See our Contributing Guide to help make this marketplace even better.
Architecture
Multi-Agent Code Review System
graph TD
A[Pull Request] --> B[PR Reviewer Skill]
B --> C[Security Agent]
B --> D[Performance Agent]
B --> E[Testing Agent]
B --> F[Architecture Agent]
B --> G[Style Agent]
C --> H[Synthesizer]
D --> H
E --> H
F --> H
G --> H
H --> I[Comprehensive Review Report]
I --> J[Auto-Generated Fixes]
Workflow Composition Framework
┌─────────────────────────────────────────────────────────────┐
│ Workflow Composer │
├─────────────────────────────────────────────────────────────┤
│ │
│ Step 1: Code Quality Checks (Parallel) │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Linter │ │ Security │ │ Tests │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ └─────────────┼─────────────┘ │
│ ↓ │
│ Step 2: Conditional Logic │
│ ┌─────────────────────────────────────┐ │
│ │ IF all_passed THEN proceed │ │
│ │ ELSE notify and exit │ │
│ └────────────────┬────────────────────┘ │
│ ↓ │
│ Step 3: Deployment │
│ ┌─────────────────────────────────────┐ │
│ │ Deploy with retry (max 3 attempts) │ │
│ └─────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
Quick Start
1. Install Marketplace
/plugin marketplace add https://github.com/GLINCKER/claude-code-marketplace
2. Install Essential Agents
# Core development agents
/plugin install pr-reviewer@glincker-marketplace
/plugin install security-scanner@glincker-marketplace
/plugin install docker-wizard@glincker-marketplace
# Or install all
/plugin marketplace install glincker-marketplace
3. Use Slash Commands
/review # Multi-agent code review (5 agents)
/test # Generate unit tests
/security-scan # OWASP Top 10 audit
/docker-setup # Generate Docker config
/k8s-setup # Generate Kubernetes manifests
/deploy staging # Orchestrated deployment
/workflow # Create automated workflow
4. Natural Language Commands
# Database queries
"Show me users who signed up last month with revenue > $100"
# API integrations
"Send Slack message to #engineering: Deployment complete"
# Code migration
"Migrate this React component from class to hooks"
# Infrastructure
"Generate production-ready K8s manifests with autoscaling"
# Workflows
"Create workflow: test → security scan → deploy if all pass"
Featured Skills
Autonomous PR Reviewer
Location: skills/devops/pr-reviewer/
Multi-agent code review system with 5 specialized agents working in parallel.
- Security Agent: Vulnerability scanning, OWASP compliance
- Performance Agent: Bottleneck detection, optimization suggestions
- Testing Agent: Coverage analysis, test case generation
- Architecture Agent: Design pattern review, SOLID principles
- Style Agent: Code style, documentation quality
Unique value: 5x more thorough than single-agent reviews, generates actionable fixes.
Workflow Composer
Location: skills/automation/workflow-composer/
First skill composition framework for Claude Code. Chain multiple skills with YAML configuration.
steps:
- name: quality-checks
parallel:
- skill: security-scan
- skill: test-runner
- skill: linter
- name: deploy
when: ${steps.quality-checks.all_passed}
skill: deploy-orchestrator
retry:
max_attempts: 3
backoff: exponential
Unique value: Build complex automation pipelines without coding.
Database Query (Natural Language)
Location: skills/integrations/database-query/
Query any database using natural language with automatic optimization.
-- Input: "Show me users who signed up last month"
-- Generated:
SELECT * FROM users
WHERE created_at >= NOW() - INTERVAL '1 month'
ORDER BY created_at DESC;
-- Includes: Query optimization, index suggestions, EXPLAIN ANALYZE
Supported: PostgreSQL, MySQL, MongoDB, SQLite, Redis
Unique value: Only skill with query optimization and index suggestions.
Code Migrator
Location: skills/development/code-migrator/
Automated legacy code modernization with risk assessment.
Supported migrations:
- Python 2 to Python 3
- JavaScript to TypeScript
- React Classes to Hooks
- Callbacks to Async/Await
- Framework upgrades (Django, Rails, Express)
Unique value: AI-powered risk assessment + automated test generation.
API Connector
Location: skills/integrations/api-connector/
Natural language interface to 100+ popular APIs.
Supported services:
- Development: GitHub, GitLab, Linear, Jira
- Communication: Slack, Discord, Twilio
- Payments: Stripe, PayPal, Square
- Cloud: AWS, Google Cloud, Azure
- AI: OpenAI, Anthropic, Hugging Face
- And 90+ more
Unique value: Handles authentication (OAuth, JWT), generates integration code.
Essential Skills
- README Generator (
skills/documentation/readme-generator/): Analyze project structure and generate comprehensive documentation - Unit Test Generator (
skills/testing/unit-test-generator/): Create tests for multiple languages with coverage analysis
Comparison
| Feature | GLINCKER | Other Marketplaces |
|---|---|---|
| Multi-Agent Skills | 5 parallel agents | None |
| Workflow Orchestration | YAML-based | None |
| API Integrations | 100+ services | Few (5-10) |
| Database Query | With optimization | Basic/None |
| Code Migration | AI + risk assessment | None |
| Code Generation | Multi-language | Limited |
Use Cases
Startup: "Set up CI/CD, generate tests, create documentation" → Automated workflow handles everything
Enterprise: "Migrate Python 2 monolith to Python 3 microservices" → Risk-assessed migration with automated testing
Developer: "Review code, optimize, and deploy" → Multi-agent review with automated deployment
Skill Categories
skills/
├── development/ # Code migration, refactoring, architecture
├── devops/ # PR review, CI/CD, deployment
├── testing/ # Unit tests, integration tests, coverage
├── documentation/ # README, API docs, changelogs
├── integrations/ # APIs, databases, external services
├── automation/ # Workflows, task automation
├── data-science/ # Data analysis, visualization
└── security/ # Audits, vulnerability scanning
Skill Structure
skills/category/your-skill/
├── SKILL.md # Required: Skill definition with YAML frontmatter
├── scripts/ # Optional: Helper scripts
└── templates/ # Optional: File templates
Minimal SKILL.md
---
name: your-skill
description: What your skill does
allowed-tools: ["Read", "Write"]
version: 1.0.0
author: Your Name
---
# Instructions
Clear instructions for Claude on executing this skill.
## Examples
Concrete usage examples.
Contributing
- Fork repository
- Create skill in appropriate category
- Follow Skill Template
- Submit pull request
- Pass community review
Resources:
- Contributing Guide - Detailed instructions
- Quick Start - Fast-track guide
- Unique Features - What makes us different
Quality Standards
All skills must have:
- Clear documentation with examples
- Minimal tool permissions (principle of least privilege)
- Security-conscious implementation
- Error handling for edge cases
- Automated testing where applicable
Safety
Skills execute code on your system. Before installing:
- Review source code
- Check author reputation
- Understand required permissions
- Only install from trusted sources
Community
- Discussions: Ask questions, share workflows
- Issues: Report bugs, request features
- Contributing: Contribution guidelines
Resources
License
Apache License 2.0 - See LICENSE
Acknowledgments
Built on:
- Anthropic's Skills - Foundation
- Claude Code community - Inspiration
- Open source contributors - Innovation
Made with Claude Code by the GLINCKER community
Details
- Marketplace
- glincker/claude-code-marketplace
- Source
- skills/automation/git-hooks-manager
- Category
- Community
- Keywords
- git, hooks, pre-commit, automation
- Listed since
- Apr 7, 2026
More from glincker/claude-code-marketplace
All 24- hello-worldv1.0.0
- k8s-generatorv1.0.0
- performance-optimizerv1.0.0
- pr-reviewerv1.0.0
- qa-engineerv1.0.0
- readme-generatorv1.0.0
- security-scannerv1.0.0
- tech-writerv1.0.0
- unit-test-generatorv1.0.0
- workflow-composerv1.0.0
- aident-skillv0.4.0
- api-connectorv1.0.0
- backend-architectv1.0.0
- changelog-generatorv1.0.0
- cicd-pipeline-builderv1.0.0
- code-migratorv1.0.0
- data-engineerv1.0.0
- database-queryv1.0.0
- deployment-managerv1.0.0
- devops-specialistv1.0.0
- docker-wizardv1.0.0
- environment-managerv1.0.0
- frontend-specialistv1.0.0
Similar to git-hooks-manager
More Git & Releases
hooks-gitPlugindavepoon/buildwithclaude3.8K starsGit Hooks - Event-driven automation hooks
huskyPluginccplugins/awesome-claude-code-plugins1K starsSets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message standards, integrating with linting tools, and ensuring code qu
git-pr-workflowsPluginwshobson/agents42.8K starsGit workflow automation, pull request enhancement, and team onboarding processes
hooks-developmentPlugindavepoon/buildwithclaude3.8K starsDevelopment Hooks - Event-driven automation hooks
git-hooks-setupSkillaj-geddes/useful-ai-prompts452 installsGit hook setup covering Husky and pre-commit that enforces linting, commit messages, secret scanning, and tests.