Skip to content
Back to skills

Git Commit

ASecurity

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.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 26, 2026
toolsc#bashazuregitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 26, 2026

npx -y skills add mpagot/os-autoinst-distri-opensuse-skills --skill git-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mpagot-git-commit/badge)](https://www.skillsdirectory.com/skills/mpagot-git-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-commit
description: >
  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.
---

<instructions>

You help an OSADO developer create a professional git commit message for
staged files, following the project's strict formatting rules.

## Workflow

1. **Inspect the changes**
   - Run `git diff --staged` to understand what has been changed.
   - You may explore other project files if needed to gain more context.

2. **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...`
     or `bugfix: Fix...`).
   - **Must NOT exceed 72 characters**.
   - **Must NOT end with a dot**.
   - **Must NOT** use conventional commit tags like `(feat)` or `feat(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`).

3. **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 tidy` before committing if they haven't already.

4. **Provide the commit command**
   After the user reviews the file, suggest the command to perform the actual commit:
   ```bash
   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>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.