commit
SolidCommit the working tree with a repo-appropriate, value-communicating message, then scan the session for compound-worthy learnings.
Code & Development 1 stars
0 forks Updated yesterday MIT
Install
Quality Score: 80/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
Create well-crafted git commits from the current working tree, then close the loop with a compound scan.
## Step 1: Gather context
Run each as its own shell call and read the exit status directly — a non-zero exit is a state to interpret, not a failure:
- `git status` — working-tree state.
Clean tree → report there is nothing to commit and stop.
- `git diff HEAD` — the uncommitted changes.
- `git branch --show-current` — empty output means detached HEAD: ask whether to create a branch or commit detached.
- `git log --oneline -10` — recent commit style.
- `git rev-parse --abbrev-ref origin/HEAD` — the default branch (strip the `origin/` prefix).
If unset, fall back to `main`.
## Step 2: Branch off the default
If the current branch is the default branch (or `main`/`master`), create a feature branch before committing: derive the name from the change content, `git checkout -b <branch-name>`, and confirm with `git branch --show-current`.
This is automatic — committing directly on the default branch is not an option here.
## Step 3: Determine the message convention
In priority order:
1. **Documented repo conventions** already in context (AGENTS.md, CLAUDE.md, or similar).
2. **Recent commit history** — if the last 10 commits show a clear pattern (conventional commits, ticket prefixes, emoji prefixes), match it.
3. **Default: conventional commits** — `type(scope): description`, type one of `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `perf`, `ci`, `style`, `build`...
Details
- Author
- toverux
- Repository
- toverux/grimoire
- Created
- 2 weeks ago
- Last Updated
- yesterday
- Language
- Shell
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Solid
commit
Create well-structured git commits from the current working tree. Use when the user says 'commit', 'save my work', 'let's commit this', 'make a commit', or any variation of wanting to commit code to git.
158 Updated 1 weeks ago
kklimuk AI & Automation Solid
commit
Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate, value-communicating message.
33 Updated yesterday
OutlineDriven Code & Development Listed
commit
Create a git commit following project conventions
2 Updated today
tony