Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/intelligentcode-ai-branch-protection
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/branch-protection
What's inside
- Skill name
branch-protection- Description
- Activate when performing git operations. MANDATORY by default - prevents direct commits to main/master, blocks destructive operations (force push, reset --hard). Enforces dev-first workflow where all changes go to dev before main. Assumes branch protection enabled unless disabled in settings.
- License
- MIT
- Instructions
- 121 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Branch Protection Skill
**MANDATORY by default.** Branch protection is assumed enabled unless explicitly disabled.
## Branch Hierarchy (CRITICAL)
```
main ← STABLE RELEASE ONLY (production-ready)
↑
dev ← INTEGRATION BRANCH (all features merge here first)
↑
feature/* ← DEVELOPMENT (where work happens)
fix/*
chore/*
```
### Workflow Rules
| From | To | Method | When |
|------|----|--------|------|
| feature/* | dev | PR | When feature is complete and tested |
| fix/* | dev | PR | When fix is ready |
| dev | main | PR | When dev is stable and release-ready |
**NEVER merge directly to main from feature branches.**
## Default Behavior
Branch protection is ON unless `git.branch_protection=false` in `ica.config.json`:
```json
{
"git": {
"branch_protection": false
}
}
```
## Protected Branches
- `main` - Stable releases only (from dev PRs)
- `dev` - Integration branch (from feature PRs)
- Configurable via `git.default_branch` setting
## Rules
### NEVER Do (Unless User Explicitly Requests)
```bash
# Direct commit to protected branch
git checkout main && git commit
git checkout dev && git commit
# Force push
git push --force
# Destructive operations
git reset --hard
git checkout .
git restore .
git clean -f
git branch -D
# PR directly to main (WRONG!)
gh pr create --base main # Only for releases!
```
### ALWAYS Do
```bash
# Work on feature branch
git checkout -b feature/my-change
# Commit to feature branch
git commit -m "feat: Add feature"
# Push feature branch
git push -u origin feature/my-change
# Create PR to DEV (not main!)
gh pr create --base dev
```
## Commit Workflow
1. **Create branch**: `git checkout -b feature/description`
2. **Make changes**: Edit files
3. **Test**: Run tests
4. **Commit**: `git commit -m "type: description"`
5. **Push**: `git push -u origin feature/description`
6. **PR to dev**: `gh pr create --base dev`
7. **Merge to dev**: Via PR after approval
8. **Release to main**: Separate PR from dev → main (when stable)
## Self-Check Before Git Operations
1. Am I on a feature branch? → If on main/dev, create branch first
2. Is this destructive? → Only proceed if user explicitly requested
3. Am I PRing to main? → Should this go to dev first?
4. Is this a release? → Only then PR to main
## Release Process
Only create PRs to main when:
1. Dev branch is stable and tested
2. All features for release are merged to dev
3. User explicitly requests a release
```bash
# Release workflow (dev → main)
git checkout dev
git pull origin dev
git checkout -b release/v10.2.0
gh pr create --base main --title "release: v10.2.0"
```
## Integration
Works with:
- git-privacy skill - No AI attribution in commits
- commit-pr skill - Commit message formatting, defaults PR to dev
- process skill - Development workflow phases (including Phase 4: Release)From intelligentcode-ai/skills, MIT.
More from intelligentcode-ai/skills
- 0.437score
github-state-tracker
intelligentcode-ai
Retrieve, normalize, and report GitHub issue state continuously with prioritization and parent-child awareness.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
github-issues-planning
intelligentcode-ai
Plan and structure GitHub Issues work for epics, stories, bugs, findings, and work-items with consistent labels, priorities, and parent-child links.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
agent-browser
intelligentcode-ai
Use when you need to reproduce or debug web UI flows (especially auth/OIDC) via the Agent Browser CLI, capture snapshots/screenshots, and extract redirect…
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
ai-engineer
intelligentcode-ai
Activate when user needs AI/ML work - model integration, behavioral frameworks, intelligent automation.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
architect
intelligentcode-ai
Activate when user needs architectural decisions, system design, technology selection, or design reviews.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
backend-tester
intelligentcode-ai
Activate when user needs API or backend testing - REST/GraphQL validation, integration tests, database verification.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
create-work-items
intelligentcode-ai
Create and classify typed work items (epic, story, feature, bug, finding, work-item) in the configured tracking backend.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
database-engineer
intelligentcode-ai
Activate when user needs database work - schema design, query optimization, migrations, data modeling.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
developer
intelligentcode-ai
Activate when user asks to code, build, implement, create, fix bugs, refactor, or write software.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
devops-engineer
intelligentcode-ai
Activate when user needs CI/CD or deployment work - pipeline design, deployment automation, release management.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
best-practices
intelligentcode-ai
Activate when starting new work to check for established patterns.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
git-privacy
intelligentcode-ai
Activate when performing git commits, creating pull requests, or any git operation.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Feb 14, 2026 (8 months ago)
- Last release
- Feb 16, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/intelligentcode-ai/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from intelligentcode-ai
- 0.437score
github-state-tracker
intelligentcode-ai
Retrieve, normalize, and report GitHub issue state continuously with prioritization and parent-child awareness.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
github-issues-planning
intelligentcode-ai
Plan and structure GitHub Issues work for epics, stories, bugs, findings, and work-items with consistent labels, priorities, and parent-child links.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
developer
intelligentcode-ai
Activate when user asks to code, build, implement, create, fix bugs, refactor, or write software.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
architect
intelligentcode-ai
Activate when user needs architectural decisions, system design, technology selection, or design reviews.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
agent-browser
intelligentcode-ai
Use when you need to reproduce or debug web UI flows (especially auth/OIDC) via the Agent Browser CLI, capture snapshots/screenshots, and extract redirect…
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
ai-engineer
intelligentcode-ai
Activate when user needs AI/ML work - model integration, behavioral frameworks, intelligent automation.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
branch-protection skill. Agent Mart. https://agentmart.dev/skills/intelligentcode-ai-branch-protection (last updated 2026-10-24)