Skip to content
Back to skills

Commit 19

ASecurity

Reviews staged git changes and drafts a concise commit message. Use when the user wants to commit, needs a commit message, or asks to review staged changes for committing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 27, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill commit-19 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit 19?

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

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

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
description: Reviews staged git changes and drafts a concise commit message. Use when the user wants to commit, needs a commit message, or asks to review staged changes for committing.
---

# Commit Skill

Draft and commit staged changes using a task subagent (isolated context).

## Step 1: Check for Staged Files

```bash
git diff --cached --name-only
```

**If NO staged files:** STOP immediately. Tell the user:
> "Nothing staged. Run `git add <files>` first."

Do not proceed.

## Step 2: Delegate Everything to Task Subagent

Use the `task` tool to review, draft, and commit:

```json
{
  "description": "Review staged changes, draft a commit message, and commit",
  "prompt": "1. Run `git diff --cached` to see staged changes.\n2. Draft a 1-line commit message: short phrase, brevity over grammar, explicitly describes changes, NO prefixes (feat:, fix:, etc.), NO verbose descriptions. Examples: 'task tool for parallel subagents', 'fix token expiry edge case', 'refactor auth middleware'.\n3. Run `git commit -m \"<your message>\"`\n4. Return the commit hash and message."
}
```

Report the commit hash and message returned by the task.

## Rules

- **NEVER** run `git add`
- **NEVER** run `git push`
- **NEVER** create branches

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.