変更をコミットしてプッシュする。「コミット」「コミットして」「変更をコミット」「プッシュして」などで起動。
Detects sensitive files in git changes, generates conventional commit messages, and pushes commits after user confirmation.
/plugin marketplace add shiiman/claude-code-plugins/plugin install shiiman-git@shiiman-claude-code-pluginsThis skill is limited to using the following tools:
変更をコミットしてリモートにプッシュします。
# 変更状態を確認
git status
# 変更差分を確認
git diff
git diff --staged
以下のパターンを検出したら警告し、.gitignore への追加を提案:
| パターン | 説明 |
|---|---|
.env* | 環境変数ファイル |
*.pem, *.key | 秘密鍵 |
credentials.json | 認証情報 |
*_secret*, *_token* | シークレット |
node_modules/ | Node.js 依存パッケージ |
vendor/ | PHP/Go 依存パッケージ |
.DS_Store | macOS システムファイル |
警告が出た場合:
⚠️ 機密ファイルが検出されました:
- .env.local
.gitignore に追加しますか?
変更内容を分析し、Conventional Commits 形式でメッセージを自動生成:
プレフィックス判定:
| 変更内容 | プレフィックス |
|---|---|
| 新規ファイル追加(機能) | feat: |
| バグ修正 | fix: |
| ドキュメント変更 | docs: |
| リファクタリング | refactor: |
| テスト追加・修正 | test: |
| ビルド・依存関係 | chore: |
メッセージ例:
feat: ユーザー認証機能を追加
- ログインフォームを実装
- JWT トークン認証を追加
- セッション管理を実装
## コミット内容の確認
### 変更ファイル
{git status --short の出力}
### コミットメッセージ
{自動生成されたメッセージ}
この内容でコミット・プッシュしてよろしいですか?
git add .
git commit -m "{コミットメッセージ}"
# リモートブランチが設定されていない場合
git push -u origin {現在のブランチ名}
# リモートブランチが設定されている場合
git push
## コミット完了
コミット: {commit_hash}
ブランチ: {branch_name}
プッシュ: ✅ 完了
変更内容:
- {変更ファイル1}
- {変更ファイル2}