Conventional Commit

Conventional Commit

Guides the AI through checking git status and diff, then writing a Conventional Commits message in an XML structure and running the commit.

Skill files1 file
SKILL.md73 lines
1
---
2
name: conventional-commit
3
description: 'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'
4
---
5
6
### Instructions
7
8
```xml
9
<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>
10
```
11
12
### Workflow
13
14
**Follow these steps:**
15
16
1. Run `git status` to review changed files.
17
2. Run `git diff` or `git diff --cached` to inspect changes.
18
3. Stage your changes with `git add <file>`.
19
4. Construct your commit message using the following XML structure.
20
5. After generating your commit message, Copilot will automatically run the following command in your integrated terminal (no confirmation needed):
21
22
```bash
23
git commit -m "type(scope): description"
24
```
25
26
6. Just execute this prompt and Copilot will handle the commit for you in the terminal.
27
28
### Commit Message Structure
29
30
```xml
31
<commit-message>
32
<type>feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert</type>
33
<scope>()</scope>
34
<description>A short, imperative summary of the change</description>
35
<body>(optional: more detailed explanation)</body>
36
<footer>(optional: e.g. BREAKING CHANGE: details, or issue references)</footer>
37
</commit-message>
38
```
39
40
### Examples
41
42
```xml
43
<examples>
44
<example>feat(parser): add ability to parse arrays</example>
45
<example>fix(ui): correct button alignment</example>
46
<example>docs: update README with usage instructions</example>
47
<example>refactor: improve performance of data processing</example>
48
<example>chore: update dependencies</example>
49
<example>feat!: send email on registration (BREAKING CHANGE: email service required)</example>
50
</examples>
51
```
52
53
### Validation
54
55
```xml
56
<validation>
57
<type>Must be one of the allowed types. See <reference>https://www.conventionalcommits.org/en/v1.0.0/#specification</reference></type>
58
<scope>Optional, but recommended for clarity.</scope>
59
<description>Required. Use the imperative mood (e.g., "add", not "added").</description>
60
<body>Optional. Use for additional context.</body>
61
<footer>Use for breaking changes or issue references.</footer>
62
</validation>
63
```
64
65
### Final Step
66
67
```xml
68
<final-step>
69
<cmd>git commit -m "type(scope): description"</cmd>
70
<note>Replace with your constructed message. Include body and footer if needed.</note>
71
</final-step>
72
```
73

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…