Skip to content
Back to skills

Commit 25

ASecurity

Git Commit Command

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
toolsrubybashnodegitperformancedocumentation

Security analysis

A100/100

Scanned September 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Commit 25?

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

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

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: Git Commit Command
allowed-tools: [Bash, Read, Grep]
---

# Git Commit Skill

Assists with creating git commits.

**IMPORTANT: When using this skill, announce to the user**: "Using commit skill to create a git commit."

## Workflow

```bash
# 1. Pre-commit checks (skip tests for documentation-only changes)
rake                    # Ruby
npm test                # Node.js
make test               # Make

# 2. Review changes
git status
git diff

# 3. Stage specific files (NEVER use "git add ." or "git add -A")
git add path/to/file.ext
git add path/to/another.ext

# 4. Review staged changes
git diff --cached

# 5. Commit with temporary file (MUST use <<'EOF' with single quotes)
cat > /tmp/commit_msg.txt <<'EOF'
:emoji: Subject line in imperative mood

Brief explanation (optional)
- Key impact 1
- Key impact 2
EOF

git commit -F /tmp/commit_msg.txt
rm /tmp/commit_msg.txt

# 6. Push if needed
git push
```

## Key Rules

- Write in English only
- Use `:emoji:` codes (not raw Unicode), with a space after
- Imperative mood: "Fix" not "Fixed"
- No period at end of subject line
- Focus on WHAT and WHY, not HOW
- 2-3 bullet points max in body
- Omit reverted changes and implementation details
- **NEVER include AI/coding agent attribution** (e.g., "Generated by Claude", "Co-authored-by: Claude")

## Emoji Codes

- `:zap:` - Performance
- `:bug:` - Bug fix
- `:sparkles:` - Feature
- `:memo:` - Documentation
- `:recycle:` - Refactor
- `:art:` - Structure/format
- `:wrench:` - Configuration
- `:white_check_mark:` - Tests
- `:fire:` - Remove
- `:package:` - Dependencies

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…