Skip to main content
ClaudeWave
Skill355 repo starsupdated today

create-pr

This Claude Code skill automates the complete workflow for creating GitHub pull requests in Japanese, including staging changes with explicit file paths, committing with formatted messages, pushing to remote, and creating PRs using GitHub CLI. Use this skill when users request PR creation in any form, such as "PRを作って" or "pull requestを作成してください."

Install in Claude Code
Copy
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/create-pr && cp -r /tmp/create-pr/skills/0tarof/create-pr ~/.claude/skills/create-pr
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Pull Request作成スキル

このスキルは、GitHubのプルリクエスト作成に必要な一連のワークフローを自動化します。

**IMPORTANT: このスキルを使用する際は、必ず日本語でユーザーとコミュニケーションを取ってください。**

## ワークフロー

### 1. 変更内容の確認

まず現在の状態を確認します:

```bash
# 変更されたファイルを確認
git status

# 変更内容の差分を確認
git diff

# 最近のコミット履歴を確認(コミットメッセージのスタイルを把握)
git log -5 --oneline
```

### 2. 事前準備とチェック

コミット前に必要なチェックを実行します:

1. リポジトリルートの`CLAUDE.md`を確認し、プロジェクト固有の要件を確認
2. テスト、リンター、ビルドステップが記載されている場合は実行
3. エラーや失敗がある場合は、先に解決してから進める

**このdotfilesリポジトリ固有の要件**:
- Brewfileが変更された場合:`bin/brew-check`を実行して検証
- bin/内のスクリプトが変更された場合:適切なエラーハンドリングを確認
- 変更されたスクリプトがある場合:可能であればテスト実行

### 3. 変更のステージングとコミット

**重要**:ファイルのステージングは必ず明示的なパスで行います:

```bash
# ❌ 絶対に使用しない
git add .
git add -A

# ✅ 正しい方法
git add path/to/file1.txt path/to/file2.txt path/to/file3.txt
```

コミットメッセージは以下の形式で作成します:

```bash
git commit -m "$(cat <<'EOF'
<変更の簡潔な説明>

<詳細な説明(必要に応じて)>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
```

コミットメッセージのスタイルは、`git log`で確認した既存のコミット履歴に合わせてください。

### 4. リモートへのプッシュ

現在のブランチをoriginにプッシュします:

```bash
git push -u origin <branch-name>
```

リモートにブランチが存在しない場合は自動的に作成されます。

### 5. プルリクエストの作成

#### PRテンプレートの確認

まず、リポジトリにPRテンプレートが存在するか確認します:

```bash
# PRテンプレートの存在確認
ls .github/PULL_REQUEST_TEMPLATE.md
```

#### PR本文の作成

**テンプレートが存在する場合**:
- テンプレートの内容を基にPR本文を作成

**テンプレートが存在しない場合**:
- 以下の構造でPR本文を作成:
  ```markdown
  ## 概要
  <変更の簡潔な説明を1-3個の箇条書きで>

  ## 変更内容
  <主な変更点のリスト>

  ## テスト
  <変更がどのようにテストされたか(該当する場合)>

  🤖 Generated with [Claude Code](https://claude.com/claude-code)
  ```

#### PRの作成実行

```bash
gh pr create --title "<PRのタイトル>" --body "$(cat <<'EOF'
<PR本文の内容>
EOF
)"
```

作成後、PR URLをユーザーに返します。

## 重要な注意事項

1. **準備ステップをスキップしない**:CLAUDE.mdに記載された要件は必ず実行
2. **テストやチェックが失敗したら進まない**:失敗を解決してから次に進む
3. **明示的なファイルパスでステージング**:`git add .`や`git add -A`は絶対に使用しない
4. **日本語でコミュニケーション**:ユーザーとのやり取りは常に日本語で行う
5. **不明な点があれば確認**:どのステップでも不明な点があれば、日本語でユーザーに確認を取る

## エラーハンドリング

- コマンドが失敗した場合は、エラーメッセージを日本語でユーザーに説明
- 次のステップに進む前に、問題を解決するための提案を提示
- 必要に応じて、ユーザーに追加の情報や確認を求める
jira-safeSkill

Implement SAFe methodology in Jira. Use when creating Epics, Features, Stories with proper hierarchy, acceptance criteria, and parent-child linking.

jira-workflowSkill

Orchestrate Jira workflows end-to-end. Use when building stories with approvals, transitioning items through lifecycle states, or syncing task completion with Jira.

chinese-learning-assistantSkill

HSK4級レベルから流暢さを目指す学習者向け。中国語表現の使用場面・自然さを分析し、作文を「ネイティブらしい流暢な表現」に改善。bilibili等のコンテンツ理解とネイティブとの会話をサポート。実際の用例をWeb検索で提示

frontend-dev-guidelinesSkill

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

skill-developerSkill

Claude Code 스킬, 훅, 에이전트, 명령어를 생성하고 관리하기 위한 메타 스킬. 새 스킬 생성, 스킬 트리거 설정, 훅 설정, Claude Code 인프라 관리 시 사용.

sitemapkitSkill

Discover and extract sitemaps from any website using SitemapKit. Use this skill whenever the user wants to find pages on a website, get a list of URLs from a domain, audit a site's structure, crawl a sitemap, check what pages exist on a site, or do anything involving sitemaps or site URL discovery — even if they don't explicitly say "sitemap". Requires the sitemapkit MCP server configured with a valid SITEMAPKIT_API_KEY.

create-svg-from-promptSkill

Generate an SVG of a user-requested image or scene

vibe-securitySkill

Security intelligence for code analysis. Detects SQL injection, XSS, CSRF, authentication issues, crypto failures, and more. Actions: scan, analyze, fix, audit, check, review, secure, validate, sanitize, protect. Languages: JavaScript, TypeScript, Python, PHP, Java, Go, Ruby. Frameworks: Express, Django, Flask, Laravel, Spring, Rails. Vulnerabilities: SQL injection, XSS, CSRF, authentication bypass, authorization issues, command injection, path traversal, insecure deserialization, weak crypto, sensitive data exposure. Topics: input validation, output encoding, parameterized queries, password hashing, session management, CORS, CSP, security headers, rate limiting, dependency scanning.