agentleFS
AvinashPAvinashP/AgentsAtlas/skills/committing/SKILL.md

committing

Skill7 starsChanged 9 months agoMITView on GitHub

Creates quality git commits with conventional commit format. Use when asked to commit changes or create a commit message.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Create meaningful, conventional commits that tell the story of your changes.

    line 8
  2. Distinctive:

    No period at end

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Committing Skill

Create meaningful, conventional commits that tell the story of your changes.

Workflow

1. Analyze Staged Changes

# See what's staged
git diff --staged --stat

# See detailed changes
git diff --staged

Understand the changes:

  • What files changed?
  • What's the nature of the change?
  • Is this one logical change or multiple?

2. Determine Commit Type

TypeWhen to Use
featNew feature for users
fixBug fix for users
docsDocumentation only
styleFormatting, no code change
refactorCode change, no feature/fix
perfPerformance improvement
testAdding/updating tests
buildBuild system, dependencies
ciCI configuration
choreMaintenance, tooling

3. Extract Scope (Optional)

Scope identifies the area of the codebase:

feat(auth): add password reset flow
fix(api): handle null response
refactor(cart): extract price calculation

Common scopes:

  • Component/module name: auth, cart, user
  • Layer: api, ui, db
  • Feature area: checkout, search, settings

4. Write the Message

Format:

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

[optional body]

[optional footer]

Description rules:

  • Imperative mood: "add" not "added" or "adds"
  • Lowercase first letter
  • No period at end
  • Max 50 characters for subject line
  • Explain what and why, not how

5. Verify and Commit

# One more look
git diff --staged

# Commit
git commit -m "type(scope): description"

# Or with body
git commit -m "type(scope): description

More detailed explanation if needed.
Explain why this change was made."

Quick Reference

Good Commit Messages

feat(auth): add two-factor authentication

fix(api): prevent null pointer on empty response

refactor(user): extract validation to separate module

docs(readme): add installation instructions

test(cart): add edge cases for discount calculation

chore(deps): upgrade react to 18.2

Bad Commit Messages

# Too vague
fixed stuff
updates
WIP

# Not imperative
added new feature
fixing bug

# Too long/detailed in subject
feat: add new user authentication system with support for OAuth, SAML, and password-based auth

Commit Scope Detection

Based on changed files:

File PathSuggested Scope
src/auth/*auth
src/components/Button/*button or ui
src/api/*api
tests/*usually none
package.jsondeps
*.mddocs

Breaking Changes

For breaking changes, add ! after type/scope:

feat(api)!: change response format

BREAKING CHANGE: Response now returns { data, meta } instead of raw data.

Multiple Changes

Split into multiple commits when:

  • Changes are logically separate
  • Different types (fix AND feat)
  • Could be reverted independently

Keep together when:

  • Changes are related to same feature
  • One change requires the other
  • Tests for the feature being added
# Stage selectively
git add -p  # interactive staging
git add src/feature.ts
git commit -m "feat: add feature"

git add tests/feature.test.ts
git commit -m "test: add tests for feature"

See Also

  • examples.md - More commit message examples by scenario

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.