# Dev:commit

> >

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

## Install

```sh
agentstack add skill-hedgehogues-awesome-claude-commit
```

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

## About

# Задача

Создай коммит по конвенциям проекта. $ARGUMENTS

## Контекст (предвычислено)

### Последние коммиты (стиль и TASK-ID)
!`git log --oneline -10`

### Текущий статус
!`git status --short`

## 0. Early-exit: нечего коммитить

Проверь предвычисленный `git status --short` выше. Если вывод пустой ИЛИ содержит только строки, начинающиеся с `??` (только untracked-файлы) — выведи:

```
Nothing to commit — no staged or modified files.
```

и завершись. Не переходи к следующим шагам.

## 1. Собери недостающее

```bash
git diff HEAD
```

Статус и история уже выше — вызывать не нужно.

## 2. Проанализируй

- Какие файлы изменены, новые, удалены
- Есть ли файлы, которые НЕ НУЖНО коммитить (`.env`, credentials, временные)
- Сгруппируй по логическим блокам — один коммит = одно изменение

## 3. Определи TASK-ID

- Из `$ARGUMENTS` → используй его
- Иначе → определи формат из `git log` (например `[TG-42]`, `PROJ-123`)
- Не определяется → спроси

## 4. Формат commit message

Проверь `.claude/rules/git.md` или определи стиль из `git log --oneline -10`.

Если конвенции не найдены:

```
[TASK-ID]: short summary (imperative mood, lowercase, max 72 chars)

## What changed
- Конкретный bullet для каждого значимого изменения (имена файлов, области)

## Why
- Мотивация, какую проблему решает

## Details
- Решения по реализации, неочевидные моменты, побочные эффекты
```

Всегда объясняй WHY. Упоминай покрытие тестами.

## 5. Покажи план и дождись подтверждения

1. Файлы для staging
2. Полный текст commit message
3. Пропущенные файлы и почему

**НЕ коммить без одобрения.**

## 6. Выполни коммит

```bash
git add   ...

git commit -m "$(cat 
EOF
)"
```

## 7. Проверь

```bash
git status
git log -1
```

## Правила

- **Никогда**: push, --amend, --no-verify, коммит `.env`/секретов — без явной просьбы
- Добавляй файлы по именам (`git add file1 file2`), не `git add .`
- При падении pre-commit hook — исправь и создай НОВЫЙ коммит (не amend)

## Source & license

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

- **Author:** [Hedgehogues](https://github.com/Hedgehogues)
- **Source:** [Hedgehogues/awesome-claude](https://github.com/Hedgehogues/awesome-claude)
- **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:** yes
- **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-hedgehogues-awesome-claude-commit
- Seller: https://agentstack.voostack.com/s/hedgehogues
- 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%.
