# Generate Commit Msg

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-itsjavi-skills-generate-commit-msg`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [itsjavi](https://agentstack.voostack.com/s/itsjavi)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [itsjavi](https://github.com/itsjavi)
- **Source:** https://github.com/itsjavi/skills/tree/main/skills/generate-commit-msg

## Install

```sh
agentstack add skill-itsjavi-skills-generate-commit-msg
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Generate Commit Message

Create a commit message for the repository's current staged changes.

## Workflow

1. Inspect the git index without changing it:

   ```bash
   git status --short
   git diff --cached --stat
   git diff --cached
   ```

2. Base the message only on staged changes. Ignore unstaged and untracked changes except to avoid mixing them into the
   staged summary.
3. If there are no staged changes, output a plaintext code block containing exactly:

   ```text
   chore: no staged changes
   ```

## Message Rules

- Use Conventional Commit format:

  ```text
  (optional-scope): 
  ```

- Allowed types: `feat`, `fix`, `docs`, `chore`, `refactor`, `test`, `build`, `ci`.
- Put the most important staged change first.
- If there is room on the same line, include minor staged changes after the primary change.
- Keep the subject concise and readable. Prefer one line unless extra context is genuinely needed.
- Use imperative mood: `add`, `fix`, `update`, `remove`, `refactor`, not `added`, `fixes`, or `updated`.
- Do not mention file paths unless they are the clearest useful scope.

## Optional Body

Add body text only when it is important and genuinely needed for context, such as a breaking behavior change, migration
note, or significant secondary changes that do not fit in the subject.

When a body is needed:

- Keep it short.
- Use markdown list bullets instead of paragraphs.
- Include only important staged changes.

Example:

```text
feat(auth): add passkey enrollment and tighten session renewal

- Requires a new WebAuthn origin setting in production.
- Moves legacy session cleanup behind the renewal path.
```

## Output Contract

Output nothing except one plaintext code block containing the exact commit message.

Do not add explanations, labels, summaries, caveats, follow-up questions, or text outside the code block.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [itsjavi](https://github.com/itsjavi)
- **Source:** [itsjavi/skills](https://github.com/itsjavi/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-itsjavi-skills-generate-commit-msg
- Seller: https://agentstack.voostack.com/s/itsjavi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
