skills/pr-to-origin-main/SKILL.md
Create a pull request from current development branch to origin/main (not upstream/main). Use when you need to merge a feature branch into the main branch of your fork and want to ensure the PR targets origin/main with English descriptions. Always confirms remote target with user before creation to prevent accidentally creating PRs to upstream repositories.
npx skillsauth add atman-33/atman-workspace pr-to-origin-mainInstall 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.
This skill automates the creation of pull requests from development branches (feature/xxx, bugfix/xxx, etc.) to origin/main. It includes safeguards to prevent accidentally creating PRs to upstream/main.
Create a PR from current branch to origin/main:
python3 .claude/skills/pr-to-origin-main/scripts/create_pr.py
The script will:
gh pr create)GitHub CLI: Must be installed and authenticated
# Check if gh is installed
gh --version
# Authenticate if needed
gh auth login
Git remotes: Repository must have origin configured
# Check remotes
git remote -v
The script ensures you're not on main:
# Get current branch
current_branch=$(git branch --show-current)
if [ "$current_branch" = "main" ]; then
echo "Error: Already on main branch"
exit 1
fi
The script shows the detected configuration and asks for confirmation:
Current branch: feature/new-thing
Target remote: origin
Target branch: main
Is this correct? (y/n):
This prevents accidentally creating PRs to upstream/main.
The script analyzes recent commits to generate:
All content is generated in English.
Using GitHub CLI:
gh pr create \
--base main \
--head feature/new-thing \
--repo owner/repo \
--title "Add new feature" \
--body "Description of changes..."
Edit the script to customize:
# In .claude/skills/pr-to-origin-main/scripts/create_pr.py
# Change default remote if needed
DEFAULT_REMOTE = "origin"
# Change default base branch if needed
DEFAULT_BASE_BRANCH = "main"
Issue: GitHub CLI not found
sudo apt install gh (WSL/Linux) or download from https://cli.github.com/Issue: Not authenticated
gh auth login and follow promptsIssue: Remote not found
git remote -vIssue: PR already exists
gh pr list and close or update as neededtools
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データベースマイグレーションの準備を行うスキル。バックアップの作成と差分マイグレーションファイルの生成を実施します。ユーザーが「マイグレーションを準備」「バックアップと差分を作成」「マイグレーションファイルを生成」などのリクエストをした際に使用します。