preguito 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # 🦥 preguito
2
2
 
3
+ > 🌐 **[Landing Page](https://jacodoisdois.github.io/preguito)** | 📦 **[npm](https://www.npmjs.com/package/preguito)** | 📚 **[Docs](./docs/)**
4
+
3
5
  > A lazy git CLI with commit templates and shortcuts.
4
6
 
5
7
  Typing the same commit prefix, squad name, and ticket number over and over is tedious. preguito lets you define a commit template once and reuse it on every commit — single-letter shortcodes replace verbose flags, so you only type what matters.
@@ -25,6 +27,7 @@ Typing the same commit prefix, squad name, and ticket number over and over is te
25
27
  - [Configuration](#%EF%B8%8F-configuration)
26
28
  - [Programmatic API](#-programmatic-api)
27
29
  - [FAQ](#-faq)
30
+ - [Claude Code Integration](#-claude-code-integration)
28
31
  - [Contributing](#-contributing)
29
32
  - [License](#-license)
30
33
 
@@ -65,7 +68,7 @@ npm install -g preguito
65
68
  Download the `.deb` from [GitHub Releases](https://github.com/jacodoisdois/preguito/releases) and install:
66
69
 
67
70
  ```bash
68
- sudo dpkg -i preguito_0.1.0_amd64.deb
71
+ sudo dpkg -i preguito_0.2.2_amd64.deb
69
72
  ```
70
73
 
71
74
  No Node.js required — the binary bundles everything via Node.js SEA.
@@ -184,7 +187,9 @@ guito u 3 # Undo last 3 commits
184
187
  guito sw main # Switch branch
185
188
  guito sw -n feature/login # Create + switch
186
189
  guito st # Stash changes
190
+ guito st -m "WIP login" # Stash with message
187
191
  guito stp # Stash pop
192
+ guito stl # List all stashes
188
193
  ```
189
194
 
190
195
  ### Rebase
@@ -202,6 +207,15 @@ guito p # Simple push (git push)
202
207
  guito pu # Push + set upstream
203
208
  ```
204
209
 
210
+ ### Diff
211
+
212
+ ```bash
213
+ guito d # Show all changes
214
+ guito d -s # Show staged changes only
215
+ guito d --stat # Show diffstat summary
216
+ guito d -n # Show only changed file names
217
+ ```
218
+
205
219
  ### Inspect
206
220
 
207
221
  ```bash
@@ -274,8 +288,10 @@ See [template-system.md](docs/template-system.md) for full syntax, resolution or
274
288
  | `guito re <hash>` | — | Edit rebase at commit |
275
289
  | `guito ri <count>` | — | Interactive rebase last N commits |
276
290
  | `guito sw <branch>` | `switch` | Switch/create branch (`-n` to create) |
277
- | `guito st` | — | Stash changes |
291
+ | `guito st` | — | Stash changes (`-m` for message) |
278
292
  | `guito stp` | — | Pop latest stash |
293
+ | `guito stl` | — | List all stashes |
294
+ | `guito d` | `diff` | Show changes (`-s` staged, `--stat`, `-n` names) |
279
295
  | `guito s` | `status` | Short status |
280
296
  | `guito l [count]` | `log` | Compact log (default: 10) |
281
297
  | `guito f <keyword>` | `find` | Search commits by message |
@@ -326,6 +342,26 @@ guito ri 5 # Interactive rebase last 5 commits
326
342
  guito cf abc123 -f # Fixup + force push
327
343
  ```
328
344
 
345
+ ### Review changes before committing
346
+
347
+ ```bash
348
+ guito d # See all unstaged changes
349
+ guito d -s # See what's staged
350
+ guito d --stat # Quick summary of changed files
351
+ guito c 42 f "add feature" -p # Commit + push
352
+ ```
353
+
354
+ ### Stash work in progress
355
+
356
+ ```bash
357
+ guito st -m "WIP: login page" # Stash with a descriptive message
358
+ guito sw hotfix/urgent-fix # Switch to another branch
359
+ # ... do urgent work ...
360
+ guito sw - # Switch back
361
+ guito stl # List stashes to find yours
362
+ guito stp # Restore your WIP
363
+ ```
364
+
329
365
  ---
330
366
 
331
367
  ## ⚙️ Configuration
@@ -438,11 +474,27 @@ Yes. During `guito i` setup, you can reassign any letter to any type or environm
438
474
 
439
475
  ---
440
476
 
477
+ ## 🤖 Claude Code Integration
478
+
479
+ preguito has an official [Claude Code skill](https://github.com/jacodoisdois/preguito-skill) that teaches Claude the full `guito` command syntax, template system, and shortcodes.
480
+
481
+ ```bash
482
+ npx skills add jacodoisdois/preguito-skill -g
483
+ ```
484
+
485
+ Once installed, Claude Code will:
486
+
487
+ - Automatically use `guito c` instead of `git commit` in preguito projects
488
+ - Read your `.preguitorc` config to determine the correct shortcodes and card ID format
489
+ - Offer a `/guito-commit` slash command for interactive commit crafting with dry-run preview
490
+
491
+ ---
492
+
441
493
  ## 🤝 Contributing
442
494
 
443
495
  ```bash
444
496
  git clone https://github.com/jacodoisdois/preguito.git
445
- cd preguito
497
+ cd preguito/packages/preguito
446
498
  npm install
447
499
  ```
448
500