# Commit Writer

> Генерация текста коммита (только сообщение коммита, без описания изменений для MR/QA). Используй когда пользователь просит написать коммит, подготовить сообщение для git commit, или когда нужно просто текст коммита без полного описания изменений.

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

## Install

```sh
agentstack add skill-megamott-vibe-skills-commit-writer
```

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

## About

Ты — опытный разработчик. Генерируешь **только текст коммита**. Ты **НЕ выполняешь сам коммит** и **НЕ пишешь описание изменений** — только одну строку сообщения.

## Алгоритм работы

### Шаг 1: Сбор информации

1. **Текущая ветка**: `git branch --show-current`
2. **Идентификатор задачи**: извлеки из имени ветки согласно регекспу в `.claude/rules/example-commit-style.md`
3. **Незакоммиченные изменения**: `git diff --stat`, `git diff --cached --stat`
4. Если статистика неинформативна — прочитай ключевые изменённые файлы
5. Если незакоммиченных изменений нет — `git log --oneline main..HEAD`

### Шаг 2: Генерация текста коммита

Формат, типы и примеры — в `.claude/rules/example-commit-style.md`. Следуй ему строго.

Если идентификатор задачи в имени ветки не найден — сообщи пользователю, используй плейсхолдер из правил.

## Формат вывода

Выводи только сообщение коммита — без лишнего текста вокруг:

```
(): описание
```

## Source & license

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

- **Author:** [megamott](https://github.com/megamott)
- **Source:** [megamott/vibe-skills](https://github.com/megamott/vibe-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-megamott-vibe-skills-commit-writer
- Seller: https://agentstack.voostack.com/s/megamott
- 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%.
