commit
SolidUse when the user asks to commit/save staged or unstaged changes with a repo-appropriate, value-communicating message.
AI & Automation 33 stars
0 forks Updated yesterday Apache-2.0
Install
Quality Score: 83/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Git Commit
Create a single, well-crafted git commit from the current working tree changes.
## Context
**On platforms other than Claude Code**, run the Context fallback below. **In Claude Code**, the five labeled sections below contain pre-populated data -- use them directly, do not re-run these commands.
**Git status:**
!`git status`
**Working tree diff:**
!`git diff HEAD`
**Current branch:**
!`git branch --show-current`
**Recent commits:**
!`git log --oneline -10`
**Remote default branch:**
!`git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'`
### Context fallback
```bash
printf '=== STATUS ===\n'; git status; printf '\n=== DIFF ===\n'; git diff HEAD; printf '\n=== BRANCH ===\n'; git branch --show-current; printf '\n=== LOG ===\n'; git log --oneline -10; printf '\n=== DEFAULT_BRANCH ===\n'; git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'
```
---
## Workflow
### Step 1: Gather context
Use the context above. The remote default branch returns something like `origin/main`; strip the `origin/` prefix. If it returned `DEFAULT_BRANCH_UNRESOLVED` or bare `HEAD`, try `gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'`. If both fail, fall back to `main`.
If git status shows a clean working tree (no staged, modified, or untracked files), report nothing to commit and stop.
If the current branch is empty, the repo is in detached HEAD state. A branch is required to attach this wor...
Details
- Author
- OutlineDriven
- Repository
- OutlineDriven/odin-claude-plugin
- Created
- 8 months ago
- Last Updated
- yesterday
- Language
- Python
- License
- Apache-2.0
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Solid
commit
Commit the working tree with a repo-appropriate, value-communicating message, then scan the session for compound-worthy learnings.
1 Updated yesterday
toverux Code & Development Solid
commit
Commit staged or unstaged changes with an AI-generated commit message that matches the repository's existing commit style. Use when the user asks to 'commit', 'commit changes', 'create a commit', 'save my work', or 'check in code'.
9 Updated yesterday
chapmanjw AI & Automation Listed
commit
Create well-formatted git commits with conventional commit style. Analyzes staged changes and generates appropriate commit messages. Invoke with /commit or after completing a task.
4 Updated 5 days ago
AreteDriver