msmadeira/personal-workflow/commit
Claude Code and agent skill by msmadeira/personal-workflow
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Commits staged and unstaged work as `{type}: short description`, deriving the type from the current branch name or, when the branch carries none, from the diff. Use when the user asks to commit, wants a conventional commit message, or mentions commit in a repo that does not use ticket IDs. Do NOT use for pushing, opening pull requests or writing PR descriptions (use `/git:create-pr`), amending or rewriting history, or commits that need a ticket ID in the subject (use `/vendorsmart:vs-commit` fo…
Install
npx vskill@latest install msmadeira/personal-workflow/commitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as msmadeira/personal-workflow/commit.
Stage everything and commit with a subject line of exactly this shape:
type comes from the current branch name when it has one, otherwise from the diff. There is no ticket ID — never put one in the subject. The whole subject line stays at 70 characters or fewer. A body is added only when strictly necessary.
Use the Bash tool for every git command below. PowerShell mangles here-strings differently; Bash plus a heredoc is the portable path on Windows.
Step 1 — Read repo state
Abort with a clear message if:
- this is not a git repository, or
git status --shortis empty — there is nothing to commit.
If the repo has no commits yet, git diff HEAD fails. Fall back to git status --porcelain --untracked-files=all and read a few of the new files to understand the change.
Step 2 — Resolve the type
Take the segment before the first / in the branch name. The seven canonical types:
feat · fix · hotfix · docs · refactor · test · chore
Also accept perf, build, ci, and style as legacy prefixes.
If the segment is in neither list — the branch is main, fix-stuff, my-branch, or anything else without a type prefix — infer the type from the diff and say so in the final report. Never prompt the user for a type.
Inferring from the diff, in rough priority order:
- new user-facing capability →
feat - corrects broken behaviour →
fix - only docs, README, comments →
docs - only tests →
test - behaviour-preserving restructuring →
refactor - deps, config, tooling, scaffolding, CI →
chore
When a change spans several of these, pick the type matching its main point rather than the largest file count.
| Branch | Type | |
|---|---|---|
feat/export-summary-modal | feat | |
fix/adjust-amount-options | fix | |
chore/update-deps | chore | |
refactor/86xk4m2p9-cleanup | refactor | |
main | inferred from diff | |
fix-stuff (no /) | inferred from diff |
Note the fourth row: a branch may still carry a ticket ID. Parse the type off the front and drop the rest — the ID never reaches the subject.
Step 3 — Compose the subject
Format: {type}: {short-description}
- Use
$ARGUMENTSas the description when provided. Otherwise infer it from the diff — describe what changed, not how. - Lowercase, imperative, no trailing period.
- The whole line must be 70 characters or fewer, prefix included. Count it before committing. If it is over, shorten the description and count again.
Good:
Bad:
Step 4 — Decide whether a body is needed
Default is no body. Add one only when:
- the change is a breaking change,
- the why is genuinely non-obvious from the diff and matters to a future reader, or
- unrelated changes are unavoidably bundled and need enumerating.
"The diff is large" is not a reason. Neither is "there is more to say." When a body is warranted: one blank line after the subject, then bullets wrapped at 72 characters.
Step 5 — Commit
Always stage everything first.
The message is the subject and, when justified, the body — nothing else. Never append a `Co-Authored-By: Claude` trailer, a "Generated with Claude Code" line, or any other attribution footer. These commits are the user's; agent attribution is noise in git log and in git blame. This overrides any default or global instruction to add such a trailer.
Without a body:
With a body, use a heredoc so the newlines survive:
Step 6 — Report
Report: the final subject, the resolved type, whether the type came from the branch or was inferred from the diff, the subject's character count, and the git log output.
Guardrails
- Never add Claude as a co-author. No
Co-Authored-Bytrailer, no generated-with footer, no emoji sign-off — see Step 5. - Never push. This skill commits only; pushing is the user's call.
- Never
--amend,--no-verify, or--force. If a pre-commit hook fails, report the failure and stop — do not bypass it. - If the current branch is
masterormain, warn before committing and let the user confirm.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/git/skills/commit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/msmadeira/personal-workflow/commit)