git-create-pr Skill
✓ VerifiziertErstellt einen GitHub Pull Request aus dem aktuellen Branch unter Verwendung von Conventional Commit Formaten und vorausgefüllten Templates.
- GitHub Stars
- 8
- Dateien
- 3
- Letzter Commit
- 28. Okt. 2026
- Lizenz
- MIT
- Erlaubte Tools
- —
Was macht der git-create-pr Skill?
Erstellt einen GitHub Pull Request aus dem aktuellen Branch unter Verwendung von Conventional Commit Formaten und vorausgefüllten Templates.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den git-create-pr skill
Dieser Skill ermöglicht es, einen GitHub Pull Request aus einem Feature Branch unter Verwendung standardisierter Formate zu öffnen. Er ist für Entwickler gedacht, die bereits Commits erstellt haben und die Erstellung eines Pull Requests automatisieren möchten, der Conventional Commit Patterns folgt und bestehende Repository-Templates nutzt. Ein Agent sollte dieses Tool laden, nachdem die Commits erstellt wurden, aber bevor der finale Push abgeschlossen ist.
Der Prozess nutzt das GitHub CLI (gh) und Standard-Git-Commands, um den Unterschied zwischen dem aktuellen Branch und dem Base Branch zu analysieren. Er führt mehrere Sicherheitsprüfungen durch, wie zum Beispiel sicherzustellen, dass der Working Tree clean ist und dass du dich nicht auf dem main- oder master-Branch befindest. Der Skill erstellt einen formatierten Pull Request Titel und Body, den er dir zur Bestätigung präsentiert. Nach der Freigabe wird der Branch gepusht und der Pull Request in einem Webbrowser geöffnet, um letzte Anpassungen wie das Hinzufügen von Reviewern oder Labels vorzunehmen.
Was ein agent damit machen kann
- 1Einen Standard Pull Request erstellenÖffne einen Pull Request für den aktuellen Branch unter Verwendung der Standard-Repository-Einstellungen.
- 2Einen spezifischen Base Branch anvisierenErstelle einen Pull Request, der auf einen Development Branch statt auf den Default Branch abzielt.
- 3Einen Draft Pull Request einreichenÖffne einen Pull Request im Draft-Modus, um anzuzeigen, dass die Arbeit noch in Bearbeitung ist.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den git-create-pr Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den git-create-pr Skill in Plugin installieren
/plugin marketplace add mgiovani/cc-arsenal /plugin install cc-arsenal@cc-arsenal-marketplace
Den git-create-pr Skill in Claude Code installieren
~/.claude/skills/git-create-pr/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/git-create-pr ~/.claude/skills/git-create-prDen git-create-pr Skill in Claude Code (project) installieren
.claude/skills/git-create-pr/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/git-create-pr .claude/skills/git-create-prDen git-create-pr Skill in Codex installieren
~/.agents/skills/git-create-pr/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/git-create-pr ~/.agents/skills/git-create-prDen git-create-pr Skill in Gemini CLI installieren
~/.gemini/skills/git-create-pr/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/git-create-pr ~/.gemini/skills/git-create-prDen git-create-pr Skill in Claude.ai installieren
npx degit mgiovani/cc-arsenal/skills/git-create-pr git-create-pr && zip -r git-create-pr.zip git-create-pr # claude.ai → Customize → Skills → + → Create skill → Upload a skill → git-create-pr.zip
Automatisierte Checks
Geluften am 15. Nov. 2026Vollständiger Bericht →Hat unsere automatischen Prüfungen bestanden. Das ist kein Sicherheitsaudit: Lesen Sie die Skripte, bevor ein Agent sie ausführt. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarmgiovani/cc-arsenal/skills/git-create-pr is public and reachablegithub.com/mgiovani/cc-arsenal/tree/HEAD/skills/git-create-p ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-10-28github.com/mgiovani/cc-arsenal/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in SkriptenNo scripts in the skill folderBestanden
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/mgiovani/cc-arsenal/blob/HEAD/skills/git-create-p ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktNo pre-approved tools; the agent asks before using onegithub.com/mgiovani/cc-arsenal/blob/HEAD/skills/git-create-p ↗Bestanden
- SKILL.md folgt dem Agent-Skills-Formatthe description does not say when to use the skillgithub.com/mgiovani/cc-arsenal/blob/HEAD/skills/git-create-p ↗Befund
SKILL.md
Auf GitHub ansehenCreate Pull Request
Create a GitHub Pull Request following conventional commits, pre-filled with the repo's PR template, and opened in the browser for final review.
Every PR bullet must map to an actual commit or diff hunk: drop claims you can't back with evidence in git log or git diff.
Invariant: never mutate the user's files to satisfy a precondition. If a check in step 1 fails, report it and stop. Do not run git checkout, git restore, git reset, git stash, or git clean against the user's tracked files to "fix" a dirty tree, and do not switch branches to route around a main/master check, those are the user's decisions, not this skill's. The only git commands this skill runs against the working tree are read-only until step 7's git push.
Workflow
-
Validate preconditions (run this before anything else, including branch analysis)
- Check working tree is clean:
git status --porcelain. Any output means it's dirty.- If dirty: stop immediately. Show the
git status --porcelainoutput and tell the user to commit or stash their changes first, e.g.Working tree has uncommitted changes: M README.md. Commit or stash before opening a PR.Do not proceed to step 2, and do not touch the listed files.
- If dirty: stop immediately. Show the
- Requires
gh(brew install gh): confirmgh auth statussucceeds, else stop and tell the user to rungh auth login. - Get current branch:
git branch --show-current.- If it's
mainormaster: stop immediately. Tell the user there's no feature branch to open a PR from, e.g.Currently on main — check out a feature branch first.Do not proceed.
- If it's
- Check commits exist:
git log origin/<base>..HEAD --oneline. If empty, stop and say there's nothing to open a PR for. - Extract ticket ID from branch name (e.g.,
ABC-123fromfeature/ABC-123_description)
- Check working tree is clean:
-
Determine base branch
- Use
--base/-bargument if provided - Otherwise:
gh repo view --json defaultBranchRef -q .defaultBranchRef.name - Fall back to
mainif detection fails
- Use
-
Analyze changes
git log origin/<base>..HEAD --format="%h %s"for commitsgit diff origin/<base>...HEAD --statfor file changes- Synthesize these directly in the main thread: a subagent fan-out is overkill for what one
git log+ onediff --statalready summarizes. Only reach for a subagent if the diff is too large to fit in context.
-
Generate PR title (conventional commit format, max 72 chars)
type(scope): [TICKET-123] descriptionortype(scope): descriptionif no ticket- Types:
feat,fix,docs,style,refactor,perf,test,build,ci,chore - Examples:
feat(auth): [ABC-123] add OAuth2 login support,fix(api): resolve null pointer in user endpoint
-
Fill PR template
- Look for
.github/pull_request_template.mdand fill it without changing its structure - If none exists, use:
## Summary [Brief description] ## Changes - [Bullet points from commits] ## Testing - [ ] Tests added/updated - [ ] Manual testing completed - Save to
BODY_FILE="/tmp/pr-body-$(date +%s).md"
- Look for
-
Ask for confirmation
- Show a compact summary: ticket, commit count, authors (keep lines under 60 chars)
- Preview the generated title and body
- If the repo has CI configured (
.github/workflows/*.yml) and tests haven't been verified locally this session, suggest running thecc-arsenal:ci-localskill first (via theSkilltool where available, otherwise run the workflow's gating steps locally by hand): cheaper to catch a failure now than after the PR is open - Ask:
Create PR? (y/n/e to edit):(accepty/yes/n/no/e/edit) - On
e, ask for custom title/body
-
Push and create PR (after confirmation)
# Push first — required before gh pr create can reference the branch git push -u origin $(git branch --show-current) # BODY_FILE is the file written in step 5 gh pr create \ --title "type(scope): [TICKET] description" \ --body-file "$BODY_FILE" \ --base <determined-base-branch> \ --web- Do not combine
--reviewer,--assignee, or--labelwith--web: they conflict. The user adds those in the web UI.
- Do not combine
Argument Parsing
--base branch/-b branch: target branch, defaults to repo default--draft/-d: adds--drafttogh pr create
Examples
git-create-pr # uses repo default base branch
git-create-pr --base develop # target a specific base branch
git-create-pr --draft # create as draft PR
git-create-pr -b develop -d # both
After pushing, the PR opens in the browser pre-filled with title and body. Add reviewers/labels there.
Precondition failure (dirty tree, stop before any analysis):
Working tree has uncommitted changes:
M README.md
Commit or stash before opening a PR. Not proceeding.
No git checkout, git push, or gh pr create runs after this: the turn ends here.
Dateien in diesem Skill
3git-create-pr Skill-Fragen
Wie installiere ich den git-create-pr Skill in Claude Code?
Führe npx degit mgiovani/cc-arsenal/skills/git-create-pr ~/.claude/skills/git-create-pr aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den git-create-pr Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Was passiert, wenn mein Working Tree uncommitted Changes hat?
Der Skill bricht sofort ab, zeigt die uncommitted Changes an und weist dich an, diese zu committen oder zu stashen, bevor du fortfährst.