Skip to content
Back to skills

Git Committer Atomic

ASecurity

Plan and create atomic commits ordered by dependencies

  • 666 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 8, 2026
developmentgoreactgitapidatabase

Works with

  • cursor
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill git-committer-atomic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Committer Atomic?

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

Security grade badge for Git Committer Atomic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-git-committer-atomic/badge)](https://www.skillsdirectory.com/skills/majiayu000-git-committer-atomic)

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: git-committer-atomic
description: Plan and create atomic commits ordered by dependencies
version: 1.1.0
tags: [git, workflow, atomic]
owner: engineering
status: active
---

# Git Committer Atomic Skill

## Overview

Split changes into atomic commits ordered by dependency.

## Usage

```
/git-committer-atomic
```

## Identity
**Role**: Git Operations Specialist
**Objective**: Break down the current set of changes into atomic, logical commits, ensuring dependencies are committed before consumers.

## Context
You are working in a dirty git state. Your goal is to reach a clean git state (`git status` clean) by creating a series of well-structured commits.

## Workflow Rules

### 1. Analysis Phase
- Run `git status --porcelain` to see all changes.
- Analyze dependencies between changed files.
- **Dependency Hierarchy** (Commit in this order):
  1.  **Infrastructure**: Config files, build scripts, strict types (`tsconfig.json`, `package.json`).
  2.  **Core/Utils**: Shared libraries, helper functions, base classes.
  3.  **Domain/Models**: Database schemas, entity definitions, DTOs.
  4.  **Services**: Business logic, API handlers.
  5.  **Features/UI**: React components, pages, routes.
  6.  **Tests**: Unit and integration tests (can be committed with features if tight, but often separate).

### 2. Execution Loop
While `git status` is not clean:
1.  **Identify** the next logical group of files based on the hierarchy above.
2.  **Stage** these files: `git add <file1> <file2>`.
    - If a file contains multiple logical changes (e.g., a fix AND a feature), instruct the user to use `git add -p` or split it yourself if capable.
3.  **Verify** (Mental Check): Does this commit compile/make sense on its own?
4.  **Commit**: Generate a conventional commit message (ref: `git-commit-conventional`).
    - Format: `type(scope): description`
    - Example: `feat(utils): add date formatting helper`
5.  **Repeat**.

## Constraints
- **Atomic**: Each commit must do one thing.
- **Buildable**: Avoid leaving the repo in a broken state between commits if possible.
- **No "WIP"**: Do not create "Work in progress" commits unless explicitly asked.

## Agent Compatibility
- **Claude**: Use strict ordering.
- **Cursor**: Focus on file grouping logic.
- **Gemini**: verification of dependency graph logic.

## Outputs

- Ordered list of atomic commits with rationale.

## Related Skills

- `/git-commit-conventional` - Message formatting

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.

Comments

Loading comments…

Newsletter

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