@@ -3,7 +3,7 @@ name: create-pr
33description : Create a GitHub pull request following lstk conventions with proper title, description, and ticket references.
44argument-hint : [base-branch]
55disable-model-invocation : true
6- allowed-tools : Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git push -u origin HEAD), Bash(gh pr create *), mcp__plugin_linear_linear__get_issue
6+ allowed-tools : Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git push -u origin HEAD), Bash(gh pr create *), Bash(gh label list *), mcp__plugin_linear_linear__get_issue
77---
88
99# Create Pull Request
@@ -69,15 +69,29 @@ Rules:
6969- Omit Todo section if there are no follow-up items
7070- Don't over-explain; the diff speaks for itself
7171
72- ## Step 5: Commit and push
72+ ## Step 5: Choose labels
73+
74+ Always apply two labels, based on the size and nature of the change:
75+
76+ 1 . A semver label reflecting the impact of the change:
77+ - ` semver: patch ` — bug fixes, dependency/toolchain bumps, internal refactors, and other backward-compatible changes with no new user-facing behavior.
78+ - ` semver: minor ` — new backward-compatible functionality (e.g. a new command or flag).
79+ - ` semver: major ` — breaking changes to existing behavior or interfaces.
80+ 2 . A docs label reflecting whether documentation needs updating:
81+ - ` docs: skip ` — no user-facing documentation change is required (most dependency/toolchain upgrades, internal refactors).
82+ - ` docs: needed ` — the change adds or alters user-facing behavior that requires documentation updates.
83+
84+ This applies to automated PRs too (dependency and toolchain upgrades), which are almost always ` semver: patch ` + ` docs: skip ` .
85+
86+ ## Step 6: Commit and push
7387
7488If there are uncommitted changes, commit them with a concise message. Do NOT add ` Co-Authored-By: Claude ` unless the user explicitly asks for it.
7589
76- Then push and create the PR:
90+ Then push and create the PR with the chosen labels :
7791
7892```
7993git push -u origin HEAD
80- gh pr create --draft --title "<title>" --body "<body>" --base <base-branch>
94+ gh pr create --draft --title "<title>" --body "<body>" --base <base-branch> --label "<semver-label>" --label "<docs-label>"
8195```
8296
8397Return the PR URL when done.
0 commit comments