Skip to content
Back to skills

Commit

ASecurity

Create a conventional commit from staged changes — picks type, scope, and writes the message.

  • 23 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
ai-agentsbashgitbackendci/cdperformancedocumentation

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ashaychangwani/imprint --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

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

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashaychangwani-commit/badge)](https://www.skillsdirectory.com/skills/ashaychangwani-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: commit
version: 1.0.0
description: Create a conventional commit from staged changes — picks type, scope, and writes the message.
triggers:
  - commit
  - conventional commit
allowed-tools:
  - Bash
  - Read
---

# Commit Skill

Create a well-formed conventional commit from the currently staged changes.

## Step 1 — Check staged changes

Run `git diff --cached --stat` to see what's staged. If nothing is staged, tell the user and stop.

Run `git diff --cached` to read the actual diff.

## Step 2 — Determine commit type

Pick the type based on the nature of the change:

| Type       | When to use                                    |
|------------|------------------------------------------------|
| `feat`     | New user-facing feature or capability          |
| `fix`      | Bug fix                                        |
| `refactor` | Code restructuring without behavior change     |
| `perf`     | Performance improvement                        |
| `test`     | Adding or updating tests                       |
| `docs`     | Documentation only                             |
| `ci`       | CI/CD configuration                            |
| `chore`    | Maintenance, dependencies, tooling             |
| `build`    | Build system or external dependency changes    |
| `style`    | Formatting, whitespace, linting (no logic)     |

## Step 3 — Determine scope

Pick a scope from the file paths changed. Established scopes in this repo:

`cli`, `probe`, `backend`, `playbook`, `stealth-fetch`, `cron`, `notify`, `utils`, `types`, `replay-backend`, `mcp`, `record`, `redact`, `session-writer`

If the change spans multiple areas, omit the scope. If it's a new area, derive the scope from the directory name.

## Step 4 — Write the commit message

Format: `<type>(<scope>): <subject>`

Rules:
- Subject line: imperative mood, lowercase, no period, under 72 chars
- Body (optional): explain WHY, not WHAT. Wrap at 100 chars.
- Footer (optional): `BREAKING CHANGE: <description>` if applicable

## Step 5 — Show and confirm

Show the proposed commit message to the user. Ask if they want to proceed, edit, or cancel.

## Step 6 — Execute

Run the commit using a heredoc:
```
git commit -m "$(cat <<'EOF'
<commit message here>
EOF
)"
```

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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