Commit

From gittower/git-flow-next · View interactive version

Commit is an AI agent skill from the GitHub repository gittower/git-flow-next. Create a commit following COMMIT_GUIDELINES.md

How to use this skill

Skill file

Commit Changes

Create a well-formatted commit following the project's COMMIT_GUIDELINES.md.

Instructions

  1. Read COMMIT_GUIDELINES.md for all formatting rules, commit types, and conventions
  1. Check Status
  1. Analyze Changes
  1. Write Commit Message per COMMIT_GUIDELINES.md rules
  1. Create Commit using HEREDOC format for proper formatting:

```bash

git commit -m "$(cat <<'EOF'

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

<body>

<footer>

EOF

)"

```

  1. Verify — run git log -1 to check the message

Commit Type Decision Guide

Choose the type based on the purpose of the change, not the file type:

| Type | Use when... | Example |

|------|------------|---------|

| feat | Adding new user-facing functionality | New CLI command, new flag, new config option |

| fix | Fixing a user-facing bug | Incorrect merge behavior, wrong exit code |

| refactor | Restructuring code without behavior change | Extract helper, rename internal function |

| test | Adding/fixing tests (even if fixing a bug in a test) | New test case, fix flaky test |

| docs | Changing user-facing documentation content | Update README, manpage, ARCHITECTURE.md |

| ci | Changing CI/CD, automation, review tooling, GitHub config | Workflows, Copilot/Claude instructions, skills, .github/ config |

| build | Changing build system or dependencies | go.mod, build scripts, Makefile |

| style | Code formatting only, no logic change | go fmt, whitespace fixes |

| chore | Maintenance that doesn't fit above | Update .gitignore, tool config |

Common pitfalls

Hard Wrapping Technique

When a guideline specifies a hard line wrap limit, write the text as continuous flowing prose first, then hard wrap at the specified character limit, filling each line as close to the limit as possible.

Example

git commit -m "$(cat <<'EOF'
feat(finish): Add squash merge strategy

Implements --squash flag for finish command that performs a squash merge
instead of a regular merge, creating a single commit with all branch
changes on the target branch.

- Add squash option to merge strategy enum
- Update finish command to handle squash flag
- Add configuration support for default squash behavior

Resolves #42
EOF
)"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.