Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-to-main
SKILL.md
PR to Main Branch
Create PR for feature branches targeting main.
Workflow
-
Gather context (parallel):
git status(no -uall flag)git difffor staged/unstaged changesgit logfor commit history on current branch- 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:
fix:→ Useassets/fix-template.mdfeat:→ Useassets/feat-template.mdimprovement:→ Useassets/improvement-template.md
-
Create PR (parallel if needed):
- Push branch with
-uflag if needed - 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?