Skip to content

Commit 01bdf0f

Browse files
wkoutreclaude
andcommitted
fix(claude-setup): stop the quick-commit template from staging blind
command-templates.md contradicted itself: line 50 says "Never use `git add .` - always review what you're committing", while the /quick-commit template staged everything with the -A flag. Staging everything sweeps in untracked files that were never reviewed: build artifacts, local scratch files, and any secret-bearing config a missing gitignore entry left visible. The "quick" path is precisely where nobody is reading the diff, so it is the worst place to do it. Staged files are now listed individually, matching the other two commit templates in the same file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 2d43e31 commit 01bdf0f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

packages/plugins/claude-setup/skills/setup-repository/references/command-templates.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,16 @@ git status
299299
git diff
300300
````
301301

302-
### 2. Stage All Changes
302+
### 2. Stage the Changed Files
303303

304304
```bash
305-
git add -A
305+
git add [file1] [file2] ...
306306
```
307307

308-
**Note:** This stages everything. Use /commit-push-pr for more control.
308+
**Note:** Even in the quick path, stage files individually. `git add -A` sweeps in
309+
untracked files you never reviewed — build artifacts, local scratch files, and
310+
`.env` files that a missing `.gitignore` entry left visible. Use `/commit-push-pr`
311+
when you want the fuller review flow.
309312

310313
### 3. Generate and Commit
311314

0 commit comments

Comments
 (0)