Skip to content
Back to skills

Commit 47

ASecurity

Create atomic git commits following project conventions with chunk-based staging

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolsbashgitapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Commit 47?

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

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

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: Create atomic git commits following project conventions with chunk-based staging
disable-model-invocation: true
allowed-tools: Bash, Read, Grep, Glob
---

Create atomic commits for staged/unstaged changes using chunk-based staging.

## Commit Format

Title: `module: Verb in imperative style`
- Lowercase module name before colon
- Capital letter after colon
- Imperative verb: Add, Fix, Update, Remove, Refactor

Body: Bullet points only
- Lowercase start for each bullet
- NO prose paragraphs
- NO Co-Authored-By
- NO Claude signatures
- NO emojis

## Process

1. Run `git status` and `git diff` to understand all changes
2. Run `git log -5 --oneline` to see recent commit style
3. Identify logical groups of changes that belong together
4. For each logical group:
   - Stage specific chunks with `git add -p <file>` for modified files
   - For new files: `git add -N <file> && git add -p <file>`
   - Verify staged changes: `git diff --cached`
   - Run `nix flake check`
   - Create commit using HEREDOC:
     ```bash
     git commit -m "$(cat <<'EOF'
     module: Title here

     - bullet point describing what changed
     - another bullet if needed
     EOF
     )"
     ```
5. Run `git log --oneline -5` to verify

## Fixup Commits

For iterations after review feedback, use fixup commits:
```bash
git commit --fixup=HEAD
```

Or target a specific commit:
```bash
git commit --fixup=<commit-hash>
```

Fixups will be squashed later with `/branch-cleanup`.

## Chunk Staging Reference

Interactive patch mode (`git add -p`) commands:
- `y` - stage this hunk
- `n` - skip this hunk
- `s` - split into smaller hunks
- `q` - quit, do not stage remaining hunks

## Rules

- One logical change per commit
- Separate unrelated changes into different commits
- NEVER push to remote
- NEVER use --amend unless explicitly requested
- NEVER skip nix flake check

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…