Commitlint

Fandhe-AI/agent-reference-skills/skills/commitlint

作者 Fandhe-AIab4ae2660c236a3e0d8f58cea8ab14299317d9ef無授權條款4 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫今天更新

commitlint (Conventional Commits メッセージ検証ツール) リファレンス。 rules 設定、plugins、shareable-config、@commitlint/config-conventional、 Husky / lefthook / simple-git-hooks 連携、CI 統合、custom rules。

AI 產生的概覽

commitlint 參考技能:涵蓋規則、外掛、共用設定、Git 鉤子與 CI 整合。

功能
此技能是 commitlint(Conventional Commits 提交訊息驗證工具)的文件參考。它會依使用者任務對應到分類,再引導代理查閱對應的 README 與個別頁面,內容涵蓋規則設定、外掛、共用設定、@commitlint/config-conventional 預設集、Husky/lefthook/simple-git-hooks 整合、CI 設定、自訂規則,以及 Node.js 的 lint/load/read/format API。此外也提供範例設定,以及安裝、初始化、CLI、驗證與提示詞相關的指令稿頁面。
適用情境
當任務涉及提交訊息規範的驗證或設定時使用,例如在本機或 CI 中設定 commitlint、撰寫自訂規則或外掛、發佈共用設定,或排查 commitlint 錯誤。也適用於將 commitlint 與 Git 鉤子或 AI 編碼代理整合。
執行需求
此技能本身是文件,除代理讀取檔案外不需其他執行環境。其描述的 commitlint 工具需要 Node.js 及 commitlint、@commitlint/config-conventional 等 npm 套件,整合時還需 Git 鉤子管理器(Husky、lefthook、simple-git-hooks)或 CI 執行環境。技能在 scripts/ 下附有指令稿頁面。

commitlint リファレンス

commitlint 公式ドキュメントの全 API・ガイドを網羅したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。

ディレクトリ構成

text
skills/commitlint/  SKILL.md  references/    guides/      README.md      ai-agents.md      ci-setup.md      getting-started.md      local-setup.md      use-prompt.md    reference/      README.md      cli.md      community-projects.md      configuration.md      examples.md      plugins.md      prompt.md      rules.md      rules-configuration.md    api/      README.md      format.md      lint.md      load.md      read.md    concepts/      README.md      commit-conventions.md      shareable-config.md    support/      README.md      releases.md      troubleshooting.md      upgrade.md  samples/    README.md    getting-started.md    local-setup-husky.md    custom-rules.md    shareable-config.md    ci-github-actions.md    configuration-formats.md    validate-issue-reference.md  scripts/    README.md    install.md    setup.md    cli.md    validate.md    prompt.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
インストール、初期設定、Husky 連携、Git フック設定guidesreferences/guides/README.md [blocked]
CI 環境(GitHub Actions 等)での commitlint 設定guidesreferences/guides/README.md [blocked]
AI エージェント(Claude Code、Copilot、Cursor)との連携guidesreferences/guides/README.md [blocked]
対話型コミットメッセージ作成(prompt-cli)guidesreferences/guides/README.md [blocked]
CLI オプション、設定ファイル形式、全オプションreferencereferences/reference/README.md [blocked]
ルール一覧、ルール設定(Level / Applicable / Value)referencereferences/reference/README.md [blocked]
プラグイン作成・登録referencereferences/reference/README.md [blocked]
cz-commitlint プロンプト設定referencereferences/reference/README.md [blocked]
@commitlint/lint, load, read, format の Node.js APIapireferences/api/README.md [blocked]
lint 結果のフォーマット・出力apireferences/api/README.md [blocked]
Conventional Commits フォーマット、スコープの扱いconceptsreferences/concepts/README.md [blocked]
共有設定(shareable config)の作成・配布conceptsreferences/concepts/README.md [blocked]
エラー解決、よくある問題のトラブルシューティングsupportreferences/support/README.md [blocked]
バージョンアップグレード、validate-commit-msg 移行supportreferences/support/README.md [blocked]
典型的な使い方・設定例を確認したいsamplessamples/README.md [blocked]
インストール・CLI コマンド・検証コマンドを知りたいscriptsscripts/README.md [blocked]

來源與署名

來源:Fandhe-AI/agent-reference-skills位於skills/commitlint提交ab4ae26

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架