stamp is a CLI tool to create Git commit messages
in the Type(Scope): description format.
Stop writing messy commits.
Stamp them.
- Guided commit message creation
- Conventional
Type(Scope): descriptionformat - Scope suggestions based on staged files
- Preview changes before committing
- Dry-run support
| Type | Description |
|---|---|
| feat | 機能追加 |
| fix | バグ修正 |
| docs | ドキュメント |
| style | 見た目・整形(挙動変更なし) |
| refactor | リファクタ(挙動変更なし) |
| test | テスト |
| chore | 雑務(設定・依存更新など) |
| perf | パフォーマンス改善 |
Run the following command inside a Git repository:
stampYou will be prompted to select:
- Type (e.g. feat, fix)
- Scope (optional, suggested from file paths)
- Description (required)
Before committing, stamp shows the staged files grouped by module:
Changed files (by module):
[src] (2)
- src/api/user.ts
- src/api/auth.ts
Example commit message:
feat(api): add user authentication
To preview the commit message without executing git commit:
stamp --dry-rungit clone https://github.com/Nkot117/stamp.git
cd stamp
npm install
npm run build
npm linkAfter that, you can run stamp from anywhere.
src/
index.ts # CLI entry point
lib/
git.ts # Git operations
prompts.ts # Interactive prompts
printer.ts # Output formatting
Commit messages are records.
They should be readable, consistent, and meaningful.
stamp helps you:
- avoid vague messages like "fix bug"
- keep commit history clean
- focus on what you changed, not how to format it
MIT