Help us improve
Share bugs, ideas, or general feedback.
From shiiman-git
変更をステージング・コミットする。「コミット」「コミットして」「変更をコミット」「gitignore チェック」「コミット前チェック」「機密ファイル確認」などで起動。
npx claudepluginhub shiiman/claude-code-plugins --plugin shiiman-gitHow this skill is triggered — by the user, by Claude, or both
Slash command
/shiiman-git:add-commitThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
セキュリティチェック → コミットメッセージ生成 → ステージング → コミットを行うスキル。
Generates commit message from changes, stages/commits all files with Co-Authored-By, pushes to remote, adds junk files to .gitignore, and verifies clean git status. Use to quickly clean and sync repo.
Creates semantic git commits with conventional commit format, stages changes, and pushes to remote. Handles pre-commit hooks and writes meaningful commit messages.
Creates p5.js generative art with seeded randomness, noise fields, and interactive parameter exploration. Use for algorithmic art, flow fields, or particle systems.
Share bugs, ideas, or general feedback.
セキュリティチェック → コミットメッセージ生成 → ステージング → コミットを行うスキル。
$ARGUMENTS に --help が含まれる場合、以下を表示して終了:
/shiiman-git:add-commit - Add & Commit
概要:
セキュリティチェック + .gitignore チェックを実行し、
変更をステージング・コミットする。
使用方法:
/shiiman-git:add-commit [オプション]
オプション:
--help このヘルプを表示
--no-confirm ユーザー確認ダイアログをスキップ(workflow 自動呼び出し用)
git status
git diff
git diff --staged
変更対象のファイルを以下のカテゴリでチェックする。
機密ファイル(検出時はコミットをブロック):
| パターン | 説明 |
|---|---|
.env* | 環境変数ファイル |
*.pem, *.key | 秘密鍵 |
credentials.json | 認証情報 |
*_secret*, *_token* | シークレット |
.aws/, .gcp/ | クラウド認証情報 |
一般的な無視対象(検出時は警告 + .gitignore 追加を提案):
| パターン | 説明 |
|---|---|
node_modules/ | Node.js 依存パッケージ |
vendor/ | PHP/Go 依存パッケージ |
.DS_Store, Thumbs.db | OS システムファイル |
*.log, *.tmp | ログ・一時ファイル |
dist/, build/, coverage/ | ビルド成果物 |
IDE 設定ファイル(検出時は警告 + .gitignore 追加を提案):
| パターン | 説明 |
|---|---|
.idea/ | JetBrains |
.vscode/ | VS Code |
*.swp, *.swo | Vim |
検出時のアクション:
.gitignore への追記を提案.gitignore に追加git reset HEAD {ファイル} でステージングから除外⚠️ コミット対象に除外すべきファイルが検出されました:
🔴 機密ファイル:
- .env.local
🟡 無視推奨:
- .DS_Store
- .idea/
.gitignore に追加してステージングから除外しますか?
変更内容を分析し、Conventional Commits 形式でメッセージを自動生成する。
プレフィックス判定:
| 変更内容 | プレフィックス |
|---|---|
| 新規ファイル追加(機能) | feat: |
| バグ修正 | fix: |
| ドキュメント変更 | docs: |
| リファクタリング | refactor: |
| テスト追加・修正 | test: |
| ビルド・依存関係 | chore: |
$ARGUMENTS に --no-confirm が含まれる場合、このステップをスキップする。
セキュリティチェック(ステップ 2)は --no-confirm でも必ず実行される。
変更ファイル一覧とコミットメッセージを表示して承認を得る。
## コミット内容の確認
### 変更ファイル
{git status --short の出力}
### コミットメッセージ
{自動生成されたメッセージ}
この内容でコミットしてよろしいですか?
git add {対象ファイル}
git commit -m "{コミットメッセージ}"
プッシュコマンドをユーザーに提示する(実行はしない)。
## コミット完了
コミット: {commit_hash}
ブランチ: {branch_name}
### プッシュするには
git push origin {branch_name}
リモートブランチが未設定の場合:
git push -u origin {branch_name}
--no-confirm 時はスキップ)--no-confirm でも実行)--no-confirm 指定時を除く)