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.zip

Installs 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 (途中保存)
30 charsno explicit “when” trigger
Beginner

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

You give it
Modified files in the local repository
You get back
Pushed commit to remote, progress report in Issue comments

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
  1. 簡易品質チェック 以下の観点で変更をチェック:

    • 明らかな問題: 未完成のコード、デバッグ用コード、コメントアウトされたコード
    • セキュリティ: 機密情報の混入(API key、password等)
    • データ保護: 重要データが data/local/ ではなく data/shared/ に保存される設計か
    • ハードコーディング: 明らかなマジックナンバーや固定パスがないか
    • テスト: テストの追加が必要な変更がないか
  2. 問題があれば指摘

    • 重大な問題: コミット前に修正を提案
    • 軽微な問題: 注意点として報告しつつコミット続行

Phase 1: Commit & Push

  1. すべての変更をステージング

    git add .
    
  2. コミット

    • Conventional Commits 形式を使用
    • Issue番号を含める(Refs #ISSUE_ID
    • Claude Code署名を含める
  3. プッシュ

    git push -u origin $(git branch --show-current)
    

Phase 2: 進捗報告

  1. 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.

SkillInstallsUpdatedSafetyDifficulty
commit-push (this skill)04moReviewBeginner
tmux203moReviewIntermediate
jira116moNo flagsBeginner
triaging-issues52moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry