commit-discipline

Enforce atomic commits and pre-push checklists for clean Git histories.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/MajorLift/metamask-extension-skills --skill commit-discipline-majorlift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-discipline
Source: https://github.com/MajorLift/metamask-extension-skills/tree/main/domains/pr-workflow/skills/commit-discipline
Command: npx skills add https://github.com/MajorLift/metamask-extension-skills --skill commit-discipline-majorlift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintainers struggle with large, unfocused commits and inconsistent push checks. This skill enforces atomic commits, a clear commit chain, and a disciplined pre-push lint process to maintain a clean, auditable history.

Core Features & Use Cases

  • Enforces that each commit has a single motivation.
  • Guides building a commit chain from base state to final state for PRs.
  • Provides a pre-push checklist to validate changes before sharing.

Quick Start

Follow the Atomic Commit Rule to ensure every commit has a single motivation and run the pre-push checklist before pushing.

Frequently Asked Questions about commit-discipline

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

FAQPage Schema
What is an atomic commit in Git and why does it matter for pull requests?

An atomic commit isolates a single motivation per change, ensuring a clean and auditable Git history. It matters for pull requests because it guides maintainers through backward-structured building from base state to final state, preventing large and unfocused commits.

How do I enforce a pre-push checklist before pushing my Git commits?

You enforce pre-push discipline by applying a pre-push lint checklist to validate changes before sharing. This verifies your state and commit chain construction during PR preparation, catching pitfalls and unfocused work before they reach the remote repository.

How do I split large unfocused commits into a clean commit chain for a PR?

To split large commits into a clean commit chain, build backward from your base state to the final state. Ensure every commit in the chain adheres to the atomic rule, verifying each has a single motivation before completing your PR preparation.

Does this commit discipline workflow require any specific Git lint dependencies?

No specific lint dependencies are required to apply this workflow. It operates as a standalone guide for commit chain construction and pre-push validation, helping you enforce atomic commits and verify state without relying on external modules.

What are common pitfalls when building atomic commit chains?

Common pitfalls when building atomic commit chains include mixing multiple motivations into a single commit and skipping pre-push validation. The workflow provides explicit atomic rules and pitfalls guidance to help you split work correctly and verify state before pushing.