git-workflow-setup
/git-workflow-setup
This skill configures Git Flow or GitHub Flow with branch protection and security settings. Use when the user asks "set up git flow", "configure branch protection", "set up git workflow", "protect branches", "Gitフロー設定", "ブランチ保護設定", or "ワークフロー設定".
- Author
- signalcompose ↗
- Repository
- claude-tools ↗
- Licence
- MIT
- Last repository change
- 28.08.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
This skill configures Git Flow or GitHub Flow with branch protection and security settings. Use when the user asks "set up git flow", "configure branch protection", "set up git workflow", "protect branches", "Gitフロー設定", "ブランチ保護設定", or "ワークフロー設定".
Triggers from the description
Original author description
This skill configures Git Flow or GitHub Flow with branch protection and security settings. Use when the user asks "set up git flow", "configure branch protection", "set up git workflow", "protect branches", "Gitフロー設定", "ブランチ保護設定", or "ワークフロー設定".
How it works
- What This Skill Does
- Execution Steps
- Completion
- Absolute Prohibitions (Git Flow)
SKILL.md preview
---
name: git-workflow-setup
description: |
This skill configures Git Flow or GitHub Flow with branch protection and security settings.
Use when the user asks "set up git flow", "configure branch protection",
"set up git workflow", "protect branches",
"Gitフロー設定", "ブランチ保護設定", or "ワークフロー設定".
user-invocable: false
---
# Git Workflow Setup
This skill configures a complete Git workflow for your project, including branch structure, branch protection, merge settings, and security configuration.
## What This Skill Does
1. **Project Type Selection** - Determine security level (Personal / Small OSS / Large OSS)
2. **Development Style Selection** - Solo or Team development
3. **Repository Check** - Verify or create GitHub repository
4. **Branch Structure** - Create main and develop branches
5. **Branch Protection** - Apply protection rules using templates
6. **Merge Settings** - Disable squash/rebase merge (merge commit only for Git Flow)
7. **Security Settings** - CODEOWNERS, Secret Scanning (based on project type)
8. **Verification** - Confirm all settings are correct
## Execution Steps
### Step 0: Project Type & Development Style
Ask the user about their project type to determine appropriate security settings:
| Setting | Personal | Small OSS | Large OSS |
|---------|----------|-----------|-----------|
| Visibility | Private | Public | Public |
| Secret Scanning | Not needed | Recommended | Required |
| CODEOWNERS | Not needed | Recommended | Required |
| develop protection | Optional | Recommended | Required |
| Fork PR restriction | Not needed | Optional | Recommended |
Then ask development style:
- **Solo Development** - `enforce_admins=false` (admin bypass allowed)
- **Team Development** - `enforce_admins=true` (all rules apply to everyone)
### Step 1: Repository Check
```bash
git remote -v
gh repo view --json nameWithOwner,isPrivate,defaultBranchRef 2>/dev/null
```
If no repository exists, guide the user to create one first.
### Step 2: Branch Structure
Create `develop` branch if it doesn't exist, push to remote, and verify the default branch.
### Step 3: Branch Protection
Apply branch protection using the template files:
- Solo: `${CLAUDE_PLUGIN_ROOT}/templates/.github/branch-protection/solo-development.json`
- Team: `${CLAUDE_PLUGIN_ROOT}/templates/.github/branch-protection/team-development.json`
Apply to both `main` and `develop` branches using `gh api`.
### Step 4: Repository-Level Merge Settings (REQUIRED)
```bash
gh api repos/:owner/:repo -X PATCH \
-f allow_squash_merge=false \
-f allow_rebase_merge=false \
-f allow_merge_commit=true
```
**Why**: Git Flow requires merge commits. Squash/rebase destroys Git Flow history.
### Step 5: Security Settings
Based on project type, apply appropriate settings.
For CODEOWNERS template, refer to:
`${CLAUDE_PLUGIN_ROOT}/skills/git-workflow-setup/references/codeowners-template.md`
For security settings details, refer to:
`${CLAUDE_PLUGIN_ROOT}/skills/git-workflow-setup/references/security-settings.md`
### Step 6: Verification
```bash
git branch -a
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
gh api repos/:owner/:repo/branches/main/protection
gh api repos/:owner/:repo --jq '{allow_squash_merge, allow_merge_commit, allow_rebase_merge}'
```
Show results to the user and confirm everything is correct.
## Completion
Report all configured settings and provide next steps for the Git workflow (branching, committing, PR creation).
## Absolute Prohibitions (Git Flow)
- main -> develop reverse flow (MOST IMPORTANT)
- Direct commits to main/develop branches
- Squash merge (destroys Git Flow history)
Files in this package (3)
- SKILL.md 4 KB
- references/codeowners-template.md 1 KB
- references/security-settings.md 1 KB
Versions
The database has no other skills named git-workflow-setup.
Database snapshot: 13.11.2026 · package version 06b11083d1c7 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100gh-protect
Audit or apply GitHub branch protection, tag rulesets, repo security settings, and signing requirements based on the active profile. TRIGGER when the user says "check branch protection", "audit GitHub protection", "apply branch protection", "enforce branch protection", "set up… - 100git-workflow-guide
Guide Git branching strategies, branch naming, and merge operations. Use when: creating branches, merging, pull requests, Git workflow questions. Not for: composing the commit message — use /commit; the safety checks around pushing — use /push. Keywords: branch, merge, PR, pull… - 100git-branch-pr-workflow
Branch management and PR workflows — git switch/restore, GitHub MCP. Use when creating branches, opening PRs, or working with feature branches. - 90setup
/factory:setup. Install Factory in the current repository on the user's consent: write .github/workflows/factory.yml from the Action's template, walk the Factory GitHub App creation, and apply the merge queue, branch protection, labels and Project board; or set up local mode on… - 100git-flow
Git branching, commit, and PR procedures. Use when creating branches, making commits, or opening pull requests. Enforces branch naming, commit message format, and PR rules. - 100git-workflow-automation
Comprehensive Git workflow automation including branching strategies, pull request creation, code reviews, merge strategies, and release management. Use when Claude needs to help with Git operations, branching models (Git Flow, GitHub Flow), pull request creation, code reviews,…