Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add LandonSchropp/agent-toolkit --skill "git-pull-request"
Install specific skill from multi-skill repository
# Description
Use when creating or updating a pull request.
# SKILL.md
name: git-pull-request
description: Use when creating or updating a pull request.
Creating and Updating Pull Requests
Process
-
Analyze changes: Invoke the
git-diff-feature-branchskill to get the current branch's changes and determine the base branch. If there are no changes, stop. -
Check for Linear issue: Run
scripts/extract-issue-from-current-branch.shto check if the current branch has a Linear issue ID. If it outputs an issue ID, fetch the Linear issue using the Linear MCP. -
Check for existing PR: Run
gh pr view --json number,title,bodyto check if a PR already exists for the current branch. If it does, note the PR number - you'll be updating this PR instead of creating a new one. -
Create PR title: Write a clear, descriptive title that explains what the PR accomplishes. Often this will be a slightly reworked version of the Linear issue title. If there's a Linear issue, prepend the title with the issue ID in square brackets.
Examples:
- Add user profile management system
- Update API documentation with examples
- [IAM-12] Resolve authentication timeout issues
- [AI-345] Simplify database connection logic
- Create PR description: Write a concise description focused on essential information. Keep it brief and focused.
- Check for a PR template at
.github/pull_request_template.md- If it exists, use it:
- If the PR contains a checklist, review each item and determine completion. Ask user if unsure. Remove the checklist section when done.
- Remove merging instructions or generic template text
- Keep screenshots/demo sections but leave them empty
- If no template exists, create a simple description with Summary and Changes sections:
- Summary: Short paragraph explaining what changed and why
- Changes: Bulleted list of key modifications
- For simple changes, use a single paragraph summary only
- Focus on what changed and why, not implementation details
-
Use backticks for code terms, file names, and technical references
-
Present for review: Show the proposed PR title and body to the user. Display them clearly formatted. Indicate whether this will create a new PR or update an existing one. Ask if they'd like to proceed or make changes.
-
Create or update PR: After user approval:
- Push commits:
git push - If a PR exists, update it:
gh pr edit --title "<title>" --body "<description>" --base "<base-branch>" - If no PR exists, create it:
gh pr create --title "<title>" --body "<description>" --base "<base-branch>" --web
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.