generate-precommit-hooks
Installation
SKILL.md
Generate Pre-commit Hooks
Analyze the current project and generate appropriate pre-commit hooks based on the tech stack.
Instructions
-
Detect project type by checking for:
package.json(Node/TypeScript/JavaScript)Cargo.toml(Rust)pyproject.tomlorrequirements.txt(Python)go.mod(Go)foundry.toml(Solidity/Foundry)hardhat.config.js/ts(Solidity/Hardhat)
-
Check existing setup:
- Look for
.husky/directory - Check for
lint-stagedconfig in package.json - Check for
.pre-commit-config.yaml - Check for existing git hooks in
.git/hooks/
- Look for