.agents/skills/generic-git-hooks/SKILL.md
Universal git hooks recipe for JavaScript, TypeScript, and polyglot repositories. Use when initializing, auditing, or reusing pre-commit and pre-push quality gates across Husky/lint-staged or Python pre-commit framework setups.
npx skillsauth add filippovskii09/quize-audit generic-git-hooksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provide one reusable automation pattern for two common git-hook stacks:
husky + lint-staged (Node-first repos)pre-commit framework (polyglot repos with Python, JS, SCSS, YAML, etc.)Select hook stack using this order:
.pre-commit-config.yaml exists -> use pre-commit framework profile.package.json has prepare: husky or .husky/ exists -> use Husky profile.Recommended for Node/TS repos with staged-file optimization.
.husky/pre-commit -> npx lint-staged.husky/commit-msg -> commitlint --edit $1*.{ts,tsx,js,jsx} -> eslint --fix*.scss -> stylelint --fix (if SCSS exists)*.{json,md,yml,yaml,html} -> prettier --writeRecommended for polyglot repos where Python tooling already exists.
pre-commit-hooks (check-yaml, end-of-file-fixer, trailing-whitespace, check-added-large-files)ruff, ruff-format, stylelint)pre-push stage for slower checks (e.g., test suite, coverage report)Centralizes hooks in one declarative YAML with per-stage control and deterministic versions.
husky, lint-staged, eslint, prettier (+ stylelint optional)pre-commit CLI + language tools referenced by hooksnpm install -D husky lint-staged eslint prettier
npm run prepare
npx lint-staged
pip install pre-commit
pre-commit install
pre-commit install --hook-type pre-push
pre-commit run --all-files
Every commit (and optionally push) runs project-appropriate quality gates with predictable, reproducible tooling.
development
Domain skill for React internationalization setup with react-intl, locale switching, and typed i18n context. Use when adding new translations or extending locale behavior.
development
Domain skill for reusable typed React hooks used in business logic. Use when extending or validating shared hooks like local storage and pagination.
development
Reusable Prettier formatting recipe for TypeScript and frontend repositories. Use when enforcing consistent code style and integrating format checks in hooks.
tools
Declarative pre-commit framework recipe for polyglot repositories with stage-aware hooks (pre-commit and pre-push). Use when repositories need non-Node quality gates or mixed toolchains.