commit-agent-changes

Groups agent session changes into logical commits and opens a GitHub pull request.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/timi-ty/agent-forge --skill commit-agent-changes-timi-ty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-agent-changes
Source: https://github.com/timi-ty/agent-forge/tree/main/skills/commit-agent-changes
Command: npx skills add https://github.com/timi-ty/agent-forge --skill commit-agent-changes-timi-ty

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After an AI agent finishes editing code, the changes sit uncommitted in the working directory, often mixed with unrelated dirty files. This Skill identifies exactly which files the agent touched, moves them onto a feature branch via a git worktree, groups them into atomic commits, and opens a pull request without disturbing the user's current branch. ## Core Features & Use Cases - Change Attribution: Cross-references conversation context, Cursor agent transcripts, and git status so only agent-owned changes are committed, never pre-existing dirty files. - Worktree Isolation: Creates a separate git worktree for the feature branch, keeping the user's working directory on its original branch throughout. - Logical Commit Grouping: Splits changes by cohesive concern into conventional commits (feat/fix/refactor/chore) with no AI references in messages. - PR Automation: Pushes the branch and creates a GitHub PR with summary, commit list, and test plan, or appends to an existing open PR. - Use Case: After a long refactoring session, say "commit my changes" and get a clean feature branch with three atomic commits and a ready-to-review PR, while your local checkout stays untouched on main. ## Quick Start Ask the agent to commit my changes and create a PR from this session.

Frequently Asked Questions about commit-agent-changes

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

FAQPage Schema
How do I commit changes made by an AI coding agent?

The Skill identifies files the agent edited by cross-referencing conversation context with git status, then groups them into logical commits on a feature branch. Only files appearing in both the agent's list and git's dirty state are committed.

How to create a PR from agent changes without leaving my current branch?

It creates a git worktree with a new feature branch based on current HEAD, transfers only the agent's changes there via patch or file copy, and pushes from the worktree. Your original working directory stays on its branch untouched.

Does this work with both Cursor and Claude Code?

Yes. In Cursor it additionally parses agent transcript files for validation, while in Claude Code it relies on conversation context and git state since Claude Code does not maintain transcripts.

What happens if my branch has diverged from the remote?

The Skill checks ahead/behind counts against origin before committing. If the branch has diverged (both ahead and behind), it aborts and asks you to resolve the divergence manually first.

Will it commit unrelated uncommitted files in my repo?

No. Files are committed only if they appear in both the agent's change list and git's dirty state. Other uncommitted files are reported to you but explicitly excluded from all commits.