git-workflow
БесплатноБез исполняемых скриптовНе проверенGit workflow covering branch management, normalized commits, remote sync, with staged operation flows. Supports git commit, push, pull, branch, smart commit…
от fize269 установок в других каталогахОб этом скилле
Git Workflow Skill
Quick Start
/git-workflow commit: Smart commit with auto-splitting/git-workflow push: Safe push with auto-sync/git-workflow pull: Safe pull with rebase/git-workflow branch <name>: Create and switch to branch (safe mode)/git-workflow status: Show current Git status with suggestions
Core Features
1. Staged Operation Flows
Automatically select appropriate Git operation flow based on development stage:
| Stage | Trigger Condition | Operation Flow |
|---|---|---|
| Initialize | New feature/fix starts | Sync remote → Create branch → Initial commit (if needed) |
| Develop | Has staged changes | Smart split → Generate commit → Verify |
| Complete | Feature development complete | Rebase/Squash commits → Push to remote |
| Maintain | Daily maintenance | Pull --rebase → Resolve conflicts → Continue development |
2. Smart Commit Splitting
Auto-split logic (minimize user confirmation):
- Analyze file paths and modification intent
- Group by functional relevance (same directory/feature → likely same group)
- Cross-directory modifications (e.g.,
src/+docs/) → force split - Default behavior: Auto-split and commit directly, only prompt if uncertain
- Configurable: User can set
GIT_FLOW_AUTO_SPLIT=true/false
Split Logic Example:
Detected 5 file changes:
Group 1 (feature A): src/auth/oauth2.py, tests/test_oauth2.py
Group 2 (feature B): src/utils/token.py, tests/test_token.py
Group 3 (docs): docs/auth.md
Auto-splitting into 3 commits...
[1/3] feat(auth): add OAuth2 login support
[2/3] feat(utils): add token utility functions
[3/3] docs(auth): update auth module documentation
Committing...
✅ All commits created successfully
If uncertain about splitting:
Detected 4 files changed:
Group 1: src/auth/oauth2.py, src/utils/token.py
Group 2: tests/test_oauth2.py, tests/test_token.py
Suggested split (uncertain about grouping):
1. feat(auth): add OAuth2 login and token utils
2. test(auth): add tests for OAuth2 and token utils
Confirm? [Yes/Adjust/Cancel]
3. Safe Branch Operations
Always sync remote first before creating/switching branches:
git fetch origin- Check if local has uncommitted changes
- If yes → auto-stash (if
GIT_FLOW_AUTO_STASH=true) or prompt user
- If yes → auto-stash (if
- Check if local branch is behind remote
- If behind → auto-pull or prompt user
- Auto-detect if current branch complies with naming conventions
Branch Naming Convention:
- Format:
feat/xxx,fix/xxx,refactor/xxx,docs/xxx,test/xxx,chore/xxx - Auto-generate branch name from commit message or PRD content
- Validate branch name format before creation
Example: Create Branch (Safe Mode):
User: /git-workflow branch feat/user-profile
AI: Syncing with remote...
✅ Remote sync complete
✅ Current branch: main (clean working tree)
Creating branch...
✅ Branch created: feat/user-profile
✅ Switched to new branch
If local has uncommitted changes:
User: /git-workflow branch feat/user-profile
AI: Syncing with remote...
✅ Remote sync complete
⚠️ Uncommitted changes detected:
M src/auth.py
?? new_file.py
Options:
1. Auto-stash changes, apply after switch
2. Cancel and commit changes first
Choose [1/2]:
4. Normalized Commits
4.1 Commit Message Generation
- Auto-generate conventional commit messages based on diff content
- Format:
<type>(<scope>): <subject> - Subject length limit:
- English: ≤ 50 characters
- Chinese: ≤ 25 characters
- Body is optional, only added for complex changes (≤ 72 chars/line, max 3 lines)
4.2 Commit Types
| Type | Description | Example |
|---|---|---|
feat |
New feature | feat(auth): add OAuth2 login support |
fix |
Bug fix | fix(login): fix null password bypass vulnerability |
refactor |
Refactoring | refactor(auth): extract auth logic into separate module |
perf |
Performance improvement | perf(query): optimize user query SQL index |
docs |
Documentation | docs(api): update REST API documentation |
test |
Testing | test(auth): add OAuth2 login test cases |
chore |
Build/tool changes | chore(deps): upgrade flask to 3.0 |
ci |
CI configuration | ci(gitlab): add multi-stage pipeline |
5. Remote
Установить git-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(git:*)FAQ
Что делает скилл git-workflow?
Git workflow covering branch management, normalized commits, remote sync, with staged operation flows. Supports git commit, push, pull, branch, smart commit splitting and safe branch operations. Use for git operations such as commit, push, pull, and branch management, or when scenario-standards reaches implementation or DevOps. Triggers include `/git-workflow`, git 工作流, commit, 提交, push, 推送, pull, 拉取, branch, 分支, 暂存, staged, 拆分, split.
Как установить скилл git-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic