Skip to main content
skillsFirst-partyReview first Safety · Privacy ·

Husky Commit Governance Capability Pack Skill

Expert husky capability pack for lightweight local quality gates, commit message enforcement, and low-friction contributor workflows.

by JSONbored·added 2026-04-11·
Claude CodeCodexWindsurfGeminiCursorCLI
HarnessClaude CodeCodexWindsurfGeminiCursorCLI
Level:expertType:capability-packVerified:validated
Review first review before installing

Open the source and read safety notes before installing.

Prerequisites

  • Node package scripts for validation
  • Conventional commit policy
  • Contributor onboarding docs

Schema details

Install type
package
Reading time
8 min
Difficulty score
79
Troubleshooting
Yes
Breaking changes
No
Package metadata
Package verified
Yes
SHA-256
aef3f6a1d69042ef5f12ff5dc7958397dd7c5de9bbbcf55d4b7211f0e0eef66b
Skill and platform metadata
Skill type
capability-pack
Skill level
expert
Verification
validated
Verified at
2026-04-11
Retrieval sources
https://typicode.github.io/husky/https://www.conventionalcommits.org/en/v1.0.0/https://commitlint.js.org/
Tested platforms
ClaudeCodexOpenClawCursorWindsurfGemini
PlatformSupportInstall path
claude-codeNative.claude/skills/<skill-name>/SKILL.md
codexNative.agents/skills/<skill-name>/SKILL.md
windsurfNative.windsurf/skills/<skill-name>/SKILL.md
geminiNative.gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md
cursorAdapter.cursor/rules/<skill-name>.mdc
cliManualAGENTS.md or tool-specific context file
Full copyable content
# Trigger
"Apply the husky commit governance capability pack to this repository."

# Required output
1) Hook matrix (pre-commit, commit-msg, optional pre-push)
2) Fast-path command list (< 10s target)
3) Contributor bypass/override policy
4) Drift and maintenance checklist

About this resource

Knowledge Freshness

This capability pack is pinned to documentation verified on 2026-04-11.

Retrieval Sources

Core Workflow

  1. Define minimum local gate set for the repository type.
  2. Keep hooks fast and deterministic to avoid bypass behavior.
  3. Enforce commit message standard with clear error messages.
  4. Align local checks with CI checks to prevent drift.
  5. Document safe bypass conditions for emergency workflows.

Overview

This skill focuses on practical local governance: catch avoidable issues early while preserving fast contributor loops.

Capability Scope

  • Hook design and prioritization
  • Runtime/latency optimization
  • Commit message policy enforcement
  • Contributor ergonomics and onboarding
  • Governance drift controls

Compatibility

Native

  • Claude Code / Claude: native skill usage via SKILL.md.
  • Codex/OpenAI workflows: compatible with Agent Skills-style SKILL.md content as reusable workflow instructions.

Manual Adaptation

  • Gemini CLI: native skill usage via .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md where supported.
  • Cursor: use the generated .cursor/rules/*.mdc adapter for project rules.
  • OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.

Production Rules

  • Keep pre-commit checks fast enough to avoid bypass patterns.
  • Use the same underlying scripts for local hooks and CI.
  • Document approved bypass conditions for emergency fixes only.
  • Treat commit-msg enforcement as required for changelog quality.

Troubleshooting

Issue: Hooks are too slow and developers bypass them
Fix: keep pre-commit to staged-file checks only.

Issue: Hook failures differ from CI failures
Fix: use shared scripts for local and CI paths.

Issue: Commit message confusion
Fix: provide examples in failing output and contributor docs.

Output Contract

  1. Minimal hook policy with justifications.
  2. Exact script wiring in package manager config.
  3. Failure UX recommendations.
  4. Maintenance checklist for future contributors.
#husky#git-hooks#commitlint#developer-experience#capability-pack

Source citations

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.