PluginBench
Skill
Pass
Audit score 90

conventional-git

samber/cc-skills

How to install conventional-git

npx skills add https://github.com/samber/cc-skills --skill conventional-git
Claude Code
Cursor
Windsurf
Cline
Full instructions (SKILL.md)

Source of truth, from samber/cc-skills.


name: conventional-git description: Conventional Commits v1.0.0 branch naming, worktree naming, and commit message standards for GitHub and GitLab projects. Use when creating branches, naming worktrees, writing commits, generating commit messages, reviewing branch conventions, or setting up changelog automation. Apply when your project needs consistent git history, SemVer-driven releases, parseable changelog generation, or automatic issue closing. Trigger when the user asks how to name a worktree, create a git worktree, or organize worktrees alongside branches. user-invocable: true license: MIT compatibility: Designed for Claude Code or similar AI coding agents. Requires git. metadata: author: samber version: "1.2.0" openclaw: emoji: "๐Ÿ“" homepage: https://github.com/samber/cc-skills requires: bins: - git allowed-tools: Read Edit Write Glob Grep Bash(git:) Bash(gh:)

Conventional Commits & Branch Naming

Follow Conventional Commits v1.0.0 for both branch names and commit messages โ€” consistent naming lets tools auto-generate changelogs, enforce SemVer bumps, and filter history by concern.

Branch Naming

Format: <type>/[issue-]<description> โ€” lowercase, hyphens only, no special chars except /.

feat/user-authentication
feat/42-user-authentication
fix/login-race-condition
fix/87-login-race-condition
docs/api-reference-update
refactor/payment-module

Prefix with the issue number when one exists โ€” GitHub and GitLab auto-link it and it makes git log immediately traceable to the tracker. Keep the description under 50 characters โ€” most git UIs truncate branch names in lists around that length. Match the type to the work you're doing โ€” this is the contract readers use to understand the branch purpose at a glance.

NEVER include worktree in a branch name โ€” git worktrees are a local checkout mechanism, not a branch concept; the name would leak implementation details into the remote and confuse other contributors.

Worktree Naming

Worktrees are local checkout directories โ€” they never appear in the remote. Place them under .claude/worktrees/ and name them by replacing the branch / separator with -.

git worktree add .claude/worktrees/feat-user-authentication feat/user-authentication
git worktree add .claude/worktrees/fix-87-login-race-condition fix/87-login-race-condition

The directory name mirrors the branch name so git worktree list stays readable and each worktree is immediately traceable to its branch without inspecting the checkout. Run git worktree list before creating a new one โ€” reuse an existing worktree if it already covers the same branch.

Keep worktrees scoped to a single branch. Doing unrelated work inside someone else's worktree obscures which changes belong where and makes cleanup error-prone.

Remove the worktree once its branch is merged โ€” either after a local merge or after the pull/merge request is closed on the remote. Stale worktrees accumulate and make git worktree list unreadable.

git worktree remove .claude/worktrees/feat-user-authentication   # branch merged locally
git worktree prune                                                # remove refs to already-deleted directories

Commit Message Format

<type>[optional scope]: <description>
[optional body]
[optional footer(s)]

Types:

TypeSemVerWhen
featMINORNew feature
fixPATCHBug fix
docsโ€”Docs only
styleโ€”Formatting, no logic change
refactorโ€”Restructure, no feature/fix
perfโ€”Performance improvement
testโ€”Add/fix tests
buildโ€”Build system, deps
ciโ€”CI config
choreโ€”Anything else (not src/test)
revertโ€”Reverts a previous commit

Rules:

  • Subject line โ‰ค 72 characters โ€” git log and GitHub/GitLab UIs silently truncate longer subjects
  • Imperative mood: "add" not "added" โ€” reads as an instruction, not a history log
  • No capital letter, no trailing period โ€” enforces uniform parsing by changelog tools
  • Body separated by blank line โ€” parsers split header/body at the first blank line
  • Breaking changes: use ! after type/scope, or add BREAKING CHANGE: footer (triggers MAJOR bump) โ€” body-only descriptions are invisible to changelog tools
  • revert commits SHOULD include This reverts commit <hash>. in the body โ€” git revert generates this automatically; don't strip it
  • NEVER add a Claude signature, AI agent attribution, or Co-authored-by trailer for Claude or any other AI agent to commits

Examples:

feat(auth): add JWT token refresh
fix: prevent race condition on concurrent requests

Introduce request ID and reference to latest request.
Dismiss responses from stale requests.
refactor!: drop support for Go 1.18

BREAKING CHANGE: Go 1.18 no longer supported; uses stdlib APIs from 1.21+

Closing Issues via Commit Messages

Both GitHub and GitLab detect keywords in commit messages and automatically close the referenced issue when the commit lands on the default branch. Place the reference in the footer (preferred โ€” keeps the subject line clean).

Keywords: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved โ€” case-insensitive.

GitHub:

fix(auth): prevent token expiry race condition

Closes #42
Closes owner/repo#99
  • Triggers when merged into the default branch (usually main)
  • Cross-repo: Closes owner/repo#42
  • Close multiple: Closes #42, closes #43
  • Works in PR descriptions too

GitLab:

feat: add dark mode support

Resolves #101
Closes group/project#42
  • Triggers when merged into the default branch (configurable per project)
  • Cross-project: Closes group/project#42
  • Close multiple: Closes #101, closes #102
  • Works in MR descriptions too

Tip: Pair with the commit type โ€” fix: closing a bug issue, feat: closing a feature request โ€” keeps the changelog semantically coherent.

Common Mistakes

MistakeFix
feat: Added login pagefeat: add login page โ€” imperative, no capital
fix: fix bug.fix: fix bug โ€” no trailing period
Subject over 72 charsShorten; move detail to body
Breaking change only in bodyAdd ! or BREAKING CHANGE: footer โ€” tools won't detect body-only
feat(adding-auth): ...feat(auth): ... โ€” scope is a noun, not a verb
Closes #42 in subject lineMove to footer โ€” keeps subject clean and parseable

Best Practices

  • Align branch type and commit type โ€” feat/auth-* branch โ†’ feat(auth): commits
  • One concern per branch โ€” mixing fixes into feature branches obscures the changelog
  • Use scope consistently within a branch โ€” feat(auth): throughout, not feat(user): mid-way
  • Squash merge: when squash-merging a PR/MR, the branch commits are collapsed into one โ€” the PR/MR title becomes the commit message. If the title doesn't follow conventional commits format, changelog generation breaks silently. Always set the PR title before squashing.

Related skills

More from samber/cc-skills and the wider catalog.

CO

copywriting-hooks

samber/cc-skills

>

1.9k installsAudited
LI

linkedin-ghostwriting

samber/cc-skills

B2B LinkedIn ghostwriting โ€” strategic interview, hook engineering, and post body. Use when the user wants to write LinkedIn content, create ghostwritten posts, ghostwrite for a founder or executive, develop a B2B social strategy, or needs hooks, post structures, or copywriting frameworks for LinkedIn. Apply when the user shares a story, result, or insight and wants it turned into a post.

1.9k installsAudited
CO

copywriting-tone-of-voice-creator

samber/cc-skills

Build a brand tone of voice guide (TONE.md) via discovery, voice definition, and channel modulation. Outputs voice attributes with do's/don'ts, NN/g positioning, tone modulation matrix, lexicon, mechanics, and channel rules โ€” consumed by downstream content skills writing on-brand copy. Covers B2B SaaS, B2C/D2C, NGO, public sector, consulting, industrial, product-led, personal, and volunteering brands; researches uncovered contexts (politics, regulated niches, religious orgs, gaming) on demand. Also adapts an existing TONE.md to a new channel (blog โ†’ LinkedIn, web โ†’ Twitter/X, in-product UI). Optionally consumes SOUL.md to pre-fill brand identity. Apply when the user wants to create a TONE.md, define brand voice, port voice to a new channel, refresh an outdated voice, or set up a content factory writing across many supports. Not for writing individual posts, articles, emails, or UI strings (โ†’ dedicated writing skills), nor SOUL.md, PROSE.md, DESIGN.md.

1.9k installs
TE

technical-article-writer

samber/cc-skills

Write compelling technical articles and blog posts for developer audiences. Use this skill whenever the user asks to write a blog post, technical article, or any long-form technical content. Also trigger when the user says 'write about [technical topic]', 'help me draft an article', 'turn this into a blog post', 'write a post about', 'I want to publish something about', or mentions writing for a developer audience. Covers the full pipeline: idea sharpening, hook/title generation, article structure, body drafting, and editing. Even if the user just says 'I want to write about X' without specifying format, use this skill. Do NOT use for platform-specific optimization, newsletter strategy, or ghostwriting voice matching.

1.9k installsAudited
CO

copywriting-cta

samber/cc-skills

Design end-of-article CTAs (calls-to-action placed at the bottom of blog posts, newsletters, essays, articles, or any long-form content). Use this skill whenever the user asks to write, design, review, or improve a CTA at the bottom of an article, blog post, or essay; mentions "end-of-post CTA", "bottom of the article", "call-to-action", "signup box", "newsletter CTA", "subscribe block", "what should I put at the bottom", "how do I get readers to subscribe / share / book a call / buy / follow / join / download"; or asks how to convert article readers into subscribers, leads, customers, community members, or supporters. Also trigger when the user wants A/B testing guidance or accessibility review for a CTA block. Covers independent / personal writing, newsletter publications, and brand / content-marketing blogs across any topic โ€” tech, finance, food, climate, design, lifestyle, B2B, B2C. Produces both the copy (content) and the structural / visual design (form), matched to the user's objective and audience.

1.9k installsAudited
SU

substack-ghostwriting

samber/cc-skills

Write, optimize, and grow Substack content โ€” both newsletter issues (email-first) and web posts (web-first articles/essays). Covers ghostwriting with voice matching, Substack algorithm optimization, Notes strategy, email formatting, SEO, growth tactics, and monetization planning. Use when the user mentions Substack, newsletters, write a newsletter issue, Substack post, Substack article, web post on Substack, evergreen content, SEO for Substack, newsletter growth, Notes strategy, ghostwrite for, match someone's voice, write in the style of, newsletter monetization, paid subscribers, or any task involving Substack as a platform. Also trigger for general article/newsletter writing even if Substack isn't named explicitly, or when the user wants to adapt existing content (blog post, talk, thread) into newsletter or web post format. Do NOT use for generic blog post writing without a newsletter/Substack context (-> See samber/cc-skills@technical-article-writer skill).

1.9k installs