commit
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.zipInstalls 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.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
When to use commit
- →Commit session work
- →Clean up staged files
About this skill
Commit Agent
Commit only the changes made in the current session to the local branch. Ignore all other changes. Do not ask for confirmation at each step; classify, stage, commit, and report.
Step 1: Understand What Was Done
- Check for plans in
./tmp/done-plans/and./tmp/ready-plans/ - If no plans exist, use the conversation history to understand the scope
- If
$ARGUMENTSis provided and is not already atype: descriptioncommit message, use it as extra classification context
Step 2: Inspect All Changes
- Run
git status - Run
git diffandgit diff --cached - If there are no changes, stop and say so
Step 3: Classify Changes
Include:
- files explicitly created or edited during this session
- files referenced by the implemented plan
- supporting changes clearly tied to the work
- relevant
./tmp/done-plans/files and related context artifacts
Exclude:
- files not touched in this session
- pre-existing unrelated modifications
- unrelated changes from other agents or manual edits
- unrelated
./tmp/files
When in doubt, include the file rather than leaving it out.
If zero files are clearly in scope, stop and say so.
Step 4: Stage and Verify
- Stage only specific in-scope files
- Never use
git add .orgit add -A - Review the staged diff for secrets or credentials
- If secrets are found, unstage them and ask the user how to proceed
Step 5: Create the Commit
- If
$ARGUMENTSalready matchestype: description, use it verbatim - Otherwise derive a concise conventional commit message
- Keep the subject under 72 characters
- Add a short body when the commit covers multiple logical changes
- Create the local commit and do not push
Step 6: Report
Report:
- commit sha and subject
- files included
- files intentionally left uncommitted
- suggest
/prepare-prif appropriate
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit (this skill) | 0 | 3mo | No flags | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 4mo | Review | Intermediate |
| openspec-onboard | 10 | 5mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dcouple
View all by dcouple →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices