Skip to main content
ClaudeWave
Skill822 estrellas del repoactualizado 5d ago

setup-pre-commit

This skill configures pre-commit hooks and quality gates for a repository by identifying the project's programming languages and tooling, then establishing an optimal combination of automated checks. Use it when you need to prevent common errors at commit time by running linting, formatting, and type-checking validations locally before code is pushed.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/Haohao-end/openagent /tmp/setup-pre-commit && cp -r /tmp/setup-pre-commit/api/internal/core/skills/catalog/setup-pre-commit ~/.claude/skills/setup-pre-commit
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

skill.md

# setup-pre-commit

这是一个为仓库配置 pre-commit 相关质量门禁的技能。

## 适用场景

- 用户想自动化 lint / format / typecheck
- 用户要设置 Husky、lint-staged 或 pre-commit hooks
- 用户想让本地提交阶段先拦住明显错误

## 工作方式

1. 先识别仓库用的语言和脚本工具。
2. 选择最少但有效的钩子组合。
3. 把常见检查前移到提交前。