Skip to content
Back to skills

Dev Llm Commitmsg

ASecurity

Draft a Conventional-Commits message from the current `git diff --staged` using a local LLM (Ollama). User edits before commit.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
code-qualityrailsgitbackend

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add VMAFx/vmafx --skill dev-llm-commitmsg --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dev Llm Commitmsg?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dev Llm Commitmsg
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vmafx-dev-llm-commitmsg/badge)](https://www.skillsdirectory.com/skills/vmafx-dev-llm-commitmsg)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dev-llm-commitmsg
description: Draft a Conventional-Commits message from the current `git diff --staged` using a local LLM (Ollama). User edits before commit.
---
<!-- markdownlint-disable MD013 -->

# /dev-llm-commitmsg

## Invocation

```text
/dev-llm-commitmsg [--model <name>]
```

## Steps

1. Verify `git diff --staged` has content. Empty -> tell user stage changes
   first (`git add -p`), exit. No staged diff = nothing to summarize, model
   has no input to read.
2. Verify `vmaf-dev-llm check` = green (see `dev-llm-review` pre-flight).
   Red backend -> draft quality unreliable, skip generation, surface backend
   error instead.
3. Run `vmaf-dev-llm commitmsg` (add `-m <model>` if provided). Capture
   stdout = draft. Model choice changes wording only, never changes which
   diff gets read.
4. Present draft, ask user:
   - **accept** -> emit `git commit -m "<heredoc>"` using draft verbatim,
   - **edit** -> open `$EDITOR` with draft, let user refine, save closes
     editor and continues to commit,
   - **regenerate** -> rerun step 3, discard prior draft entirely.

   Do NOT commit automatically — user confirms every single run, no
   exceptions.

## Guardrails

- Refuse run on `master` or protected branch. Commit-msg drafting precedes
  real commit -> block at source, not after.
- Strip `Co-Authored-By:` or `Signed-off-by:` lines from draft — added later
  by pipeline; duplicate lines break trailer parsing downstream.
- First line must match
  `^(feat|fix|perf|refactor|docs|test|build|ci|chore|revert)(\\([a-z0-9-]+\\))?: .+`
  before acceptance; otherwise regenerate. Non-conforming subject line fails
  commit-msg git hook later, wastes whole draft cycle.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.