Skip to content
cccskills
FreePublished on GitHub

shiiman-git:add-commit

変更をステージング・コミットする。「コミット」「コミットして」「変更をコミット」「gitignore チェック」「コミット前チェック」「機密ファイル確認」などで起動。

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md5.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Add & Commit

セキュリティチェック → コミットメッセージ生成 → ステージング → コミットを行うスキル。

Help

$ARGUMENTS に --help が含まれる場合、以下を表示して終了:

/shiiman-git:add-commit - Add & Commit

概要:
  セキュリティチェック + .gitignore チェックを実行し、
  変更をステージング・コミットする。

使用方法:
  /shiiman-git:add-commit [オプション]

オプション:
  --help        このヘルプを表示
  --no-confirm  ユーザー確認ダイアログをスキップ(workflow 自動呼び出し用)

ワークフロー

1. 変更内容の確認

git status
git diff
git diff --staged

2. セキュリティチェック + .gitignore チェック

変更対象のファイルを以下のカテゴリでチェックする。

機密ファイル(検出時はコミットをブロック):

パターン説明
.env*環境変数ファイル
*.pem, *.key秘密鍵
credentials.json認証情報
*_secret*, *_token*シークレット
.aws/, .gcp/クラウド認証情報

一般的な無視対象(検出時は警告 + .gitignore 追加を提案):

パターン説明
node_modules/Node.js 依存パッケージ
vendor/PHP/Go 依存パッケージ
.DS_Store, Thumbs.dbOS システムファイル
*.log, *.tmpログ・一時ファイル
dist/, build/, coverage/ビルド成果物

IDE 設定ファイル(検出時は警告 + .gitignore 追加を提案):

パターン説明
.idea/JetBrains
.vscode/VS Code
*.swp, *.swoVim

検出時のアクション:

  1. 警告を表示
  2. .gitignore への追記を提案
  3. 承認されたら .gitignore に追加
  4. git reset HEAD {ファイル} でステージングから除外
⚠️ コミット対象に除外すべきファイルが検出されました:

🔴 機密ファイル:
  - .env.local

🟡 無視推奨:
  - .DS_Store
  - .idea/

.gitignore に追加してステージングから除外しますか?

3. コミットメッセージ生成

変更内容を分析し、Conventional Commits 形式でメッセージを自動生成する。

プレフィックス判定:

変更内容プレフィックス
新規ファイル追加(機能)feat:
バグ修正fix:
ドキュメント変更docs:
リファクタリングrefactor:
テスト追加・修正test:
ビルド・依存関係chore:

4. ユーザー確認

$ARGUMENTS に --no-confirm が含まれる場合、このステップをスキップする。 セキュリティチェック(ステップ 2)は --no-confirm でも必ず実行される。

変更ファイル一覧とコミットメッセージを表示して承認を得る。

## コミット内容の確認

### 変更ファイル
{git status --short の出力}

### コミットメッセージ
{自動生成されたメッセージ}

この内容でコミットしてよろしいですか?

5. ステージング

git add {対象ファイル}

6. コミット

git commit -m "{コミットメッセージ}"

7. プッシュ案内

プッシュコマンドをユーザーに提示する(実行はしない)。

## コミット完了

コミット: {commit_hash}
ブランチ: {branch_name}

### プッシュするには

git push origin {branch_name}

リモートブランチが未設定の場合:

git push -u origin {branch_name}

重要な注意事項

  • ✅ コミット前に必ずユーザー確認を行う(--no-confirm 時はスキップ)
  • ✅ 機密ファイルを検出した場合はコミットをブロック(--no-confirm でも実行)
  • ✅ Conventional Commits 形式を使用
  • ❌ 確認なしでコミットしない(--no-confirm 指定時を除く)
  • ❌ プッシュは実行しない(案内のみ)
  • ❌ デフォルトブランチへの直接コミットは避ける(警告を出す)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

プラグインに新しいフックを作成する。「フック作成」「新しいフック」「フックを作って」「フック追加」「hook 作成」「フックを追加したい」「新規フック」などで起動。ツール実行前後やセッションイベントで実行されるフックを生成。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

マーケットプレイスのソースを dev(directory)/ prd(git)に切り替える。「マーケットプレイス切替」「marketplace toggle」「dev モード」「prd モード」「ローカル開発モード」「開発モード切替」「マーケットプレイス dev」などで起動。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

新しい Claude Code プラグインを作成する。「プラグイン作成」「新しいプラグイン」「プラグインを作って」「プラグイン追加」「plugin 作成」「プラグイン一括作成」「フル作成」などで起動。プラグインのみ作成と、スキル/サブエージェント/フックを含む一括作成の両方に対応。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

MCP サーバーの一覧表示・追加・削除を一つのスキルで管理する。「MCP 管理」「MCP 一覧」「MCP を追加」「MCP を削除」「MCP サーバー管理」「MCP 設定」「MCP 操作」などで起動。引数があれば優先し、なければ発話内容から list/install/remove を判定。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

プロジェクトの Claude Code リソース一覧を表示する。「Claude リソース一覧」「スキル一覧」「エージェント一覧」「フック一覧」「プロジェクトリソース確認」「何があるか確認」「リソースを見せて」などで起動。表示対象(スキル/エージェント/フック)は発話から判断する。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

Claude Code 設定の表示・更新・ローカル更新を統合管理する。「Claude 設定管理」「設定を表示」「settings を更新」「local settings を更新」「権限設定を変更」「設定ファイル管理」「claude settings」などで起動。引数があれば優先し、なければ発話内容から view/update/local-update を判定。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

See all skills by shiiman

Report a problem with this skill