# Git Commit Pr Workflow

> Use when the user wants the full git workflow: branch creation if needed, commit, push, and PR create or update with a concise summary and test plan.

- Skill: `wimi321/git-commit-pr-workflow` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add wimi321/git-commit-pr-workflow`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wimi321/git-commit-pr-workflow/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: wimi321 (https://skillmd.com/u/wimi321)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wimi321/git-commit-pr-workflow

---



# Git Commit PR Workflow

Use this skill for end-to-end git delivery from working tree to pull request.

## Workflow
1. Inspect branch state, diff against default branch, and existing PR state.
2. Create a feature branch if still on the default branch.
3. Stage and commit the relevant changes.
4. Push the branch.
5. Create or update the PR with a short title, summary bullets, and test plan.

## Guardrails
- No destructive git commands unless explicitly requested.
- No force push to default branches.
- Keep PR titles short and bodies structured.
- Avoid committing secrets or unrelated changes.

## Example Requests
- Commit this work, push it, and open a PR.
- Take the current changes to a polished PR with a test plan.

## Inputs
- Current git state
- Default branch
- Optional user instructions

## Outputs
- New commit
- Pushed branch
- Created or updated PR

## Success Criteria
- The right files were committed.
- The branch was pushed safely.
- The PR body accurately reflects the diff.

## Non-Goals
- Force-push workflows by default
- Interactive git rebases

## Source Provenance
Derived from `src/commands/commit-push-pr.ts`.

