Agent skill
setup-github
GitHub 設定ファイルをセットアップする。「GitHub 設定をセットアップ」「.github を作って」「Issue テンプレート作成」「PR テンプレート作成」「GitHub 設定を初期化」「リポジトリ設定をセットアップ」「ラベル設定を作成」などで起動。.github ディレクトリに必要な設定ファイルを一括生成。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/setup-github
SKILL.md
Setup GitHub
プロジェクトの .github ディレクトリに GitHub 設定ファイルを一括生成します。
引数
--dry-run: 生成予定のファイル一覧を表示(実行しない)--force: 既存ファイルを上書き--help: ヘルプを表示
生成されるファイル
| ファイル | 説明 |
|---|---|
.github/ISSUE_TEMPLATE/config.yml |
Issue テンプレート設定 |
.github/ISSUE_TEMPLATE/bug-report.yml |
バグ報告テンプレート |
.github/ISSUE_TEMPLATE/feature-request.yml |
機能リクエストテンプレート |
.github/ISSUE_TEMPLATE/improvement.yml |
改善提案テンプレート |
.github/pull_request_template.md |
PR テンプレート |
.github/copilot-instructions.md |
GitHub Copilot 設定 |
.github/labels.yml |
ラベル定義 |
.github/labeler.yml |
自動ラベル付けルール |
.github/workflows/sync-labels.yml |
ラベル同期 workflow |
.github/workflows/labeler.yml |
自動ラベル付け workflow |
実行手順
ステップ 1: 事前確認
.githubディレクトリの存在確認- 既存ファイルの有無をチェック
既存ファイルがある場合:
--forceなし: 上書きするか確認--forceあり: 確認なしで上書き
ステップ 2: プロジェクト情報収集
ユーザーに以下を確認:
- プロジェクト名(リポジトリ名から推測、確認)
- プロジェクトタイプ(選択肢を提示)
- Web アプリ (React/Vue/etc.)
- バックエンド (Node.js/Go/Python/etc.)
- ライブラリ/パッケージ
- CLI ツール
- その他
ステップ 3: テンプレート読み込み
skills/setup-github/assets/ からテンプレートを読み込み、プロジェクト情報で変数を置換。
置換する変数:
| 変数 | 説明 |
|---|---|
{{REPO}} |
リポジトリ名 |
{{OWNER}} |
リポジトリオーナー |
{{PROJECT_TYPE}} |
プロジェクトタイプ |
ステップ 4: ファイル生成
以下の順序で生成:
.github/ディレクトリ作成(なければ).github/ISSUE_TEMPLATE/ディレクトリ作成.github/workflows/ディレクトリ作成- 各テンプレートファイルを生成
ステップ 5: 完了報告
生成されたファイル一覧と次のステップを表示:
## 生成完了
以下のファイルを生成しました:
- .github/ISSUE_TEMPLATE/config.yml
- .github/ISSUE_TEMPLATE/bug-report.yml
- .github/ISSUE_TEMPLATE/feature-request.yml
- .github/ISSUE_TEMPLATE/improvement.yml
- .github/pull_request_template.md
- .github/copilot-instructions.md
- .github/labels.yml
- .github/labeler.yml
- .github/workflows/sync-labels.yml
- .github/workflows/labeler.yml
## 次のステップ
1. 各テンプレートをプロジェクトに合わせてカスタマイズ
2. `git add .github && git commit -m "chore: GitHub 設定ファイルを追加"`
3. GitHub にプッシュしてラベル同期を実行
生成ファイルのテンプレート
テンプレートファイルは assets/ ディレクトリに配置:
assets/ISSUE_TEMPLATE/- Issue テンプレートassets/pull_request_template.md- PR テンプレートassets/copilot-instructions.md- Copilot 設定assets/labels.yml- ラベル定義assets/labeler.yml- 自動ラベル付けルールassets/workflows/- GitHub Actions workflow
重要な注意事項
- ✅ テンプレートは汎用的な内容なので、プロジェクトに合わせて調整が必要
- ✅ ラベル同期 workflow は main ブランチへのプッシュ時に実行される
- ❌ 既存の設定ファイルを無断で上書きしない
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?