feat(git-commit): ryoppippi版のreferences/とrevertability哲学を取り込みフッターを中立化#154
Merged
Conversation
ryoppippiのcommitスキルからrevertable-commits/git-apply/pushの詳細をreferences/に分離し本体を薄く保つ。共有スキルのためCo-Authored-By等のエージェント識別フッターは付けない方針に変更。
薄いラッパーだと/git-commitの英語/UKスペル指示と日本語指示が衝突し推論が揺れるため、type/scopeは英語・descriptionは日本語という言語ルールを委譲先より優先する旨を自己完結で明記。
echoのみで停止せず保護ブランチにpushしうる不具合を修正。--push時にコマンドがフォールスルーして main/master へ push する事故を防ぐ。--path併用時のcd前置も明示。
全例を--cached既定にしてworktree誤改変を防止。context mismatchに誤った--ignore-whitespaceではなく--3way/-Cを案内するよう訂正。
git diff(引数なし)はstaged hunkや新規ファイルを取りこぼすためgit diff HEADに統一。body方針を「Why/revertability説明は許容」と緩めGood例との矛盾を解消。git-commit-jaにreferencesの実パスを明示。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ryoppippi さんの commit スキルが良かったので、その良い所を既存の
git-commit スキルに取り込んだ。そのまま置き換えると独自の利点
(
--path引数・起動時の動的 status 埋め込み・git-commit-ja 連携)が失われるため、マージ方式を採用した。
Changes
git-commit: revertability を軸にしたコミット哲学を追記(tiny commit 推奨、move/rename は両側を1コミット、PR で安易に
--amendしない)。詳細例・git apply・push の手順をreferences/に分離し本体を薄く保つ。
references/push.mdは fish 構文を zsh/sh 互換に書き換えた。入らないよう、
Co-Authored-By等のエージェント識別フッターを廃止。git-commit-ja: 薄い委譲ラッパーだと委譲先の英語/UK スペル指示と衝突して推論が揺れるため、type/scope は英語・description は日本語
という言語ルールを委譲先より優先する旨を自己完結で明記。
Notes
.cursor/settings.jsonの変更は今回の作業と無関係なため含めていない。