generate-pr-description
Generate PR Description
Generate a concise pull request description by analyzing git changes and using the project's PR template.
Language: Always generate PR titles and descriptions in English, regardless of the user's language or the language of commit messages.
Workflow
-
Identify parent branch
- Check current branch:
git rev-parse --abbrev-ref HEAD - Determine parent (usually
mainormaster):git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//' - Or use:
git merge-base HEAD mainto find common ancestor
- Check current branch:
-
Analyze changes
- Get diff stats:
git diff --stat <parent-branch>..HEAD - Get commit messages:
git log --oneline <parent-branch>..HEAD - Get file changes:
git diff --name-status <parent-branch>..HEAD
- Get diff stats:
-
Generate semantic commit title
More from lichens-innovation/skills
react-single-responsibility
Strategies to simplify components, hooks, and methods: decomposition order (utilities, hooks, sub-components), early returns, control flow, parameter design, and code smell fixes. Use when the user says: ungodify this method/function/component, simplify this method/function/component, make this method/function/component less complex; or when refactoring a large component, hook, or function, reducing complexity, applying single responsibility, or asking how to simplify a component, hook, or method.
30review-staged-changes
Reviews staged git changes for code quality, maintainability, readability, and potential regressions. Verifies changes make sense in context, improve maintainability, enhance readability, and don't introduce side effects. Use when reviewing staged changes, examining git diffs, or when the user asks to review modifications before committing.
25hello-world
This skill welcomes users in ASCII art with OS information. Use when the user says 'hello' or 'hi'.
20react-coding-standards
Enforces internal React and TypeScript coding standards using avoid/prefer rules. Use when reviewing or refactoring React/TS code, applying company standards, or when the user asks to align code with coding standards.
13typescript-and-react-guidelines
|
10single-responsibility
|
6