commitlint
commitlintは、コミットメッセージの形式を統一し、ルールに沿っているかチェックすることで、変更履歴を管理しやすくし、CI環境での品質向上や変更履歴の自動生成を支援するSkill。
📜 元の英語説明(参考)
Enforce conventional commit messages with commitlint. Use when a user asks to standardize commit messages, enforce commit conventions, set up commit linting in CI, or generate changelogs from commits.
🇯🇵 日本人クリエイター向け解説
commitlintは、コミットメッセージの形式を統一し、ルールに沿っているかチェックすることで、変更履歴を管理しやすくし、CI環境での品質向上や変更履歴の自動生成を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o commitlint.zip https://jpskill.com/download/14773.zip && unzip -o commitlint.zip && rm commitlint.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/14773.zip -OutFile "$d\commitlint.zip"; Expand-Archive "$d\commitlint.zip" -DestinationPath $d -Force; ri "$d\commitlint.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
commitlint.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
commitlintフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
commitlint
概要
commitlint は、commitメッセージを conventional commit 形式 (type(scope): description) に照らしてチェックします。Git hooks 用の husky や、自動化された changelog 用の standard-version/changesets と組み合わせて使用します。
手順
ステップ 1: セットアップ
npm install -D @commitlint/cli @commitlint/config-conventional husky
npx husky init
echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
ステップ 2: 設定
// commitlint.config.js — Commit message rules
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore']],
'scope-case': [2, 'always', 'kebab-case'],
'subject-max-length': [2, 'always', 72],
},
}
ステップ 3: 有効な Commit
git commit -m "feat(auth): add Google OAuth login" # 有効
git commit -m "fix(api): handle null response from /users" # 有効
git commit -m "updated stuff" # 拒否
ガイドライン
- conventional commits は、自動化された changelog 生成と semantic versioning を可能にします。
- husky と組み合わせて、CI だけでなく commit 時に強制します。
- タイプ: feat (minor bump), fix (patch bump), BREAKING CHANGE (major bump)。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
commitlint
Overview
commitlint checks commit messages against conventional commit format (type(scope): description). Pairs with husky for Git hooks and standard-version/changesets for automated changelogs.
Instructions
Step 1: Setup
npm install -D @commitlint/cli @commitlint/config-conventional husky
npx husky init
echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
Step 2: Configure
// commitlint.config.js — Commit message rules
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore']],
'scope-case': [2, 'always', 'kebab-case'],
'subject-max-length': [2, 'always', 72],
},
}
Step 3: Valid Commits
git commit -m "feat(auth): add Google OAuth login" # valid
git commit -m "fix(api): handle null response from /users" # valid
git commit -m "updated stuff" # rejected
Guidelines
- Conventional commits enable automated changelog generation and semantic versioning.
- Use with husky to enforce at commit time, not just in CI.
- Types: feat (minor bump), fix (patch bump), BREAKING CHANGE (major bump).