Skip to content
Skillpedia
General coding20k · #10372

commit-dis

What it does

This skill has the AI commit just the files it changed during the current conversation to the branch you are already on. It is for people who want a quick way to save their work in Git.

When to use it

  • ✓When you say commit this, save my work, or commit what we did in this chat.
  • ✓When you want only the files from this chat committed, without touching unrelated changes.
  • ✓When you want the commit kept on your current branch with no push or pull request.

Skill link

https://github.com/kortix-ai/suna/blob/dev/.agents/skills/commit-dis/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/kortix-ai/suna/blob/dev/.agents/skills/commit-dis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Commit the changes we just made in this chat on my current branch, and leave everything else alone.”

5 new skills a week. 1 minute to read.

How it works

The AI checks the current branch and the list of changed files, adds only the files from this session by name, and makes one commit. It does not push or open a pull request.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

commit-dis — commit this session's work, here, now

Stage and commit the changes produced during this conversation onto the current branch. Nothing more. This is the quick "save what we just did" button.

THE RULES

  1. Stay on the current branch. Do NOT create, switch, or rename a branch. Commit wherever HEAD already points — even if that's main. Never run git checkout -b, git switch -c, or git branch.
  2. Only commit what this session changed. Stage the specific files you created or edited in this thread by path. Do NOT git add -A / git add . blindly — that risks sweeping in unrelated working-tree changes, untracked scratch files, or another task's edits. No overcommitting.
  3. No push, no PR. Stop after the commit unless the user explicitly asks to push or open a PR.
  4. One commit for the session's work unless the user asks otherwise.

Steps

  1. Confirm the branch and see what's changed:
    git rev-parse --abbrev-ref HEAD
    git status --short
    
  2. Identify the exact files this session touched. If anything in git status was NOT changed by this session, leave it unstaged. If it's ambiguous whether a dirty file belongs to this session, ask the user rather than guessing.
  3. Stage by explicit path (never -A/.):
    git add <file1> <file2> ...
    
  4. Commit with a clear message describing what this session did. End the message with the standard trailer:
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    
  5. Confirm:
    git log --oneline -1
    

Don't

  • Don't create or switch branches.
  • Don't git add -A, git add ., or git commit -a.
  • Don't push or open a PR.
  • Don't amend or rebase prior commits.
  • Don't stage files you didn't touch this session (build artifacts, other in-flight work, untracked scratch).
FAQ

Will it create a new branch?

No. It commits on the branch that is already checked out, even if that is main.

What if a changed file is not from this chat?

The skill says to leave it unstaged, and to ask you when it is unclear whether a file belongs to this session.

Does it push my commit?

No. The skill stops after the commit unless you ask it to push or open a pull request.

Details

Original description by the author

Stage and commit ONLY the work done in this session, on the CURRENT branch — no new branch, no PR, no push. Load whenever the user says 'commit this', 'commit-dis', 'git add commit what we did', 'commit dis', 'save my work', or otherwise asks to commit the changes from the current thread. Enforces: stay on the already-checked-out branch, never overcommit unrelated files.

repo: kortix-ai/suna

Popularity

GitHub stars
20k
Ranking position
#10372
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills