git-pr-workflows-git-workflow
Coordinates specialized agents to manage quality assurance and PR deployment readiness.
Install
mkdir -p .claude/skills/git-pr-workflows-git-workflow && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5867" && unzip -o skill.zip -d .claude/skills/git-pr-workflows-git-workflow && rm skill.zipInstalls to .claude/skills/git-pr-workflows-git-workflow
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern gKey capabilities
- →Capture exact changes using git status and diff commands
- →Review code in parallel using subagents for correctness, security, and test coverage
- →Validate and repair code by running repository checks and fixing defects
- →Prepare a topic branch and create focused conventional commits
- →Push the topic branch and create a pull request with a detailed body
- →Verify the remote pull request status and checks
How it works
The workflow captures changes, allows parallel review, validates and repairs code, prepares a topic branch for commits, pushes the branch, and creates a pull request. It then verifies the remote result.
Inputs & outputs
When to use git-pr-workflows-git-workflow
- →Executing a structured PR workflow
- →Verifying code against deployment standards
- →Managing multi-agent CI/CD pipelines
About this skill
Guarded Git Pull Request Workflow
Move completed changes from local review to a verified pull request without bypassing repository policy or branch protection.
When to Use
Use for completed implementation work that must be reviewed, tested, committed, pushed to a topic branch, and opened as a pull request. Use the repository's dedicated maintainer or release workflow instead when one is mandatory.
Policy Gate
Before mutation:
- Read
AGENTS.md, contribution guidance, maintainer docs, and relevant nested instructions. - Inspect the current branch, worktree, remotes, upstream, and effective target-branch protection.
- Discover repository-native validation, commit, PR, merge, and release commands.
- Preserve unrelated dirty and staged files.
Repository policy wins over flags and user shorthand. Trunk-based development does not imply a direct push: when the target is protected, use a short-lived branch and pull request. If a repository defines a mandatory maintainer skill or guarded merge command, hand off merge and release actions to it. In agentic-awesome-skills, use antigravity-maintainer-batch-release and npm run merge:batch.
Inputs
Resolve these from the request and repository:
- target branch, defaulting to the repository default branch;
- intended changed files and excluded user work;
- required test, lint, security, build, and documentation checks;
- branch naming and commit-message conventions;
- draft or ready-for-review PR state;
- required reviewers, labels, issue links, and merge method.
Ask only when a missing choice changes the result materially.
Workflow
1. Capture the exact change
git status --short --branch
git diff --stat
git diff --cached --stat
git branch --show-current
git remote -v
Confirm every file in scope. Stop if staged or dirty files cannot be separated safely.
2. Review in parallel
When subagents are available and authorized, assign independent bounded passes for:
- correctness and regression risk;
- security, secrets, permissions, and dependency risk;
- test coverage and repository-policy compliance.
Give each reviewer the raw diff and repository instructions. Keep the main agent responsible for deduplication, severity, edits, and final verification.
3. Validate and repair
Run the repository's targeted checks, then its required pre-PR suite. If a check fails:
- identify whether the cause is source, policy, environment, or infrastructure;
- fix only source or policy defects in scope;
- rerun the targeted failure;
- rerun the complete required suite.
Do not weaken gates, hide skipped tests, or treat deterministic failures as flaky.
4. Prepare the branch and commit
Fetch the target before committing. If currently on a protected/default branch, create a topic branch before mutation.
git fetch origin <target-branch>
git switch -c <topic-branch> origin/<target-branch>
git status --short --branch
Stage only intended paths and create focused conventional commits according to repository policy. Rebase or update the topic branch when strict required checks demand the latest target; never force a shared branch without explicit authorization.
5. Push and create the pull request
git push -u origin <topic-branch>
gh pr create --base <target-branch> --head <topic-branch> \
--title "<conventional title>" --body-file <body-file>
The PR body must truthfully include:
- what changed and why;
- tests and validation actually run;
- risk, deployment, rollback, and breaking-change notes when applicable;
- issue links, screenshots, and repository checklists when applicable.
Never mark a pending automated review or test as completed.
6. Verify the remote result
gh pr view <pr-number> --json headRefOid,baseRefOid,mergeable,mergeStateStatus,url
gh pr checks <pr-number>
Bind review evidence to the current full head SHA. If the head or base changes, discard stale conclusions and rerun affected checks.
Use the repository's guarded merge path. Do not replace required checks, merge queues, exact-SHA attestations, or maintainer commands with a raw merge API. After merge, fetch the target and verify the requested remote, CI, deployment, or release state.
Stop Condition
Finish when the PR exists at the intended head, required checks are green or have one exact blocker, review evidence is current, unrelated user work is preserved, and any requested guarded merge or deployment is verified.
Limitations
- This workflow cannot bypass branch protection, required reviews, repository permissions, or missing credentials.
- It does not authorize destructive cleanup, force pushes, merges, deployments, or releases beyond the user's request and repository policy.
- Keep unresolved environment or infrastructure failures explicit; do not convert them into source changes without evidence.
When not to use it
- →When a repository has a mandatory dedicated maintainer or release workflow
- →When changes do not require review, testing, or a pull request
Limitations
- →This workflow cannot bypass branch protection, required reviews, repository permissions, or missing credentials
- →It does not authorize destructive cleanup, force pushes, merges, deployments, or releases beyond the user's request and repository policy
- →Keep unresolved environment or infrastructure failures explicit; do not convert them into source changes without evidence
How it compares
This workflow orchestrates a structured, policy-aware process for creating pull requests, contrasting with manual or less regulated git workflows.
Compared to similar skills
git-pr-workflows-git-workflow side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git-pr-workflows-git-workflow (this skill) | 1 | 4mo | No flags | Advanced |
| fix-pr | 1 | 4mo | Review | Intermediate |
| resolve-checks | 1 | 6mo | Review | Intermediate |
| agent-github-pr-manager | 1 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by sickn33
View all by sickn33 →You might also like
fix-pr
AztecProtocol
Fix a failing PR by analyzing CI logs and fixing errors. Autonomous workflow that identifies failures, rebases, fixes issues, and pushes.
resolve-checks
flowglad
Resolve all failing CI checks and address PR review feedback on the current branch's PR. Runs tests locally, fixes failures, incorporates valid review comments, and resolves addressed feedback. Use when CI is red, after receiving PR feedback, or before merging.
agent-github-pr-manager
ruvnet
Agent skill for github-pr-manager - invoke with $agent-github-pr-manager
agent-github-modes
ruvnet
Agent skill for github-modes - invoke with $agent-github-modes
agent-pr-manager
ruvnet
Agent skill for pr-manager - invoke with $agent-pr-manager
iterate-pr
davila7
Iterate on a PR until CI passes. Use when you need to fix CI failures, address review feedback, or continuously push fixes until all checks are green. Automates the feedback-fix-push-wait cycle.