Commit

From dirien/yet-another-agent-harness · View interactive version

Commit is an AI agent skill from the GitHub repository dirien/yet-another-agent-harness. Atomic, semantic-boundary git commit workflow

How to use this skill

Skill file

/commit — Atomic Commit Workflow

When to use

When the user runs /commit or asks to commit changes.

Steps

  1. Run git status and git diff --staged to understand what's changed
  2. If nothing is staged, identify logical change groups and stage them separately
  3. Write a commit message following Conventional Commits:
  1. Use the imperative mood in the subject line
  2. Keep subject under 72 characters
  3. Add body with "why" not "what" if the change isn't self-evident
  4. Create the commit using a heredoc for the message
  5. Run git status to verify

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.