Selectively stages and commits work done in the current session, ignoring unrelated changes.

Install

mkdir -p .claude/skills/commit-dcouple && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17495" && unzip -o skill.zip -d .claude/skills/commit-dcouple && rm skill.zip

Installs to .claude/skills/commit-dcouple

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Selectively stages and commits only the changes related to the current session, skipping unrelated modifications.
113 charsno explicit “when” trigger
Beginner

Key capabilities

  • →Check for plans in temporary directories
  • →Inspect all changes using git status and git diff
  • →Classify changes as in-scope or out-of-scope
  • →Stage only specific in-scope files
  • →Create a local commit with a conventional message
  • →Report commit details and uncommitted files

How it works

The agent checks for plans or uses conversation history to understand scope, then inspects git changes. It classifies and stages only relevant files, creates a local commit, and reports the outcome.

Inputs & outputs

You give it
[optional: commit message or description of what to commit]
You get back
commit sha and subject, files included, files intentionally left uncommitted

When to use commit

  • →Commit session work
  • →Clean up staged files

About commit

Classifies files touched in the current session, stages them for commit, and derives a conventional commit message. Avoids adding unrelated files.

Selectively stages and commits only the changes related to the current session, skipping unrelated modifications.

When not to use it

  • →When zero files are clearly in scope for the session

Limitations

  • →Does not push the commit to a remote repository
  • →Requires user intervention if secrets are found in staged files

How it compares

This workflow automatically identifies and stages only changes related to the current session, unlike manually staging all changes.

Compared to similar skills

commit side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
commit (this skill)06moNo flagsBeginner
resolve-conflicts8111moReviewIntermediate
dependency-upgrade267moReviewIntermediate
openspec-onboard108moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry