Data 446 installs

conventional-commit

by github/awesome-copilot

Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages…

Skill content

Structured prompt template for generating standardized conventional commit messages.

- Provides XML-formatted workflow guiding users through staging changes, inspecting diffs, and constructing commits with type, scope, description, body, and footer fields

- Includes validation rules enforcing Conventional Commits specification compliance, with allowed types (feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert)

- Offers six practical examples covering common commit patterns, including breaking changes

- Integrates with Git to automatically execute the final commit command in the terminal

Instructions

	<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>

Workflow

Follow these steps:

- Run git status to review changed files.

- Run git diff or git diff --cached to inspect changes.

- Stage your changes with git add <file>.

- Construct your commit message using the following XML structure.

- After generating your commit message, Copilot will automatically run the following command in your integrated terminal (no confirmation needed):

git commit -m "type(scope): description"