msmadeira/personal-workflow/vs-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 using the VendorSmart convention `{type}: #{ID} short description`, deriving the type and ticket ID from the current branch name. Use when the user asks to commit, wants a conventional commit message, mentions vs-commit, or asks for a commit following the branch/ticket pattern. Do NOT use for pushing, opening pull requests or writing PR descriptions (use `/git:create-pr`), amending or rewriting history, or commits in repos that do not follow `<type>/<id>-<description>` branch naming.
Install
npx vskill@latest install msmadeira/personal-workflow/vs-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/vs-commit.
Stage everything and commit with a subject line of exactly this shape:
type and ID come from the current branch name. 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 # and 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.
Step 2 — Parse the branch into type and ID
Branch format is <type>/<id>-<description> or <type>/<id>/<description>.
`type` — the segment before the first /. The seven canonical types, from the Web Git Flow doc:
feat · fix · hotfix · docs · refactor · test · chore
Also accept perf, build, ci, and style as legacy prefixes. They are not part of the convention and vs-create-branch will never produce them, but recognizing them keeps the ticket ID parseable on older branches.
If the segment is in neither list (e.g. the branch is fix-stuff or my-branch), infer the type from the diff instead and say so in the final report.
`ID` — take the segment after type/ up to the first /, then test it against these patterns in order. The order matters.
- `NO-TICKET` sentinel — the segment starts with
NO-TICKET,NOTICKET, orno-ticket(any case) →NOTICKET - Jira-style — matches
^[A-Z]+-\d+, e.g.ABC-1234. Test this before splitting on-, otherwiseABC-1234truncates toAP - ClickUp — take everything up to the first
-; accept it only if it matches^[a-z0-9]{8,10}$and contains at least one digit, e.g.86xk4m2p9 - Otherwise →
NOTICKET
The digit requirement and the 8-character floor in rule 3 are load-bearing. Without them, ordinary descriptive branches get a word promoted to a ticket ID — chore/update-deps would commit as chore: #update deps, and feat/user-profile-settings as feat: #user profile settings.
Never prompt the user for a ticket ID — fall back to NOTICKET silently.
| Branch | Type | ID | |
|---|---|---|---|
feat/86xk4m2p9-export-summary-modal | feat | 86xk4m2p9 | |
feat/86tq7wz13/invoices-list | feat | 86tq7wz13 | |
fix/86bn5r8v4/adjust-amount-options | fix | 86bn5r8v4 | |
fix/ABC-1234-card-payment-method | fix | ABC-1234 | |
refactor/ABC-12-cleanup | refactor | ABC-12 | |
test/NO-TICKET-fix-test | test | NOTICKET | |
chore/update-deps | chore | NOTICKET | |
feat/user-profile-settings | feat | NOTICKET | |
fix-stuff (no valid type) | inferred from diff | NOTICKET |
Step 3 — Compose the subject
Format: {type}: #{ID} {short-description}
- Use
$ARGUMENTSas the description when provided. Otherwise infer it fromgit diff HEAD— 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 — never drop the
#{ID}. Still over? Shorten again rather than committing a long subject.
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 and ID, the subject's character count, whether the ID was parsed from the branch or fell back to NOTICKET, 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, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/vendorsmart/skills/vs-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/vs-commit)