Create GitHub Pull Request

VerifiedSafe

Creates or updates a GitHub pull request with Jira integration and Mermaid diagrams. Runs pre-push checks first and stops if they fail. Use when ready to submit code for review or update an existing PR.

Sby Skills Guide Bot
DevelopmentIntermediate
706/2/2026
Claude Code
#pull-request#github#jira#pre-push#mermaid

Recommended for

Our review

Creates or updates a GitHub pull request with Jira integration and Mermaid diagrams after running pre-push checks.

Strengths

  • Automatically pulls Jira ticket details into the PR
  • Generates a well-structured PR using a project template
  • Includes Mermaid diagrams to visualize changes
  • Updates existing PRs without creating duplicates

Limitations

  • Requires a specific MCP tool for Jira (mcp__atlassian__getJiraIssue)
  • Jira cloud ID is hardcoded to vuoriclothing.atlassian.net
  • Cannot skip pre-push checks even for trivial changes
When to use it

Use when you have code ready on a branch and need to create or update a pull request for review.

When not to use it

Do not use for draft or exploratory pull requests where checks are not expected to pass.

Security analysis

Safe
Quality score85/100

The skill runs standard development commands (git, gh, npm run pre-push) and fetches Jira issues. No destructive or exfiltrating actions. Executing npm scripts is a normal part of the workflow and not inherently risky in a controlled environment.

No concerns found

Examples

Create new PR
/create-pr
Update existing PR
/create-pr

name: create-pr description: Creates or updates a GitHub PR with Jira integration, mermaid diagrams, and AI disclosure. Runs pre-push checks first. Use when ready to submit code for review or update an existing PR. Invoke with /create-pr. allowed-tools:

  • Bash
  • Read
  • Grep
  • Glob
  • mcp__atlassian__getJiraIssue

Creating Pull Request

Creates a well-structured PR using the project's template, with Jira integration and visual diagrams.

Workflow

1. Get Branch & Detect Ticket

git branch --show-current

Extract ticket ID from branch (e.g., feat/TDE-7358-optimize-elevarTDE-7358).

2. Check for Existing PR

gh pr view --json number,title,body,url 2>/dev/null
  • If PR exists: will update it
  • If no PR: will create new one

3. Run Pre-Push Checks

npm run pre-push

If checks fail, stop and report errors. Do not create/update PR with failing checks.

4. Fetch Jira Ticket Details

mcp__atlassian__getJiraIssue
- cloudId: vuoriclothing.atlassian.net
- issueIdOrKey: <ticket-id>

Extract: fields.summary, fields.description, fields.issuetype.name

5. Analyze Changes

git diff main...HEAD --stat
git diff main...HEAD --name-only
git log main...HEAD --oneline

Read key changed files to understand what was modified and how components interact.

6. Generate PR Content

See template.md for the full PR template.

Title format: <type>: [TICKET-ID] <short description>

Types: feat, fix, refactor, perf, docs, test, chore

7. Create or Update PR

New PR:

git push -u origin <branch-name>
gh pr create --base main --title "<title>" --body "<body>"

Existing PR:

git push
gh pr edit --title "<title>" --body "<body>"

8. Report Result

Output: PR URL, summary of changes, items needing manual attention.

Mermaid Diagrams

See diagrams.md for diagram examples and guidelines.

  • Use diagrams that accurately represent changes
  • Match complexity to PR scope
  • Include all affected services for integration changes

Notes

  • Always push changes before creating/updating PR
  • If pre-push fails, fix issues first
  • Default base branch is main
  • Do NOT add AI attribution footers to PR description
Related skills