Agent commit

From diegosouzapw/awesome-omni-skill · View interactive version

Agent commit is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skill. Analyze changes and create a meaningful commit with agent authorship. Internal skill for evolve_loop.

How to use this skill

Skill file

Agent Commit

Creates a git commit with meaningful message based on skill output and actual file changes.

When to Use

This skill is called automatically by evolve_loop.py after a content-modifying skill completes. It is not intended for manual invocation.

Input

You will receive:

  1. The name of the skill that just ran
  2. A summary or excerpt of that skill's output

Instructions

1. Check for Changes

Run git status --porcelain to see if there are uncommitted changes.

If there are no changes, output "No changes to commit" and stop.

2. Analyze the Changes

Run git diff (or git diff --cached if files are staged) to understand what was modified.

Focus on:

3. Generate Commit Message

Create a commit message with a summary line and body:

<type>(<skill>): <summary>

<body>

Summary line (required, under 72 chars):

Body (required for content changes):

Good examples:

refine(condense): reduce topics/free-will.md from 9567 to 2985 words

- Cut quantum Zeno redundancy (7+ mentions → 1 via link)
- Removed extended sections on altered states, process philosophy
- Preserved core phenomenology arguments and Mary's Room
- Kept tenet connections and cross-links intact
refine(deep-review): improve clarity in concepts/qualia.md

- Fixed circular definition in opening paragraph
- Added concrete examples for inverted spectrum argument
- Strengthened connection to hard problem article

Bad examples:

4. Create the Commit

Stage all changes and commit with agent authorship. Use a HEREDOC for the multi-line message:

git add -A
git commit --author "unfinishablemap.org Agent <agent@unfinishablemap.org>" -m "$(cat <<'EOF'
<summary line>

- bullet point 1
- bullet point 2
EOF
)"

5. Output the Result

Output the commit hash and message so the calling system can log it.

Important

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.