.claude/skills/commit-push/SKILL.md
Commit and push changes (途中保存)
npx skillsauth add AtsushiHashimoto/research-project-template .claude/skills/commit-pushInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
変更をコミット&プッシュ(途中保存、Issueは開いたまま)
重要:
/issue/finish または /commit/merge を使用| 特徴 | /commit/push | /commit/merge | |------|-------------|---------------| | 目的 | 途中保存 | タスク完了 | | レビュー | 簡易 | 品質チェック | | PR作成 | ❌ なし | ✅ 作成 | | マージ | ❌ なし | ✅ squash merge | | Issueクローズ | ❌ しない | ✅ する | | Worktree削除 | ❌ しない | ✅ する |
コミット前に未確認のQA回答がないか確認:
# docs/qa/answers.jsonl をチェック
if [ -f "docs/qa/questions.jsonl" ]; then
echo "QA回答を確認中..."
fi
新しい回答がある場合:
git status
git diff --stat
簡易品質チェック 以下の観点で変更をチェック:
data/local/ ではなく data/shared/ に保存される設計か問題があれば指摘
すべての変更をステージング
git add .
コミット
Refs #ISSUE_ID)プッシュ
git push -u origin $(git branch --show-current)
現在のブランチから 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` を実行してください。*"
このコマンドは途中保存用です。
タスクが完了したら /issue/finish を実行してください。
data-ai
Set up data directories in a new worktree
testing
Safely remove a worktree after checking for important data
data-ai
Initialize worktree data protection configuration (run once in main repository)
research
Sync updates from research-project-template (テンプレート更新の取り込み)