home/common/ai/resources/codex/skills/commit-push-pr/SKILL.md
Commit, push, and open a PR. Use when the user asks to create a pull request, open a PR, or push and create PR.
npx skillsauth add kamushadenes/nix commit-push-prInstall 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.
Delegate to the git-committer agent for the full PR workflow.
Gather git context:
git status --short to see changed filesgit diff --staged and git diff for changesgit log --oneline -5 for commit styleStage and commit changes with an appropriate message.
Determine the remote branch:
git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "no upstream"
Push to remote:
git push -u origin HEAD
Determine the base branch:
git remote show origin | grep 'HEAD branch' | awk '{print $NF}'
Get the diff against base for PR description:
git log --oneline $(git merge-base HEAD origin/main)..HEAD
git diff origin/main...HEAD --stat
Create the PR:
gh pr create --title "<title>" --body "<body with ## Summary and ## Test plan>"
Watch PR checks:
gh pr checks --watch
Check mergeable status:
gh pr view --json mergeable,mergeStateStatus
If there are merge conflicts, attempt to resolve them:
git fetch origin main
git merge origin/main --no-edit
# resolve conflicts if any
git push
Return the PR URL and check status.
Include the user's additional instructions when delegating the task.
data-ai
Show MemPalace status — room counts, storage usage, and palace health.
tools
Search your MemPalace — semantic search across all mined memories, projects, and conversations.
tools
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.
development
Initialize a new MemPalace — guided setup for your AI memory palace with ChromaDB backend.