commit-push
Utility for committing and pushing in-progress work without closing issues.
Install
mkdir -p .claude/skills/commit-push && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14477" && unzip -o skill.zip -d .claude/skills/commit-push && rm skill.zipInstalls to .claude/skills/commit-push
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Commit and push changes (途中保存)Key capabilities
- →Stage all current changes for commit
- →Commit changes using Conventional Commits format
- →Include Issue numbers in commit messages
- →Add Claude Code signature to commits
- →Report progress to the associated Issue
How it works
This skill automates the staging, committing, and pushing of intermediate changes, ensuring proper commit message formatting and progress reporting to GitHub Issues.
Inputs & outputs
When to use commit-push
- →Saving intermediate work
- →Pushing progress to remote branches
- →Checkpointing code before task completion
About this skill
Commit & Push(途中保存)
変更をコミット&プッシュ(途中保存、Issueは開いたまま)
重要:
- このコマンドは途中保存用です
- Issueはクローズしません
- Worktreeは削除しません
- タスク完了時は
/issue-finishまたは/commit-mergeを使用
vs /commit-merge
| 特徴 | /commit-push | /commit-merge |
|---|---|---|
| 目的 | 途中保存 | タスク完了 |
| レビュー | 簡易 | 品質チェック |
| PR作成 | ❌ なし | ✅ 作成 |
| マージ | ❌ なし | ✅ squash merge |
| Issueクローズ | ❌ しない | ✅ する |
| Worktree削除 | ❌ しない | ✅ する |
Workflow
Phase 0: 簡易レビュー
Step 0: QA回答の確認
コミット前に未確認のQA回答がないか確認:
# QA ディレクトリの解決は scripts/qa/qa-dir.sh が単一情報源。
# 旧パス(docs/qa)にデータが残っていれば、ここで移行の案内が出る
QA_DIR=$(bash scripts/qa/qa-dir.sh)
if [ -f "$QA_DIR/questions.jsonl" ]; then
echo "QA回答を確認中..."
fi
新しい回答がある場合:
- 回答内容を表示
- 仮決定と異なる場合は、変更が必要か確認
- 必要に応じて実装を修正してからコミット
Step 1: 変更内容を確認
git status
git diff --stat
-
簡易品質チェック 以下の観点で変更をチェック:
- ✓ 明らかな問題: 未完成のコード、デバッグ用コード、コメントアウトされたコード
- ✓ セキュリティ: 機密情報の混入(API key、password等)
- ✓ データ保護: 重要データが
data/local/ではなくdata/shared/に保存される設計か - ✓ ハードコーディング: 明らかなマジックナンバーや固定パスがないか
- ✓ テスト: テストの追加が必要な変更がないか
-
問題があれば指摘
- 重大な問題: コミット前に修正を提案
- 軽微な問題: 注意点として報告しつつコミット続行
Phase 1: Commit & Push
-
すべての変更をステージング
git add . -
コミット
- Conventional Commits 形式を使用
- Issue番号を含める(
Refs #ISSUE_ID) - Claude Code署名を含める
-
プッシュ
git push -u origin $(git branch --show-current)
Phase 2: 進捗報告
- Issueに進捗報告
- コミットハッシュ
- 変更ファイル数
- 次のステップ
Implementation
現在のブランチから Issue 番号を取得:
BRANCH=$(git branch --show-current)
ISSUE_ID=$(echo "$BRANCH" | grep -oE '[0-9]+' | head -1)
# エラーチェック
if [ -z "$ISSUE_ID" ]; then
echo "Error: Could not extract Issue ID from branch name: $BRANCH"
echo "Branch name must contain Issue number (e.g., feature/123-description)"
exit 1
fi
変更をステージング&コミット:
git add .
git commit -m "適切なコミットメッセージ
Refs #${ISSUE_ID}
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>"
プッシュ:
git push -u origin $(git branch --show-current)
Issueに報告:
gh issue comment "$ISSUE_ID" --body "## コミット完了(途中保存)
- コミット: [hash]
- 変更: [files]
- 次のステップ: [...]
---
*Issueは開いたままです。タスク完了時は `/issue-finish` を実行してください。*"
Output
- 簡易レビュー結果(問題があれば)
- コミットハッシュ
- 変更ファイル数
- Issue コメント URL
- 次のステップの案内
Note
このコマンドは途中保存用です。
タスクが完了したら /issue-finish を実行してください。
When not to use it
- →When the task is completed and ready for merge
- →When the Issue should be closed
- →When the worktree needs to be deleted
Limitations
- →This command is for intermediate saves only; it does not close Issues.
- →It does not create Pull Requests or perform squash merges.
- →It does not delete the worktree after pushing.
How it compares
This workflow provides a dedicated command for saving intermediate work without closing issues or merging, unlike a final commit and merge process.
Compared to similar skills
commit-push side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit-push (this skill) | 0 | 4mo | Review | Beginner |
| tmux | 20 | 3mo | Review | Intermediate |
| jira | 11 | 6mo | No flags | Beginner |
| triaging-issues | 5 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
tmux
openclaw
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
jira
davila7
Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.
triaging-issues
pytorch
Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.
file-manager
Xxiii8322766509
文件管理技能。用于创建、移动、复制、删除文件和文件夹,整理目录结构。当用户需要管理文件、整理文件夹或批量处理文件时使用。
openspec-archive-change
studyzy
归档实验性工作流中已完成的变更。当用户想要在实现完成后最终确定并归档变更时使用。
slash-commands
parcadei
Create and use Claude Code slash commands - quick prompts, bash execution, file references