{"enrichment":{"faq":[{"a":"git-hooks-setup enables you to configure pre-commit, commit-msg, and pre-push hooks that run automatically during your git workflow. You can use husky for a managed approach or native git hooks for a lightweight alternative. The skill guides you through initializing hooks, linking them to your repository, and connecting them to linting, formatting, and validation tools so code quality checks run before commits reach your repository.","q":"How do I set up git hooks for my project?"},{"a":"git-hooks-setup prevents broken code from reaching your repository by running automated checks at multiple stages. Pre-commit hooks catch linting and formatting issues, commit-msg hooks validate your commit messages against team conventions, and pre-push hooks run tests before code is pushed. Together, these layers ensure only code meeting your team's standards advances through your workflow.","q":"How can git-hooks-setup help prevent pushing broken code?"},{"a":"git-hooks-setup integrates husky with lint-staged to run linting and formatting on staged files before each commit. The setup process installs husky, creates pre-commit hooks, and configures lint-staged to apply your linters and formatters only to changed files. This approach keeps your workflow fast while ensuring consistent code style across your team's projects.","q":"What's the best way to configure pre-commit linting and formatting with husky?"},{"a":"git-hooks-setup uses commitlint to validate commit messages against your team's standards. The commit-msg hook intercepts commits and checks them against a configuration file defining your message format rules. If a commit doesn't match your conventions, it's rejected before entering the repository, ensuring consistent, readable commit history across your team.","q":"How does git-hooks-setup enforce team commit message conventions?"},{"a":"Yes. git-hooks-setup integrates secret scanning into your pre-commit hooks to detect API keys, credentials, and other sensitive data before they reach your repository. When a secret is found, the commit is blocked, protecting your codebase from accidental exposure and helping your team maintain security standards.","q":"Can git-hooks-setup detect secrets before they're committed?"},{"a":"Yes. git-hooks-setup supports native git hooks configuration as a lightweight alternative to husky. You can manually set up pre-commit, commit-msg, and pre-push hooks in your .git/hooks directory and connect them to your linting, formatting, and validation tools. This approach works well for teams preferring minimal dependencies while still standardizing development workflows.","q":"Does git-hooks-setup work without husky?"}],"shadow_tags":["git-automation","code-quality-gates","team-standards","commit-validation","secret-detection","pre-commit-workflow","developer-experience","ci-prevention"],"summary_rewrite":"Configure pre-commit, commit-msg, and pre-push hooks to standardize your team's development workflow. Supports both husky and native git hooks, with built-in linting, code formatting, commit message validation, and secret detection to catch issues before they reach your repository."},"files":[{"bytes":5698,"path":"git-hooks-setup/SKILL.md","sha256":"34fd0799db8422c68ea41ebf6c4f6ee9a6a89b902f3adabe9062acecde9c2819","url":"https://skillfed.io/files/wu529778790/shenzjd-skills/git-hooks-setup/8e46c152/SKILL.md"}],"id":"wu529778790/shenzjd-skills/git-hooks-setup","links":{"html":"https://skillfed.io/wu529778790/shenzjd-skills/git-hooks-setup","md":"https://skillfed.io/wu529778790/shenzjd-skills/git-hooks-setup.md","repo":"https://github.com/wu529778790/shenzjd-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":0,"language":"Shell","last_updated":"2026-06-24","license":"MIT","name":"git-hooks-setup","publisher":"wu529778790","stars":0},"relations":{"similar":[{"id":"jnMetaCode/superpowers-zh/chinese-commit-conventions"},{"id":"aj-geddes/useful-ai-prompts/git-hooks-setup"},{"id":"alinaqi/maggy/existing-repo"},{"id":"patricio0312rev/skills/eslint-prettier-config"},{"id":"ancoleman/ai-design-components/managing-git-workflows"},{"id":"patricio0312rev/skills/git-hygiene-enforcer"},{"id":"BagelHole/DevOps-Security-Agent-Skills/git-workflow"},{"id":"AsyrafHussin/agent-skills/git-workflow"},{"id":"tartinerlabs/skills/setup"},{"id":"byheaven/byheaven-skills/newproject"}]},"slug":{"owner":"wu529778790","repo":"shenzjd-skills","skill":"git-hooks-setup"},"version":"8e46c152"}
