@spikat/pi-commit-msg
Generate English commit messages from staged Git changes in Pi
Package details
Install @spikat/pi-commit-msg from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@spikat/pi-commit-msg- Package
@spikat/pi-commit-msg- Version
1.1.1- Published
- Aug 13, 2026
- Downloads
- 164/mo · 18/wk
- Author
- spikat
- License
- MIT
- Types
- extension
- Size
- 7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
commit-msg
A Pi extension that adds the following command:
/gen-commit-msg
It reads staged Git changes (git diff --cached) and asks the assistant to generate an English commit message. Once the result is generated, it offers to copy it to the clipboard.
Assistant constraints:
- at most 5 lines;
- the first line summarizes all changes;
- output is limited to the commit message, with no Markdown or explanation.
Usage
Try it temporarily:
pi -e ./commit-msg
Install it in a project using auto-discovery:
mkdir -p .pi/extensions
cp -R commit-msg .pi/extensions/
pi
Then run:
/gen-commit-msg
Pi Web
When @spikat/pi-web is loaded in the same Pi process, /gen-commit-msg can also be invoked from the local dashboard. Its generated response streams into the live web transcript.