agentleFS
GabrielHenriqueCAGabrielHenriqueCA/cortex-ai/.claude/skills/commit-style/SKILL.md

commit-style

Skill1 starsChanged 6 months agoMITView on GitHub

This skill enforces Conventional Commits with high-quality commit messages and anti-pattern detection. Flag these when reviewing commit history or helping write commits:

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use release.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No period at the end of subject line

    line 33

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Commit Style Skill

This skill enforces Conventional Commits with high-quality commit messages and anti-pattern detection.

Conventional Commits Format

<type>(<scope>): <short description>

[optional body]

[optional footer]

Types

TypeWhen to use
featNew feature for the user
fixBug fix for the user
refactorCode change that is neither a fix nor a feature
perfPerformance improvement
testAdding or correcting tests
docsDocumentation changes only
choreBuild process, tooling, dependency updates
ciCI/CD configuration changes
revertRevert a previous commit

Rules

  1. Subject line ≤ 72 characters
  2. Imperative mood in subject: "add feature" not "added feature" or "adds feature"
  3. No period at the end of subject line
  4. Scope is optional but recommended: the module, component, or layer changed
  5. Body explains why, not what — the diff shows what
  6. Breaking changes: add ! after type/scope AND BREAKING CHANGE: footer

Good vs Bad Examples

Good commits

feat(auth): add OAuth2 PKCE flow for mobile clients

PKCE is required for public clients that cannot store a client secret.
The previous implicit flow was deprecated in RFC 8252.

Closes #142
fix(pipeline): handle null values in user_id join key

Spark's default inner join silently drops rows with null keys.
Changed to LEFT JOIN with explicit null filter and quarantine step.
refactor(orders): extract tax calculation to dedicated service

Tax logic was duplicated in 3 places and had diverged. Now a single
TaxCalculationService is the source of truth.
perf(query): add composite index on (tenant_id, created_at)

Query planner was doing a full scan on the events table (12M rows).
EXPLAIN ANALYZE confirmed this index reduces the scan to 1.2k rows.

Bad commits (and why)

# BAD — no type, no scope, vague
fix stuff

# BAD — describes what, not why
add index to events table

# BAD — past tense
added OAuth flow

# BAD — too long, non-imperative, no type
I updated the authentication module to support the new OAuth2 PKCE flow as required by mobile clients

# BAD — redundant comment in commit body
# Changed tax calculation
tax_amount = price * rate  # calculate tax

Detecting Bad Commit Patterns

Flag these when reviewing commit history or helping write commits:

  • Commits that mention specific line numbers ("fix line 42")
  • Commits that reference internal variable names ("rename tmp to data")
  • Commits with "WIP", "temp", "fix", "update", "changes" as the entire message
  • Commits that mix multiple unrelated changes
  • Commits that include debug code, commented-out code, or print() statements

Breaking Change Example

feat(api)!: remove /v1/users/search endpoint

BREAKING CHANGE: /v1/users/search is removed. Use /v2/users?q= instead.
The v1 endpoint was deprecated in 0.8.0 and is incompatible with the
new search infrastructure.

Migration guide: docs/migrations/v1-v2-search.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.