wise-commit-message

Solid

Draft one Conventional-Commits subject line from your pending git changes — both staged (`git diff --cached`) and unstaged-but-modified tracked files (`git diff`) — Jira-scoped (e.g. `feat(PROJ-777): …`) when a key is detectable from the branch, diff, recent commits, or the live session, and unscoped (e.g. `feat: …`) otherwise. Pass `--copy` to also drop the subject onto the macOS clipboard. Strictly read-only against git — never runs `git commit`, `git add`, or anything that mutates the repo. Invoked as `/wise-commit-message` (bare alias) or `/wise:wise-commit-message` (canonical). Use when the user says "write a commit message", "draft a commit", "conventional commit", "prepare commit message", "one-line commit", or types `/wise-commit-message`.

Code & Development 4 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /wise-commit-message — draft a Conventional-Commits subject from pending changes Before asking any user question, read and follow the [question lifecycle](../../references/workflow-host-control.md#keep-asynchronous-questions-open). Keep asynchronous prompts open until answered; this rule does not authorize questions in autonomous or otherwise prompt-free procedures. ## Why this skill exists Every PR should land with a Conventional-Commits first line, and the "right" first line is mostly mechanical: 1. Pick the type (`feat` / `fix` / `refactor` / `docs` / …) from what the diff actually does. 2. Scope it with the Jira ticket the branch is working on — when there is one. 3. Summarise the change in the imperative voice, short enough that the reader can scan a list of commits without hitting the wrap. This skill automates the mechanical part. It looks at everything **pending** — both what's staged (`git diff --cached`) and what's modified-but-not-yet-staged in tracked files (`git diff`), but **not** the last commit and **not** untracked files — prints one line in Conventional-Commits form, and — with `--copy` — drops that line onto the clipboard so the user can paste it straight into `git commit -m "…"`. When some of the described changes are not yet staged, the suggested commit command uses `git add -A` so the user doesn't end up committing only half of what the subject describes. The user stays in control of the actual `git commit` call. Drafting and committing ...

Details

Author
e1024kb
Repository
e1024kb/wise-claude
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

wise-commit

Sweep every working-tree change into the index (`git add -A` — modifications, deletions, and new untracked files), draft a Conventional-Commits subject from the staged diff (Jira-scoped when a key is detectable from the branch / diff / log / session), and run `git commit`. Closes the loop that `/wise-commit-message` opens — that one drafts and hands the subject back to the user; `/wise-commit` drafts AND commits. Invoked as `/wise-commit` (bare alias) or `/wise:wise-commit` (canonical). Strictly local — never pushes (use `/wise-commit-push` for that), never amends, never bypasses hooks. Use whenever the user says "commit", "commit changes", "make a commit", "commit my work", or types `/wise-commit`.

4 Updated today
e1024kb
Code & Development Solid

wise-commit-push

Sweep every working-tree change into the index (`git add -A` — modifications, deletions, and new untracked files), draft a Conventional-Commits subject from the staged diff, run `git commit`, then `git push` to the tracked upstream. If the working tree is already clean but the local branch is ahead of upstream (e.g. a previous skill already committed), skips the commit half and just pushes the existing local commits — the operator types one slash command either way. Refuses to push to `main` / `master` (commit lands locally; push is on the operator) and refuses `--force`, `--force-with-lease`, `--no-verify` entirely. Invoked as `/wise-commit-push` (bare alias) or `/wise:wise-commit-push` (canonical). Use whenever the user says "commit and push", "ship this", "push my changes", "commit and ship", "push the lint commit", or types `/wise-commit-push`. For local-only commits use `/wise-commit` instead; for read-only subject drafting use `/wise-commit-message`.

4 Updated today
e1024kb
Code & Development Listed

commit-message

Use BEFORE writing or finalizing ANY git commit message — when staging changes, running git commit, or asked to "commit", "write a commit message", or "draft a commit". Covers Conventional Commits, the repo's emoji/scope convention, the Jira key, splitting mixed changes, and the rule that a commit carries NO AI attribution.

0 Updated today
itzikiusa