Defines a three-layer quality strategy where editor or AI agent hooks auto-fix and detect issues after edits, pre-commit blocks on verify gates, and pre-push runs heavy checks. Use when setting up or reviewing lint, format, type-check, schema, secret-scan, or test hooks, or when deciding what must block git commit or push versus run only after file edits.
Ships in kf-global. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
pre-commit / pre-push で gate できるものは Git hooks を正 にする。 編集後 hooks(AI エージェント / エディタの project hooks)は 編集直後の Fix + 早期検知 用。
| 層 | 役割 | commit / push を止めるか |
|---|---|---|
| 編集直後 | 編集後 hooks | 止めない(fail-open) |
git commit | pre-commit | 止める(verify gate) |
git push | pre-push | 止める(重い check) |
編集直後 編集後 hooks Fix + 早期検知(非ブロック)
↓
git commit pre-commit Verify gate(ブロック)
↓
git push pre-push 重い check(ブロック)
additional_context 相当を返せる場合、lint / check 結果をエージェントへ返却(post-edit イベントのみ)編集後 hooks の具体設定は利用ツール依存。Cursor なら .cursor/hooks.json、他ツールならその project hooks 仕様に合わせる。正本は イベント概念(after agent edit / after tab edit if available)。
PJ の task 名(mise run lint 等)に合わせて読み替える。
| 種別 | Fix(書き換え) | Verify(gate) |
|---|---|---|
| format | 編集後 hooks: formatter を編集 1 ファイルへ | pre-commit: format check(全体) |
| lint | 編集後 hooks: lint --fix → lint | pre-commit: lint(全体) |
| type check | 編集後 hooks: 対象ファイル種に応じて check | pre-commit: check(常時) |
| db / schema | 編集後 hooks: schema / migration 編集時 | pre-commit: 同上条件 |
| secrets / test | — | pre-commit / pre-push |
mise run 等)に 1 本化stages: [pre-commit] と stages: [pre-push] を明示hooks-install 系 task にまとめるfile_path を取得し、対象外拡張子は no-opformat:check / 全体 lint を gate 化するkf-g-project-bootstrap-new-project-rules(references/lint-fmt-hooks.md 等)kf-g-git-commit-staged-only-ruleskf-g-skill-naming-creation-organization-rulesWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
35 skills in this plugin
/kf-g-agent-git-managed-workflowUse this skill when changing any git-managed files in a repository. Always apply it before creating issues, dedicated worktrees, commits, or pull requests for such changes; covers issue-first planning, worktree path and branch naming, atomic commits, push, PR creation, presenting the PR URL to the user, and stopping on hook failures without --no-verify.
/kf-g-agent-planning-design-as-finalUse this skill whenever creating or revising planning documents, design docs, issue/PR planning HTML, or any equivalent design text. Rewrite the published text as one complete final design, as if it had been planned that way from the start, for a reader with no prior conversation./kf-g-agent-research-report-only-unless-approved/kf-global:kf-g-git-hooks-fix-verify-layeringfrom kf-global
npx claudepluginhub melumuccu/ai --plugin kf-global