skills/pr-assistant/SKILL.md
Analyzes git changes and assists with creating comprehensive pull requests. Use when user wants to create a PR, review changes before PR, or needs help drafting PR descriptions. Triggers on phrases like 'create PR', 'make a pull request', 'draft PR description', 'what changed in this branch', 'prepare PR'.
npx skillsauth add atman-33/atman-workspace pr-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Assists with creating well-structured pull requests by analyzing changes and generating comprehensive PR descriptions.
Human-in-the-loop: This skill generates PR drafts that MUST be reviewed and approved by the user before submission. Never auto-create PRs without explicit confirmation.
First, gather context about the current branch:
# Get current branch and target branch
CURRENT_BRANCH=$(git branch --show-current)
TARGET_BRANCH=${TARGET_BRANCH:-main}
# Get diff summary
git diff $TARGET_BRANCH...$CURRENT_BRANCH --stat
# Get commit messages
git log $TARGET_BRANCH...$CURRENT_BRANCH --oneline
# Get detailed changes by category
git diff $TARGET_BRANCH...$CURRENT_BRANCH --name-status
Use scripts/analyze_changes.py to categorize changes into:
Based on the analysis, select the appropriate template:
Use scripts/generate_pr_body.py with the appropriate template from assets/templates/.
Auto-fill sections:
#123, fixes #456 patternsRun scripts/quality_checks.sh to check for:
Present warnings to user but don't block PR creation.
CRITICAL: Present the generated PR body in a clear, editable format and explicitly ask the user to review and approve it.
Example presentation:
I've prepared a PR draft. Please review the content below and let me know if you'd like any changes:
---
[Generated PR body here]
---
Would you like me to:
1. Create the PR with this content
2. Make edits to the description
3. Change the target branch (currently: main)
4. Add/remove reviewers
Once the user approves, use gh CLI:
gh pr create \
--title "PR Title" \
--body-file /tmp/pr-body.md \
--base main \
--head current-branch \
[--reviewer user1,user2] \
[--label label1,label2]
For this repository (tomodachi/srms):
Categories:
apis/, requirements.txtui/src/, ui/package.jsonsupabase/docker-compose.yml, Dockerfile, nginx.conf, supervisord.confdoc/, README.md, CLAUDE.mdDefault reviewers (suggest based on changes):
Branch naming conventions:
feature/* → Feature templatebugfix/* or fix/* → Bugfix templatedocs/* → Docs templateSee references/pr-best-practices.md for detailed guidelines.
Key points:
If the user wants to edit the draft:
User might say:
If issues arise:
Always save the generated PR body to a temporary file for easy editing:
PR_BODY_FILE=".tmp/outputs/pr-body-$(date +%s).md"
This allows the user to edit it manually if needed before submission.
tools
Zenn記事のMarkdown校正を行うスキル。記事を読み、Zenn独自記法の正確性・見出し構造・コードブロック・リンク・画像・テーブル・埋め込み・メッセージ/アコーディオン記法をチェックし、改善提案を行う。ユーザーが「Zenn記事を校正して」「Zennの記法をチェックして」「記事をレビューして」「Markdown確認して」と依頼した際に使用する。
tools
Develop React applications for VS Code Webview surfaces. Use when working on the `webview-ui` package, creating features, components, or hooks for VS Code extensions. Includes project structure, coding guidelines, and testing instructions.
testing
Best practices for reliable terminal command execution and output capture. Use this skill when running shell commands, especially in environments like WSL where output might be truncated or lost, to ensure results are properly captured and inspected.
databases
Supabaseデータベースマイグレーションの準備を行うスキル。バックアップの作成と差分マイグレーションファイルの生成を実施します。ユーザーが「マイグレーションを準備」「バックアップと差分を作成」「マイグレーションファイルを生成」などのリクエストをした際に使用します。