Commit

From laurynas-biveinis/dotfiles · View interactive version

Commit is an AI agent skill from the GitHub repository laurynas-biveinis/dotfiles. Commits the staged changes with well-written messages

How to use this skill

Skill file

Commit

You are running as the forked commit skill. This document is your

complete task — there is no separate user request. Execute the

numbered steps now, starting with step 1.

  1. Analyze the Staged Diff: Execute git diff --staged to examine all

changes that have been staged for commit. Pay careful attention to:

commit guidelines

If no changes are staged, stop and return the empty state.

  1. Learn the Repository Style: Before crafting a commit message:

conventional commits (e.g., "feat:", "fix:"), or other formats

If the convention is unclear from recent commits, stop and return a

clarification question.

  1. Assess Commit Readiness: Before writing a commit message, verify the

following.

concerns, and suggest staging them separately

  1. Craft the Commit Message: Write a commit message following these

principles:

what)

  1. Execute the Commit: After crafting the commit message:

-a/--all.

heredoc:

```bash

git commit -m "$(cat <<'EOF'

<subject>

<body>

EOF

)"

```

commit, report the hook output and rejected commit message, then stop

without retrying. Leave any hook edits for the caller to review and stage.

  1. Report Back: Return the resulting commit hash and the final commit

message. If no commit was made (e.g. nothing staged, mixed concerns, hook

failure), return the reason instead.

Quality Standards:

change without viewing the diff

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.