Чтобы меньше заебываться со вводом одного и того же можно добавить свои кастомные команды на что угодно.
В кодинге с AI (cursor/claude/copilot) можно задавать свои файлы с правилами (.cursor/, CLAUDE.md, .copilot/)
А в них можно писать то что тебя заебывает делать и назначить на это дело alias команды.
Например первая команда их моего CLAUDE.md. Говорим
$CM и АИ начинает готовить коммит. Можно добавить по вкусу чтобы обмазался линтерами или тайпчеком вместо прекоммита.
- $CM: generate commit message, show me, after I approve, attach all changed files, commit it.
To generate message run diff, get latest commits (exclude develop branch), get branch name. Commit format is `TYPE: PS-1234 - <description>`.
Type is one of FEAT, BUGFIX, CHORE, DOCS, REFACTOR, TESTS, STYLE.
XX-1234 is the task number extracted from the branch name.
Generate a commit message based on the diff and the latest commits. Less is more. One line only.
Don't mention tests if it's not TESTS commit.
After generating the commit message calculate message lines count, it must be exactly 1 line.
