Skip to content
Back to skills

Create Pr

ASecurity

Open a pull request for the current branch using the project's standard template. Verifies the branch is green, summarizes the diff against main, and pushes only after the user confirms.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 23, 2026
ai-agentsgogitapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill create-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-create-pr/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-create-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-pr
description: Open a pull request for the current branch using the project's standard template. Verifies the branch is green, summarizes the diff against main, and pushes only after the user confirms.
---

# Skill: create-pr

## Pre-flight checks (run all before drafting)
1. `git status` — working tree clean? If not, surface and stop.
2. `git rev-parse --abbrev-ref HEAD` — confirm we're not on `main`.
3. `git log main..HEAD --oneline` — list commits going into the PR.
4. `git diff main...HEAD --stat` — size up the diff.
5. Run [`run-full-test-suite`](../run-full-test-suite/SKILL.md). If anything is red, **stop** — do not open a PR on a broken branch.

## Draft the PR
Use this template. Fill every section; delete sections that genuinely don't apply (don't leave placeholder text).

```markdown
## Summary
<2–4 bullets — what changed and why, not how>

## Motivation
<the problem this solves; link to issue / ticket / incident if applicable>

## Approach
<one paragraph — the design, briefly. Defer to architect notes if linked.>

## Test plan
- [ ] <unit tests added — file paths>
- [ ] <integration / e2e cases exercised>
- [ ] <manual verification steps if UI>
- [ ] all gates green locally (format, lint, typecheck, tests)

## Risk & rollout
- Reversible? <yes/no — and how>
- Migration / backfill? <none / details>
- Feature flag? <none / flag name + default>

## Screenshots / recordings
<paste here if UI>

## Out of scope
<list the things you noticed but did NOT touch — keeps reviewers focused>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
```

## Open the PR
- Push the branch with `-u` if it's not yet on the remote.
- `gh pr create --title "<type(scope): subject>" --body "$(cat <<'EOF' … EOF)"`.
- Title follows Conventional Commits, ≤ 72 chars.
- Return the PR URL to the user.
- If the repo ships an agent PR template (`.github/PULL_REQUEST_TEMPLATE/agent_pr_template.md`, scaffolded opt-in by [`/init-agent-ready`](../../commands/init-agent-ready.md)), select it with `?template=agent_pr_template.md` on the PR-creation URL and fill its `Co-Authored-By:` provenance footer — see [`../../knowledge/agent-pr-identity.md`](../../knowledge/agent-pr-identity.md).
- If the remote/PR route seems blocked (remote/sandboxed/web session), see [`../../knowledge/remote-mcp-pr-landing.md`](../../knowledge/remote-mcp-pr-landing.md) — probe `gh` → API → GitHub MCP before concluding blocked.

## Don'ts
- Don't merge. Even on a green PR with one commit. The user merges.
  - _After_ the user's approval, the landing mechanics (arming auto-merge from a remote/sandboxed session) are in [`../../knowledge/remote-mcp-pr-landing.md`](../../knowledge/remote-mcp-pr-landing.md) — post-approval only, never a self-merge.
- Don't `--force`. If the remote diverged, surface it and ask.
- Don't skip CI by editing workflow files in the same PR.

## Why a skill, when Claude Code has a built-in PR-creation flow?
Claude Code's built-in `gh pr create` flow is generic and pulls the title/body from recent commits. This skill enforces the RavenClaude team conventions on top of that: it gates on `run-full-test-suite` first (no PRs on a broken branch), uses the team's fixed PR template (Summary / Motivation / Approach / Test plan / Risk & rollout / Screenshots / Out of scope), enforces Conventional Commits title format ≤72 chars, and refuses to merge after creating the PR. Use the built-in flow for quick one-off PRs in personal projects; use this skill on RavenClaude-managed work where the team's review rubric assumes the template is filled in.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…