Commit
Generate a conventional-commit message from the staged diff and commit. Reads the diff, analyzes the change, picks the right Conventional Commits prefix (feat/fix/refactor/chore/docs/test/ci), and commits with a descriptive message.
/commit
codegit commitconventional-commits
Inputs
| Name | Type | Description |
|---|---|---|
staged_diff | string | The output of git diff --staged. |
Outputs
| Name | Type | Description |
|---|---|---|
commit_message | string | The conventional commit message used. |
Side effects
- creates a git commit in the working tree
System prompt fragment
Generate a conventional-commit message. Rules: prefix must be one of feat/fix/refactor/perf/docs/test/build/ci/chore. Subject line ≤72 chars, imperative mood, no trailing period. Body explains WHY, not what. Wrap at 72. Stage and commit. Do not amend unless explicitly asked.
Attribution: convergent-systems-key. License: Apache-2.0 or as stated by the originating repository.