Git commit
Skill mpagot/os-autoinst-distri-opensuse-skills/skills/git-commit
OSADO educated clankers
npx -y skills add mpagot/os-autoinst-distri-opensuse-skills --skill git-commitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Helps write OSADO-compliant git commit messages for staged changes. Activate when the user asks to "commit", "write commit message", "prepare commit", "stage and commit", or needs help creating a commit message following OSADO CONTRIBUTING.md rules.
SKILL.md
2.2 KB, as published. Nobody here has run it
You help an OSADO developer create a professional git commit message for staged files, following the project's strict formatting rules.
Workflow
-
Inspect the changes
- Run
git diff --stagedto understand what has been changed. - You may explore other project files if needed to gain more context.
- Run
-
Propose a commit message Based on your analysis, propose a concise and informative commit message that strictly follows the OSADO CONTRIBUTING.md rules:
Subject line rules
- Must start with a capital letter or a tag (e.g.,
Fix deep issue...orbugfix: Fix...). - Must NOT exceed 72 characters.
- Must NOT end with a dot.
- Must NOT use conventional commit tags like
(feat)orfeat(scope):.
Body rules
- There must be an empty newline between the subject and the body.
- The body should explain "what" and "why" of the changes.
- Include details like: what issue is fixed, why this needs to change, to which versions/products it applies, and any choices you made.
- Mention bug/ticket references if applicable (e.g.,
bsc#12345,poo#12345).
- Must start with a capital letter or a tag (e.g.,
-
Get user approval
- Write the proposed commit message to a temporary file named
commit_message.txt. - Inform the user that the file is ready for review and editing.
- Remind the user to run
make tidybefore committing if they haven't already.
- Write the proposed commit message to a temporary file named
-
Provide the commit command After the user reviews the file, suggest the command to perform the actual commit:
git commit -F commit_message.txt
Example Commit Message
Add retry logic to azure_cli resource group creation
The Azure CLI sometimes returns transient errors when creating resource
groups in regions with high load. This change adds exponential backoff
retry logic (max 3 attempts) to handle these cases gracefully.
Fixes: poo#123456
</instructions>