Back to skills directory

Pre-commit Setup

Git pre-commit 钩子配置技能,自动集成代码格式化、Lint 检查与提交信息校验,在提交前拦截低质量代码。

Pre-commit Setup is an Agent skill for DevOps. Git pre-commit 钩子配置技能,自动集成代码格式化、Lint 检查与提交信息校验,在提交前拦截低质量代码。 Tags: pre-commit · Git钩子 · hook · 格式化 · lint · 代码质量.

DevOps91.0k installsAuthor: obraVisit

What is Pre-commit Setup

Pre-commit Setup packages a DevOps workflow for agents. Git pre-commit 钩子配置技能,自动集成代码格式化、Lint 检查与提交信息校验,在提交前拦截低质量代码。

Install Pre-commit Setup in Cursor / Claude / Codex

Claude Code Install with the command on this page, or place the skill in ~/.claude/skills or project .claude/skills so Claude can detect Pre-commit Setup.

Cursor After the install command writes the skill directory, invoke Pre-commit Setup by name in the Cursor agent.

Codex Install into the Codex skills directory and call it by name. If only a generic command is listed, run it locally and confirm Codex can see the skill.

One-click Install

Run the following command in your terminal to install the skill into your AI agent:

npx skillsadd obra/superpowers

How to Use

Claude Code: Place the skill in ~/.claude/skills (personal) or the project .claude/skills directory, and Claude will auto-detect it.

Cursor / Windsurf: After installing via npx skillsadd, the skill directory is placed in the configured path.

Codex CLI: After installation it loads automatically from the skills directory and is invoked by name.

Tags

pre-commitGit钩子hook格式化lint代码质量quality

Similar recommendations

FAQ

What is Pre-commit Setup for?

Pre-commit Setup is a DevOps skill. Git pre-commit 钩子配置技能,自动集成代码格式化、Lint 检查与提交信息校验,在提交前拦截低质量代码。

Can Claude, Cursor, and Codex all use Pre-commit Setup?

Yes if the client supports Agent Skills and has loaded the skill directory. Check the project home for compatibility notes.

What similar skills exist?

Related items come from the same DevOps group so you can pick a closer workflow.