Claude-code-customes git-pr
Generate PR description and automatically create pull request on GitHub
install
source · Clone the upstream repo
git clone https://github.com/sc30gsw/claude-code-customes
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sc30gsw/claude-code-customes "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/git-pr" ~/.claude/skills/sc30gsw-claude-code-customes-git-pr && rm -rf "$T"
manifest:
.claude/skills/git-pr/SKILL.mdsource content
Git PR: Pull Request Automation
Generate PR descriptions and automatically create pull requests on GitHub with Serena MCP integration.
Usage
/git:pr [options]
Options
| Option | Description | Example |
|---|---|---|
| (default) | Generate PR description and create PR | |
| Push current branch and create PR | |
| Update existing PR description only | |
Tool Priorities
ALWAYS prioritize mcp__serena__ tools for code analysis:
File Operations (Serena MCP First)
- Reading files: Use
→mcp__serena__find_file
(fallback)Bash(git:*) - Searching patterns: Use
mcp__serena__search_for_pattern - Finding symbols: Use
mcp__serena__find_symbol
Code Analysis (Serena MCP)
- Symbol overview: Use
mcp__serena__get_symbols_overview - Symbol references: Use
mcp__serena__find_referencing_symbols
Workflow
Default (no option)
- Analyze changes with Serena pattern recognition
- Read PR template from
.github/pull_request_template.md - Create PR description following template format
- Use Context7 MCP to fetch relevant documentation URLs
- Add Mermaid diagram visualizing changes
- Execute
gh pr create --draft
With -p option
- Push current branch:
git push -u origin <current-branch> - Continue with default workflow
With -u option
- Analyze changes
- Read previous PR patterns from Serena memory
- Update existing PR:
gh pr edit --body <description>
Requirements
- Follow the template structure exactly
- Use Japanese for all content
- Include specific implementation details
- List concrete testing steps
- Use Context7 MCP for documentation URLs
- Always include Mermaid diagram
Mermaid Diagram Guidelines
- Use appropriate diagram types (flowchart, sequence, class)
- Show before/after states if applicable
- Highlight new or modified components
- Use consistent styling and colors
Context7 Integration
For Reference section, query Context7 MCP for:
- Next.js, React, TanStack Query documentation
- Tailwind CSS, UI library documentation
- Other relevant technologies based on changes