.claude/skills/git-commit-push/SKILL.md
Stage, commit, and push changes to remote repository with approval gate
npx skillsauth add abilityai/cornelius git-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.
Commit and push changes to the remote repository. Shows diff for approval before committing.
Safely commit and push all staged and unstaged changes to the remote repository. Presents changes for review before committing to prevent accidental commits.
| Source | Location | Read | Write | Description |
|--------|----------|------|-------|-------------|
| Git status | .git/ | X | | Current repo state |
| Working directory | ./ | X | | Modified files |
| Remote repository | origin | | X | Push destination |
# Show current branch
git branch --show-current
# Check if there are changes to commit
git status --short
If no changes, inform user and exit.
Present the changes for review:
# Show summary of changes
git status
# Show detailed diff of modified files (not untracked)
git diff
# Show staged changes if any
git diff --cached
Ask user:
Use AskUserQuestion with options:
Based on user choice:
If "Commit all changes":
# Stage all changes
git add -A
# Commit with user-provided message
git commit -m "$(cat <<'EOF'
[commit message here]
Co-Authored-By: Claude Opus 4.5 <[email protected]>
EOF
)"
If "Select specific files":
# Push to current branch's upstream
git push
# If no upstream, push with -u flag
git push -u origin $(git branch --show-current)
# Confirm push succeeded
git log --oneline -1
# Show remote status
git status
| Error | Recovery |
|-------|----------|
| No changes to commit | Inform user, exit gracefully |
| No remote configured | Ask user to configure: git remote add origin <url> |
| Push rejected (non-fast-forward) | Suggest git pull --rebase first |
| Authentication failed | Check SSH keys or credentials |
| Branch protection | Inform user, suggest PR workflow |
Basic usage:
/git-commit-push
After a work session:
User: commit and push my changes
Agent: [runs this skill]
--force push (safety)development
Rebuild the Cornelius voice agent system prompt from knowledge base sources
data-ai
Update dashboard.yaml with current knowledge base metrics from analysis report
documentation
Update Knowledge Graph Changelog
testing
Comprehensive testing playbook for Local Brain Search memory improvements (Phases 1, 3, 4)