/commit:commitfrom commit
Create git commits with conventional commit messages. Use when user says /commit.
Ships in commit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create standardized git commits following Conventional Commits specification. Analyzes changes to determine appropriate type, scope, and message.
/commit configure (run once per project)/commit (uses saved scopes)/commit learn (re-analyze scopes from recent commits)| Command | Purpose | When to Use |
|---|---|---|
/commit configure | Analyze project for commit scopes | First time in a project |
/commit learn | Update scopes from recent commits | After project changes |
/commit | Create commit using saved scopes | Normal usage |
When: First time using /commit in a project
What it does:
1. SCAN PROJECT STRUCTURE
├─ Top-level src/ directories
├─ Workspace packages (package.json workspaces)
├─ Go modules (go.work)
└─ Python packages (pyproject.toml)
2. ANALYZE COMMIT HISTORY
├─ Extract scopes from last 100 commits
├─ Count frequency of each scope
└─ Identify naming patterns
3. PROPOSE TO USER
└─ Show discovered scopes, wait for approval
# Proposed Commit Configuration
# Review and approve to save to .claude/skills/commit.yaml
scopes:
- name: api
description: "REST API endpoints"
paths: ["src/api/", "api/"]
- name: auth
description: "Authentication and authorization"
paths: ["src/auth/", "src/middleware/auth"]
- name: db
description: "Database and migrations"
paths: ["src/db/", "migrations/"]
- name: ui
description: "User interface components"
paths: ["src/components/", "src/pages/"]
- name: core
description: "Core business logic"
paths: ["src/core/", "src/domain/"]
- name: infra
description: "Infrastructure and deployment"
paths: ["infra/", "terraform/", "k8s/"]
- name: deps
description: "Dependencies"
paths: ["package.json", "go.mod", "Cargo.toml"]
- name: ci
description: "CI/CD configuration"
paths: [".github/", ".gitlab-ci.yml"]
types:
changelog_worthy: [feat, fix, perf]
internal: [chore, ci, test, docs, style, refactor, build]
rules:
max_title_length: 50
require_scope: false
require_body: false
forbidden_words: ["stuff", "things", "misc", "update", "improve"]
Config path depends on the installation model. Detect which model is active by checking whether this skill is running from inside .claude/skills/commit/ (my-workflow) or from an external plugin directory (standalone).
| Installation Model | Config File | How to Detect |
|---|---|---|
| Standalone (external plugin) | .claude/skills/commit.yaml | Skill files are NOT inside .claude/skills/commit/ |
| my-workflow (copied into project) | .claude/skills/commit/commit.yaml | Skill files ARE inside .claude/skills/commit/ |
Precedence when reading (first found wins):
.claude/skills/commit/commit.yaml (my-workflow installation).claude/skills/commit.yaml (standalone installation)When: Project structure changed, want to update scopes
What it does:
When: Creating a commit
Reads config from (first found):
.claude/skills/commit/commit.yaml (copied installation).claude/skills/commit.yaml (plugin installation)1. PRE-COMMIT CHECKS (before any commit)
├─ Check not on main/master branch
├─ Check no secrets in staged files (.env, credentials, .pem, .key)
└─ STOP if any check fails
2. ANALYZE CHANGES
├─ git status --porcelain
├─ git diff --staged
└─ git diff (unstaged)
3. DETERMINE SCOPE
└─ Match changed files to scopes from config
4. GENERATE MESSAGE
├─ Type: from change analysis
├─ Scope: from config mapping
└─ Subject: from change description
5. USER CONFIRMATION
└─ Show message, wait for approval
6. EXECUTE COMMIT
└─ git commit with approved message
<type>(<scope>): <subject>
<optional body - 1-2 sentences>
| Type | Purpose | Changelog |
|---|---|---|
feat | New feature | Yes |
fix | Bug fix | Yes |
docs | Documentation only | No |
style | Formatting (no logic) | No |
refactor | Code refactor | No |
perf | Performance improvement | Yes |
test | Add/update tests | No |
build | Build system/deps | No |
ci | CI/config changes | No |
chore | Maintenance | No |
revert | Revert commit | Yes |
STRICTLY FORBIDDEN - Never include:
Co-Authored-By: Claude or any AI nameGood:
feat(auth): add OAuth2 login support
Adds Google and GitHub OAuth providers.
fix(api): handle null response from external service
refactor(db): extract query builder to separate module
Bad:
chore: update stuff (vague)feat(api): improved performance (past tense)docs: add file to docs folder (file-focused)# .claude/skills/commit.yaml (plugin installation)
# .claude/skills/commit/commit.yaml (copied installation)
version: 1
discovered_at: "ISO timestamp"
scopes:
- name: "scope-name"
description: "what it covers"
paths: ["paths/", "that/match/"]
types:
changelog_worthy: [feat, fix, perf]
internal: [chore, ci, test, docs, style, refactor, build]
rules:
max_title_length: 50
require_scope: false
require_body: false
forbidden_words: []
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dohernandez/claude-skills --plugin commit