atomic-commits

Create small, focused commits with one change per commit and meaningful messages.

39|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/hffmnnj/opencode-goopspec --skill atomic-commits-hffmnnj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: atomic-commits
Source: https://github.com/hffmnnj/opencode-goopspec/tree/main/skills/atomic-commits
Command: npx skills add https://github.com/hffmnnj/opencode-goopspec --skill atomic-commits-hffmnnj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams create small, focused commits that communicate intent clearly, reducing review friction and merge conflicts.

Core Features & Use Cases

  • One Change Per Commit: Each commit should encapsulate a single logical change.
  • Buildable State: Every commit leaves the codebase in a functioning state.
  • Meaningful Messages: Commit messages explain the why, not just the what.
  • Use Case: When refining a feature, use small commits to isolate changes for easier review and rollback.

Quick Start

Describe a single, focused change and commit it with a meaningful message, for example:

  • feat(module): add small helper for parsing input

Frequently Asked Questions about atomic-commits

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do atomic commits improve code review?

Atomic commits isolate single logical changes, making each commit reviewable in isolation. Reviewers see clear intent, spot issues faster, and understand why changes were made—reducing review friction and merge conflicts.

What makes a commit atomic in Git?

An atomic commit contains one logical change, leaves the codebase in a buildable state, and includes a meaningful message explaining the why. Each commit should be independently valuable and rollback-safe.

How do I write atomic commits when refining a feature?

Break your feature into small, logical steps. Commit each step separately with a focused message—one change per commit. This isolates changes for easier review, testing, and rollback if needed.

Why should every commit leave the codebase buildable?

Buildable commits ensure the version control history remains stable. If you need to revert a specific change or bisect for bugs, each commit works independently without breaking the build or tests.

Can I use atomic commits across different codebases?

Yes. Atomic commit discipline applies to any codebase using version control. The principle—one logical change, buildable state, meaningful message—works consistently across languages, frameworks, and project structures.

What's the difference between atomic commits and squash commits?

Atomic commits preserve individual logical changes in history for clarity and debugging. Squash commits combine multiple commits into one, flattening history. Atomic commits provide better traceability; use squash strategically when grouping related work for release.