Skip to content
Skills Library
Programming · Learning & explanation

vcs

/vcs

This skill should be used when the user asks about "version control", "git workflow", "branching strategy", "commit messages", "conventional commits", "git hooks", "branch naming", "merge strategy", "PR requirements", "pull request process", or needs guidance on version control practices and Git configuration.

Licence
MIT
Last repository change
06.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 06.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

This skill should be used when the user asks about "version control", "git workflow", "branching strategy", "commit messages", "conventional commits", "git hooks", "branch naming", "merge strategy", "PR requirements", "pull request process", or needs guidance on version control practices and Git configuration.

Triggers from the description

version controlgit workflowbranching strategycommit messagesconventional commitsgit hooksbranch namingmerge strategy
Original author description

This skill should be used when the user asks about "version control", "git workflow", "branching strategy", "commit messages", "conventional commits", "git hooks", "branch naming", "merge strategy", "PR requirements", "pull request process", or needs guidance on version control practices and Git configuration.

How it works

  1. Tooling
  2. Branching Strategy
  3. Commit Message Standards
  4. Pull Request Process
  5. Git Configuration
  6. Merge Strategy
  7. Implementation Checklist
  8. Compliance Verification
  9. Additional Resources
Original SKILL.md headings · 266 lines, 796 words
SKILL.md preview
---
name: vcs
description: This skill should be used when the user asks about "version control", "git workflow", "branching strategy", "commit messages", "conventional commits", "git hooks", "branch naming", "merge strategy", "PR requirements", "pull request process", or needs guidance on version control practices and Git configuration.
version: 1.0.0
---

# Version Control Standards

Guidance for implementing version control requirements including branching strategies, commit conventions, and Git workflow configuration.

## Tooling

> **Available Tools**: If using Claude Code, the `gh` plugin provides Git workflow commands (`/gh:commit`, `/gh:pr`, `/gh:sync`). The `commit-commands` plugin offers commit automation (`/commit`, `/commit-push-pr`).

## Branching Strategy

### Branch Types (MUST)

Projects MUST use a defined branching strategy with these branch types:

| Branch Type | Naming Pattern | Purpose                    |
| ----------- | -------------- | -------------------------- |
| Main        | `main`         | Production-ready code      |
| Development | `develop`      | Integration branch         |
| Feature     | `feature/*`    | New functionality          |
| Bugfix      | `bugfix/*`     | Bug repairs                |
| Hotfix      | `hotfix/*`     | Emergency production fixes |
| Release     | `release/*`    | Release preparation        |

### Branch Protection (MUST)

Protected branches (`main`, `develop`) MUST require:

- Pull request reviews before merge
- Status checks passing
- No direct commits
- Linear history (recommended)

### Branch Naming (MUST)

Branch names MUST follow the pattern: `type/description-with-dashes`

**Good:**

```
feature/user-authentication
bugfix/login-timeout-error
hotfix/security-patch-cve-2024
release/v2.1.0
```

**Bad:**

```
my-branch
fix
Feature_UserAuth
```

## Commit Message Standards

### Conventional Commits (MUST)

Projects MUST use Conventional Commits format:

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

[optional body]

[optional footer(s)]
```

### Commit Types (MUST)

| Type       | Purpose                    |
| ---------- | -------------------------- |
| `feat`     | New feature                |
| `fix`      | Bug fix                    |
| `docs`     | Documentation only         |
| `style`    | Formatting, no code change |
| `refactor` | Code restructuring         |
| `perf`     | Performance improvement    |
| `test`     | Adding/updating tests      |
| `build`    | Build system changes       |
| `ci`       | CI configuration           |
| `chore`    | Maintenance tasks          |

### Message Requirements (MUST)

Commit messages MUST:

- Use imperative mood ("Add feature" not "Added feature")
- Keep subject line under 72 characters
- Separate subject from body with blank line
- Reference issues when applicable

### Breaking Changes (MUST)

Breaking changes MUST be indicated with:

- `!` after type/scope: `feat(api)!: change response format`
- `BREAKING CHANGE:` footer in body

### Commit Message Examples

**Good:**

```
feat(auth): add OAuth2 support for GitHub login

Implements OAuth2 flow for GitHub authentication.
Adds new configuration options for client credentials.

Closes #123
```

**Bad:**

```
fixed stuff
WIP
updates
```

## Pull Request Process

### PR Requirements (MUST)

Pull requests MUST include:

- Descriptive title following commit convention
- Summary of changes
- Testing instructions
- Link to related issues

### PR Template

```markdown
## Summary

Brief description of changes

## Changes

- Change 1
- Change 2

## Testing

How to test these changes

## Related Issues

Closes #123
```

### Review Requirements (MUST)

| Requirement              | Level                                 |
| ------------------------ | ------------------------------------- |
| Minimum reviewers        | MUST be at least 1                    |
| CI checks passing        | MUST pass                             |
| Code owner approval      | SHOULD be required for critical paths |
| Merge conflicts resolved | MUST be resolved                      |

## Git Configuration

### Required Git Hooks (SHOULD)

Projects SHOULD configure pre-commit hooks:

```yaml
# .pre-commit-config.yaml
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-added-large-files

  - repo: https://github.com/compilerla/conventional-pre-commit
    rev: v3.0.0
    hooks:
      - id: conventional-pre-commit
        stages: [commit-msg]
```

### Git Attributes (MUST)

Projects MUST define `.gitattributes` for consistent line endings:

```gitattributes
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
```

### Git Ignore (MUST)

Projects MUST maintain comprehensive `.gitignore` covering:

- Build artifacts
- IDE/editor files
- OS-specific files
- Dependency directories
- Environment files with secrets

## Merge Strategy

### Merge Methods (MUST)

Define allowed merge methods per branch:

| Target Branch | Allowed Methods      |
| ------------- | -------------------- |
| main          | Squash merge, Rebase |
| develop       | Merge commit, Squash |
| feature/\*    | Any                  |

### Squash Merge (SHOULD)

Squash merges SHOULD be used for feature branches to maintain clean history.

### Rebase Strategy (SHOULD)

Feature branches SHOULD be rebased on target before merge to resolve conflicts.

## Implementation Checklist

- [ ] Define branching strategy
- [ ] Configure branch protection rules
- [ ] Set up commit message validation
- [ ] Create PR template
- [ ] Configure pre-commit hooks
- [ ] Define `.gitattributes`
- [ ] Create comprehensive `.gitignore`
- [ ] Document merge strategy

## Compliance Verification

```bash
# Check branch protection (GitHub CLI)
gh api repos/{owner}/{repo}/branches/main/protection

# Validate commit message format
echo "feat(api): add endpoint" | commitlint

# Verify pre-commit hooks installed
pre-commit run --all-files

# Check gitattributes
git check-attr -a README.md
```

## Additional Resources

### Reference Files

- **`references/git-workflow.md`** - Detailed Git workflow guide
- **`references/commit-examples.md`** - Commit message examples

### Examples

- **`examples/.pre-commit-config.yaml`** - Pre-commit configuration
- **`examples/.gitattributes`** - Git attributes template
- **`examples/PULL_REQUEST_TEMPLATE.md`** - PR template

Versions

The database has no other skills named vcs.

Database snapshot: 13.11.2026 · package version 26c2fcc67c4a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100git-workflow
    Git workflow best practices. Covers branching, commits, and collaboration. Use for version control guidance. USE WHEN: user mentions "git", "commit", "branch", "pull request", "PR", "merge", "rebase", "version control", asks about "commit message", "branching strategy", "git…
  • 100git-commit-and-workflow
    Git commit, branch and pull request best practices using Conventional Commits. Use whenever creating commits, naming branches, preparing pull requests, writing commit messages, or when asked to commit, push, merge or release code.
  • 100git-workflow
    Git workflow best practices including commit messages, branching strategies, pull requests, and collaboration patterns. Use when working with Git version control.
  • 100git-workflow
    This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides…
  • 100git-workflow
    Git branching strategy, commit messages, PR workflow, conflict resolution. Use when setting up a branching strategy, writing commit messages, creating pull requests, or resolving merge conflicts.
  • 100git-flow
    Git branching, commit, and PR procedures. Use when creating branches, making commits, or opening pull requests. Enforces branch naming, commit message format, and PR rules.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.