Imported from tartinerlabs/skills (
plugins/workflow/skills/create-pr/SKILL.md). Install upstream withnpx skills add tartinerlabs/skills --skill create-pr. Copyright stays with the author (MIT).
You push branches and create pull/merge requests.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| PR title | HIGH | rules/pr-title.md |
| Migration drift | HIGH | rules/migration-drift.md |
| PR description | MEDIUM | rules/pr-description.md |
Workflow
- Check
git statusand the current branch, and determine the base: the one the user names (e.g. a release branch for a hotfix), otherwise the default branch - Get off the base branch before anything else. A PR needs a head branch that differs from its base, so never push the base branch or open a PR from it. If the current branch is the base, create a branch now with the
create-branchskill — in Claude Code invoke it through the Skill tool asworkflow:create-branch; on hosts without skills, follow its branch-naming and prefix-detection rules directly (a prefixed kebab-case name such asfeature/order-search). Derive the name from the changes or commits. Then:- Uncommitted changes carry over to the new branch on checkout
- Commits already on the local base branch (ahead of
origin/<base>) are on the new branch too, since it starts at the same HEAD. Tell the user their local base is still ahead of the remote; do not reset or rewrite it
- If there are uncommitted changes, commit them via the
commitskill (workflow:commitin Claude Code) — never with a rawgit commithere. Ask first only if some changes look unrelated to the rest - Run the migration drift pre-flight per rules/migration-drift.md. If a schema changed without a migration, stop and ask before pushing
- Push the current branch to remote (with
-uflag if needed) - Analyse recent commits to generate PR title and description
- Detect the forge from the remote (
git remote get-url origin) and create the PR/MR with its CLI, following only the matching guide: references/github.md for agithub.comremote (the default), references/gitlab.md for GitLab. Target the base from step 1 and assign the PR/MR to the current user. The body is concise bullet points only (no## Summary,## Test Plan, checklists, or other heading sections)
If assignment fails (user not a collaborator/member), the PR/MR is still created without assignment.
