Skip to content
Back to skills

Git:Commit

ASecurity

Create properly formatted commits following Rossoctl conventions

  • 299 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 20, 2026
devopsgobashtestingrefactoringgitapisecuritydocumentation

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add rossoctl/rossoctl --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/rossoctl-git-commit/badge)](https://www.skillsdirectory.com/skills/rossoctl-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: Create properly formatted commits following Rossoctl conventions
---

# Git Commit

Create commits following Rossoctl conventions with proper formatting and sign-off.

## When to Use

- Every time you commit code
- After TDD fix iterations
- Before creating a PR

## Quick Commit

```bash
git add <files>
```

```bash
git commit -s -m "🌱 Short descriptive message"
```

The `-s` flag adds the required `Signed-off-by` line.

## Commit Format

```
<emoji> <Short descriptive message>

<Optional longer description>

Signed-off-by: <Name> <email>
Co-authored-by: Claude <noreply@anthropic.com>
```

### Emoji Prefixes

| Emoji | Type | When |
|-------|------|------|
| ✨ | Feature | New functionality |
| πŸ› | Bug fix | Fixing broken behavior |
| πŸ“– | Docs | Documentation only |
| πŸ“ | Proposal | Design proposals |
| ⚠️ | Breaking change | API or behavior changes |
| 🌱 | Other | Tests, CI, refactoring, tooling |

### Requirements

1. **Signed-off-by is MANDATORY** β€” always use `git commit -s`
2. **Co-authored-by Claude** β€” include when Claude creates the commit
3. **Imperative mood** β€” "Add feature" not "Added feature"
4. **Under 72 characters** β€” subject line
5. **No "Generated with Claude Code" line** β€” removed per team preference

### Examples

```
🌱 Add E2E testing infrastructure and deployment health tests

Implements initial end-to-end testing framework for Rossoctl platform.

Signed-off-by: Developer <dev@example.com>
Co-authored-by: Claude <noreply@anthropic.com>
```

```
πŸ› Fix VPC cleanup order: delete subnets before route tables

Signed-off-by: Developer <dev@example.com>
```

## CVE ID Check (Pre-Commit)

**Before every commit**, scan the commit message for CVE references:

- Pattern: `CVE-\d{4}-\d+` (e.g., CVE-2026-12345)
- Also check for: "vulnerability", "exploit", "security flaw" combined with a package name

If found in the commit message:

```
WARNING: Commit message contains CVE reference.
This will be visible in public git history.

Rewrite using neutral language:
  BAD:  "Fix CVE-2026-12345 in requests library"
  GOOD: "Bump requests to 2.32.0"

  BAD:  "Patch security vulnerability in auth module"
  GOOD: "Update auth module for compatibility"
```

If a `cve:brainstorm` hold is active, also verify the staged file diffs don't
contain CVE IDs in comments, docstrings, or documentation.

## Sign All Commits in Branch

If you have unsigned commits in your branch, sign them all:

```bash
git rebase --signoff HEAD~$(git rev-list --count upstream/main..HEAD)
```

## Amending

```bash
git commit --amend -s --no-edit
```

## After Committing

Check the commit:

```bash
git log --oneline -1
```

Verify sign-off:

```bash
git log -1 --format='%B' | grep 'Signed-off-by'
```

## Related Skills

- `repo:pr` - PR creation conventions
- `git:rebase` - Rebase before pushing
- `tdd:ci` - TDD workflow commit step
- `cve:scan` - CVE scanning (invoked by other workflows)
- `cve:brainstorm` - CVE disclosure gate (blocks CVE references in commits)

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.