# Commit

> Create commits following repo conventions. Use when committing changes, creating commit messages.

- Skill: `toss/commit` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add toss/commit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/toss/commit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: toss (https://skillmd.com/u/toss)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/toss/commit

---


# Git Commit Skill

## Quick Start

```bash
/commit  # Analyze changes and auto-commit
```

## Commit Message Format

```
<type>(<scope>): <description>
```

## Core Patterns

### Type

| Type     | Purpose       |
| -------- | ------------- |
| feat     | New feature   |
| fix      | Bug fix       |
| chore    | Build, config |
| refactor | Refactoring   |
| docs     | Documentation |
| test     | Tests         |

### Scope

| Category | Example                                      |
| -------- | -------------------------------------------- |
| Item     | `useToggle`, `SwitchCase`, `mergeRefs`       |
| Area     | `docs`, `codemod`, `ci`, `plugin`            |
| None     | Omit scope when the change spans the package |

### Examples

```bash
feat(useDebounce): add a maxWait option
fix(useKeyboardHeight): ignore transient zero heights on Android
fix: correct SSR rendering logic
docs(useToggle): update the example
chore: add claude skills
```

## Execution Steps

1. `git status` - Check changed files
2. `git diff` - Analyze changes
3. Determine type, scope, and description
4. `git add .` + `git commit`

## References

- [details.md](references/details.md) - Full conventions and complex cases

