Complete the current session by ensuring all work is committed and pushed.
Commits all changes, pushes to remote, and verifies a clean git state.
/plugin marketplace add brkastner/kas-claude-plugin/plugin install kas@kas-claude-pluginComplete the current session by ensuring all work is committed and pushed.
Execute these steps in order:
git status
If there are unstaged changes:
git add <relevant-files>
git commit -m "<appropriate message>"
git pull --rebase
git push
git status # MUST show "up to date with origin/*"
If on feature branch with open PR, add completion comment:
# Check for PR
PR_URL=$(gh pr view --json url -q .url 2>/dev/null)
if [[ -n "$PR_URL" ]]; then
gh pr comment --body "$(cat <<'EOF'
## Session Complete
**Completed:**
{completed_items}
**Quality Gates:** {status}
**All changes pushed to remote.**
EOF
)"
fi
Skip gracefully if no PR exists.
git stash clear
git remote prune origin
git status
Must show branch is up to date with origin.
bd daemon --status || echo "Warning: daemon not running, beads may not have synced"
Provide:
bd readygit push succeedsutil/beads-sync)Beads data syncs automatically via daemon to util/beads-sync branch. No manual bd sync needed unless you need immediate sync before a merge operation.
/doneMark a task as completed. Use when finishing work, completing a feature, or closing out a task.
/doneMark a task as completed. Use when finishing work, completing a feature, or closing out a task.