Cc-wf-studio pr-to-main
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.
install
source · Clone the upstream repo
git clone https://github.com/breaking-brake/cc-wf-studio
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/breaking-brake/cc-wf-studio "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/pr-to-main" ~/.claude/skills/breaking-brake-cc-wf-studio-pr-to-main && rm -rf "$T"
manifest:
.claude/skills/pr-to-main/SKILL.mdsource content
PR to Main Branch
Create PR for feature branches targeting main.
Workflow
-
Gather context (parallel):
(no -uall flag)git status
for staged/unstaged changesgit diff
for commit history on current branchgit log- Check if branch tracks remote and needs push
-
Analyze changes:
- Review ALL commits in the branch (not just latest)
- Identify the type from commit prefix:
,fix:
,feat:improvement:
-
Select template based on commit prefix:
→ Usefix:assets/fix-template.md
→ Usefeat:assets/feat-template.md
→ Useimprovement:assets/improvement-template.md
-
Create PR (parallel if needed):
- Push branch with
flag if needed-u - Create PR using
gh pr create
- Push branch with
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