← Back to list

push-pr
by anton-pt
⭐ 0🍴 0📅 Jan 18, 2026
SKILL.md
name: push-pr description: Push branch and create GitHub PR user-invocable: true
Push Branch and Create Pull Request
Steps
-
Get current feature from branch:
BRANCH=$(git rev-parse --abbrev-ref HEAD) NUM=$(echo "$BRANCH" | grep -oE 'alg-([0-9]+)' | grep -oE '[0-9]+') -
Run verification:
npm run type-check --workspaces --if-present npm test --workspaces --if-present -
If verification fails, stop and report errors. Do NOT proceed to create a PR with failing checks.
-
Push branch to remote:
git push -u origin $BRANCH -
Generate PR title using Conventional Commits:
- Read
specs/alg-${NUM}-*/spec.mdto understand the feature - Generate a title like:
feat(scope): short description - Types:
feat(new feature),fix(bug fix),refactor,perf,docs,chore - Scope: optional component name, e.g.
feat(search):,fix(auth):
- Read
-
Create PR with gh CLI (following
.github/PULL_REQUEST_TEMPLATE.md):gh pr create \ --title "${TITLE}" \ --body "## Summary Resolves [ALG-${NUM}](https://linear.app/algojuke/issue/ALG-${NUM}) See [spec.md](specs/alg-${NUM}-*/spec.md) for full specification. ## Changes $(git log main..HEAD --oneline) ## Verification - [x] Type check passes - [x] Tests pass " -
Output the PR URL for the user.
Notes
- The PR body uses "Resolves ALG-XX" to link the Linear issue
- Linear automation will automatically update the issue status to "In Review" when the PR is created
- If the branch already has a PR,
gh pr createwill fail - usegh pr viewinstead - Always run verification before pushing to catch issues early
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon