name: jj:commit description: "Create a jj commit from current working copy with auto-generated description"
Commit Current Changes
Create a new jj commit from the current working copy with a generated description.
Process
- Run
jj diff --summaryandjj diff --statto get change overview - Analyze changes:
- Small (≤5 files, ≤200 lines): run
jj diffdirectly - Large: use
/jj-contextfor structured summary
- Small (≤5 files, ≤200 lines): run
- Determine project prefix from file paths
- Generate a one-line description:
<prefix>: <lowercase verb> <what changed> - Run
jj commit -m "<description>"
IMPORTANT: Always use a single-line commit message. Never use multi-line descriptions or bullet points.
Project Prefix Examples
Use the descriptive folder path identifying the subsystem:
src/authfor authentication codelib/utilsfor utility librariesservices/apifor API servicesdb/migrationsfor database changes
Good Description Examples
src/auth: add JWT token refresh logiclib/utils: fix date parsing for ISO formatsservices/api: add rate limiting middlewaredb/migrations: add users tabletests/integration: add checkout flow tests