From ring-default
Generates pull request descriptions from git branch changes with automatic title generation, change-type detection, and smart analysis. Uses branch-only scope to avoid full history analysis.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ring-default:generating-pr-descriptions [base-branch][base-branch]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Preparing a pull request for review and need a comprehensive description
docs/pr-descriptions/<branch-name-with-hyphens>.mdgit merge-base HEAD <base-branch> to find the true divergence pointgit log --oneline $(git merge-base HEAD <base-branch>)..HEAD for branch-specific commitsgit diff $(git merge-base HEAD <base-branch>)..HEAD for branch-specific changesHEAD~n counting — it breaks on merges, rebases, and long-lived branchesgit status --porcelain to identify uncommitted files (excluded from PR)feature/FE-157 -> feature-FE-157.md)docs/pr-descriptions/<derived-filename> (create directory if needed)# 1. Get branch structure to identify commits
git log --oneline --decorate --graph -10
# 2. Count commits unique to current branch
# Look for where branch diverged from main/develop
# Example output shows 2 commits on feature/PLU-393:
# * 06603bf (HEAD -> feature/PLU-393) fix(i18n): add missing translations
# * d40c631 feat(ui): enhance templates system with calendar filter
# * 30664b1 (develop) Merge branch 'develop' into feature/libs
# Use HEAD~n where n = number of branch commits
git log --oneline HEAD~2..HEAD # Get branch commits
git diff HEAD~2..HEAD --name-status # Get changed files
git diff HEAD~2..HEAD --stat # Get change statistics
WRONG APPROACH - DO NOT USE:
git log main..HEAD # Includes entire development history
git diff main...HEAD # Includes all changes since branch creation
The skill generates pull requests following this exact structure:
# [Auto-generated PR title: short, under 70 chars, using conventional commit prefix]
# Description
[Auto-generated summary of changes and motivation based on commits]
## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
feat:, fix:, chore:, refactor:, etc.) based on the dominant change type# heading in the output fileMANDATORY Git Command Usage:
Branch Point Detection:
git log --oneline --decorate --graph -10
# Identify where current branch diverged from base
# Count commits unique to current branch
Branch-Only Analysis Commands:
# For 2 commits on current branch:
git log --oneline HEAD~2..HEAD
git diff HEAD~2..HEAD --name-status
git diff HEAD~2..HEAD --stat
# NEVER use these (includes all development history):
git log main..HEAD # WRONG
git diff main...HEAD # WRONG
Branch Point Validation:
HEAD~3..HEADHEAD~5..HEADHEAD~n..HEAD approach to analyze ONLY current branch commitsdocs/pr-descriptions/<branch-name-with-hyphens>.md for easy copying to GitHub/GitLabnpx claudepluginhub p/lerianstudio-ring-default-defaultDrafts conventional commit PR titles and Shopware 5-section descriptions for core PRs targeting trunk. Analyzes branch against trunk, uses session context, asks for missing info.
Creates GitHub pull requests from branch changes using git analysis and gh CLI, with conventional commit titles and standardized templated descriptions including summary, changes, testing, and checklists.
Generate a concise and structured PR description from commit history with minimal token usage