npx skills add ...
npx skills add marcelorodrigo/agent-skills --skill conventional-commit
Create conventional commit messages following best conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits specification.
npx skills add marcelorodrigo/agent-skills --skill conventional-commit
Follow these conventions when creating commits.
Before committing, ensure you're working on a feature branch, not the main branch.
If you're on main or master, create a new branch first:
Branch naming should follow the pattern: <type>/<short-description> where type matches the commit type (e.g., feat/add-user-auth, fix/null-pointer-error, refactor/extract-validation).
The header is required. Scope is optional. All lines must stay under 100 characters.
| Type | Purpose |
|---|---|
build | Build system or CI changes |
chore | Routine maintenance tasks |
ci | Continuous integration configuration |
deps | Dependency updates |
docs | Documentation changes |
feat | New feature |
fix | Bug fix |
perf | Performance improvement |
refactor | Code refactoring (no behavior change) |
revert | Revert a previous commit |
style | Code style and formatting |
test | Tests added, updated or improved |
The commit contains the following structural elements, to communicate intent to the consumers of your library: