Analyze changes: Review all commits on the branch since it diverged from main:
git log main..HEAD --oneline git diff main...HEADPush the branch if it has not been pushed yet:
git push -u origin HEADCreate the PR using the
ghCLI with the required repo flags:gh pr create \ -a @me \ -r @carrot-foundation/developers \ --label <label> \ -R carrot-foundation/methodology-rules \ -t "<type>(<scope>): <description>"- Labels:
feature,bug,chore,docs,refactoring - Title: Use conventional commit format matching the branch type
- Body: Include a summary section, details of what changed, and a declaration checkbox
- Labels:
Return the PR URL to the user once created.
Create Pull Request
Analyze changes and create a pull request using the gh CLI with repo conventions.
Create Pull Request by majiayu000 · 9a0de5e
npx skillmds add majiayu000/create-pull-request-5 File contents
---name: create-pull-request-5description: Analyze changes and create a pull request using the gh CLI with repo conventions.---
1. **Analyze changes**: Review all commits on the branch since it diverged from main:
```bash
git log main..HEAD --oneline
git diff main...HEAD
```
2. **Push the branch** if it has not been pushed yet:
```bash
git push -u origin HEAD
```
3. **Create the PR** using the `gh` CLI with the required repo flags:
```bash
gh pr create \
-a @me \
-r @carrot-foundation/developers \
--label <label> \
-R carrot-foundation/methodology-rules \
-t "<type>(<scope>): <description>"
```
- **Labels**: `feature`, `bug`, `chore`, `docs`, `refactoring`
- **Title**: Use conventional commit format matching the branch type
- **Body**: Include a summary section, details of what changed, and a declaration checkbox
4. **Return the PR URL** to the user once created.
majiayu000/claude-skill-registry-data/tree/main/integration/create-pr-carrot-foundation-methodology-rules commit 9a0de5ecb8
Frequently asked questions
Run npx skillmds add majiayu000/create-pull-request-5 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Analyze changes and create a pull request using the gh CLI with repo conventions. It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.