Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

git-workflow

БесплатноБез исполняемых скриптовНе проверен

Git best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching…

AsyrafHussinот AsyrafHussin★ 112 звёзд на GitHub4 установки в других каталогах

Об этом скилле

Git Workflow

Git best practices, commit conventions, branching strategies, and pull request workflows. Guidelines for maintaining a clean, useful git history.

When to Apply

Reference these guidelines when:

  • Writing commit messages
  • Creating branches
  • Setting up git workflows
  • Reviewing pull requests
  • Maintaining git history

Rule Categories by Priority

Priority Category Impact Prefix
1 Commit Messages CRITICAL commit-
2 Branching Strategy HIGH branch-
3 Pull Requests HIGH pr-
4 History Management MEDIUM history-
5 Collaboration MEDIUM collab-

Quick Reference

1. Commit Messages (CRITICAL)

  • commit-conventional-format - Use conventional commits
  • commit-atomic-changes - Atomic commits (one logical change)
  • commit-imperative-mood - Use imperative present tense
  • commit-meaningful-subject - Descriptive, meaningful messages
  • commit-body-context - Add body for complex changes
  • commit-breaking-changes - Mark breaking changes (! and BREAKING CHANGE:)
  • commit-references - Reference issues/tickets
  • commit-git-hooks - Enforce standards with Husky + commitlint

2. Branching Strategy (HIGH)

  • branch-naming-convention - Consistent branch naming
  • branch-feature-workflow - Feature branch workflow
  • branch-main-protected - Protect main branch
  • branch-short-lived - Keep branches short-lived
  • branch-delete-merged - Delete merged branches
  • branch-release-strategy - Release branch strategy
  • branch-workflow-strategies - GitFlow vs GitHub Flow vs Trunk-Based
  • branch-monorepo - Monorepo git workflows

3. Pull Requests (HIGH)

  • pr-small-focused - Keep PRs small and focused
  • pr-description-template - Write clear descriptions
  • pr-reviewers - Request appropriate reviewers
  • pr-ci-checks - Ensure CI passes
  • pr-squash-merge - Squash when appropriate
  • pr-draft-usage - Use draft PRs for WIP and early feedback

4. History Management (MEDIUM)

  • history-rebase-vs-merge - Rebase vs merge
  • history-no-force-push - Avoid force push to shared branches
  • history-clean-commits - Keep history clean
  • history-tags-releases - Use tags for releases
  • history-worktree - Work on multiple branches with git worktree

5. Collaboration (MEDIUM)

  • collab-code-review - Effective code reviews
  • collab-conflict-resolution - Handle merge conflicts
  • collab-communication - Communicate changes
  • collab-gitignore - .gitignore best practices

Essential Guidelines

Conventional Commits

# Format
<type>(<scope>): <subject>

<body>

<footer>

Types

Type Description
feat New feature
fix Bug fix
docs Documentation only
style Formatting, no code change
refactor Code change, no feature/fix
perf Performance improvement
test Adding/updating tests
chore Maintenance, dependencies
ci CI/CD changes
build Build system changes
revert Revert previous commit

Examples

# ✅ Good commit messages
feat(auth): add password reset functionality

fix(cart): resolve quantity update race condition

docs(readme): add installation instructions

refactor(api): extract validation into middleware

test(user): add unit tests for registration

chore(deps): update dependencies to latest versions

# With body and footer
feat(orders): implement order cancellation

Add ability for users to cancel pending orders within 24 hours.
Cancelled orders trigger refund process automatically.

Closes #123
BREAKING CHANGE: Order status enum now includes 'cancelled'

# ❌ Bad commit messages
fix bug
update
WIP
asdfasdf
changes
misc fixes

Branch Naming

# ✅ Good branch names
feature/user-authentication
feature/JIRA-123-password-reset
fix/cart-total-calculation
fix/issue-456-login-redirect
hotfix/security-patch
docs/api-documentation
refactor/database-queries
chore/update-dependencies

# ❌ Bad branch names
new-feature
john-branch
test
fix
temp
asdf

Branch Workflow

# Main branches
main          # Production-ready code
develop       # Integration branch (optional)

# Supporting branches
feature/*     # New features
fix/*         # Bug fixes
hotfix/*      # Production hotfixes
release/*     # Release preparation

# Workflow
git switch main
git pull origin main
git switch -c feature/user-profile   # older: git checkout -b

# Work on feature...
git add .
git commit -m "feat(profile): add profile page"

# Keep branch updated
git fetch origin
git rebase origin/main

# Push and create PR
git push -u origin feature/user-profile

Atomic Commits

# ❌ One commit doing multiple things
git commit -m "Add login, fix header, update deps"

# ✅ Separate commits for each change
git commit -m "feat(auth): add login page"
git commit -m "fix(header): correct navigation alignment"
git commit -m "chore(deps):
Полный SKILL.md на GitHub

Установить git-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdREADME.mdmetadata.jsonrules/_sections.mdrules/_template.mdrules/branch-delete-merged.mdrules/branch-feature-workflow.mdrules/branch-main-protected.mdrules/branch-monorepo.mdrules/branch-naming-convention.mdrules/branch-release-strategy.mdrules/branch-short-lived.mdrules/branch-workflow-strategies.mdrules/collab-code-review.mdrules/collab-communication.mdrules/collab-conflict-resolution.mdrules/collab-gitignore.mdrules/commit-atomic-changes.mdrules/commit-body-context.mdrules/commit-breaking-changes.mdrules/commit-conventional-format.mdrules/commit-git-hooks.mdrules/commit-imperative-mood.mdrules/commit-meaningful-subject.mdrules/commit-references.mdrules/history-clean-commits.mdrules/history-no-force-push.mdrules/history-rebase-vs-merge.mdrules/history-tags-releases.mdrules/history-worktree.mdrules/pr-ci-checks.mdrules/pr-description-template.mdrules/pr-draft-usage.mdrules/pr-reviewers.mdrules/pr-small-focused.mdrules/pr-squash-merge.md

FAQ

Что делает скилл git-workflow?

Git best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching strategy, or improving git practices. Triggers on "git best practices", "commit message", "branching strategy", or "PR workflow".

Как установить скилл git-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git-workflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить git-workflow с