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>
Рабочий процесс
Следуйте этим шагам:
- Выполните
git status, чтобы просмотреть изменённые файлы. - Выполните
git diffилиgit diff --cached, чтобы осмотреть изменения. - Проиндексируйте изменения через
git add <file>. - Составьте сообщение коммита по XML-структуре ниже.
- После генерации сообщения Copilot автоматически выполнит следующую команду в интегрированном терминале (без подтверждения):
git commit -m "type(scope): description"
- Просто выполните этот промпт, и 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>
Из того же репозитория
git-commitOfficial — git коммит GitHub Copilot
github/awesome-copilot
Git коммит.
gh-cliOfficial — GitHub CLI Awesome Copilot
github/awesome-copilot
GitHub CLI.
excalidraw-diagram-generatorOfficial — генератор диаграмм Excalidraw GitHub
github/awesome-copilot
Генератор диаграмм Excalidraw.
documentation-writerOfficial — писатель документации GitHub Copilot
github/awesome-copilot
Писатель документации.
prdOfficial — PRD GitHub Copilot
github/awesome-copilot
Документ требований к продукту.
refactorOfficial — рефакторинг GitHub Copilot
github/awesome-copilot
Рефакторинг.
