Commit

Create well-formatted git commits following conventional commit standards

PanJason Updated

File contents

Git Commit Skill

Create well-formatted git commits following conventional commit standards.

Usage

/commit

Behavior

  1. Analyze staged changes with git diff --staged
  2. Generate a conventional commit message
  3. Create the commit with proper formatting
  4. Don't commit anything in .gitignore

Commit Format

<type>(<scope>): <description>

[optional body]

[optional footer]

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes
  • refactor: Code refactoring
  • test: Adding or modifying tests
  • chore: Maintenance tasks

Example Output

feat(auth): add password reset functionality

- Add forgot password form
- Implement email verification flow
- Add password reset endpoint

PanJason/Awesome_SDE_Skills/tree/main/Common/git-commit commit a63ad7d887

Frequently asked questions

npx skillmds@latest add panjason/commit