Back to list
dev_to 2026年3月15日

コミットメッセージの「fix」書き換えに疲れた?1 日中にこれを構築しました

I was tired of writing "fix" as my commit message so I built this in one afternoon

Translated: 2026/3/15 3:00:38
commitgptai-productivitygit-automationcli-toolsdeveloper-tools

Japanese Translation

全ての開発者はこの気分を熟知しています。 機能構築に 3 時間を費やした後、git が次の質問をします。 "コミットメッセージを入力してください:" そしてあなたは... "fix" と入力します あるいは "update" や "changes" や個人的な好きなもの – "asdfgh" 馴染み深いですか?そう思います。 これはコミットメッセージだけではありません。開発者として毎日、実際のコーディングとは関係のない 3 つのものを書く必要があります: 1. コミットメッセージ – git にコードを保存するたびに 2. 每日 standing meeting – 毎朝 "昨日何しましたか?" 3. プリビュース(PR)の説明 – チームにあなたの変更をまた説明する この 3 つは毎日起こります。它们是困難ではなく、不便で、繰り返し、かつあなたの一日の 10-15 分を価値のない思考作業に占領します。 私は commitgpt を構築しました – あなたの git diff を読み取り、AI を使用して上記の 3 つをすべて自動的に記述するコマンドラインツールです。 bash git add . cmt 出力: ✨ feat(auth): Google OAuth2 認証とセッションタイマウムの追加 - Google プロバイダーを使用した OAuth2 フローの実装 - 30 分間の不活動後にセッションのの有効期限切れ - パスワード変更後もユーザーがログイン状態ままになるバグの修正 - 認証成功後のダッシュボードへのリダイレクト追加 それは本当のプロフェッショナルな従来型コミットメッセージです – あなたの実際のコード変更から 2 秒で記述されました。 全ての 3 つのコマンド コミットメッセージ: git add . cmt 每日 standing meeting: cmt standup 出力: 昨日:OAuth2 ログインフローの実装、セッションの有効期限切れバグの修正 今日:認証ミドルウェアのテスト記述、PR #42 のレビュー ブロック:なし PR の説明: cmt pr 出力: ## 何が変わった Google OAuth2 認証と自動セッションタイマウムの追加 ## なぜ ユーザーが無限にログイン状態ままになり、セキュリティリスクが発生していました ## テスト - 手動:ログイン、ログアウト、セッション有効期限のテスト - ユニット:認証ミドルウェアのカバレッジ 94% これは完全に無料です 有料の API 必要ありません。無料の GitHub トークンを使用します – 150 リクエスト/日、0 コスト、クレジットカードなし。 Gemini(1500 無料リクエスト/日)、OpenAI、または Anthropic Claude も使用できます。ツールはあなたの .env ファイルにあるどのキーも自動的に検出します。 使い方 インストール: pip install commitgpt-nikesh 無料の GitHub トークンを入手: github.com → 設定 → 開発者設定 個人アクセストークン → 新しいトークンの生成 スコープは不要です .env ファイルを作成: GITHUB_TOKEN=ghp_your_token_here 使用: git add . cmt # コミットメッセージ cmt standup # 每日 standing meeting cmt pr # PR の説明 構築方法 私は 1 時間の間、AI を使用して「vibe coding」でこれを構築しました。 全部は約 300 行の Python コードです: click をコマンドライン用に openai SDK を GitHub Models API を指向 subprocess を git コマンドを呼び出すために python-dotenv を API キーを読み込むために 最も難しい部分は、一貫性のある高品質な出力を得るために適切なプロンプトを記述することです。 今後のこと コミットメッセージ内の Jira トicket番号のサポート VS Code エクステンション より多くの AI プロバイダーへのサポート 試しに pip install commitgpt-nikesh GitHub: https://github.com/nikeshsundar/commitgpt コメント欄にあなたのフィードバックを喜んでください。次にどのような機能を欲しいですか?

Original Content

Every developer knows this feeling. You just spent 3 hours building a feature. Then git asks you: "Enter commit message:" And you type... "fix" Or maybe "update" or "changes" or my personal favourite — "asdfgh" Sound familiar? I thought so. It's not just commit messages. Every single day as a developer you have to write 3 things that have nothing to do with actual coding: 1. Commit messages — every time you save code to git 2. Daily standup — every morning "what did I do yesterday??" 3. PR descriptions — explaining your changes all over again to your team These 3 things happen EVERY DAY. They're not hard but they're annoying, repetitive, and eat up 10-15 minutes of your day doing mental work that adds zero value. I built commitgpt — a CLI tool that reads your git diff and automatically writes all 3 for you using AI. bash git add . cmt Output: ✨ feat(auth): add Google OAuth2 login with session timeout - Implemented OAuth2 flow using Google provider - Sessions expire after 30 mins of inactivity - Fixed bug where users stayed logged in after password change - Added redirect to dashboard on successful login That's a real, professional conventional commit message — written in 2 seconds from your actual code changes. All 3 commands Commit message: git add . cmt Daily standup: cmt standup Output: Yesterday: Implemented OAuth2 login flow, fixed session expiry bug Today: Writing tests for auth middleware, reviewing PR #42 Blockers: None PR description: cmt pr Output: ## What changed Added Google OAuth2 login with automatic session timeout. ## Why Users were staying logged in indefinitely, creating a security risk. ## Testing - Manual: tested login, logout, session expiry - Unit: auth middleware coverage at 94% It's completely free No paid API needed. It works with a free GitHub token — 150 requests per day, zero cost, no credit card. You can also use Gemini (1500 free requests/day), OpenAI, or Anthropic Claude. The tool auto-detects whichever key you have in your .env file. How to use it Install: pip install commitgpt-nikesh Get a free GitHub token: Go to github.com → Settings → Developer Settings Personal Access Tokens → Generate new token No scopes needed Create .env file: GITHUB_TOKEN=ghp_your_token_here Use it: git add . cmt # commit message cmt standup # daily standup cmt pr # PR description How I built it I built this in one afternoon using vibe coding with AI. The whole thing is about 300 lines of Python: click for the CLI openai SDK pointing to GitHub Models API subprocess to call git commands python-dotenv to load the API key The hardest part was writing the right prompts to get consistent, high quality output every time. What's next Support for Jira ticket numbers in commit messages VS Code extension Support for more AI providers Try it pip install commitgpt-nikesh GitHub: https://github.com/nikeshsundar/commitgpt Would love your feedback in the comments. What features would you want to see next?