commit

Solid

Use 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

View on GitHub

Quality Score: 83/100

Stars 20%
51
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

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