Initialize or update BMad-Method (V6) in your project
日本語の概要は準備中です。原文の説明を表示しています。
Analyze changes with Git only and auto-generate conventional commit messages with optional emoji; suggests splitting commits when needed, runs local Git hooks by default (use --no-verify to skip)
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
This command works without any package manager/build tools, using only Git to:
git add and git commit as needed (runs local Git hooks by default; use --no-verify to skip)/git-commit
/git-commit --no-verify
/git-commit --emoji
/git-commit --all --signoff
/git-commit --amend
/git-commit --scope ui --type feat --emoji
--no-verify: Skip local Git hooks (pre-commit/commit-msg etc.).--all: When staging area is empty, automatically git add -A to include all changes in the commit.--amend: Amend the last commit without creating a new one (preserves author and timestamp unless local Git config specifies otherwise).--signoff: Add Signed-off-by line (use when following DCO process).--emoji: Include emoji prefix in commit message (omit for plain text).--scope <scope>: Specify commit scope (e.g., ui, docs, api), written to message header.--type <type>: Force commit type (e.g., feat, fix, docs), overrides automatic detection.Note: If the framework doesn't support interactive confirmation, enable
confirm: truein front-matter to avoid mistakes.
Repository/Branch Validation
git rev-parse --is-inside-work-tree.Change Detection
git status --porcelain and git diff.--all is passed → Execute git add -A.Split Suggestions (Split Heuristics)
git add <paths>).Commit Message Generation (Conventional with Optional Emoji)
type (feat/fix/docs/refactor/test/chore/perf/style/ci/revert...) and optional scope.[<emoji>] <type>(<scope>)?: <subject> (first line ≤ 72 chars, imperative mood, emoji included only with --emoji flag).-.BREAKING CHANGE: <description>, or add exclamation mark after type (e.g., feat!:).Closes #123, Refs: #456, Reviewed-by: Name).git log -n 50 --pretty=%s) to decide Chinese vs English; if unclear, fall back to the repository's primary locale or English..git/COMMIT_EDITMSG for use with git commit.Execute Commit
git commit [-S] [--no-verify] [-s] -F .git/COMMIT_EDITMSGgit add <paths> && git commit ... per group; execute sequentially if allowed.Safe Rollback
git restore --staged <paths> to unstage (command provides instructions, doesn't modify file contents).<type>(<scope>): <subject>.feat: New featurefix: Bug fix (includes 🔥 remove code/files, 🚑️ hotfix, 👽️ adapt to external API changes, 🔒️ security fix, 🚨 fix warnings, 💚 fix CI)docs: Documentation and commentsstyle: Code style/formatting (no semantic changes)refactor: Refactoring (no new features, no bug fixes)perf: Performance improvementstest: Add/fix tests, snapshotschore: Build/tools/misc tasks (merge branches, update configs, release tags, pin dependencies, .gitignore, etc.)ci: CI/CD configuration and scriptsrevert: Revert commitsfeat: Breaking changes (explained in BREAKING CHANGE: section)If
--type/--scopeis passed, it will override auto-detection. Emoji is only included when--emojiflag is specified.
feat, fix, refactor in the same commit.Good (with --emoji)
- ✨ feat(ui): add user authentication flow
- 🐛 fix(api): handle token refresh race condition
- 📝 docs: update API usage examples
- ♻️ refactor(core): extract retry logic into helper
- ✅ test: add unit tests for rate limiter
- 🔧 chore: update git hooks and repository settings
- ⏪️ revert: revert "feat(core): introduce streaming API"
Good (without --emoji)
- feat(ui): add user authentication flow
- fix(api): handle token refresh race condition
- docs: update API usage examples
- refactor(core): extract retry logic into helper
- test: add unit tests for rate limiter
- chore: update git hooks and repository settings
- revert: revert "feat(core): introduce streaming API"
Good (with Body)
feat(auth): add OAuth2 login flow
- implement Google and GitHub third-party login
- add user authorization callback handling
- improve login state persistence logic
Closes #42
fix(ui): fix button spacing on mobile devices
- adjust button padding to fit small screens
- fix styling issues on iOS Safari
- optimize touch target size
Good (with BREAKING CHANGE)
feat(api)!: redesign authentication API
- migrate from session-based to JWT authentication
- update all endpoint signatures
- remove deprecated login methods
BREAKING CHANGE: authentication API has been completely redesigned, all clients must update their integration
Split Example
- `feat(types): add new type defs for payment method`
- `docs: update API docs for new types`
- `test: add unit tests for payment types`
- `fix: address linter warnings in new files` ← (if your repo has hook errors)
pnpm/npm/yarn etc.).--no-verify to skip..git/COMMIT_EDITMSG and staging area; doesn't directly edit working directory files.confirm: true is enabled, each actual git add/git commit step requires confirmation.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Initialize or update BMad-Method (V6) in your project
日本語の概要は準備中です。原文の説明を表示しています。
在项目中初始化或更新 BMad-Method (V6)
日本語の概要は準備中です。原文の説明を表示しています。
Add New Feature
日本語の概要は準備中です。原文の説明を表示しています。
用于新增功能开发的命令,支持完整的开发流程和工具集成
日本語の概要は準備中です。原文の説明を表示しています。
Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support
日本語の概要は準備中です。原文の説明を表示しています。
安全查找并清理已合并或过期的 Git 分支,支持 dry-run 模式与自定义基准/保护分支
日本語の概要は準備中です。原文の説明を表示しています。