← ClaudeAtlas

wise-commit-messagelisted

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`.
e1024kb/wise-claude · ★ 1 · Code & Development · score 80
Install: claude install-skill e1024kb/wise-claude
# /wise-commit-message — draft a Conventional-Commits subject from pending changes ## 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 are intentionally separate here so the user can read the subject, tweak it, combine it with a body of their own, or reject it entirely without ever having created a commit object they'd need to amend. > **Shared rules.** §3–§5 below follow > `${CLAUDE_PLUGIN_ROOT}/references/subject-draf