Главная · Скиллы · conventional-commit

conventional-commitOfficialconventional commit GitHub стандарт

github/awesome-copilot

Conventional Commits стандарт через Copilot.

Установка

npx -y skills add github/awesome-copilot --skill conventional-commit --agent claude-code

Инструкции

<description>This file contains a prompt template for generating conventional commit messages. It provides instructions, examples, and formatting guidelines to help users write standardized, descriptive commit messages in accordance with the Conventional Commits specification.</description>

Рабочий процесс

Следуйте этим шагам:

  1. Выполните git status, чтобы просмотреть изменённые файлы.
  2. Выполните git diff или git diff --cached, чтобы осмотреть изменения.
  3. Проиндексируйте изменения через git add <file>.
  4. Составьте сообщение коммита по XML-структуре ниже.
  5. После генерации сообщения Copilot автоматически выполнит следующую команду в интегрированном терминале (без подтверждения):
git commit -m "type(scope): description"
  1. Просто выполните этот промпт, и Copilot сделает коммит за вас в терминале.

Структура сообщения коммита

<commit-message>
	<type>feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert</type>
	<scope>()</scope>
	<description>A short, imperative summary of the change</description>
	<body>(optional: more detailed explanation)</body>
	<footer>(optional: e.g. BREAKING CHANGE: details, or issue references)</footer>
</commit-message>

Примеры

<examples>
	<example>feat(parser): add ability to parse arrays</example>
	<example>fix(ui): correct button alignment</example>
	<example>docs: update README with usage instructions</example>
	<example>refactor: improve performance of data processing</example>
	<example>chore: update dependencies</example>
	<example>feat!: send email on registration (BREAKING CHANGE: email service required)</example>
</examples>

Валидация

  • type: должен быть одним из допустимых типов. См. спецификацию: https://www.conventionalcommits.org/en/v1.0.0/#specification
  • scope: опционален, но рекомендуется для ясности.
  • description: обязателен. Используйте повелительное наклонение («add», а не «added»).
  • body: опционален. Для дополнительного контекста.
  • footer: для ломающих изменений или ссылок на issue.

Финальный шаг

<final-step>
	<cmd>git commit -m "type(scope): description"</cmd>
	<note>Replace with your constructed message. Include body and footer if needed.</note>
</final-step>

Из того же репозитория