基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
| name | git-workflow |
| description | Git: Branch strategy, Commit patterns, Merge vs Rebase, When to use what. |
| triggers | {"keywords":["git","branch","commit","PR","merge","rebase","workflow","conventional commits"]} |
| auto_load_when | Git workflow decisions or commit standards |
| agent | researcher |
| tools | ["Read","Write","Bash"] |
Focus: Branching, commits, collaboration
Branch types:
├── main: production-ready, never force push
├── develop: integration branch, feature base
├── feature/*: new features, from develop
├── release/*: release preparation, from develop
└── hotfix/*: production fixes, from main
Flow:
develop → feature → develop → release → main → hotfix → main
When to create branches:
When to commit:
├── Logical unit complete
├── Tests pass
└── Works locally
Message format:
├── <type>: <description>
├── Types: feat, fix, docs, style, refactor, test, chore
├── Description: imperative, lowercase, short
└── Body: optional, explanation
What to include:
├── What changed
├── Why (if not obvious)
└── How (if complex)
When to merge:
├── Feature branch into develop
├── Long-lived branches
└── Public/shared branches
└── Preserves history exactly
When to rebase:
├── Local feature branch updates
├── Keep history linear
├── Clean up commit history
└── Before PR review
NEVER rebase:
├── Public/shared branches
├── Main/master branch
└── Already pushed branches (if shared)
Before creating PR:
├── Tests pass locally
├── Code formatted
├── Rebased on target branch
└── Self-reviewed changes
PR best practices:
├── Small PRs (easier to review)
├── Clear description
├── Screenshots for UI
└── Related issues linked
Review feedback:
├── Address all comments
├── Don't take personally
├── Ask for clarification if unclear
└── Re-request review after changes
How to organize commits:
├── First commit: setup/scaffolding
├── Middle: logical steps
├── Last commit: final touches
└── Squash: clean before merge
Atomic commits:
├── One logical change per commit
├── Can be understood alone
├── Tests related changes together
Squash merge (GitHub default):
├── When: feature branch has multiple commits
├── Good for: clean history on main
└── Preserves: feature branch temporarily
Rebase:
├── When: update local branch with main
├── Good for: clean, linear history
└── Use on: local branches only
Merge:
├── When: combining branches
├── Good for: preserving history
└── Use on: long-lived branches
❌ Force-pushing to main/master
✅ Protected branches + PR reviews — no direct push
❌ Commits like "fix", "WIP", "misc"
✅ Conventional Commits: feat(scope): description
❌ One giant commit per PR
✅ Atomic commits — each commit passes tests independently
❌ Long-lived feature branches (> 2 days)
✅ Trunk-based development with feature flags for incomplete work
❌ Merging without squashing messy WIP commits
✅ Squash-and-merge for clean main history
| Scenario | Command | Note |
|---|---|---|
| New feature | git checkout -b feat/name | Branch from main |
| Sync branch | git rebase main | Not merge — cleaner history |
| Interactive rebase | git rebase -i HEAD~N | Squash WIP commits |
| Undo last commit | git reset --soft HEAD~1 | Keeps changes staged |
| Cherry-pick | git cherry-pick | Port specific commit |
| Stash | git stash push -m "WIP: description" | Named stash |