Creates a fixup commit and performs autosquash rebase
Scanned 9/9/2026
Install to Claude Code
npx -y skills add sasamuku/dotfiles --skill fixup-commit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Fixup Commit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sasamuku-fixup-commit)More formats (shields.io, HTML) on the badges page.
---
name: fixup-commit
description: Creates a fixup commit and performs autosquash rebase
disable-model-invocation: true
---
# Fixup Commit
指定した対象コミットに対して fixup コミットを作成し、autosquash 付きの対話的リベースを実行する。
## 引数
fixup 対象のコミットハッシュ。
$ARGUMENTS
## 手順
### 1. 引数の検証
引数が提供されていない場合、対象コミットハッシュをユーザーに確認する。
### 2. 現在の変更を確認する
```bash
git status
git diff
git diff --cached
git log --oneline -10
```
### 3. 対象コミットの情報を取得する
```bash
git log --format="%H %s" -1 <target-commit>
```
### 4. 確認を求める
次の情報を表示し、ユーザーの承認を得る:
```
Fixup Commit Plan:
Target commit: <commit-hash>
Commit message: <commit-message>
Files to be included in fixup:
- <file1>
- <file2>
- ...
This will:
1. Stage all changes (if not already staged)
2. Create a fixup commit for the target
3. Run interactive rebase with autosquash
Proceed? (y/n)
```
**重要**: 明示的な承認 (y) を待ってから進めること。
### 5. Fixup を実行する
ユーザー承認後:
```bash
git add -A
git commit --fixup=<target-commit>
# Show rebase plan (for verification)
GIT_SEQUENCE_EDITOR="cat" git rebase -i --autosquash main --no-edit 2>/dev/null || true
# Execute rebase with autosquash
git rebase -i --autosquash main
```
### 6. 結果を確認する
```bash
git log --oneline -10
```
## 注意事項
- **作業ツリーがクリーン、または変更がステージ済みであること**: 未ステージの変更は自動でステージされる
- **対象コミットが存在すること**: コミットハッシュが無効なら失敗する
- **main に対してリベースする**: リベース対象は main ブランチ
- **対話的確認**: 実行前に必ずユーザーへ確認する
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!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则