Skip to content
Back to skills

Scope Commit

ASecurity

Writes commit messages in Scoped Commits form: a `<scope>: <description>` subject and a body only for the why. Use before running any `git commit`, including `--amend` and a squash or fold, and for "write a commit", "commit message", "commit this" or /commit. MR/PR descriptions: use `scope-mr` instead.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgitapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add nshopik/dream-team --skill scope-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scope Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scope Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nshopik-scope-commit/badge)](https://www.skillsdirectory.com/skills/nshopik-scope-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scope-commit
description: >
  Writes commit messages in Scoped Commits form: a `<scope>: <description>` subject and a
  body only for the why. Use before running any `git commit`, including `--amend` and a squash
  or fold, and for "write a commit", "commit message", "commit this" or /commit. MR/PR
  descriptions: use `scope-mr` instead.
---

Subject `<scope>: <description>`. Body = the why. Most commits don't need one.

## subject

### Shape

- `<scope>: <description>`. Scope lowercase.
- Imperative: "add", "fix", "remove". Never "added" / "adds" / "adding".
- ≤50 chars target. 72 hard cap.
- No trailing period.

### Scope

- Names the area touched: `ansible:`, `preseed:`, `docs:`, `watchdog:`.
- Never the kind of change: no `feat:`, `feature:`, `chore:`, `perf:`, `style:`.
- Several areas → one broader scope. Else comma-separate.
- Tree-wide → `treewide:`.
- A project `CLAUDE.md` or `AGENTS.md` scope vocabulary or stricter pattern wins.
- An upstream repo's subject format, from its CONTRIBUTING or `git log`, wins over the
  kind-of-change ban (`fix(ntpq)!: …`); the body rules still apply.

## commit-style

### When a body earns its place

- Default: no body.
- Write one only to carry a fact the diff cannot show: the original problem, why this
  approach, a known limit.
- Name that fact before you start. Can't name it → padding.
- Runs past one paragraph → padding.
- Always a body: breaking changes, security fixes, data migrations.

### Content

- Cite, don't restate. Issues and `docs/decisions/` by number.
- A diff that is itself prose — docs, rules, comments, config — is cited the same way,
  never re-explained.
- No work log: verification output, test counts, sweep tables. CI's job.
- No review-facing content. That is the MR description.

### Format

- ~80 words the shape. 160 hard cap. Length tracks rationale, not diff size.
- Wrap at 72 columns (`git log` indents four; patches stay under RFC 2822's 78).
- Bullets `-`, never `*`.
- Issue refs (`Closes #42`) on their own line at the end.

## body-issues

- Impersonal prose. No self-narration.
- No "I" / "we".
- No "now" / "currently".
- Wrapped at 72.

## trailers

- One logical change, one commit: fold a follow-up fix into the commit it repairs before merge.
- Late change the user asks for on an open MR/PR → `git commit --amend` the commit it changes.
- Reverts and merges keep Git's default format.
- A revert adds one line saying why.

## Examples

❌ `feat: added a new endpoint to get user profile information from the database`

✅
```
api: add GET /users/:id/profile

Mobile needs profile data without the full user payload — cold-launch
on LTE was fetching 40 KB to render three fields.

Closes #128
```

✅ subject-only, needs no body: `spill: drop unused zstd level knob`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.