Command Palette

Search for a command to run...

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

version-control

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

Expert guidance for Git version control, trunk-based development workflows, and GitHub best practices. Emphasizes Conventional Commits for clean history…

jkitchinот jkitchin★ 45 звёзд на GitHub17 установок в других каталогах

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

Version Control & Git Workflow Skill

Guide users through professional version control practices using Git with trunk-based development, Conventional Commits, and GitHub integration.

Core Philosophy

Trunk-Based Development:

  • Keep main branch always deployable
  • Short-lived feature branches (days, not weeks)
  • Frequent integration to main
  • Small, incremental changes
  • Continuous integration mindset

Conventional Commits:

  • Structured, semantic commit messages
  • Enables automated tooling (changelogs, versioning)
  • Clear intent and scope in history
  • Searchable, filterable commits

GitHub Integration:

  • Pull requests for code review
  • Branch protection for main
  • CI/CD with GitHub Actions
  • Clear PR descriptions and discussions

Trunk-Based Development Workflow

The Main Branch

  • Always deployable - Main branch should always be in working state
  • Protected - Require PRs, reviews, passing CI
  • Source of truth - All branches stem from and merge back to main
  • No long-lived branches - Avoid develop, staging branches

Feature Branch Workflow

1. Start from main:

git checkout main
git pull origin main
git checkout -b feat/user-authentication

2. Make small, focused changes:

  • One feature/fix per branch
  • Commit frequently with Conventional Commits
  • Keep branch lifespan short (1-3 days ideal)

3. Stay synchronized:

# Update from main frequently
git checkout main
git pull origin main
git checkout feat/user-authentication
git rebase main  # Keep history linear

4. Push and create PR:

git push -u origin feat/user-authentication
# Create PR on GitHub

5. After PR approval:

# Squash merge or merge commit to main
# Delete feature branch immediately
git checkout main
git pull origin main
git branch -d feat/user-authentication

Branch Naming Conventions

Pattern: <type>/<short-description>

Types match Conventional Commit types:

  • feat/add-oauth-login - New feature
  • fix/authentication-timeout - Bug fix
  • refactor/database-queries - Code refactoring
  • docs/api-endpoints - Documentation
  • test/user-service - Tests only
  • chore/update-dependencies - Maintenance

Keep descriptions short, lowercase, hyphen-separated.

Conventional Commits

Format

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

<body>

<footer>

Required: type, subject Optional: scope, body, footer

Types

feat: New feature for users

feat(auth): add OAuth2 authentication

fix: Bug fix

fix(api): handle null response in user endpoint

docs: Documentation changes

docs(readme): update installation instructions

style: Code style/formatting (no logic change)

style(components): fix indentation in Button

refactor: Code restructuring (no behavior change)

refactor(database): extract query builder class

perf: Performance improvement

perf(images): implement lazy loading

test: Adding or updating tests

test(auth): add integration tests for login flow

build: Build system or dependencies

build(deps): upgrade React to v18.2

ci: CI/CD configuration

ci(github): add automated deployment workflow

chore: Maintenance tasks

chore(deps): update development dependencies

revert: Revert previous commit

revert: revert "feat(auth): add OAuth2 authentication"

Scope

Optional but recommended. Indicates what part of codebase changed:

  • feat(api): - API changes
  • fix(ui): - UI fix
  • refactor(database): - Database refactoring
  • feat(auth): - Authentication feature

Use project-specific scopes that make sense for your codebase.

Subject Rules

  • Use imperative mood: "add" not "added" or "adds"
  • No capitalization of first letter
  • No period at the end
  • Keep under 50 characters
  • Complete the sentence: "If applied, this commit will..."

Good:

feat(api): add user profile endpoint
fix(auth): prevent token expiration race condition

Bad:

feat(api): Added user profile endpoint.
fix(auth): Fixes a bug
Update stuff

Body (Optional)

  • Explain what and why, not how
  • Wrap at 72 characters
  • Separate from subject with blank line
  • Use bullet points for multiple points
feat(search): implement full-text search

- Add PostgreSQL full-text search indexes
- Create search API endpoint with pagination
- Implement search result ranking by relevance

This enables users to search across all content with better
performance than previous LIKE queries.

Footer (Optional)

Breaking changes:

feat(api): change authentication endpoint

BREAKING CHANGE: /auth/login moved to /api/v2/auth/login

Issue references:

fix(ui): prevent modal from closing on backdrop click

Fixes #123
Closes #456

Examples

Simple feature:

feat(dashboard): add user activity chart

Bug fix with details:

fix(api): handle network timeout errors

Previous
Полный SKILL.md на GitHub

Установить version-control в Claude Code и Claude Desktop

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

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

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

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

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

*

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

QUICK_REFERENCE.mdREADME.mdassets/templates/commit-message-template.mdassets/templates/pr-template.mdexamples/commit-examples.mdreferences/advanced-git.mdreferences/conventional-commits.mdreferences/git-commands.mdreferences/github-workflow.mdreferences/troubleshooting.mdreferences/trunk-based-development.md

FAQ

Что делает скилл version-control?

Expert guidance for Git version control, trunk-based development workflows, and GitHub best practices. Emphasizes Conventional Commits for clean history, short-lived feature branches, frequent integration, and professional collaboration patterns. Use when users need help with git commands, branching strategies, commit messages, PRs, merge conflicts, or git troubleshooting. Triggers include 'git,' 'commit,' 'branch,' 'merge,' 'rebase,' 'PR,' 'pull request,' or version control questions.

Как установить скилл version-control?

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

Скилл version-control запускает скрипты?

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

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

Сравнить version-control с