commit-atomic

Groups staged changes into atomic commits following commitizen conventions. Used to combine related changes into a single commit that adheres to the convention.

Last repository push
GitHub Stars
130
Forks
13
Issues / PRs
15

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "commit-atomic" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-756047f7bc5a8faae40f170cff31ace6c0acff8b0d60408b9f557e48d2461354. Verify the upstream source and version against https://github.com/jellydn/my-ai-tools before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Groups staged changes into atomic commits following commitizen conventions. Used to combine related changes into a single commit that adheres to the convention.

0 Downloads

Introduction source: third_party · jellydn · 0.0.1 Reference

SkillPi interpretation

Tasks
Group staged changes into atomic commits with commitizen convention
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: commit-atomic
description: "Group staged changes into atomic commits with commitizen convention"
license: MIT
compatibility: cline, claude, opencode, amp, codex, gemini, cursor, pi
hint: Use when committing staged changes as focused, atomic commits grouped by logical change
user-invocable: true
metadata:
  audience: all
  workflow: git

Atomic Commit with Logical Grouping

Create atomic commits by logically grouping changes following the commitizen/conventional commits convention. Each commit should represent one logical change with a clear, informative message explaining the what and why.

Usage

/commit-atomic

Process

1. Inspect the current changes

git status
git diff --staged
git diff

Review all modified, added, and deleted files to understand the full scope of changes.

2. Group changes logically

Analyze the changes and group them into logical, independent units. Each group should:

  • Address a single concern or feature
  • Be independently understandable
  • Not break the build or tests on its own
  • Follow the dependency order (low-level to high-level)

Grouping strategies:

  • By feature or concern (e.g., authentication, UI, database)
  • By type (e.g., refactoring, bug fix, new feature)
  • By layer (e.g., model, service, controller)

3. Stage each group intentionally

Stage files explicitly with git add <path>. Avoid git add -A or git add --all:

# Stage specific files
git add <file1> <file2>

# Stage specific hunks interactively
git add -p <file>

# Verify what is staged before committing
git diff --staged

4. Commit each group with a commitizen message

Follow the commitizen conventional commits format:

<type>(<scope>): <subject>

[optional body]

[optional footer]

Types:

Type When to use
feat A new feature
fix A bug fix
docs Documentation only changes
style Formatting, missing semicolons (no code logic change)
refactor Code change that is neither a fix nor a feature
perf A code change that improves performance
test Adding or fixing tests
chore Build process or auxiliary tool changes
ci CI configuration changes
build Changes that affect the build system or dependencies
revert Reverts a previous commit

Writing good commit messages:

  • Subject line: Imperative mood, max 72 characters, no period at end
  • Body (optional): Explain the why, not just the what; wrap at 72 characters
  • Footer (optional): Reference issues (Closes #123), breaking changes (BREAKING CHANGE: ...)

Examples:

feat(auth): add JWT refresh token support

Refresh tokens allow users to stay logged in without re-authenticating.
This reduces friction for long-running sessions.

Closes #42
fix(api): handle null response from external service

The external API occasionally returns null for optional fields.
Previously this caused an unhandled TypeError at runtime.
refactor(utils): extract date formatting into shared helper

Consolidates duplicate date formatting logic spread across three
modules into a single reusable function.

5. Verify after each commit

git log --oneline -5
git status

Ensure the working tree is clean after all logical groups are committed.

Rules

  • ❌ Prefer git add <path> over git add -A or git add --all
  • ❌ Keep each commit focused on one logical change
  • ✅ Stage files explicitly with git add <file> or git add -p
  • ✅ Verify staged changes with git diff --staged before committing
  • ✅ Write messages in imperative mood ("add feature" not "added feature")
  • ✅ Explain the why in the commit body when the change is non-obvious
  • ✅ Keep each commit independently buildable and testable

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 解决开发者高频刚需:将大改动拆分为逻辑清晰的原子提交
  • 遵循 commitizen 规范,提升团队协作和代码历史可读性
Trigger Precision92/100

Highlights

  • 触发词精准描述使用场景:对有暂存更改需分组提交的情况
  • 边界清晰,不易与其他 Git 相关 Skill 混淆
Structure and Standards95/100

Areas to improve

  • 缺少显式出口条件说明 Reported severity: Minor

    未明确说明何时停止执行(如所有更改已提交且工作树干净)

    Recommendation: 在 Rules 或 Process 末尾添加明确的完成条件,例如 '当 git status 显示工作树干净时,流程结束'

Highlights

  • 步骤划分清晰(5 个阶段),逻辑连贯
  • 提供丰富的 commit message 示例和类型说明
  • frontmatter 完整,兼容性声明明确
Execution Reliability90/100

Highlights

  • 使用标准 Git 命令,无外部依赖风险
  • 关键操作前均有验证步骤(git diff --staged)
  • 强调显式 staging,避免误提交
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.