pi-git-commands-extension
v0.1.3
Published
Shareable Pi package that adds /commit, /push, /commit-and-push, and /commit-pr git commands.
Maintainers
Readme
pi-git-commands-extension
A standalone Pi package that adds shareable git workflow commands:
/commit/push/commit-and-push/commit-pr
The extension inspects the current repository, generates commit messages with the active Pi model, and now also looks at recent commits so generated messages stay closer to the repository's existing style.
Install
From npm
pi install npm:pi-git-commands-extensionFrom git
pi install git:github.com/qualiti/pi-git-commands-extensionFrom a local checkout
pi install /absolute/path/to/pi-git-commands-extensionUsage
After installation, reload Pi or start a new session, then use:
/commit
/push
/commit-and-push
/commit-prYou can also pass a commit hint:
/commit fix calendar overlap validation
/commit-and-push update onboarding copy
/commit-pr add recurring event form polishRequirements
gitmust be available onPATHghmust be installed and authenticated for/commit-pr- Pi must have an authenticated model available to generate commit metadata
Package structure
This package follows Pi package guidelines:
- it declares a
pimanifest inpackage.json - it exposes the extension through
./extensions - it uses Pi core packages as
peerDependencies - it ships TypeScript directly so Pi can load it through jiti
Local development
Run the unit tests:
npm testRun a local package install into Pi:
pi install /absolute/path/to/pi-git-commands-extensionOr load the extension file directly for quick testing:
pi -e /absolute/path/to/pi-git-commands-extension/extensions/git-commands.tsFiles
package.json— Pi package manifest for npm and git installsextensions/git-commands.ts— the extension entry point.github/workflows/ci.yml— package validation on pushes and pull requests.github/workflows/publish.yml— npm publish workflow for releases
Notes
This repository intentionally keeps the extension as plain TypeScript with no build step, matching Pi's extension packaging model.
