Agent Skills: PR to Main Branch

Create a PR to main branch for feature/fix changes. Use when the user says "PRを作成", "mainにPR", or wants to submit changes for review.

UncategorizedID: breaking-brake/cc-wf-studio/pr-to-main

Install this agent skill to your local

pnpm dlx add-skill https://github.com/breaking-brake/cc-wf-studio/tree/HEAD/.claude/skills/pr-to-main

Skill Files

Browse the full folder contents for pr-to-main.

Download Skill

Loading file tree…

.claude/skills/pr-to-main/SKILL.md

Skill Metadata

Name
pr-to-main
Description
Create a PR to main branch for feature/fix changes. Use when the user says "PRを作成", "mainにPR", or wants to submit changes for review.

PR to Main Branch

Create PR for feature branches targeting main.

Workflow

  1. Gather context (parallel):

    • git status (no -uall flag)
    • git diff for staged/unstaged changes
    • git log for commit history on current branch
    • Check if branch tracks remote and needs push
  2. Analyze changes:

    • Review ALL commits in the branch (not just latest)
    • Identify the type from commit prefix: fix:, feat:, improvement:
  3. Select template based on commit prefix:

    • fix: → Use assets/fix-template.md
    • feat: → Use assets/feat-template.md
    • improvement: → Use assets/improvement-template.md
  4. Create PR (parallel if needed):

    • Push branch with -u flag if needed
    • Create PR using gh pr create

PR Format

Language: Always write PR title and body in English

Title: Under 70 characters, descriptive

Templates

fix: (Bug fixes)

Use assets/fix-template.md - Problem/Solution format with Current/Expected behavior

feat: (New features)

Use assets/feat-template.md - Summary/Motivation/Changes format

improvement: (Enhancements)

Use assets/improvement-template.md - Before/After comparison format

PR to Main Branch Skill | Agent Skills