Agent skill

commit

Analyze unstaged changes and suggest atomic commit groups with messages

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/thoreinstein/opencode-config/tree/main/skill/commit

SKILL.md

Current Time: !date

I need to make small, logical, atomic commits based on my current work.

Optional focus argument: "frontend only", "exclude tests"

Here is the current status of the repository: !git status

Here are the specific unstaged changes (diff): !git diff

Please analyze these changes and suggest a plan to stage and commit them in a logical order.

  1. Group the changes into atomic units (e.g., by feature, fix, or refactor).
  2. For each group, list the specific files (or hunks, if applicable) to stage.
  3. Provide a commit message for each group.
  4. If there are dependencies (e.g., File A must be committed before File B), please note them.
  5. Unless there any questions proceed with creating the commits
  6. DO NOT PUSH UNDER ANY CIRCUMSTANCE

$ARGUMENTS

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results