変更をコミット。`/commit`で実行、または「コミットして」「pushして」「コミットしてpushして」等の自然言語依頼時にも使用。`--push`引数(または「pushして」の依頼)でpushも実行。
Scanned 9/8/2026
Install to Claude Code
npx -y skills add ukwhatn/.claude --skill commit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Commit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ukwhatn-commit)More formats (shields.io, HTML) on the badges page.
---
name: commit
description: 変更をコミット。`/commit`で実行、または「コミットして」「pushして」「コミットしてpushして」等の自然言語依頼時にも使用。`--push`引数(または「pushして」の依頼)でpushも実行。
allowed-tools: Bash(git:*)
---
# /commit
変更をコミットする。`--push` 引数でpushも実行。
## 引数
- `--push`: コミット後にpushする(デフォルト: false)
## 自然言語依頼の正規化
- 「pushして」「コミットしてpushして」等のpush依頼は `--push` 相当として扱う
- 未コミットの変更がない状態で「pushして」と依頼された場合は、新規コミットを作らず既存コミットのpushのみ行う(`git status` で判定)
## 実行手順
### 1. 現在の状態確認
```bash
git status
git diff --stat
git log --oneline -5
```
### 2. コミットメッセージの決定
変更内容を分析し、git-cz形式でコミットメッセージを作成:
- prefix: feat/fix/docs/refactor/test/chore など
- prefix以外は日本語
- 例: `feat: ユーザー認証機能を追加`
### 3. ステージング
```bash
git add <files>
```
NOTE: CLAUDE.mdがglobal gitignoreされている場合は `git add -f` で追加
### 4. コミット
```bash
git commit -m "$(cat <<'EOF'
<コミットメッセージ>
EOF
)"
```
### 5. push(引数に --push がある場合のみ)
引数に `--push` が含まれる場合:
```bash
git push
```
**rejectされた場合**(別PCから同じリポジトリにpush済みのときに起きる)は、rebaseで取り込んでから再pushする:
```bash
git pull --rebase --autostash && git push
```
rebaseがconflictで停止した場合は `git rebase --abort` で元に戻し、コミットは残したままユーザーに報告する(自動解決しない)。
### 6. push 後の確認(--push の場合のみ)
push したブランチに PR があれば、**CI の結果と conflict の有無を確認してから報告する**。走行中なら完了まで監視する。落ちている・conflict がある場合は、指摘を待たず原因調査に入る。
```bash
gh pr view --json number,mergeable,mergeStateStatus,statusCheckRollup 2>/dev/null
```
PR がまだ無いブランチではこの確認は不要。
### 7. 結果の報告
- コミットハッシュ
- pushした場合はその旨と、PR があれば CI・conflict の状態
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"